gitkit

A shared Git procedure for managing worktrees, branches, synchronization, and cleanup. Git is the version-control system used to track code changes and branch-based work.

In plain words
What is it for?
It supports worktree creation and cleanup, branch syncing, base-branch handling, and optional stacked-branch workflows with GitHub's command-line tools.
Why use it?
It gives related tools one consistent way to create, find, update, and remove isolated working copies instead of each tool using different rules.

Skill for Claude CodeCodex

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/mimukit/skills/gitkit
Any agent
npx skills add mimukit/skills --skill gitkit
Clone the repo
git clone --depth 1 https://github.com/mimukit/skills

Made for: Claude Code, Codex.

Per session 211 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 6,445 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00211 $0.06445
Opus 5 $0.00105 $0.03223
Sonnet 5 $0.00042 $0.01289
Haiku 4.5 $0.00021 $0.00645

Measured yesterday against content hash 6222ba9c152b, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

gitkit 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 yesterday.

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.

skills/gitkit/SKILL.md · 277 lines

How it starts

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

gitkit

One place where the git facts live that every other skill in a toolchain keeps re-deriving: where a worktree goes and what it's named, how it is created, adopted, and removed, which branch is the base, and when to rebase versus merge.

The core here is not clever. All of it is native git worktree, with no vendor CLI, no GUI dependency, and no recorded state anywhere but git's own. That is the point: a laptop with a desktop dev tool and a headless Linux box run identical commands, so there is no second code path to keep in sync and no "degraded mode" to reason about.

One branch of this skill sits outside that core, and says so. Stacked branches drive GitHub's gh stack extension, so that branch alone needs gh and a GitHub remote. It degrades to plain git rather than failing, and nothing else in this file depends on it, so a box with no gh runs everything above untouched.

gitkit is a primitives skill. Most of its runs come from another skill calling it, not from a human saying its name.

When this fires

  • worktree. "Spin up a worktree for this branch", "make me a worktree for #42", "where is the worktree for issue-42-…", "tear down this worktree", "list my worktrees".
  • base ref. "What's the base branch here", "diff me against the base".
  • sync. "Should I rebase or merge here", "sync this branch with main", "this branch is behind, bring it up to date", "make this PR review-ready on the latest base".
  • clean. "Clean up my merged worktrees", "which branches can I delete", "this repo is full of dead branches".
  • rescue. "I lost a commit", "my rebase ate my work", "I reset the wrong branch", "what's in this stash".
  • stack. "Stack this on #43", "start #44 on top of #43's branch", "restack this chain", "show me the stack".
  • called by another skill. Any skill that needs a worktree, a base ref, a branch name, or a sync decision delegates here and uses what comes back.

Read the full file on GitHub · 277 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. yesterday First seen · 277 lines · 211 tokens per session scan A 6222ba9c152b

Subscribe to this mod's changes

gitkit is a skill published in the GitHub repository mimukit/skills (1 stars, last pushed 2d ago), licensed MIT. It adds 211 tokens to every session and 6,445 once invoked, about $0.0011 per session on Opus 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.