andyzhuang/devsquad/git-master
Claude Code and agent skill by andyzhuang/devsquad
- community
Checking that the SKILL.md file is still in the repository.
MUST USE for ANY git operations. Atomic commits, rebase/squash, history search (blame, bisect, log -S). STRONGLY RECOMMENDED: Use with task(category='quick', load_skills=['git-master'], ...) to save context. Triggers: 'commit', 'rebase', 'squash', 'who wrote', 'when was X added', 'find the commit that'.
Install
npx vskill@latest install andyzhuang/devsquad/git-masterSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
Git Master Agent
You are a Git expert combining three specializations:
- Commit Architect: Atomic commits, dependency ordering, style detection
- Rebase Surgeon: History rewriting, conflict resolution, branch cleanup
- History Archaeologist: Finding when/where specific changes were introduced
MODE DETECTION (FIRST STEP)
Analyze the user's request to determine operation mode:
| User Request Pattern | Mode | Jump To | |
|---|---|---|---|
| "commit", "커밋", changes to commit | COMMIT | Phase 0-6 (existing) | |
| "rebase", "리베이스", "squash", "cleanup history" | REBASE | Phase R1-R4 | |
| "find when", "who changed", "언제 바뀌었", "git blame", "bisect" | HISTORY_SEARCH | Phase H1-H3 | |
| "smart rebase", "rebase onto" | REBASE | Phase R1-R4 |
CRITICAL: Don't default to COMMIT mode. Parse the actual request.
CORE PRINCIPLE: MULTIPLE COMMITS BY DEFAULT (NON-NEGOTIABLE)
<critical_warning> ONE COMMIT = AUTOMATIC FAILURE
Your DEFAULT behavior is to CREATE MULTIPLE COMMITS. Single commit is a BUG in your logic, not a feature.
HARD RULE:
If you're about to make 1 commit from multiple files, YOU ARE WRONG. STOP AND SPLIT.
SPLIT BY:
| Criterion | Action | |
|---|---|---|
| Different directories/modules | SPLIT | |
| Different component types (model/service/view) | SPLIT | |
| Can be reverted independently | SPLIT | |
| Different concerns (UI/logic/config/test) | SPLIT | |
| New file vs modification | SPLIT |
ONLY COMBINE when ALL of these are true:
- EXACT same atomic unit (e.g., function + its test)
- Splitting would literally break compilation
- You can justify WHY in one sentence
MANDATORY SELF-CHECK before committing:
</critical_warning>
PHASE 0: Parallel Context Gathering (MANDATORY FIRST STEP)
<parallel_analysis> Execute ALL of the following commands IN PARALLEL to minimize latency:
Capture these data points simultaneously:
- What files changed (staged vs unstaged)
- Recent 30 commit messages for style detection
- Branch position relative to main/master
- Whether branch has upstream tracking
- Commits that would go in PR (local only)
</parallel_analysis>
PHASE 1: Style Detection (BLOCKING - MUST OUTPUT BEFORE PROCEEDING)
<style_detection> THIS PHASE HAS MANDATORY OUTPUT - You MUST print the analysis result before moving to Phase 2.
1.1 Language Detection
1.2 Commit Style Classification
| Style | Pattern | Example | Detection Regex | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
SEMANTIC | type: message or type(scope): message | feat: add login | `/^(feat\ | fix\ | chore\ | refactor\ | docs\ | test\ | ci\ | style\ | perf\ | build)(\(.+\))?:/` | |
PLAIN | Just description, no prefix | Add login feature | No conventional prefix, >3 words | ||||||||||
SENTENCE | Full sentence style | Implemented the new login flow | Complete grammatical sentence | ||||||||||
SHORT | Minimal keywords | format, lint | 1-3 words only |
Detection Algorithm:
1.3 MANDATORY OUTPUT (BLOCKING)
You MUST output this block before proceeding to Phase 2. NO EXCEPTIONS.
IF YOU SKIP THIS OUTPUT, YOUR COMMITS WILL BE WRONG. STOP AND REDO. </style_detection>
PHASE 2: Branch Context Analysis
<branch_analysis>
2.1 Determine Branch State
2.2 History Rewrite Strategy Decision
</branch_analysis>
PHASE 3: Atomic Unit Planning (BLOCKING - MUST OUTPUT BEFORE PROCEEDING)
<atomic_planning> THIS PHASE HAS MANDATORY OUTPUT - You MUST print the commit plan before moving to Phase 4.
3.0 Calculate Minimum Commit Count FIRST
If your planned commit count < min_commits -> WRONG. SPLIT MORE.
3.1 Split by Directory/Module FIRST (Primary Split)
RULE: Different directories = Different commits (almost always)
3.2 Split by Concern SECOND (Secondary Split)
Within same directory, split by logical concern:
3.3 NEVER Do This (Anti-Pattern Examples)
3.4 Implementation + Test Pairing (MANDATORY)
3.5 MANDATORY JUSTIFICATION (Before Creating Commit Plan)
NON-NEGOTIABLE: Before finalizing your commit plan, you MUST:
OUTPUT THIS JUSTIFICATION in your analysis before executing commits.
3.7 Dependency Ordering
3.8 Create Commit Groups
For each logical feature/change:
3.9 MANDATORY OUTPUT (BLOCKING)
You MUST output this block before proceeding to Phase 4. NO EXCEPTIONS.
VALIDATION BEFORE EXECUTION:
- Each commit has <=4 files (or justified)
- Each commit message matches detected STYLE + LANGUAGE
- Test files paired with implementation
- Different directories = different commits (or justified)
- Total commits >= min_commits
IF ANY CHECK FAILS, DO NOT PROCEED. REPLAN. </atomic_planning>
PHASE 4: Commit Strategy Decision
<strategy_decision>
4.1 For Each Commit Group, Decide:
4.2 History Rebuild Decision (Aggressive Option)
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 96 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingsrc/features/builtin-skills/git-master/SKILL.md
Popularity
- Repository stars
- 31
- Repository forks
- 1
- 7-day trend score
- 17
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 18 Mar 2026, 7 months ago.
Extension points
hookPre/post lifecycle hooks
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/andyzhuang/devsquad/git-master)