peterponyu/oh-my-copilot/git-master
Claude Code and agent skill by peterponyu/oh-my-copilot
- community
Checking that the SKILL.md file is still in the repository.
[OMCP] Atomic commits, safe rebases, and history management with project commit-style detection
Install
npx vskill@latest install peterponyu/oh-my-copilot/git-masterSKILL.md
The same SKILL.md was published earlier as peterponyu/oh-my-copilot/git-master.
[OMCP] Git Master
Use this skill for git work that should land as clean, atomic, style-matched history: splitting a sprawling working tree into focused commits, rebasing a feature branch, archaeology over history, or branch hygiene.
Agent orchestration
This skill delegates to the git-master agent, which detects the project's commit-message style (language, format, scope) before writing any commit.
Co-author lore
By default, commits authored via this skill do not add Co-Authored-By: trailers for the assistant. The git-master agent opts in only when one of the following is true for the active project:
- Env var
OMCP_COMMIT_COAUTHOR=1is set in the agent's environment. - File
.omcp/commit-lore.jsonexists at the project root and contains
{ "coauthor": true }.
When opt-in is detected, the agent appends:
When neither signal is present, no trailer is appended. The agent includes the resolved policy (coauthor: on|off and which signal triggered it) in its commit-summary report.
When to use
- "commit this", "split this into atomic commits"
- "rebase onto main", "tidy up these commits"
- "find the commit that introduced X",
git blame/git bisectstyle work - Branch cleanup, stale branch pruning, worktree management
When not to use
- The user just wants you to push code, not orchestrate history (do it
directly).
- The change is a single small file and the message is obvious (commit
directly, no skill needed).
- The user explicitly asked for
--no-verify, force-push to main, or
destructive operations without context — surface the risk first.
Run
- Detect style first. Read the last 20-30 commit messages:
``bash git log -30 --pretty=format:'%h %s' ` Note language (English/Korean/Chinese/etc.), format (semantic feat(scope):` vs plain vs short), typical body length, and trailer conventions.
- Map changes to concerns.
git status --short+git diff --stat.
Group files by directory, module, or change kind. Different concerns = different commits.
- Sequence commits so each one can be reverted independently without
breaking the build.
- Write style-matched messages: imperative mood by default, but always
defer to detected project style.
- Stage and commit one concern at a time with explicit
git add <files>
— never blanket git add -A unless the working tree is already curated.
- For rebases: stash dirty files, never rebase shared branches, always
use --force-with-lease over --force, never --force on main/master.
- Verify with
git log --oneline -Nand (if a test suite is fast) a
green build at the tip.
Hard constraints
- Never
--no-verifyunless the user explicitly asked for it. - Never amend a pushed commit unless the user explicitly asked.
- Never destructive (
reset --hard,branch -D,clean -f,
checkout .) without confirmation.
- Never force-push to
main/master. - Plan/spec files (
docs/plans/*.md,docs/specs/*.md) are READ-ONLY in
this skill — do not rewrite them as part of history cleanup.
Output format
Goal
- atomic commits that each do one thing;
- messages that match the project, not a generic template;
- safe history operations with explicit risk surfacing.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingpackages/copilot-cli-plugin/skills/git-master/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/peterponyu/oh-my-copilot/git-master)