agiterra

Compare Docs — Git skill for Claude Code

Git community

Compare document generation between main and the current feature branch.

How to install Compare Docs

Installs to ~/.claude/skills/agiterra-product-foundry-engineering-compare-docs/SKILL.md

Terminal
mkdir -p ~/.claude/skills/agiterra-product-foundry-engineering-compare-docs && curl -fsSL https://raw.githubusercontent.com/agiterra/product-foundry-engineering/HEAD/commands/compare-docs.md -o ~/.claude/skills/agiterra-product-foundry-engineering-compare-docs/SKILL.md

Restart Claude Code, or start a new session, for it to be picked up.

What Compare Docs does

Compare document generation between main and the current feature branch.

This command generates all documents from all supported jurisdictions on both main and the current branch, then compares the output to identify expected and unexpected differences.

Prerequisites

  • You must be in a worktree on a feature branch (not main)
  • The API submodule must have the test-generate endpoint (POST /document/test-generate in the source)
  • the database must be running locally (standard dev database)

Alternatives in Git

  • Ws Reset — Reset the current branch to main, fetch upstream, and update submodules 38.1k ★
  • Merge Command — Finalize worktree work: update docs, commit, merge to main, clean up 1.3k ★
  • MiniCode Roadmap — MiniCode already has a usable lightweight terminal coding workflow, but there is still a visible gap between t 388 ★

Full documentation available on GitHub

View Source Repository