plumb-git

plumb-git is a skill for Claude Code, Codex from plumbkit/plumb. It costs 56 tokens per session (2,660 once invoked), scanned A, original, MIT.

A guide for using plumb’s guarded Git tool. Git is a version-control system, and the guide explains which commands are allowed and which need extra permission or confirmation.

In plain words
What is it for?
Use it for status, history, diffs, commits, branch changes, merges, resets, cleanup, rebases, and network operations such as push or pull.
Why use it?
It helps prevent unsafe Git operations and explains why a command was refused, while keeping repository access under plumb’s rules.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it for status, history, diffs, commits, branch changes, merges, resets, cleanup, rebases, and network operations such as push or pull.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/plumbkit/plumb/plumb-git
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.

Any agent
npx skills add plumbkit/plumb --skill plumb-git
Clone the repo
git clone --depth 1 https://github.com/plumbkit/plumb

Made for: Claude Code, Codex.

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 plumb-git

README.md
[![agentmods](https://agentmods.dev/badge/skills/plumbkit/plumb/plumb-git/github.svg)](https://agentmods.dev/skills/plumbkit/plumb/plumb-git)
Your own site
<a href="https://agentmods.dev/skills/plumbkit/plumb/plumb-git"><img src="https://agentmods.dev/badge/skills/plumbkit/plumb/plumb-git/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 plumb-git

Your own site · 80×15
<a href="https://agentmods.dev/skills/plumbkit/plumb/plumb-git"><img src="https://agentmods.dev/badge/skills/plumbkit/plumb/plumb-git.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 56 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,660 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.00056 $0.02660
Opus 5.5 $0.00022 $0.01064
Sonnet 5.5 $0.00011 $0.00532
Haiku 4.5 $0.00006 $0.00266

Measured 7d ago against content hash 65a7e9630935, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

plumb-git 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 7d 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.

internal/cli/skills/plumb-git/SKILL.md · 88 lines

How it starts

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

Plumb's git tool is a policy-gated wrapper, not a shell. The subcommand leads the argv, nothing is interpolated by a shell, and eight global flags that could re-target the repository or inject config are refused wherever they appear in args: -c, -C, --exec-path, --git-dir, --work-tree, --namespace, --upload-pack, --receive-pack. The one exception is switch, where -c / -C mean create-branch rather than anything global: they are rewritten to --create / --force-create before the denylist runs, and the response says so. Prefer this tool over shelling out — the shell path bypasses the policy and plumb's per-repository git lock.

Under a lean tool profile file_status and minimal_diff_review are not advertised; set [tools] profile = "full" in .plumb/config.toml to see them.

The four tiers

Tier Subcommands Gate
read status, log, diff, show, blame, shortlog, check-ignore, merge-tree, check-attr, cherry, ls-files, grep always allowed
write add, commit, mv [git] allow_writes
destructive reset, clean, rebase, revert, cherry-pick [git] allow_destructive and a confirmation
network push, fetch, pull [git] allow_push and a confirmation

rm is refused at every tier: delete the file with delete_file, then stage the deletion with add.

Because the read tier is always on, a read verb's options that would do anything but read this repository are refused. --output (on diff, log, show, shortlog, blame and stash show) writes a file. grep -O runs a pager. --no-index, blame --contents, blame -S / --ignore-revs-file, grep -f, ls-files -X and -O<orderfile> read files outside the repository. So does any argument that names an existing path outside it — including a search pattern such as /usr, which you can anchor (^/usr) to get past the check. Use git grep <pattern> <rev> to search a past revision, ls-files to ask whether a path is tracked, and cherry -v <upstream> to see which commits are already upstream after a squash merge.

Eight subcommands are classified by their arguments, biased towards the safer-to-deny higher tier — so the same subcommand can land in different tiers on different calls. Options are read as git reads them: an abbreviation (--disc), a bundle (-dr) or a value (tag -m -d) counts exactly as git counts it:

  • checkout -b (branch creation) is write; every other checkout is destructive, since it can discard the working tree or detach HEAD — including -B on a branch that already exists (on a new, plain-named branch -B given once is a write). Prefer switch for a safe branch change.
  • switch is write, but switch -f / --force / --discard-changes and -C / --force-create on a branch that already exists are destructive (on a new, plain-named branch -C given once is a write; a name git expands, such as @{-1}, is not plain).
  • restore: with --staged (the index only) it is write; with --worktree, or with no flag at all, it is destructive.
  • branch: --list / -l / -a / -r / --show-current / --contains / --merged / --points-at, and a bare branch (-v included), are read — a later --no-list cancels list mode; creating, -m / --move / --copy and the upstream/description options are write; -d / --delete and every forced form (-f / --force, -M, -C — also inside a bundle such as -qC — and -D) are destructive whether or not the branch exists. Unlike checkout -B, switch -C and tag -f, a forced branch is never lowered to a write for a new name; to start a branch, use branch <name>, checkout -b or switch -c.
  • tag: -l / --list / -n / --contains / --merged, and a bare tag, are read; creating is write; -d / --delete, and -f / --force on an existing tag, are destructive (on a new, plain-named tag -f given once is a write).
  • stash: list / show are read; a bare stash plus push / save / pop / apply / create / store are write; drop / clear are destructive; any other sub-subcommand is refused with the permitted list.
  • merge (--no-ff, --ff-only, --no-edit, -m <message>, <ref>) is write, like commit, and runs the merge hooks; --abort / --quit are destructive. --continue, --no-verify, -e / --edit and -F / --file are refused: conclude a merge with commit and a message instead. A merge that stops on conflicts names the conflicted files and leaves git's merging state: resolve, add, then commit.
  • worktree: list is read; add, remove, lock and unlock are write; move, prune and repair are destructive, as are add -B (which resets a branch) and add -f (which lets two worktrees hold one branch). add, move and remove are confined to the workspace — an outside path is refused outright, and confirm does not lift it — and remove needs confirm: true only when it would discard something: uncommitted work, or a detached HEAD whose commits no branch, tag or remote reaches.

Read the full file on GitHub · 88 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. 7d ago Changed · +2 lines 65a7e9630935
  2. 8d ago Changed · +1 lines 14fe4383ebc4
  3. 18d ago Changed · +5 lines e793187fa491
  4. 1mo ago First seen · 80 lines · 56 tokens per session scan A 6c895dce0474

Subscribe to this mod's changes

plumb-git is a skill published in the GitHub repository plumbkit/plumb (4 stars, last pushed yesterday), licensed MIT. It adds 56 tokens to every session and 2,660 once invoked, about $0.0002 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 skills, from other repositories

vhs-e2e-gif

Record a test run, a TUI session, or any terminal command as a GIF with VHS and attach it to a GitHub PR as a release-hosted asset, never a repo commit. Use when asked to record an e2e run, demo a fix on a PR, attach a GIF or screen recording to a pull request, show a test passing visually, or produce a terminal…

dimetron/pi-go · 106 tokens

check-linters-before-commit

Before any commit, run linters, vet, tests, and build verification; do not commit until checks pass.

dimetron/pi-go · 30 tokens

pi-sync

Daily upstream-sync job for the pi Go port — fetch upstream pi, triage every change since the recorded pin, port what's in scope, verify idiomatic + parity via independent reviews, update the ledger, and push. Use for "sync with upstream", "porting job", or as the scheduled daily run.

sky-valley/pi · 66 tokens

yaml

Validate and understand schema-backed YAML (Kubernetes, Flux, and JSON-Schema configs) with the yayamlls language server. Use when editing or reviewing .yaml/.yml files, diagnosing schema validation errors, configuring .yayamlls.yaml, suppressing a diagnostic, or working with Flux HelmRelease / Kustomization rendering.

home-operations/yayamlls · 69 tokens

repo-hygiene

Use when the scheduled repo-hygiene workflow runs from GitHub Actions (or an operator dry-run) to scan the repository for small, certain docs/test/code hygiene issues and fix them as one batched branch.

QwenLM/qwen-code · 48 tokens

create-issue

Draft and submit a GitHub issue from a user idea or bug description, with bilingual body and correct labels.

QwenLM/qwen-code · 26 tokens