git-ops

git-ops is a skill for Claude Code from 0xDarkMatter/claude-mods. It costs 80 tokens per session (4,386 once invoked), scanned C, original, MIT.

A Git workflow helper that checks repositories and worktrees, and handles changes such as commits, branches, pull requests, and releases.

In plain words
What is it for?
Use it to inspect status, logs, diffs, and blame; create commits, pushes, tags, and pull requests; and prepare or carry out branch and release operations.
Why use it?
It reduces the need to track Git state across multiple worktrees and adds a review step before risky operations such as rebases or force-pushes.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions subagents.

Part of the claude-mods plugin — 112 skills, 3 commands, 3 agents, 4 hooks shipped together

Good fit Use it to inspect status, logs, diffs, and blame; create commits, pushes, tags, and pull requests; and prepare or carry out branch and release operations.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/0xdarkmatter/claude-mods/git-ops
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 0xDarkMatter/claude-mods --skill git-ops
Clone the repo
git clone --depth 1 https://github.com/0xDarkMatter/claude-mods

Made for: Claude Code.

Or install claude-mods, the plugin that ships this one along with the rest of its 112 skills, 3 commands, 3 agents, 4 hooks.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/0xdarkmatter/claude-mods/git-ops"><img src="https://agentmods.dev/badge/skills/0xdarkmatter/claude-mods/git-ops.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 80 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,386 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. 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.00080 $0.04386
Opus 5.5 $0.00032 $0.01754
Sonnet 5.5 $0.00016 $0.00877
Haiku 4.5 $0.00008 $0.00439

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

Security

Grade C, and why

git-ops scanned grade C with 1 finding 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 4d ago.

The scan reads SKILL.md. This mod also ships 5 executable files (scripts/land-all.sh, scripts/new-lane.sh, scripts/status.sh, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

- **Never** `rm -rf .claude/worktrees/` or `$WORKTREE_ROOT/<repo>/` — the orphan count in survey is informational, never a cleanup cue
skills/git-ops/SKILL.md · 380 lines

How it starts

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

Git Ops

Intelligent git operations orchestrator. Routes read-only queries inline for speed, dispatches write operations to a background Sonnet agent (git-agent) to free the main session.

Architecture

User intent (commit, PR, rebase, status, etc.)
    |
    +---> Tier 1: Read-only (status, log, diff, blame)
    |       |
    |       +---> Execute INLINE via Bash (fast, no subagent)
    |
    +---> Tier 2: Safe writes (commit, push, tag, PR, stash)
    |       |
    |       +---> Gather context from conversation
    |       +---> Dispatch to git-agent (background, Sonnet)
    |       |       +---> Fallback: general-purpose with inlined protocol
    |       +---> Agent executes and reports back
    |
    +---> Tier 3: Destructive (rebase, reset, force-push, branch -D)
            |
            +---> Dispatch to git-agent (background, Sonnet)
            |       +---> Fallback: general-purpose with inlined protocol
            +---> Agent produces PREFLIGHT REPORT (does NOT execute)
            +---> Orchestrator relays preflight to user
            +---> On confirmation: re-dispatch with execute authority

Safety Tiers

Tier 1: Read-Only - Run Inline

No subagent needed. Execute directly via Bash for instant results.

Operation Command
Status (rich) bash $HOME/.claude/skills/git-ops/scripts/status.sh — one-shot HEAD + sync + tree + worktrees + branches + PR
Worktree survey bash $HOME/.claude/skills/git-ops/scripts/worktree-survey.sh — per-worktree state, drift detection, prunable/WIP/ghost/orphan triage
Land-all plan bash $HOME/.claude/skills/git-ops/scripts/land-all.sh [--porcelain] — classifies every branch as LANDABLE/STALE/WIP/ACTIVE/MERGED for a batch land (see "Land all" below)
Status (bare) git status --short
Log git log --oneline -20
Diff (unstaged) git diff --stat
Diff (staged) git diff --cached --stat
Diff (full) git diff [file] or git diff --cached [file]
Branch list git branch -v
Remote branches git branch -rv
Stash list git stash list
Blame git blame [file]
Show commit git show [hash] --stat
Reflog git reflog --oneline -20
Tags git tag --list --sort=-v:refname
Worktree list git worktree list
PR list gh pr list
PR status gh pr view [N]
Issue list gh issue list
CI checks gh pr checks [N]
Run status gh run list --limit 5

Read the full file on GitHub · 380 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. 4d ago Changed · +1 lines 6fd801a5b1dc
  2. 11d ago Changed 4678d46246f3
  3. 12d ago Changed · +2 lines c339e3b998c5
  4. 13d ago Changed · -176 lines e7fa464126cc
  5. 1mo ago First seen · 553 lines · 80 tokens per session scan C 2bf58859d09c

Subscribe to this mod's changes

git-ops is a skill published in the GitHub repository 0xDarkMatter/claude-mods (68 stars, last pushed 4d ago), licensed MIT. It adds 80 tokens to every session and 4,386 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories