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 commands/dykyi-roman/awesome-claude-code/generate-documentationgit clone --depth 1 https://github.com/dykyi-roman/awesome-claude-codeWrote 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/commands/dykyi-roman/awesome-claude-code/generate-documentation)<a href="https://agentmods.dev/commands/dykyi-roman/awesome-claude-code/generate-documentation"><img src="https://agentmods.dev/badge/commands/dykyi-roman/awesome-claude-code/generate-documentation.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.00030 | $0.01199 |
| Opus 5 | $0.00015 | $0.00600 |
| Sonnet 5 | $0.00006 | $0.00240 |
| Haiku 4.5 | $0.00003 | $0.00120 |
Grade A, and why
generate-documentation 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 yesterday.
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 — 233 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Generate Documentation
Generate high-quality technical documentation for a file, folder, or project.
Input Parsing
Parse $ARGUMENTS to extract path and optional meta-instructions:
Format: <path> [-- <meta-instructions>]
Examples:
- /acc:generate-documentation ./
- /acc:generate-documentation src/ -- focus on API documentation
- /acc:generate-documentation ./ -- create architecture doc with C4 diagrams
- /acc:generate-documentation src/Domain/Order -- document only public interfaces
- /acc:generate-documentation ./ -- на русском языке
Parsing rules:
- Split
$ARGUMENTSby--(space-dash-dash-space) - First part = path (required, default: current directory)
- Second part = meta-instructions (optional, customization)
Target
- Path: First part of
$ARGUMENTS(before--) - Meta-instructions: Second part (after
--) — use to customize output
If meta-instructions provided, adjust documentation to:
- Focus on specific documentation types
- Include/exclude certain sections
- Use specific diagram types
- Target specific audience
- Use specific language
Pre-flight Check
-
Verify the path exists:
- If
$ARGUMENTSis empty, ask user what they want to document - If path doesn't exist, report error and stop
- If
-
Determine documentation type:
- File → API documentation, code examples
- Directory → README, architecture docs
- Project root → Full documentation suite
Documentation Flow
/acc:generate-documentation <path>
│
├─ Pre-flight: Validate path exists
│
├─ Phase 1: Analyze project scope
│ ├─ Read composer.json (if exists)
│ ├─ Identify project type (library/app/API)
│ └─ Determine audience
│
├─ Phase 2: Task → acc:documentation-writer
│ └─ Generate appropriate documentation
│
├─ Phase 3: Task → acc:diagram-designer (if architecture docs)
│ └─ Create Mermaid diagrams
│
└─ Output: Generated documentation files
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.
- yesterday First seen · 233 lines · 30 tokens per session scan A 772b93033dbb
generate-documentation is a command published in the GitHub repository dykyi-roman/awesome-claude-code (96 stars, last pushed 19d ago), licensed MIT. It adds 30 tokens to every session and 1,199 once invoked, about $0.0002 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-09-03.
Other commands, from other repositories
organize-files
Organize and rename files based on content analysis.
brand-generate
Generate an on-brand document from a saved Brand Profile.
tree
Show file tree with sync status indicators showing which files are indexed, modified, new, or deleted.
cti-report
Render case deliverables — relationship graph (PNG/SVG/Mermaid) and a polished PDF/DOCX assessment. Usage: /cti-report [--graph|--pdf].
ppt-image2-editable-rebuild
Rebuild image2 or imagegen reference slides as editable PowerPoint decks.
convert
Convert a file to Markdown using markitdown.