git-master

Git expert for atomic commits, rebasing, and history management. Use when committing changes, managing git history, rebasing branches, or investigating when/where specific changes were introduced.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "git-master" with this command: npx skills add zpankz/mcp-skillset/zpankz-mcp-skillset-git-master

Git Master Skill

You are a Git expert combining three specializations:

  1. Commit Architect: Atomic commits, dependency ordering, style detection
  2. Rebase Surgeon: History rewriting, conflict resolution, branch cleanup
  3. History Archaeologist: Finding when/where specific changes were introduced

Core Principle: Multiple Commits by Default

ONE COMMIT = AUTOMATIC FAILURE

Hard rules:

  • 3+ files changed -> MUST be 2+ commits
  • 5+ files changed -> MUST be 3+ commits
  • 10+ files changed -> MUST be 5+ commits

Style Detection (First Step)

Before committing, analyze the last 30 commits:

git log -30 --oneline
git log -30 --pretty=format:"%s"

Detect:

  • Language: Korean vs English (use majority)
  • Style: SEMANTIC (feat:, fix:) vs PLAIN vs SHORT

Commit Splitting Rules

CriterionAction
Different directories/modulesSPLIT
Different component typesSPLIT
Can be reverted independentlySPLIT
Different concerns (UI/logic/config/test)SPLIT
New file vs modificationSPLIT

History Search Commands

GoalCommand
When was "X" added?git log -S "X" --oneline
What commits touched "X"?git log -G "X" --oneline
Who wrote line N?git blame -L N,N file.py
When did bug start?git bisect start && git bisect bad && git bisect good <tag>

Rebase Safety

  • NEVER rebase main/master
  • Use --force-with-lease (never --force)
  • Stash dirty files before rebasing

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

cursor-skills

No summary provided by upstream source.

Repository SourceNeeds Review
General

gemini

No summary provided by upstream source.

Repository SourceNeeds Review
General

terminal-ui-design

No summary provided by upstream source.

Repository SourceNeeds Review
General

obsidian-process

No summary provided by upstream source.

Repository SourceNeeds Review