Oh-my-droid git-master
Git expert for atomic commits, rebasing, and history management with style detection
install
source · Clone the upstream repo
git clone https://github.com/MeroZemory/oh-my-droid
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/MeroZemory/oh-my-droid "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/git-master" ~/.claude/skills/merozemory-oh-my-droid-git-master && rm -rf "$T"
manifest:
skills/git-master/SKILL.mdsource content
Git Master Skill
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
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
| Criterion | Action |
|---|---|
| Different directories/modules | SPLIT |
| Different component types | SPLIT |
| Can be reverted independently | SPLIT |
| Different concerns (UI/logic/config/test) | SPLIT |
| New file vs modification | SPLIT |
History Search Commands
| Goal | Command |
|---|---|
| When was "X" added? | |
| What commits touched "X"? | |
| Who wrote line N? | |
| When did bug start? | |
Rebase Safety
- NEVER rebase main/master
- Use
(never--force-with-lease
)--force - Stash dirty files before rebasing