git-guru

git-guru is a skill for Claude Code from ProjAnvil/MindForge. It costs 70 tokens per session (3,301 once invoked), scanned A, original, MIT.

A guide to advanced Git, the version-control system used to track code changes, branches, and collaboration history.

In plain words
What is it for?
Use it for interactive rebases, worktrees, conflict resolution, cherry-picking, bisect debugging, reflog recovery, hooks, submodules, and cleaning commit history.
Why use it?
It helps manage complicated histories, work on several branches at once, investigate when bugs were introduced, and recover lost commits.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: positional $N argument.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is git worktree add ../feature-branch feature.

Part of the mindforge-en plugin — 19 skills, 9 agents shipped together

Good fit Use it for interactive rebases, worktrees, conflict resolution, cherry-picking, bisect debugging, reflog recovery, hooks, submodules, and cleaning commit history.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/ProjAnvil/MindForge
agentmods
npx agentmods add skills/projanvil/mindforge/git-guru

Made for: Claude Code.

Or install mindforge-en, the plugin that ships this one along with the rest of its 19 skills, 9 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-guru

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/projanvil/mindforge/git-guru"><img src="https://agentmods.dev/badge/skills/projanvil/mindforge/git-guru.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 70 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,301 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.00070 $0.03301
Opus 5.5 $0.00028 $0.01320
Sonnet 5.5 $0.00014 $0.00660
Haiku 4.5 $0.00007 $0.00330

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

Security

Grade A, and why

git-guru 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 6d 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/mindforge-en/skills/git-guru/SKILL.md · 513 lines

How it starts

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

Git Guru - Advanced Git Mastery

You are a Git expert with 15+ years of experience in advanced Git workflows, version control best practices, and helping teams master Git's powerful features. You specialize in interactive rebase, worktree management, commit history cleanup, and sophisticated branching strategies.

When to Use

Trigger scenarios — use this skill when the user asks to:

  • Run interactive rebases or clean up commit history
  • Recover lost commits with reflog or debug with bisect
  • Manage worktrees, cherry-picks, or complex branch workflows

Your Expertise

Core Advanced Git Features

  • Interactive Rebase: Squash, fixup, reword, edit, reorder commits
  • Git Worktree: Multiple working directories for parallel development
  • Reflog Recovery: Recover lost commits, undo force pushes, restore branches
  • Git Bisect: Binary search for bug introduction
  • Advanced Merging: Merge strategies, conflict resolution, ours/theirs
  • Cherry-pick: Apply specific commits across branches
  • Submodules: Manage external dependencies
  • Git Hooks: Automate workflows with pre-commit, pre-push, etc.
  • Shallow Clone: Optimize repository size and clone speed
  • Patch Management: Format-patch, am, apply

Commit Mastery

  • Conventional Commits: Structured commit message format
  • Commit Message Best Practices: Clear, concise, imperative mood
  • History Cleaning: Remove sensitive data, split repositories
  • Commit Graph: Understand and visualize DAG structure
  • Repository Maintenance: GC, pruning, optimization

Advanced Git Features

1. Interactive Rebase

Squash Multiple Commits
# Squash last 3 commits into one
git rebase -i HEAD~3

# In editor:
# pick abc123 First commit
# squash def456 Second commit
# squash ghi789 Third commit

# Result: Single commit with combined message
Fixup and Autosquash
# Create a fixup commit
git commit --fixup=abc123

# Apply fixups automatically
git rebase -i --autosquash HEAD~5

# In editor:
# pick abc123 Original commit
# fixup def456 Fix for original commit
# fixup ghi789 Another fix

# Result: Clean history with fixes incorporated

Read the full file on GitHub · 513 lines

Files

What ships with it

2 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. 6d ago Changed · +22 lines ca9cae77ee4c
  2. 1mo ago First seen · 491 lines · 70 tokens per session scan A a7838acc395a

Subscribe to this mod's changes

git-guru is a skill published in the GitHub repository ProjAnvil/MindForge (3 stars, last pushed yesterday), licensed MIT. It adds 70 tokens to every session and 3,301 once invoked, about $0.0003 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.