branch-comparison
> [IMPORTANT] Use TaskCreate to break ALL work into small tasks BEFORE starting — including tasks for each file read. This prevents context loss from long files. For simple tasks, AI MUST ask user whether to skip.'
npx skills add majiayu000/claude-skill-registry --skill branch-comparison-duc01226-easyplatform --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
--- name: branch-comparison version: 1.0.1 description: "[Git] Use when the user asks to compare branches, analyze git diffs, review changes between branches, update specifications based on code changes, or analyze what changed. Triggers on keywords like "compare branches", "git diff", "what changed", "branch comparison", "code changes", "spec update"." allowed-tools: Read, Write, Edit, Bash, Grep, Glob, Task, TaskCreate --- > **[IMPORTANT]** Use `TaskCreate` to break ALL work into small tasks BEFORE starting — including tasks for each file read. This prevents context loss from long files. For simple tasks, AI MUST ask user whether to skip. ## Quick Summary **Goal:** Analyze all file changes between git branches, perform impact analysis, and update specification documents. **Workflow:** 1. **Discovery** — Run git diff/log, classify changes (Frontend/Backend, Feature/Bugfix) 2. **Knowledge Graph** — Document each changed file with dependencies, impact level, service context 3. **Analysis** — Code review (strengths, weaknesses, security), refactoring recommendations 4. **Approval Gate** — Present findings for explicit approval before updating specs 5. **Spec Update** — Update require
- Quick Summary
- PHASE 1: EXTERNAL MEMORY-DRIVEN BRANCH ANALYSIS
- PHASE 1A: INITIALIZATION AND DISCOVERY
- GIT BRANCH ANALYSIS DISCOVERY
- PHASE 1B: KNOWLEDGE GRAPH CONSTRUCTION
- PHASE 1C: OVERALL ANALYSIS
- PHASE 2: COMPREHENSIVE ANALYSIS AND PLANNING
- 1. Code Review Analysis
- 2. Refactoring Recommendations
- 3. Specification Update Plan
- PHASE 3: APPROVAL GATE
- PHASE 4: SPECIFICATION UPDATE EXECUTION
- SUCCESS VALIDATION
- Branch Comparison Guidelines
git diff --name-status [source-branch]..[target-branch] git diff --stat [source-branch]..[target-branch] git log --oneline [source-branch]..[target-branch]
What does the branch-comparison skill do?
> [IMPORTANT] Use TaskCreate to break ALL work into small tasks BEFORE starting — including tasks for each file read. This prevents context loss from long files. For simple tasks, AI MUST ask user whether to skip.'
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill branch-comparison-duc01226-easyplatform --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
