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 skills add romiluz13/auto-pi --skill diff-driven-docsgit clone --depth 1 https://github.com/romiluz13/auto-piWrote 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/romiluz13/auto-pi/diff-driven-docs)<a href="https://agentmods.dev/skills/romiluz13/auto-pi/diff-driven-docs"><img src="https://agentmods.dev/badge/skills/romiluz13/auto-pi/diff-driven-docs/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/romiluz13/auto-pi/diff-driven-docs"><img src="https://agentmods.dev/badge/skills/romiluz13/auto-pi/diff-driven-docs.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.00065 | $0.00754 |
| Opus 5.5 | $0.00026 | $0.00302 |
| Sonnet 5.5 | $0.00013 | $0.00151 |
| Haiku 4.5 | $0.00006 | $0.00075 |
Grade A, and why
diff-driven-docs 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 3mo 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 — 61 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Diff-Driven Docs
Stale documentation is worse than no documentation — it actively misleads. This skill treats docs as a deliverable of every code change, not an afterthought. Just as TDD enforces tests accompany code, diff-driven-docs enforces doc updates accompany changes before the workflow closes.
Step 1: Run the impact classifier (BEFORE any doc work)
Read the diff. Classify impact across 3 layers:
| Diff characteristic | Business | Technical | Audit |
|---|---|---|---|
| Internal utility / helper / type only | SKIP | CHECK | SKIP |
| Test addition, no new pattern | SKIP | SKIP | SKIP |
| Style / formatting change | SKIP | SKIP | SKIP |
| Dependency version bump (no API change) | SKIP | SKIP | SKIP |
| Routine bug fix (existing behavior corrected) | SKIP | CHECK | SKIP |
| Simple refactor (behavior unchanged) | SKIP | CHECK if signatures changed | SKIP |
| New exported function / hook / component | SKIP | CHECK | CHECK |
| New page or route | CHECK | CHECK | CHECK |
| Architectural pattern introduced | SKIP | CHECK | CREATE |
| Technology choice made | SKIP | CHECK | CREATE |
| Breaking change to public API | CHECK | CHECK | CREATE |
| Permission or role change | CHECK | CHECK | CHECK |
| Security or compliance impact | CHECK | CHECK | CREATE or UPDATE |
SKIP business docs if: no user-facing surface changed; only internal utils/types/tests modified. SKIP audit docs if: routine bug fix, style change, test addition, or simple refactor with no new pattern. ALWAYS check technical docs when hooks/components/migrations/schema/routes/exported APIs changed. CREATE an audit doc if: an architectural decision was made, a new pattern introduced, a non-obvious tradeoff accepted, or a dev six months from now would ask "why did we do it this way?"
If all three layers are SKIP: set IMPACT_LEVEL: none and emit a SKIPPED note immediately without opening any doc files.
Step 2: Write only the needed updates
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.
- 3mo ago First seen · 61 lines · 65 tokens per session scan A c13118209fe2
diff-driven-docs is a skill published in the GitHub repository romiluz13/auto-pi (10 stars, last pushed 3mo ago), licensed MIT. It adds 65 tokens to every session and 754 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-30.
diff-driven-docs compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| diff-driven-docsromiluz13/auto-pi | Skill | 10 | 3mo ago | MIT | A | 65 | Claude Code, Codex |
| write-swiftwangmiaozero/pi-harness | Skill | 364 | today | AGPL-3.0 | A | 107 | Claude Code, Codex |
| apple-designwangmiaozero/pi-harness | Skill | 364 | today | AGPL-3.0 | A | 80 | Claude Code, Codex |
| emil-design-engwangmiaozero/pi-harness | Skill | 364 | today | AGPL-3.0 | A | 35 | Claude Code, Codex |
| animate-expowangmiaozero/pi-harness | Skill | 364 | today | AGPL-3.0 | A | 112 | Claude Code, Codex |
| mobile-nativewangmiaozero/pi-harness | Skill | 364 | today | AGPL-3.0 | A | 167 | Claude Code, Codex |
| ask-mattwangmiaozero/pi-harness | Skill | 364 | today | AGPL-3.0 | A | 22 | Claude Code, Codex |