Generates a branch-vs-default comparison report with plain-language explanations and senior dev review. Use when the user asks to summarize, compare, review, or explain branch changes, or wants a PR summary before merging. Read-only: it produces a report to read — it does not push the branch or open/update the PR (for that use gh-pr).
Ships in git. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Generate a structured report comparing the current branch against the default branch. The report serves two audiences: someone with zero technical background (the "simple version") and a senior developer doing a pre-merge review.
This skill uses multiple sub-agents to ensure accuracy. Each agent has a dedicated role defined in the agents/ directory:
| Agent | File | Purpose | Runs |
|---|---|---|---|
| Project Context Scout | agents/scout.md | Explores codebase to understand architecture and conventions | First |
| Simple Explainer | agents/explainer.md | Writes toddler-friendly change summary | Parallel with Analyst |
| Change Analyst | agents/analyst.md | Produces senior developer review with confidence tags | Parallel with Explainer |
| Cross-Checker | agents/checker.md | Verifies every technical claim against actual source code | Last |
By default, write the report in English. If the user asks for the report in another language (e.g., "用中文", "Chinese", "繁體中文"), write the entire report in that language instead — including section headings, metadata labels, bullet points, and the senior developer review. The only things that stay in their original form are git output (commit hashes, branch names, file paths, code snippets) since those are language-neutral.
When the user asks for "Chinese" without specifying, default to Traditional Chinese (繁體中文).
Determine the target language now and pass it to all sub-agents as REPORT_LANGUAGE (either "English" or "Traditional Chinese").
If the user specifies a branch name (e.g., "review branch feature/login", "generate report for develop"), use that as the target branch. Otherwise, default to the current branch:
# Current branch (used when user does not specify one)
git branch --show-current
If the user specified a branch, verify it exists:
git rev-parse --verify {target_branch} 2>/dev/null
If the branch does not exist, tell the user: "Branch '{target_branch}' not found. Check the name and try again." and stop.
# Default branch (try symbolic ref first, then scan remotes)
git symbolic-ref refs/remotes/origin/HEAD 2>/dev/null | sed 's@^refs/remotes/origin/@@'
If the symbolic ref fails, fall back to:
git branch -r | grep -E 'origin/(main|master)' | head -1 | sed 's@.*origin/@@' | tr -d ' '
If neither works, check for local main or master branches. If no default branch can be determined, ask the user which branch to compare against.
git branch --show-current returns empty, the repo is in detached HEAD state. Tell the user: "You are in detached HEAD state. Please check out a branch or specify one." and stop.git merge-base {target_branch} origin/{default_branch}
If the remote-tracking branch does not exist (e.g., origin/main is missing), try the local default branch instead:
git merge-base {target_branch} {default_branch}
Use {target_branch} (not HEAD) in all subsequent git commands so the report works correctly even when inspecting a branch you haven't checked out.
Run all of these in parallel:
# Commit list since fork point
git log --oneline {merge_base}..{target_branch}
# Detailed commit messages (for understanding intent)
git log --format="%h %s%n%b" {merge_base}..{target_branch}
# File change summary
git diff --stat {merge_base}..{target_branch}
# Full diff (for detailed analysis)
git diff {merge_base}..{target_branch}
# Uncommitted changes check (only relevant when target is the current branch)
git status --short
If the commit log is empty (no commits ahead of the default branch), tell the user: "Branch '{target_branch}' has no commits ahead of {default_branch}. Nothing to report." and stop.
Store these results — they will be passed to sub-agents in the following steps.
Read <skill-path>/agents/scout.md for the full agent definition.
Use the Agent tool to spawn the Project Context Scout. This agent explores the codebase to build a project profile BEFORE anyone looks at the diff. The Change Analyst needs this profile to understand the project's conventions and avoid flagging intentional design choices as problems.
Pass no diff data to this agent — it should only explore the baseline codebase.
Store the agent's response as PROJECT_CONTEXT.
Read <skill-path>/agents/explainer.md and <skill-path>/agents/analyst.md for the full agent definitions.
Use the Agent tool to spawn two sub-agents in parallel (in a single message with two Agent tool calls):
Sub-agent A — Simple Explainer: Pass the commit log and diff stat (NOT the full diff). Replace {REPORT_LANGUAGE}, {commit_log}, and {diff_stat} placeholders in the agent definition with the actual data.
Sub-agent B — Change Analyst: Pass the PROJECT_CONTEXT, full diff, and commit log. Replace {REPORT_LANGUAGE}, {PROJECT_CONTEXT}, {commit_log}, and {full_diff} placeholders in the agent definition with the actual data.
Wait for both to complete. Store the Simple Explainer's response as SIMPLE_EXPLANATION and the Change Analyst's response as ANALYST_REVIEW.
Read <skill-path>/agents/checker.md for the full agent definition.
Use the Agent tool to spawn the Cross-Checker. This is the quality gate — it verifies every factual claim the Change Analyst made by reading actual source files.
Replace {REPORT_LANGUAGE}, {ANALYST_REVIEW}, {PROJECT_CONTEXT}, and {full_diff} placeholders in the agent definition with the actual data.
Store the response as VERIFIED_REVIEW. Extract the Concerns, Suggestions, and What Looks Good sections (excluding the Cross-Check Summary) for use in the final report.
Read the appropriate report template:
<skill-path>/assets/template.md<skill-path>/assets/template-zh-TW.mdFill in each section of the template:
git status --short showed changes, add the appropriate warning. Otherwise leave blank.Save the completed report to branch-report.md in the project root directory. Tell the user the file path.
If a branch-report.md already exists, overwrite it — the report reflects the current state of the branch.
git checkout, git add, git stash, git reset, git commit, or git push.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
/git:branch-reportfrom git
npx claudepluginhub chienchuanw/chuan-skills --plugin git9 skills in this plugin
/commit-msgSuggests 3 commit messages based on git diff and project conventions. Use when the user asks for commit message ideas, wants help writing a commit message, or has changes ready to commit.
/gh-archiveCapture the current state of a project by updating documentation at the end of a development session. Invokes the readme skill to refresh README.md and the planning-with-files skill to record project status in a doc/ or docs/ directory. Use after merging a PR, finishing a feature, wrapping up a coding session, or any time the user wants to snapshot where the project stands — even implicit phrases like "archive this", "wrap up the session", "document current status", "update project docs", "snapshot this repo", or "I'm done for today". Also use when the user says "end of session" or asks to prepare documentation before stepping away from a project.
/gh-commentPost formatted comments on GitHub PRs or issues, approve PRs, and merge PRs via gh CLI using purpose-specific templates (feedback, question, status, approval, request-changes). Use when commenting on a PR, leaving feedback, asking a question on an issue, posting a status update, approving a pull request, merging a PR, or any intent to interact with an existing PR or issue — even implicit phrases like "tell them", "approve it", "merge this", "LGTM", or "ship it".
/gh-devCreate a branch linked to a GitHub issue via gh issue develop, then implement the work with regular convention-following commits. Use when starting work on an issue, picking up a ticket, developing a feature branch, or any intent to begin coding against a GitHub issue.
/gh-fixRead unresolved review comments on a GitHub PR, deeply evaluate each suggestion, then either fix it (via gh-dev + simplify) and push the result, or push back via gh-comment with a reasoned reply. Use when the user wants to address PR feedback, respond to reviewer comments, fix code-review suggestions, action a review, or any phrasing like "address the comments on PR #N", "respond to the review", "fix what the reviewer asked for", "go through the PR feedback", or "handle the review comments".
/gh-issueCreate structured GitHub issues via gh CLI using type-specific templates (bug, feat, refactor, doc, perf, security). Use when filing bugs, requesting features, tracking work, opening tickets, or any intent to create a GitHub issue — even implicit phrases like "track this" or "file this".