Compare Docs — Git skill for Claude Code
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
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-generatein 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 RepositoryRelated Skills
Cdd Pre PR
Run a pre-PR checklist for the current branch. Compare against the base branch to identify all changes. This i
Cdd Merge Base
Integrate the current state of the base branch into the feature branch. Two phases: a dry-run conflict assessm
PR Desc
Reads git diff between the current branch and main (or a specified base branch), analyzes changed files, and g
Koto
Move conversations between Claude Code, Codex, Cursor, and more. Keep your conversation history, branch into d
Update Branch
Merge main into the current feature branch
Merge Prep
Get a docs change ready to merge: whole-set generation, linting, link and drift checks, in one deliberate pass
Related Agents
Compare Branch
Compare current branch vs main/staging — changes, risk assessment, merge readiness.
PM Nidhi
Nidhi's PM agent for MeetFlow. Use whenever Nidhi asks for a PRD (product requirements, "document this feature
RAG Retriever
PROACTIVELY use this agent for dynamic external knowledge access during response generation. Specializes in do