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/botlearn-ai/botlearn-skills/doc-gennpx 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.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.1 | $0.00002 | $0.00524 |
| Opus 5 | $0.00001 | $0.00262 |
| Sonnet 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 6d 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.
- 6d 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 (9 stars, last pushed 3mo ago), licensed MIT. It adds 2 tokens to every session and 524 once invoked, about $0.0000 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-31.
Other skills, from other repositories
orbit-notion
Open Orbit briefing skill — selected by the Orbit pipeline when Notion is the user's only connected connector, or when the user explicitly scopes their daily digest to Notion. Pulls the past 24 hours of document edits, comments, mentions, and database row changes from the user's authenticated Notion connection and…
instrument-data-to-allotrope
Convert laboratory instrument output files (PDF, CSV, Excel, TXT) to Allotrope Simple Model (ASM) JSON format or flattened 2D CSV. Use this skill when scientists need to standardize instrument data for LIMS systems, data lakes, or downstream analysis. Supports auto-detection of instrument types. Outputs include full…
baoyu-youtube-transcript
Downloads YouTube video transcripts/subtitles and cover images by URL or video ID. Supports multiple languages, translation, chapters, and speaker identification. Caches raw data for fast re-formatting. Use when user asks to "get YouTube transcript", "download subtitles", "get captions", "YouTube字幕", "YouTube封面"…
feishu
Work with Feishu or Lark bots, docs, sheets, bitables, approval flows, and OpenAPI/MCP setup without hardcoding credentials.
read
Reads URLs and PDFs by fetching source content, defaulting to concise summaries for plain read requests and clean Markdown when asked to convert, save, quote, cite, or feed downstream work. Use when users ask in any language to read, fetch, check, summarize, quote, cite, convert, or save a URL or PDF. Not for local…
gog-slides
Google Slides operations through gog.