Agent skill

Git Master

by code-yeongyu in code-yeongyu/oh-my-openagent

Guides an agent through commits, rebases and history questions in Git, working from the repository's actual state and changing nothing unless you asked.

Custom licenceAuto-check passedDevelopment

Install Git Master

skills CLI
$ npx skills add code-yeongyu/oh-my-openagent --skill git-master -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install code-yeongyu/oh-my-openagent git-master --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/code-yeongyu/oh-my-openagent.git skills-src && mkdir -p .claude/skills && cp -r skills-src/packages/shared-skills/skills/git-master .claude/skills/git-master && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
git-master
GitHub stars
70k
Token cost
~1.4k tokens
SKILL.md length
733 words
Files
2
Skills in repo
44
Repo updated
First seen
Licence
Custom licence

At a glance

Guides an agent through commits, rebases and history questions in Git, working from the repository's actual state and changing nothing unless you asked.

  • Works in 7 steps: Detect message style from recent… → Inspect the full diff, not only… → Build atomic groups by behavior, module,… → …
  • Splitting a messy working tree into several focused commits
  • SKILL.md covers Mode Gate, Ground Truth, PR Body Evidence Attachments and Commit Mode, plus 3 more sections
  • Calls git

What it does

Every Git request is sorted into one of four modes before the agent acts: committing local changes, rewriting branch history with rebase, squash or fixup, answering a history question such as who changed a line and when, or only reporting repository status. It starts by reading the working tree and diffs, and treats a failed lookup, such as a missing upstream or main branch, as a gap to report rather than as proof of anything.

In commit mode it copies the message style already used in recent history, groups changes into small commits by behavior and module, keeps each implementation with its tests, and stages by path or hunk. It checks the staged diff before each commit and confirms the result with a one-line log afterward. It will not commit, rebase, push, force-push, reset or delete unless you asked for that operation, and screenshots for a pull request body must go through GitHub's attachment upload rather than files committed to the repo.

When your agent uses it

  • Splitting a messy working tree into several focused commits
  • Squashing or reordering commits on a branch before review
  • Finding which commit changed a given line or file, and why
  • Checking branch and diff state without altering anything

Example prompts

  • “Commit my current changes as separate commits, one per concern, matching our existing message style.”
  • “Squash the last five commits on this branch into two and keep the tests with their code.”
  • “Find the commit that introduced the retry logic in src/http/client.ts.”
  • “Show me what is staged and unstaged right now, without changing anything.”

Requirements

  • A Git repository

Workflow steps

7 steps, taken from the first numbered list in SKILL.md.

  1. Detect message style from recent history. Use the dominant local pattern, language, and casing. Do not default to Conventional Commits…
  2. Inspect the full diff, not only filenames. Separate unrelated user edits from the requested commit.
  3. Build atomic groups by behavior, module, and revertability. Keep implementation and its direct tests together.
  4. Prefer multiple commits for unrelated concerns. A single commit is acceptable only when the changed files form one indivisible behavior or…
  5. Stage by path or hunk so each commit contains only its atomic group.
  6. Before each commit, verify git diff --staged --stat and enough staged diff to prove the group is right.
  7. Commit with the detected style. After each commit, verify git log -1 --oneline.

What it can do on your machine

Read from SKILL.md and the folder at commit cbd7dd2. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • git

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use git, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Git Master loads about 1.4k tokens when it runs. Until then it costs about 51 tokens; SKILL.md has 733 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~51
When it runs · the whole SKILL.md, loaded when a task matches
~1.4k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 733 words (~1,360 tokens).

“Use this skill when the user asks you to operate on Git history or answer a Git-history question. Be exact, conservative, and evidence-led. Read the repository state before you infer anything.”

— opening of SKILL.md by code-yeongyu, Custom licence
name
git-master

Read the full SKILL.md on GitHub

Files

SKILL.md and 1 other file in packages/shared-skills/skills/git-master of code-yeongyu/oh-my-openagent.

  • SKILL.md
  • agents/openai.yaml

Open the folder on GitHubat commit cbd7dd2

Used in 1 other repository

We found 1 copy of this SKILL.md (exact, near-identical or edited) in other folders. This page covers the copy in code-yeongyu/oh-my-openagent, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Git Master next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Git Master compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Git Master this skillcode-yeongyu/oh-my-openagent70k—~1.4kAutomated safety check: PassCustom licence
React Router Pull Request Creatorremix-run/react-router57k—~2.5kAutomated safety check: PassMIT
Draft Pull Request Creatorwordpress-mobile/WordPress-Android3.2k—~881Automated safety check: NotesGPL-2.0
Publish Pull Request for taskctltaskctl/taskctl434—~979Automated safety check: PassGPL-3.0
Git GitHub Opsc5inco/compose-pokedexer143—~1.3kAutomated safety check: PassMIT
Git Smart Pushexception-coder/npe_get_jobs176—~2.4kAutomated safety check: NotesCustom licence

Similar skills

  • React Router Pull Request Creator

    remix-run/react-router

    Packages finished React Router work into a draft pull request: branch, commit, push, a written PR body and the right GitHub labels.

    57k GitHub stars~2.5k tokensUpdated today
    DevelopmentAuto-check passed
  • Draft Pull Request Creator

    wordpress-mobile/WordPress-Android

    Commits and pushes current changes, writes a pull request title and body from the branch history and template, and opens a draft PR on GitHub after you approve it.

    3.2k GitHub stars~881 tokensUpdated today
    DevelopmentAuto-check: notes
  • Publishes the current branch and opens or updates a GitHub pull request for the taskctl repo, after a pre-publish gate and with a description template matched to the change.

    434 GitHub stars~979 tokensUpdated 2 mo ago
    DevelopmentAuto-check passed
  • Git GitHub Ops

    c5inco/compose-pokedexer

    Handles Pokedexer Git and GitHub workflows: inspect changes, prepare commit messages, manage branches and pushes, and create or update issues and pull requests with safe file-based inputs.

    143 GitHub stars~1.3k tokensUpdated 4 days ago
    DevelopmentAuto-check passed
  • Git Smart Push

    exception-coder/npe_get_jobs

    Analyze local code changes, automatically generate meaningful commit messages based on the changes, and push to remote repository (GitHub, GitLab, Gitee, Alibaba Cloud DevOps, etc.).

    176 GitHub stars~2.4k tokensUpdated 14 days ago
    DevelopmentAuto-check: notes
  • Pull Request Creation

    lobehub/lobehub

    Creates a pull request for the current branch against canary, or splits a cross-layer branch into ordered stacked PRs so backend changes merge before their callers.

    83k GitHub stars~3.2k tokensUpdated today
    DevelopmentAuto-check passed

More from code-yeongyu/oh-my-openagent

All 44 skills in this repo
  • ast-grep Structural Search

    code-yeongyu/oh-my-openagent

    Searches and rewrites code by syntax-tree shape across 25 languages with ast-grep, for codemods, structural queries and YAML lint rules, using a Python wrapper script.

    70k GitHub stars~3.3k tokensUpdated today
    Auto-check passed
  • Browser Control with Omowright

    code-yeongyu/oh-my-openagent

    Drives a real browser through the omowright library, either the user's own signed-in browser or a separate browser the code launches, for forms, QA, screenshots and scraping.

    70k GitHub stars~2.2k tokensUpdated today
    Auto-check passed
  • Codex Plugin QA

    code-yeongyu/oh-my-openagent

    Tests the omo Codex plugin in an isolated CODEX_HOME with a local mock model, proving hooks fired through app-server notifications without touching ~/.codex.

    70k GitHub stars~1.9k tokensUpdated today
    Auto-check passed
  • Coding Agent Session Finder

    code-yeongyu/oh-my-openagent

    Finds, reads and reconstructs past coding-agent sessions across Codex, Claude, OpenCode, Senpi and many other local agent logs.

    70k GitHub stars~2.8k tokensUpdated today
    Auto-check passed
  • LSP Setup

    code-yeongyu/oh-my-openagent

    Detects which languages a project uses, installs the matching language server, writes its config and checks it with a real call so diagnostics and go-to-definition work.

    70k GitHub stars~1.4k tokensUpdated today
    Auto-check: notes
  • OpenCode QA Toolkit

    code-yeongyu/oh-my-openagent

    Tests the opencode coding agent itself: its CLI, server, plugin hooks and events, the terminal UI under tmux, and its SQLite session database, using tested helper scripts.

    70k GitHub stars~2.9k tokensUpdated today
    Auto-check passed

Works with

Categories

Questions about Git Master

What does Git Master do?

Guides an agent through commits, rebases and history questions in Git, working from the repository's actual state and changing nothing unless you asked. Every Git request is sorted into one of four modes before the agent acts: committing local changes, rewriting branch history with rebase, squash or fixup, answering a history question such as who changed a line and when, or only reporting repository status. It starts by reading the working tree and diffs, and treats a failed lookup, such as a missing upstream or main branch, as a gap to report rather than as proof of anything.

When should I use Git Master?

Git Master fits situations like: splitting a messy working tree into several focused commits; squashing or reordering commits on a branch before review; finding which commit changed a given line or file, and why; checking branch and diff state without altering anything.

How do I install Git Master in Claude Code?

Run `npx skills add code-yeongyu/oh-my-openagent --skill git-master -a claude-code`. Or copy the skill folder (packages/shared-skills/skills/git-master in code-yeongyu/oh-my-openagent) into .claude/skills/git-master in your project. Claude Code loads it when a task matches its description.

How do I install Git Master in Codex?

Run `npx skills add code-yeongyu/oh-my-openagent --skill git-master -a codex`. Or copy the skill folder (packages/shared-skills/skills/git-master in code-yeongyu/oh-my-openagent) into .agents/skills/git-master in your project. Codex loads it when a task matches its description.

Can I use Git Master in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add code-yeongyu/oh-my-openagent --skill git-master -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/git-master, .gemini/skills/git-master, .github/skills/git-master and .opencode/skills/git-master in your project.

What does Git Master need to run?

Going by SKILL.md and its folder, Git Master needs the command-line tools its instructions call (git). Our summary lists: A Git repository.

Does Git Master access the network?

SKILL.md contains no URLs. Its commands use git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Git Master safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Git Master use?

Git Master has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does Git Master use?

About 1.4k tokens (SKILL.md is roughly 5.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Git Master?

Skills that share tags, products or a category with Git Master: React Router Pull Request Creator (remix-run/react-router, 57k stars), Draft Pull Request Creator (wordpress-mobile/WordPress-Android, 3.2k stars), Publish Pull Request for taskctl (taskctl/taskctl, 434 stars) and Git GitHub Ops (c5inco/compose-pokedexer, 143 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Git Master?

code-yeongyu (a GitHub user) maintains it in code-yeongyu/oh-my-openagent, which has 69,850 GitHub stars. The repository holds 44 skills in this directory. The repository was last updated on October 7, 2026.

Source: code-yeongyu/oh-my-openagent on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.