generate-docs
Skill2 starsChanged 2 months agoMITView on GitHub
Analyze a project's codebase and automatically generate comprehensive technical documentation (overview, API reference, setup guide). Use when asked to "generate docs", "create documentation", or "explain this project".
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
- DasDigitaleMomentum/opencode-processing-skillstheir own version, first seen Oct 9, 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
- DasDigitaleMomentum/opencode-processing-skills★ 60same 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
- 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 repository14 other files it gives its agents.
- aws-cdk-cloudformation-designSkill
- aws-cli-operationsSkill
- aws-cost-auditSkill
- aws-drawio-architectureSkill
- cognitive-rhythm-writingSkill
- de-ai-uiSkill
- gcloud-cli-operationsSkill
- git-daily-operationsSkill
- internal-doc-authoringSkill
- japanese-tech-writingSkill
- pleasanter-script-deploySkill
- prepare-public-release-docsSkill
- system-deploy-checkSkill
- system-designSkill
The file
We split this skill into the rules it gives an agent
5 rules. 0 are common, 3 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 16 edited versions we read keep these.
3
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 30
If omitted, output defaults to docs/.
- Very specific: line 37
Read key files (e.g., README.md, docker-compose.yml, requirements.txt, package.json)
- Distinctive: line 181
Include runnable examples: when possible (requests, responses, config)
- Distinctive: line 186
Do not overwrite existing docs (e.g., README.md)
- Distinctive: line 187
Ensure the output directory exists (create if missing)
“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
Project Documentation Auto-Generation Skill
Overview
This skill analyzes a project's source code and generates the following documents:
- Project Overview (
overview.md) - what the project does, architecture diagram, core flows - API Reference (
api-reference.md) - endpoints list, request/response examples - Setup Guide (
setup-guide.md) - prerequisites, setup steps, operational commands, troubleshooting - Index (
index.md) - document index and quick start
Usage
/generate-docs [output-directory]If omitted, output defaults to docs/.
Workflow
Step 1: Understand the project structure
- Inspect the directory structure
- Read key files (e.g.,
README.md,docker-compose.yml,requirements.txt,package.json) - Identify entry points (e.g.,
main.py,app.py,src/index.ts)
Step 2: Analyze the code
- Extract symbol/structure summaries for major modules
- Identify integrations (APIs, databases, external services)
- Collect configuration files and environment variables
Step 3: Generate documentation
Generate each document following the templates below (full templates: TEMPLATES.md).
overview.md template
# {Project Name} - Technical Overview
## 1. Project Overview
### 1.1 Purpose
### 1.2 Key Features
### 1.3 Intended Users
## 2. System Architecture
### 2.1 Architecture Diagram (Mermaid)
### 2.2 Components
## 3. Core Flows
### 3.1 Main Flow (Mermaid sequence diagram)
## 4. Data Model
### 4.1 ER Diagram (Mermaid)
### 4.2 Table/Entity Notes
## 5. Repository Structure
### Directory Tree
## 6. Key Modules
### Responsibilities and important functions/classes
## 7. Environment Variables
### Table format
## 8. Security
### Auth, authorization, encryption
## 9. Operational Notes
## 10. Future Improvementsapi-reference.md template
# API Reference
## Authentication
### Login / Logout
## Endpoints
### Each endpoint
- method + path
- parameters (table)
- request example
- response example
## Error Responses
### HTTP status codessetup-guide.md template
# Setup & Operations Guide
## 1. Prerequisites
### Required software
## 2. First-time Setup
### Environment variables
### Run commands
## 3. Docker Notes (if applicable)
## 4. Operations
### Container commands
### Database commands
## 5. Troubleshooting
### Common issues and fixes
## 6. Backups
## 7. Production Configuration
### Security checklistMermaid diagram rules
Architecture diagram
graph TB
subgraph Users
Browser[Browser]
end
subgraph Server
App[Application]
DB[(Database)]
end
Browser --> App
App --> DBSequence diagram
sequenceDiagram
participant U as User
participant S as Server
participant D as Database
U->>S: Request
S->>D: Query
D-->>S: Result
S-->>U: ResponseER diagram
erDiagram
User ||--o{ Order : has
User {
int id PK
string name
}
Order {
int id PK
int user_id FK
}Output quality rules
- Write in English (keep proper nouns as-is; add Japanese only if explicitly requested)
- Use Mermaid diagrams proactively for visual understanding
- Prefer tables for parameters, env vars, endpoints, etc.
- Include runnable examples when possible (requests, responses, config)
- Make it approachable (explain terms briefly; step-by-step where helpful)
Notes
- Do not overwrite existing docs (e.g.,
README.md) - Ensure the output directory exists (create if missing)
- Mask secrets (API keys, tokens) using placeholders like
your-api-key-here
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.

