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.
npx agentmods add skills/filip-podstavec/claude-leverage/explain-diffnpx skills add Filip-Podstavec/claude-leverage --skill explain-diffgit clone --depth 1 https://github.com/Filip-Podstavec/claude-leverageWrote 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/filip-podstavec/claude-leverage/explain-diff)<a href="https://agentmods.dev/skills/filip-podstavec/claude-leverage/explain-diff"><img src="https://agentmods.dev/badge/skills/filip-podstavec/claude-leverage/explain-diff.svg" alt="Measured on agentmods" 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 | $0.00080 | $0.01646 |
| Opus 5 | $0.00040 | $0.00823 |
| Sonnet 5 | $0.00016 | $0.00329 |
| Haiku 4.5 | $0.00008 | $0.00165 |
Grade A, and why
explain-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 4d 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.
How it starts
The opening of the file, as written. The whole thing — 176 lines — stays where its author put it; the contents beside it link to each section on GitHub.
/explain-diff
What it does
Reads a git diff and produces a tight English narration of what
changed, why a reviewer should care, and where the risk concentrates.
Lives next to the vanilla commit workflow (mechanical Conventional
Commits message) and /security-review (structured security audit) —
covers the "narrative" niche neither does.
Three audience modes:
--for pr(default) — output is a PR-description-shaped block:## Summary,## Why,## How to verify. Copy-pasteable into the PR body.--for review— emphasizes what's load-bearing and what's mechanical; flags non-obvious decisions that the reviewer might miss without the author's voice ("the newIF EXISTSclause on line 47 is load-bearing — without it the migration is non-idempotent").--for self— terse 3–5 bullet self-narration; useful before switching context or coming back to a branch later.
Workflow
-
Resolve diff range.
- Default:
git diff HEAD(working tree + staged vs last commit). - If
$ARGUMENTSstarts with^or contains..or..., treat as a ref range and usegit diff <range>. - If
--for prand the current branch has commits beyondmain, usegit diff main...HEADinstead (covers the whole branch).
- Default:
-
Get supporting context (parallel-OK):
git status --shortfor file-state breakdown.git log --oneline -10for repo style of commit messages.git rev-parse --abbrev-ref HEADfor branch name.
-
Read the diff in full. If the diff is enormous (>50k tokens estimated), STOP and report: "diff is too large — narrow with
--paths <pattern>or<file>...". Don't try to chunk and summarize partial diffs; the result would be incoherent. -
Walk the diff and identify:
- Files added vs modified vs deleted.
- Hunks that look mechanical (renames, type-only changes, formatting).
- Hunks that look load-bearing (new branches, new functions, condition changes, new dependencies).
- Test changes (file paths matching
*_test.*,*.test.*,tests/, etc.). - Doc / config-only changes.
- Anything that touches a sensitive path (
auth*,crypto*,*.env*,routes/, etc.) — surface as a "consider /security-review" reminder, not a substitute for it. - Load-bearing decisions shipped without an
AIDEV-anchor (only in--for review). A load-bearing hunk that encodes a non-obvious choice — an ordering dependency, a perf carve-out, an idempotency trick, a deliberate rejection of the obvious approach — and carries noAIDEV-NOTE:/AIDEV-TODO:/AIDEV-QUESTION:in the added lines is a memory the next agent won't inherit. This is the review-boundary backstop for theai-first-nudgehook, which only fires on ≥50-LOC single writes and so misses decisions built up incrementally.
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.
- 4d ago First seen · 176 lines · 80 tokens per session scan A 916db577a7fa
explain-diff is a skill published in the GitHub repository Filip-Podstavec/claude-leverage (68 stars, last pushed 1mo ago), licensed MIT. It adds 80 tokens to every session and 1,646 once invoked, about $0.0004 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-30.
Other skills, from other repositories
codex-pair-resume
Resume codex-pair for this project after a previous pause. Removes .codex-pair/state/paused and clears failure state. Review resumes on the next supported file edit; missing state is a no-op.
generate-tests
Generate unit tests for a .NET service following the coverage-kit conventions. Use when the user asks to 'generate tests', 'backfill tests', 'characterize this service', or 'add tests for' a target after coverage-init has run. Operates in characterization mode (freeze current behavior for existing code) or spec mode…
opik
This skill should be used when the user needs to add Opik tracing or integrations to their code, instrument an LLM application, or needs reference for Opik SDK usage (Python, TypeScript, REST API). Use for tasks like "add tracing", "instrument my code", "use trackopenai", "add OpikTracer", "what span types are…
codex-review
Get a second opinion from OpenAI Codex on your current code changes. Analyzes staged/unstaged diffs and returns prioritized findings. Use when user asks to "review with Codex", "Codex code review", or "ask Codex to check my code".
ollama-review
Get a second opinion from a local Ollama LLM on your current code changes. Analyzes staged/unstaged diffs and returns prioritized findings. No API keys needed. Use when user asks to "review with Ollama", "local code review", or "review offline".
github-issue-fix-flow
Use when asked to take a GitHub issue number, implement a fix, run builds/tests, commit with a closing message, and push. End-to-end workflow using gh CLI, local code changes, and git.