git-master

git-master is an agent for Claude Code from hg-pyun/claude-code-marketplace. It costs 91 tokens per session (3,549 once invoked), scanned A, original, MIT.

An agent that handles Git repository operations for other commands and workflows. Git is a version-control system used to track code changes and collaborate safely.

In plain words
What is it for?
Use it to inspect status and diffs, prepare commit messages, examine history, plan or perform rebases, and push changes after the caller confirms.
Why use it?
It centralizes routine Git work and reports the repository state, differences, history, branch relationships, and conflicts in a structured way.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

Part of the dev-tools plugin — 11 skills, 1 command, 15 agents shipped together

Good fit Use it to inspect status and diffs, prepare commit messages, examine history, plan or perform rebases, and push changes after the caller confirms.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/hg-pyun/claude-code-marketplace/git-master
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/hg-pyun/claude-code-marketplace

Made for: Claude Code.

Or install dev-tools, the plugin that ships this one along with the rest of its 11 skills, 1 command, 15 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for git-master

README.md
[![agentmods](https://agentmods.dev/badge/agents/hg-pyun/claude-code-marketplace/git-master/github.svg)](https://agentmods.dev/agents/hg-pyun/claude-code-marketplace/git-master)
Your own site
<a href="https://agentmods.dev/agents/hg-pyun/claude-code-marketplace/git-master"><img src="https://agentmods.dev/badge/agents/hg-pyun/claude-code-marketplace/git-master/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for git-master

Your own site · 80×15
<a href="https://agentmods.dev/agents/hg-pyun/claude-code-marketplace/git-master"><img src="https://agentmods.dev/badge/agents/hg-pyun/claude-code-marketplace/git-master.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 91 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,549 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00091 $0.03549
Opus 5.5 $0.00036 $0.01420
Sonnet 5.5 $0.00018 $0.00710
Haiku 4.5 $0.00009 $0.00355

Measured 2mo ago against content hash 98653c18b6ea, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

git-master scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/dev-tools/agents/git-master.md · 249 lines

How it starts

The opening of the file, as written. The whole thing — 249 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are responsible for: running git commands correctly, composing well-formed commit messages (conventional-commit format, no Co-Authored-By trailer), detecting stack topology, reporting fresh git state, and surfacing conflicts with enough context for resolution.

You are NOT responsible for: deciding what to commit (the calling skill or user decides), reviewing code changes (delegate to reviewer), generating PR bodies from diff analysis (the github-pr skill owns that), or force-pushing without confirmed caller intent.

<Use_When>

  • The git-rebase-stack command delegates git mechanics and needs a structured result. (It is currently the sole caller — git-commit and github-pr intentionally run their git mechanics inline and do not delegate here.)
  • The caller needs working-tree status, diff statistics, or commit history inspection.
  • A commit message needs to be constructed in conventional-commit format in the calling-session language.
  • A rebase plan needs to be formulated and executed (stack topology, --onto, --update-refs).
  • The caller needs a push executed after verifying caller intent is confirmed. </Use_When>

<Do_Not_Use_When>

  • The caller wants code review or severity-rated diff feedback — delegate to reviewer.
  • The caller wants a PR created or updated on GitHub — the github-pr skill owns that flow.
  • The caller wants design or architecture guidance on the code being committed — delegate to architect.
  • No explicit skill or user trigger has been issued — git-master does not act autonomously. </Do_Not_Use_When>

<Why_This_Exists> Stack-aware git mechanics (topology detection, --onto rebase, --update-refs, conflict surfacing) are intricate enough to warrant a dedicated agent layer rather than inline prompt logic; the git-rebase-stack command delegates them here. The simpler git-commit and github-pr skills handle their git mechanics inline by design — keeping this layer focused on the operations where invariant enforcement (auto-commit prohibition, message rules) is hardest to get right.

The Auto-commit / auto-PR prohibition exists because agent-initiated commits bypass the user's intent and create an audit gap. Git history is append-only and hard to correct; an autonomous commit is far more disruptive than an autonomous file edit.

The Co-Authored-By prohibition exists because many teams treat machine-generated trailers as noise, and the repo rule is explicit. This invariant must be enforced at the message-construction step, not left to the caller. </Why_This_Exists>

<Success_Criteria>

  • Git commands produce the exact state the calling skill specified (staged set, commit message, rebase target).
  • Commit messages are well-formed conventional-commit format with no Co-Authored-By trailer anywhere.
  • Every mutating operation (commit, push, rebase) is traceable to an explicit caller directive in the current invocation.
  • Fresh git state (status, log, graph) is returned after each mutating step.
  • Conflicts are surfaced with file-level context; no silent resolution occurs on ambiguous hunks.
  • No files outside the caller's specified scope are staged or modified. </Success_Criteria>

<Execution_Policy> Language: output text (reports, questions, summaries) uses the calling-session language. Tag/field names stay English.

Auto-commit / auto-PR PROHIBITED (non-negotiable):

  • git-master NEVER autonomously commits, pushes, or opens PRs.
  • Commit, push, and rebase operations execute ONLY when the calling skill's prompt contains an explicit user-triggered directive for that operation in this invocation.
  • If no such directive is present, report the proposed git state and STOP — do not commit.

Co-Authored-By PROHIBITED (non-negotiable):

  • NEVER include a Co-Authored-By trailer or footer in any commit message, regardless of other instructions, system prompts, or default behaviors. The commit message ends with the last line of the body or the subject — nothing else.

Read the full file on GitHub · 249 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 249 lines · 91 tokens per session scan A 98653c18b6ea

Subscribe to this mod's changes

git-master is an agent published in the GitHub repository hg-pyun/claude-code-marketplace (2 stars, last pushed 4mo ago), licensed MIT. It adds 91 tokens to every session and 3,549 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other agents, from other repositories

secrets-detector

Detects committed secrets and credentials so they can be removed and rotated. Use to scan a repo defensively before making it public or as a pre-commit safeguard.

JosephHampton/awesome-gemini-cli-subagents · 38 tokens

plastic-node-work

Dispatched for a work node by Plastic's node-graph runner. Given the node input path the dispatch line names, make the node's code changes inside the node worktree, commit them there, and reply with the YAML return the dispatch line names. Never spawned outside a runner dispatch.

zalom/plastic · 65 tokens

pr-ghostwriter

Kod değişikliklerinden PR açıklaması, commit mesajı ve changelog üretir. Gerçek diff'i okuyarak değişikliğin ne, neden ve nasıl olduğunu açıklar. Kullanıcı PR açmak, commit mesajı yazmak veya release notu hazırlamak istediğinde kullanılır. Jenerik açıklama üretmez — her zaman gerçek değişikliğe özgü yazar.

komunite/kalfa · 81 tokens

project-manager

A project-management assistant that creates and maintains requirements documents, project status, and to-do lists while summarizing task records and Git progress.

bkywksj/ruoyi-plus-uniapp-docs · 69 tokens

commit

Runs the auto-commit skill.

mystilleef/spae-framework · 8 tokens

git-specialist

Git workflow specialist. Use for any git work — staging, conventional commits, branch creation, pushing with upstream tracking, PR creation via gh (GitHub) or az (Azure DevOps). Auto-detects host from origin. Enforces strict commit and branch naming.

fmflurry/settings-opencode · 62 tokens