| name | branch-summarizer |
| description | Summarize the current branch compared to a target branch (e.g., origin/develop or origin/main). Use for concise overviews of changes, commit history, and file modifications. |
| license | MIT |
Branch Summarizer
Overview
Use this skill to understand the differences between the current branch and a target branch (default: origin/develop or origin/main).
The output MUST be saved as a markdown artifact in the .agents/artifacts/ directory.
Guidelines
- Format: Use markdown in
.agents/artifacts/branch-summary.md
- Highlight crucial information using bold
- Use inline code for file names, symbols, and commands
- Compare only committed changes
- Ignore staged and unstaged changes
- Tense: Use imperative, present tense ("add", not "added")
- Avoid noise
- Do not list trivial changes (formatting, minor renames, etc.) unless part of a larger change
- Do not repeat commit messages verbatim
- Infer intent when needed
- If commit messages are unclear, use file changes and structure to deduce purpose
- Reference:
- See
references/branch-summary-format.md for extended specification (if applicable)
Tools
- Summarize Script: Run
node skills/branch-summarizer/scripts/summarize_branch.cjs [target_branch] to get a quick summary.
- Example:
node skills/branch-summarizer/scripts/summarize_branch.cjs origin/main
Workflow
- Identify Target Branch: Default to
origin/develop or origin/main unless the user specifies a different branch.
- Run Summarize Script: Use the provided script to gather commits and file changes.
- Analyze and Summarize:
- Categorize changes by feature, fix, or chore based on the commit messages and files.
- Provide a concise summary of the key changes and their impact.
- Highlight user-facing, dev-facing and risk impacts.
- Save Output: Write the final summary to
.agents/artifacts/branch-summary.md.
- Optional: Detailed Diff: If requested, run
git diff <target>..HEAD for a deeper look at the code changes.
Best Practices
- Artifacts over CLI: Never output large summaries directly to the CLI. Always use
.agents/artifacts/branch-summary.md.
- Conciseness: Focus on the most significant changes; don't list every minor adjustment unless necessary.
- Contextual: Explain the "why" behind the changes if it's evident from the commits or project context.
- Reference Targets: Use remote tracking branches (e.g.,
origin/develop) to ensure the comparison is up-to-date with the shared codebase.