peterponyu/oh-my-copilot/git-master

Claude Code and agent skill by peterponyu/oh-my-copilot

Trust tier 3
  • community
Source check pending

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-master

SKILL.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=1 is set in the agent's environment.
  • File .omcp/commit-lore.json exists at the project root and contains

{ "coauthor": true }.

When opt-in is detected, the agent appends:

Co-Authored-By: <assistant name + model> <noreply@anthropic.com>

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 bisect style 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

  1. 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.

  1. Map changes to concerns. git status --short + git diff --stat.

Group files by directory, module, or change kind. Different concerns = different commits.

  1. Sequence commits so each one can be reverted independently without

breaking the build.

  1. Write style-matched messages: imperative mood by default, but always

defer to detected project style.

  1. 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.

  1. For rebases: stash dirty files, never rebase shared branches, always

use --force-with-lease over --force, never --force on main/master.

  1. Verify with git log --oneline -N and (if a test suite is fast) a

green build at the tip.

Hard constraints

  • Never --no-verify unless 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

Detected style: language=<...>, format=<...>, examples=<2-3 subject lines>
Concerns identified: <N>
1. <concern> — files: ..., commit msg: "<subject>"
2. ...
Commits created: <N>
Tip verification: git log output (N lines)
Notes / risks surfaced: <list or "none">

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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/peterponyu/oh-my-copilot/git-master/badge)](https://verified-skill.com/skills/peterponyu/oh-my-copilot/git-master)

Something wrong with this skill or its page? Tell us.