ai-mind-map: Skill for Claude Code

.agents/skills/git-diff/SKILL.md

git-diff is a skill for Claude Code, Codex from shdra06/ai-mind-map. It costs 47 tokens per session (555 once invoked), scanned A, original, MIT.

A local viewer for exact differences between Git commits, branches, tags, or the current working code and a chosen base. Git is the system that records versions of source code and their changes.

In plain words
What is it for?
Comparing commits or branches, reviewing staged and unstaged changes, checking differences from the push destination, and inspecting remote-branch changes after fetching.
Why use it?
It lets you inspect repository changes without loading a complete patch into the chat. It also makes the comparison base explicit instead of assuming it is the main branch.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

This is shdra06/ai-mind-map's own configuration. It tells Claude Code and Codex how to work on ai-mind-map itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything ai-mind-map configures →

Reuse

Borrowing it

Nothing to install: this file belongs to shdra06/ai-mind-map. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/shdra06/ai-mind-map/main/.agents/skills/git-diff/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/shdra06/ai-mind-map

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/shdra06/ai-mind-map/git-diff"><img src="https://agentmods.dev/badge/skills/shdra06/ai-mind-map/git-diff.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 47 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 555 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.00047 $0.00555
Opus 5.5 $0.00019 $0.00222
Sonnet 5.5 $0.00009 $0.00111
Haiku 4.5 $0.00005 $0.00056

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

Security

Grade A, and why

git-diff 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 8d 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.

.agents/skills/git-diff/SKILL.md · 31 lines

What it actually says

Exact Git diff viewer

Use native Git through AI Mind Map's CLI. No AST index, embeddings, external service, or LLM is needed to generate or view the patch. Loading this skill, returning tool output, or asking an LLM to analyze the diff still consumes tokens. Never promise zero total chat tokens.

# Any two commits, branches, or tags: direct tree comparison, not merge-base comparison.
ai-mind-map diff HEAD~2 HEAD

# Current staged + unstaged code and non-ignored untracked files versus a commit.
ai-mind-map diff HEAD

# Current code versus the configured push destination, refreshed from its remote.
ai-mind-map diff --fetch

# Explicit GitHub remote branch, refreshed before comparing.
ai-mind-map diff origin/main --fetch

The default base is Git's @{push}, not an assumed main branch or pull upstream. It is the configured remote branch's known state, not a historical record of which commit this machine last pushed. Without --fetch, comparisons use cached local refs and must be described that way. Fetch failures are errors, not an empty diff. If a branch has no usable push target, require an explicit base instead of guessing.

Commands return only metadata, counts, and absolute artifact paths. Open viewerPath for the human and link patchPath when useful. Do not load the full patch into model context unless the user requests analysis; read only relevant hunks then. The viewer is self-contained and makes no network requests.

Source checkout: use node dist/cli.js diff ... after npm run build. Options: --project <repo> and --output <directory>. Each export creates a new comparison folder with changes.patch, index.html, and comparison.json. It does not overwrite prior exports. The default .mindmap/diffs cache is excluded from untracked comparisons. Prefer an ignored output location to avoid including previous custom exports in later comparisons.

Native patches include binary changes, deletions, renames, and new non-ignored files. Ignored files are excluded; submodules use Git's recorded state. Working files are read live, so concurrent edits are not an atomic snapshot. --fetch updates remote-tracking refs; it does not pull, merge, push, stage, or rewrite working files. Preserve the exact patch; summaries and the HTML rendering are not substitutes for its bytes.

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. 8d ago First seen · 31 lines · 47 tokens per session scan A b6f7fe6bc4ee

Subscribe to this mod's changes

git-diff is a skill published in the GitHub repository shdra06/ai-mind-map (3 stars, last pushed 9d ago), licensed MIT. It adds 47 tokens to every session and 555 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-10-18.