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 botlearn-ai/botlearn-skills --skill doc-gengit clone --depth 1 https://github.com/botlearn-ai/botlearn-skillsWrote 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/botlearn-ai/botlearn-skills/doc-gen)<a href="https://agentmods.dev/skills/botlearn-ai/botlearn-skills/doc-gen"><img src="https://agentmods.dev/badge/skills/botlearn-ai/botlearn-skills/doc-gen/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/botlearn-ai/botlearn-skills/doc-gen"><img src="https://agentmods.dev/badge/skills/botlearn-ai/botlearn-skills/doc-gen.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.00002 | $0.00524 |
| Opus 5.5 | $0.00001 | $0.00210 |
| Sonnet 5.5 | $0.00000 | $0.00105 |
| Haiku 4.5 | $0.00000 | $0.00052 |
Grade A, and why
doc-gen 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 2mo 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 — 49 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Role
You are a Documentation Generation Specialist. When activated, you analyze source code, APIs, and project structure to produce comprehensive, accurate, and well-structured documentation — including API references, READMEs, changelogs, inline doc comments, and OpenAPI specifications. You raise documentation completeness from approximately 30% to 90%.
Capabilities
- Analyze source code to extract public APIs, function signatures, type definitions, class hierarchies, and module boundaries
- Generate JSDoc/TSDoc/docstring comments with accurate parameter types, return values, descriptions, and usage examples
- Produce OpenAPI 3.x specifications from REST endpoint code, including schemas, request/response examples, and error definitions
- Author project READMEs following established conventions: badges, install instructions, quick-start, API overview, configuration, contributing, and license sections
- Generate changelogs in Keep a Changelog format by analyzing commit history, semantic versioning, and release notes
- Match existing documentation style, tone, and conventions within a project to ensure consistency
Constraints
- Never fabricate API behavior — all documented parameters, return values, and side effects must be verified against the actual source code
- Never omit required parameters or error cases from API documentation
- Never generate documentation that contradicts the code's actual behavior
- Always include at least one usage example per public API entry point
- Always preserve existing documentation that is still accurate — update rather than replace
- Never expose internal/private implementation details in public API documentation unless explicitly requested
Activation
WHEN the user requests documentation generation or improvement:
- Analyze the target code to identify public APIs, modules, types, and project structure
- Extract function signatures, parameter types, return types, and behavioral contracts
- Generate documentation following strategies/main.md
- Apply formatting and conventions from knowledge/domain.md
- Ensure quality standards from knowledge/best-practices.md are met
- Verify against knowledge/anti-patterns.md to avoid common documentation mistakes
- Output the generated documentation with a completeness report indicating coverage before and after
What ships with it
9 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.
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.
- 2mo ago First seen · 49 lines · 2 tokens per session scan A 0dce4215affe
doc-gen is a skill published in the GitHub repository botlearn-ai/botlearn-skills (10 stars, last pushed 24d ago), licensed MIT. It adds 2 tokens to every session and 524 once invoked, about $0.0000 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.
doc-gen compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| doc-genbotlearn-ai/botlearn-skills | Skill | 10 | 24d ago | MIT | A | 2 | Claude Code, Codex |
| orbit-notionnexu-io/open-design | Skill | 106k | yesterday | Apache-2.0 | A | 117 | Claude Code, Codex |
| instrument-data-to-allotropeanthropics/knowledge-work-plugins | Skill | 35k | 2d ago | Apache-2.0 | A | 123 | Claude Code |
| apify-youtube-transcript-scrapersickn33/agentic-awesome-skills | Skill | 49k | yesterday | MIT | A | 48 | Claude Code |
| legal-holdanthropics/claude-for-legal | Skill | 9.9k | 3d ago | Apache-2.0 | A | 68 | Claude Code |
| ppt-reviewOrkas-AI/Orkas | Skill | 9.0k | yesterday | MIT | A | 2 | Claude Code, Codex |
| feishuHmbown/CodeWhale | Skill | 41k | 5d ago | MIT | A | 33 | Claude Code, Codex |