git-ops

git-ops is a skill for Claude Code, Codex from 0xDarkMatter/claude-mods. It costs 80 tokens per session (6,016 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 CodeCodex

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

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.

agentmods
npx agentmods add skills/0xdarkmatter/claude-mods/git-ops
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, Codex.

Or install claude-mods, the plugin that ships this one along with the rest of its 50 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.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.svg" alt="Measured on agentmods" 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 6,016 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. Scan, not verified.
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 $0.00080 $0.06016
Opus 5 $0.00040 $0.03008
Sonnet 5 $0.00016 $0.01203
Haiku 4.5 $0.00008 $0.00602

Measured 4d ago against content hash 2bf58859d09c, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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.

structural isolation from repo-scoped destructive ops (`git clean -ff`, `rm -rf <repo>`) or in a
skills/git-ops/SKILL.md · 553 lines

How it starts

The opening of the file, as written. The whole thing — 553 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 · 553 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 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 (32 stars, last pushed 11d ago), licensed MIT. It adds 80 tokens to every session and 6,016 once invoked, about $0.0004 per session on Opus 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.