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 mfbari/claude-skill-generate-docs --skill generate-docsgit clone --depth 1 https://github.com/mfbari/claude-skill-generate-docsWrote 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/mfbari/claude-skill-generate-docs/generate-docs)<a href="https://agentmods.dev/skills/mfbari/claude-skill-generate-docs/generate-docs"><img src="https://agentmods.dev/badge/skills/mfbari/claude-skill-generate-docs/generate-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/mfbari/claude-skill-generate-docs/generate-docs"><img src="https://agentmods.dev/badge/skills/mfbari/claude-skill-generate-docs/generate-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.00169 | $0.01428 |
| Opus 5.5 | $0.00068 | $0.00571 |
| Sonnet 5.5 | $0.00034 | $0.00286 |
| Haiku 4.5 | $0.00017 | $0.00143 |
Grade A, and why
generate-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 — 134 lines — stays where its author put it; the contents beside it link to each section on GitHub.
generate-docs
You are the orchestrator for a documentation-generation pipeline. Coordinate five phases — Bootstrap → Explore → Generate → Verify → Context Update — in an iterative loop until every document meets grade A on every rubric dimension, or the retry budget is exhausted.
Detailed instructions for each phase live in references/. Read the relevant reference file when you
reach that phase (progressive disclosure — don't load them all up front).
| Phase | What it does | Read |
|---|---|---|
| 0 — Bootstrap | Detect/back-up/create CLAUDE.md; note AGENTS.md | references/context-files.md |
| 1 — Explore | Scan the codebase across 8 domains → docs/_exploration_report.md |
references/exploration.md |
| 2 — Generate | Write ~15 docs in docs/ with Mermaid diagrams |
references/generation.md |
| 3 — Verify | Grade every doc A–F against the source → docs/_verification_report.md |
references/verification.md + references/grading-rubric.md |
| 4 — Context Update | Update CLAUDE.md + write AGENTS.md (progressive disclosure) | references/context-files.md |
Configuration
- Max retries: the first argument, if given (e.g.
generate-docs 5). If blank or non-numeric, default to 3. - Output directory:
docs/at the project root. - Passing grade: A on every document and every rubric dimension.
- Completion: when ALL docs score A across ALL dimensions, or max retries is reached.
How to run the phases (any harness)
This skill is harness-agnostic. Each phase is a batch of independent work that parallelizes cleanly:
- If your harness supports subagents / parallel tasks (e.g. a Task tool, an agent-spawn
primitive, or a workflow engine): dispatch the phase's work as parallel subagents — 8 explorers in
Phase 1, up to 15 writers in Phase 2, 1 verifier in Phase 3. Give each subagent the matching
references/file as its instructions, plus its specific brief/doc. Prefer read-only tools for explorers and verifiers. - If your harness has no subagents: perform each phase's work yourself, sequentially, following
the same
references/files. The output is identical; only the wall-clock time differs.
What ships with it
11 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.
- assets/agents-md.md 1.9 KB
- assets/claude-md-section.md 2.9 KB
- examples/agents-md-example.md 3.4 KB
- examples/claude-md-example.md 3.6 KB
- examples/README.md 706 B
- examples/verification-report-example.md 1.8 KB
- references/context-files.md 2.9 KB
- references/exploration.md 9.4 KB
- references/generation.md 7.4 KB
- references/grading-rubric.md 4.9 KB
- references/verification.md 4.9 KB
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 · 134 lines · 169 tokens per session scan A 22bc959d76d7
generate-docs is a skill published in the GitHub repository mfbari/claude-skill-generate-docs (6 stars, last pushed 4mo ago), licensed MIT. It adds 169 tokens to every session and 1,428 once invoked, about $0.0007 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.
generate-docs compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| generate-docsmfbari/claude-skill-generate-docs | Skill | 6 | 4mo ago | MIT | A | 169 | Claude Code, Codex |
| claude-md-improveranthropics/claude-plugins-official | Skill | 49k | today | Apache-2.0 | A | 82 | Claude Code |
| agent-platform-model-registrygoogle/skills | Skill | 26k | yesterday | Apache-2.0 | A | 60 | Claude Code, Codex |
| gke-reliabilitygoogle/skills | Skill | 26k | yesterday | Apache-2.0 | A | 85 | Claude Code, Codex |
| gke-workload-securitygoogle/skills | Skill | 26k | yesterday | Apache-2.0 | A | 171 | Claude Code, Codex |
| google-cloud-solution-agentic-analytics-spark-knowledge-cataloggoogle/skills | Skill | 26k | yesterday | Apache-2.0 | A | 132 | Claude Code, Codex |
| glance-canonical-layoutsandroid/skills | Skill | 11k | yesterday | Apache-2.0 | A | 56 | Claude Code |