generate-docs
Skill60 starsChanged 34 days agoMITView on GitHub
Generate project documentation from an existing codebase. This documentation shall serve Agents and Humans. Creates a project overview, module documentation, and feature documentation with explicit inventories (files/dirs + symbols) for each module. Use this skill when onboarding a new project or creating initial documentation for an undocumented codebase.
17 other projects use a version of this.
Adopted by
Most recently taken up by
- LeonardoEnnes/ai-engineering-toolkittheir own version, first seen Nov 8, 2026
- primelogiclabio/claude-generate-docstheir own version, first seen Nov 8, 2026
- Ronnasayd/aipptheir own version, first seen Oct 20, 2026
- buildpad-ai/skillstheir own version, first seen Oct 16, 2026
- vhmarquez/argotheir own version, first seen Oct 15, 2026
- yagop/node-telegram-bot-apitheir own version, first seen Oct 8, 2026
Used with
Projects with it also use commit and code-review.
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.
SentrySkillcommit
Create commit messages following Sentry conventions. Use when committing code changes, writing commit messages, or formatting git history. Follows conventional commits with Sentry-specific issue references.
Also in 3 projects that use this
GoogleSkillcode-review
Adversarial systems, concurrency, memory-model, and architecture code review protocol. Use this skill whenever asked to review code, PRs, diffs, or branches in Filament.
Also in 3 projects that use this
Other versions17 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 17
- yagop/node-telegram-bot-api★ 9.2ksame name
- connerohnesorge/conclaude★ 37same name
- gohypergiant/agent-skills★ 25same name
- ZeyuLing/research_autocode_skills★ 9same name
- viknesh20-20/claude-code-tool-kit★ 7same name
- mfbari/claude-skill-generate-docs★ 5same name
- zaridan/job-hunt-hq★ 4same name
- Imran-ml/claude-skills★ 3same name
- aToy0m0/skills★ 2same name
- zahardev/aicontext★ 2same name
7 more not listed
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 repository17 other files it gives its agents.
- AGENTS.mdAGENTS.md
- docs/agents.mdAGENTS.md
- archive-legacy-docsSkill
- author-and-verify-implementation-planSkill
- browser-walkthroughSkill
- create-planSkill
- delegate-analysisSkill
- execute-work-packageSkill
- generate-handoverSkill
- report-environment-issueSkill
- resume-planSkill
- review-fixSkill
- review-implementation-planSkill
- review-implementationSkill
- review-planSkill
- update-docsSkill
- update-planSkill
The file
We split this skill into the rules it gives an agent
12 rules. 0 are common, 7 are distinctive, and 5 are very specific to this project.
0
Common
Most of the 16 edited versions we read keep these.
7
Distinctive
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 25
When a project has no structured documentation yet
- Distinctive: line 26
When onboarding to an unfamiliar codebase
- Distinctive: line 27
When the user asks to "document this project" or "create documentation"
- Very specific: line 29
Do NOT use this skill to update existing documentation - use update-docs instead.
- Distinctive: line 57
Check if any documentation already exists (skip what exists, or ask user)
- Very specific: line 72
Create docs/overview.md following the template structure:
- Distinctive: line 104
Ensure all cross-references between documents are valid
- Very specific: line 110
File-based interface: All output goes into docs/ directory files.
- Distinctive: line 111
No redundancy: Don't duplicate information between overview and module/feature docs.
- Distinctive: line 112
Stack-agnostic: Do not assume any specific language or framework.
- Very specific: line 114
No built-in explore agent: Do NOT use the built-in explore subagent type.
- Very specific: line 116
Create directories: Ensure docs/, docs/modules/, and docs/features/ exist before writing.
“Common” is measured: kept by at least 6 in 10 of the 16 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
Skill: Generate Documentation
What This Skill Does
Creates structured project documentation from an existing codebase. This documentation shall serve Agents and Humans when working in consecutive sessions with the project.
Produces three artifact types:
- Project Overview (
docs/overview.md) - High-level architecture, module listing, feature listing - Module Documentation (
docs/modules/<name>.md) - Overview + exhaustive inventories (files/dirs + symbols) - Feature Documentation (
docs/features/<name>.md) - How features work, with implementation references
When to Use
- When a project has no structured documentation yet
- When onboarding to an unfamiliar codebase
- When the user asks to "document this project" or "create documentation"
Do NOT use this skill to update existing documentation - use update-docs instead.
Execution Model
- The primary agent spawns
doc-explorer.doc-explorerexplores the repo and writes artifacts underdocs/. - Rationale: documentation is primarily anchored in the codebase (not in the conversation). Keeping exploration + writing in the same subagent session reduces context loss.
- For large codebases with multiple modules,
doc-explorerself-delegates: it spawns additionaldoc-explorerinstances scoped to individual modules (see Self-Delegation below). - The primary agent should keep chat output minimal (paths changed + any open questions).
Self-Delegation
For projects with 3+ modules or modules with 50+ files, doc-explorer SHOULD delegate per-module work to separate doc-explorer instances via the Task tool:
- Orchestrator instance: Identifies modules, creates
docs/overview.md, spawns per-module instances - Per-module instance: Receives scoped task ("document module X in directory Y"), explores only that module, writes
docs/modules/<name>.md - Orchestrator: Collects status, writes cross-cutting feature docs
This prevents token bloat from accumulating the entire codebase analysis in a single context.
Workflow
Step 1: Assess the Project
Gather information using read/glob/grep and git history.
- Identify the project type, language, framework
- Find the entry points, main modules, key directories
- Identify major features from code, tests, or existing README
- Check if any documentation already exists (skip what exists, or ask user)
Step 2: Identify Modules
A module is a self-contained part of the project. Criteria for module boundaries:
- Has its own directory/package structure
- Has a clear responsibility (e.g., "authentication", "API layer", "database")
- Could theoretically be replaced independently
- For single-module projects: the entire project is one module
For large codebases, self-delegate per-module analysis to separate doc-explorer instances.
Step 3: Create the Project Overview
Create docs/overview.md following the template structure:
- Fill in project purpose and architecture description
- List all identified modules with brief descriptions
- List key features with brief descriptions
- Include development setup if discoverable (package.json, Makefile, etc.)
- Link to module and feature docs (even if not yet created)
Step 4: Create Module Documentation
For each identified module, create docs/modules/<module-name>.md:
- Overview section (always): Responsibility, dependencies, boundaries
- Structure: Exhaustive directory/file inventory for the module (each entry has a purpose)
- Key Symbols: Exhaustive symbol inventory for the module (each entry has a purpose + location)
- Data Flow: How data moves through this module
For large modules, self-delegate: spawn a separate doc-explorer instance scoped to that module's directory.
Step 5: Create Feature Documentation
For each identified feature, create docs/features/<feature-name>.md:
- User flow: what the user experiences
- Technical flow: what happens under the hood
- Implementation references: which modules and symbols are involved
- Edge cases and limitations
Feature docs are inherently incomplete - document what is discoverable and note gaps.
Step 6: Verify and Report
- Ensure all cross-references between documents are valid
- Present a summary of created documents
- Flag any gaps or areas that need manual enrichment
Rules
- File-based interface: All output goes into
docs/directory files. Do not return documentation as chat messages. - No redundancy: Don't duplicate information between overview and module/feature docs. Use references.
- Stack-agnostic: Do not assume any specific language or framework. Discover everything from the codebase.
- Inventories are explained: File/dir and symbol listings MUST include a purpose; listings without explanation are not acceptable.
- No built-in explore agent: Do NOT use the built-in
exploresubagent type. Self-delegate todoc-explorerinstead. - Self-delegate for scale: For large codebases, spawn additional
doc-explorerinstances per module via the Task tool. - Create directories: Ensure
docs/,docs/modules/, anddocs/features/exist before writing.
Templates
This skill includes normative templates as bundled files. Only read the templates when processing them. Output MUST follow the template headings and frontmatter keys:
tpl-project-overview.md- Structure for the project overviewtpl-module-documentation.md- Structure for module documentationtpl-feature-documentation.md- Structure for feature documentation
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.

