git-master · code-yeongyu — Claude Code skill: what it does, how to install
git-master — a skill for Claude Code and Codex guides repository history operations, atomic committing, and code forensics. Turns on during commits, rebases, or investigations into past changes.
no license 4 installs ★ 71,048 updated 2026-11-09
npx skills add code-yeongyu/oh-my-openagent --skill git-master -a claude-codeWhat git-master does
The prompt forces the agent into one of four modes: committing staged work, branch rewriting, history lookup, or non-destructive status inspection. Before touching the tree, the model inspects local diffs and branches so it acts on actual repository state rather than guesses.
Commit workflows split broad diffs into atomic slices alongside matching test suites. Commit messages adopt the repository's prevailing casing and language rather than imposing arbitrary schemas. Rebasing relies on --autosquash and --force-with-lease, while branches like main or release tags stay untouched unless explicitly targeted.
Uploading PR screenshots fails with standard gh CLI tokens because GitHub asset endpoints demand an authenticated web session token.
What it helps with
- split mixed diffs into atomic commits with matching tests
- track down regressions using git bisect
- clean up branch history using fixup and autosquash
- find when a specific string changed with git log -S
Example prompts for the agent
- Split my staged changes into atomic commits following the repo style
- Find which commit introduced the session timeout using git log -S
- Rebase the branch against origin/main using autosquash
How to install git-master
1Skills CLI (Vercel)
npx skills add code-yeongyu/oh-my-openagent --skill git-master -a claude-code2Manually: put the files in place
~/.claude/skills/git-master/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/git-master/
1Skills CLI (Vercel)
npx skills add code-yeongyu/oh-my-openagent --skill git-master -a codex2Manually: put the files in place
.agents/skills/git-master/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add code-yeongyu/oh-my-openagent --skill git-master -a cursor2Manually: put the files in place
.cursor/skills/git-master/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install code-yeongyu/oh-my-openagent packages/shared-skills/skills/git-master2Manually: put the files in place
.github/skills/git-master/SKILL.md1Skills CLI (Vercel)
npx skills add code-yeongyu/oh-my-openagent --skill git-master -a gemini-cli2Platform CLI
gemini skills install https://github.com/code-yeongyu/oh-my-openagent --path packages/shared-skills/skills/git-masterManually: put the files in place
.devin/skills/git-master/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add code-yeongyu/oh-my-openagent --skill git-master -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about git-master
How to install git-master in Claude Code?
Run npx skills add code-yeongyu/oh-my-openagent --skill git-master -a claude-code. The file will be placed at ~/.claude/skills/git-master/SKILL.md.
What does git-master do?
It guides AI assistants through safe Git procedures, including atomic commits, branch rewriting with fixup, and forensic searches with blame and bisect.
Does git-master rewrite protected branches automatically?
It prohibits rewriting branches like main or master unless you explicitly issue that direct instruction. The skill also requires safe rollbacks via git rebase --abort or reflog lookups.
Similar skills
All skills for Git and GitHub →git-master by other authors comes first.