# git-master

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.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 4 installs · ★ 71048 repo stars
- Author: code-yeongyu
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/code-yeongyu/oh-my-openagent/tree/HEAD/packages/shared-skills/skills/git-master/SKILL.md
- Updated: 2026-11-09
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/code-yeongyu-git-master

## What it 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.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add code-yeongyu/oh-my-openagent --skill git-master -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/git-master/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/git-master/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add code-yeongyu/oh-my-openagent --skill git-master -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/git-master/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add code-yeongyu/oh-my-openagent --skill git-master -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/git-master/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install code-yeongyu/oh-my-openagent packages/shared-skills/skills/git-master
```

2. **Manually: put the files in place**
- File: `.github/skills/git-master/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add code-yeongyu/oh-my-openagent --skill git-master -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/code-yeongyu/oh-my-openagent --path packages/shared-skills/skills/git-master
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/git-master/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add code-yeongyu/oh-my-openagent --skill git-master -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/code-yeongyu/oh-my-openagent/tree/HEAD/packages/shared-skills/skills/git-master/SKILL.md

## When to use it
- 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
- 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

## Similar
- [git-stinger](https://affpapa.org/en/nevibecode/skills/git-stinger.md) — skill · ★ 96 repo stars
- [git-advanced-workflows](https://affpapa.org/en/nevibecode/skills/git-advanced-workflows.md) — skill · 19356 installs
- [git-analysis](https://affpapa.org/en/nevibecode/skills/git-analysis.md) — skill · ★ 219 repo stars
- [git-safety-net](https://affpapa.org/en/nevibecode/skills/git-safety-net.md) — skill · 362 installs
- [git-bisect-helper](https://affpapa.org/en/nevibecode/commands/git-bisect-helper.md) — command · 163 installs
- [git-rebase](https://affpapa.org/en/nevibecode/skills/git-rebase.md) — skill · 401 installs

## Other versions with the same name
- [git-master · josiahsiegel](https://affpapa.org/en/nevibecode/skills/git-master.md) — 822 installs

From the same set: [code-yeongyu/oh-my-openagent](https://affpapa.org/en/nevibecode/by/code-yeongyu/oh-my-openagent.md) — 7 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
