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 ★
- OSS PR — Commit + PR workflow for open source contributions: auto-creates a user-prefixed branch when on main/master, t 19.7k ★
- Merge Command — Finalize worktree work: update docs, commit, merge to main, clean up 1.3k ★
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
MiniCode Roadmap
MiniCode already has a usable lightweight terminal coding workflow, but there is still a visible gap between t
PR Desc
Reads git diff between the current branch and main (or a specified base branch), analyzes changed files, and g
Merge Prep
Get a docs change ready to merge: whole-set generation, linting, link and drift checks, in one deliberate pass
Orchestrate Feature
Multi-agent feature development orchestration with automated MULTI_AGENT_PLAN.md generation, parallel task exe
Related Agents
Compare Branch
Compare current branch vs main/staging — changes, risk assessment, merge readiness.
RAG Retriever
PROACTIVELY use this agent for dynamic external knowledge access during response generation. Specializes in do
Docs Dependency Manager
Use this agent when you need to analyze, track, or manage dependencies and connections between markdown and MD