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.
curl -O https://raw.githubusercontent.com/shdra06/ai-mind-map/main/.agents/skills/git-diff/SKILL.mdgit clone --depth 1 https://github.com/shdra06/ai-mind-mapWrote 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.
[](https://agentmods.dev/skills/shdra06/ai-mind-map/git-diff)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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.
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.
- 8d ago First seen · 31 lines · 47 tokens per session scan A b6f7fe6bc4ee
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.
Other skills, from other repositories
work-unit-commits
Plan commits as reviewable work units. Trigger: implementation, commit splitting, chained PRs, or keeping tests and docs with code.
git-commit
Git commit message generator that creates conventional commit messages based on code changes.
memorix-git-memory
Use when the task depends on commit history, what changed, when a fix shipped, or linking engineering evidence to reasoning memory.
conventional-commit
Guides committing staged (indexed) git files using the Conventional Commits specification and commit message best practices. Use when user mentions commit, git commit, conventional commit, commit message, staged files, indexed files, fixup, fixup commit, amend, or squash. Helps craft well-structured, meaningful commit…
using-git-worktrees
Parallel development branches.
github-pr-review
Handles PR review comments and feedback resolution. Use when user wants to resolve PR comments, handle review feedback, fix review comments, address PR review, check review status, respond to reviewer, or verify PR readiness. Fetches comments via GitHub CLI, classifies by severity, applies fixes with user…