doc-gen
Skill2 starsChanged 9 months agoMITView on GitHub
Generate or update documentation for a module, file, function, or class. Produces JSDoc, docstrings, README sections, or standalone docs depending on the target. Use when the user says "document this", "add docs", "generate documentation", or "write a README for this module".
10 other projects use a version of this.
Adopted by
Most recently taken up by
- 5uck1ess/devkittheir own version, first seen Nov 15, 2026
- SethGammon/Citadeltheir own version, first seen Nov 4, 2026
- allysgrandiose674/Armorytheir own version, first seen Oct 13, 2026
- mayankjain1815-commits/CITADELtheir own version, first seen Oct 13, 2026
- tlzmw001/aitest-kittheir own version, first seen Aug 13, 2026
- neronain/ClaudeSkills-Neronaintheir own version, first seen Aug 9, 2026
Used with
Projects with it also use ascii-diagram, research-fleet and 8 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
SethGammonSkillascii-diagram
Generate perfectly aligned ASCII diagrams — architecture, flow, sequence, box-and-arrow. Uses a programmatic character-grid approach so alignment is guaranteed by math, not token prediction. Includes post-render verification.
Also in 4 projects that use this
SethGammonSkillresearch-fleet
Parallel research using Fleet wave mechanics. Spawns multiple scout agents, each investigating a different angle of the same question. Findings are compressed between waves. Produces a unified research brief from multiple independent perspectives.
Also in 3 projects that use this
vicoa-aiSkilllive-preview
Start a local app in the current user project, expose it through a tunnel, and return preview details in structured Markdown. Use when the user asks for a preview URL, public URL, shareable localhost, mobile/web preview, or tunnel setup.
Also in 4 projects that use this
chidekinaSkilltest-gen
Generate test cases from type constraints and specs. Creates boundary tests, edge cases, and fixtures automatically. Pact-lang inspired. Triggers on: generate tests, test from spec, create fixtures, boundary tests.
Also in 6 projects that use this
BerryKuipersSkillscaffold
Detect project stack, apply architecture patterns, wire quality gates, and scaffold features. Use when bootstrapping a project, adding a vertical slice, wiring CI/CD, adding Docker compose, or setting up quality gates.
Also in 4 projects that use this
wpankSkillsession-handoff
WHAT: Create comprehensive handoff documents that enable fresh AI agents to seamlessly continue work with zero ambiguity. Solves long-running agent context exhaustion problem.
Also in 4 projects that use this
- +1 more from SethGammon
Other versions10 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 10
- SethGammon/Citadel★ 927same name
- SethGammon/Armory★ 19same name
- tlzmw001/aitest-kit★ 13same name
- botlearn-ai/botlearn-skills★ 9same name
- 5uck1ess/devkit★ 4same name
- mayankjain1815-commits/CITADEL★ 4same name
- neronain/ClaudeSkills-Neronain★ 3same name
- allysgrandiose674/Armory★ 1same name
- jpoindexter/theft-kit★ 1same name
- 354685856-sn/claude-code-skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository239 other files it gives its agents.
- claude-code-docs/agents.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- claude-code-docs/llms.txtllms.txt
- agent-native-architectureSkill
- claude-apiSkill
- embedding-strategiesSkill
- fal-ai-mediaSkill
- gemini-imagegenSkill
- hybrid-search-implementationSkill
- langchain-architectureSkill
- llm-evaluationSkill
- ml-pipeline-workflowSkill
- prompt-engineering-patternsSkill
- rag-implementationSkill
- similarity-search-patternsSkill
- vector-index-tuningSkill
- api-design-principlesSkill
- api-designSkill
- architecture-patternsSkill
- cqrs-implementationSkill
- event-store-designSkill
- fastapi-templatesSkill
- microservices-patternsSkill
- openapi-spec-generationSkill
- projection-patternsSkill
- saga-orchestrationSkill
- api-conventionsSkill
- andrew-kane-gem-writerSkill
- angular-migrationSkill
- auth-implementation-patternsSkill
- backend-patternsSkill
- bazel-build-optimizationSkill
- coding-standardsSkill
- database-migrationSkill
- debugging-strategiesSkill
- dependency-upgradeSkill
- dhh-rails-styleSkill
- dotnet-backend-patternsSkill
- dspy-rubySkill
- error-handling-patternsSkill
- monorepo-managementSkill
- nodejs-backend-patternsSkill
- nx-workspace-patternsSkill
- react-modernizationSkill
- temporal-python-testingSkill
- turborepo-cachingSkill
- workflow-orchestration-patternsSkill
- defi-protocol-templatesSkill
- nft-standardsSkill
- solidity-securitySkill
- web3-testingSkill
- backtesting-frameworksSkill
- billing-automationSkill
- competitive-landscapeSkill
- data-storytellingSkill
- employment-contract-templatesSkill
- investor-materialsSkill
- investor-outreachSkill
- kpi-dashboard-designSkill
- market-sizing-analysisSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
11 rules. 0 are common, 11 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 6 edited versions we read keep these.
11
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 16
If $ARGUMENTS is a file path, read it directly
- Distinctive: line 17
If $ARGUMENTS is a module or function name, use Grep and Glob to find the definition
- Distinctive: line 18
If $ARGUMENTS is empty, document the current directory's main entry point
- Distinctive: line 20
Read the target fully, including:
- Distinctive: line 21
All public functions, methods, classes, and constants
- Distinctive: line 38
If a README does not exist for the module and the target is a directory:
- Distinctive: line 39
Create a README.md with: module name, one-paragraph description, installation/import, quick start example, API summary table, notes on …
- Distinctive: line 41
Write all documentation in-place (inline comments/docstrings) and also create or update any separate doc files.
- Distinctive: line 51
If the target is not found: report and suggest similar names
- Distinctive: line 52
If documentation already exists and is accurate: note it and suggest only additions
- Distinctive: line 53
If the code is too complex to document without understanding domain context: ask the user for clarification before writing
“Common” is measured: kept by at least 6 in 10 of the 6 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Generate or update documentation for: $ARGUMENTS
- Locate the target:
- If $ARGUMENTS is a file path, read it directly
- If $ARGUMENTS is a module or function name, use Grep and Glob to find the definition
- If $ARGUMENTS is empty, document the current directory's main entry point
- Read the target fully, including:
- All public functions, methods, classes, and constants
- Existing documentation (to update rather than duplicate)
- Related test files to understand intended behavior and edge cases
- Callers to understand real-world usage
- Detect the documentation format from the project:
- TypeScript/JavaScript: JSDoc (
/** */) with@param,@returns,@throws,@example - Python: Google-style docstrings with
Args:,Returns:,Raises:,Example: - Go: standard Go doc comments (
// FunctionName ...) - Other languages: use the idiomatic format for that language
- TypeScript/JavaScript: JSDoc (
- Generate documentation:
- Module/file-level: overview of what the module does, when to use it, key concepts
- Each public function/method: description, all parameters with types and meaning, return value, exceptions/errors thrown, at least one usage example
- Each public class: purpose, construction, key methods summary
- Skip private/internal functions unless they have complex logic worth explaining
- If a README does not exist for the module and the target is a directory:
- Create a
README.mdwith: module name, one-paragraph description, installation/import, quick start example, API summary table, notes on configuration
- Create a
- Write all documentation in-place (inline comments/docstrings) and also create or update any separate doc files.
- Report what was added or updated with a file list.
Requirements
- The target ($ARGUMENTS) must be a valid file path, module name, or function name in the project
Error Handling
- If the target is not found: report and suggest similar names
- If documentation already exists and is accurate: note it and suggest only additions
- If the code is too complex to document without understanding domain context: ask the user for clarification before writing
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

