File contents Codebase Documenter
Generates comprehensive documentation for codebases - architecture, components, data flow, development guidelines.
When to Use
"explain this codebase"
"document the architecture"
"how does this code work"
"create developer documentation"
"generate codebase overview"
"create onboarding docs"
What It Documents
1. Project Overview
Purpose & vision
Target users
Key features
Technology stack
Project status
2. Architecture
High-level structure
Design patterns
Data flow
Control flow
Diagrams (Mermaid)
Architectural decisions
3. Directory Structure
Organization purpose
Naming conventions
Entry points
Core modules
Configuration locations
4. Key Components
Major modules
Classes & functions
Responsibilities
Interactions
Extension points
Code examples
5. External Integrations
APIs consumed
Databases & schemas
Authentication
Caching
Message queues
File storage
6. Data Models
Database schema
Data structures
Validation
Migrations
Data transformations
7. Development Setup
Prerequisites
Installation steps
Configuration
Running the app
Testing
Debugging
Troubleshooting
8. Development Guidelines
Coding conventions
Testing approach
Error handling
Logging
Security practices
Performance patterns
9. Deployment
Build process
Deployment steps
Environments
Monitoring
Rollback procedures
10. Contributing
Development workflow
Code review guidelines
Testing requirements
Documentation updates
Approach
Explore using Explore agent (thorough)
Map structure with Glob
Read critical files (README, entry points, core modules)
Identify patterns with Grep (imports, exports)
Trace execution paths
Extract knowledge from docs, comments, tests
Synthesize into cohesive documentation
Output
Creates markdown documentation:
docs/
├── README.md # Overview and quick start
├── ARCHITECTURE.md # System architecture
├── DEVELOPMENT.md # Development guide
├── API.md # API documentation
├── DEPLOYMENT.md # Deployment guide
└── CONTRIBUTING.md # Contribution guidelines
Or single comprehensive doc if preferred.
Depth Levels
Quick : High-level overview (15-30 min)
Standard : Comprehensive coverage (30-60 min)
Deep : Exhaustive with examples (60+ min)
Visual Elements
Mermaid diagrams (architecture, flow charts, sequence)
Code examples from codebase
Specific file:line references
Tables for structured info
Lists for guidelines
Tools Used
Task (Explore agent) : Codebase exploration
Glob : Map directory structure
Grep : Find patterns, imports, exports
Read : Analyze key files
Write : Create documentation
Bash : Extract metadata (git log, versions)
Success Criteria
Complete coverage of all areas
Clear explanations with examples
Visual diagrams for complex concepts
Specific file:line references
Actionable setup/development instructions
New developer can onboard using only docs
Organized, navigable structure
Accurate and current information
Integration
code-auditor : Includes quality/security context
project-bootstrapper : Documents bootstrap decisions
visual-html-creator : Create visual diagrams
1 --- 2 name: codebase-documenter 3 description: Codebase Documenter 4 --- 5 # Codebase Documenter 6 7 Generates comprehensive documentation for codebases - architecture, components, data flow, development guidelines. 8 9 ## When to Use 10 11 - "explain this codebase" 12 - "document the architecture" 13 - "how does this code work" 14 - "create developer documentation" 15 - "generate codebase overview" 16 - "create onboarding docs" 17 18 ## What It Documents 19 20 ### 1. Project Overview 21 - Purpose & vision 22 - Target users 23 - Key features 24 - Technology stack 25 - Project status 26 27 ### 2. Architecture 28 - High-level structure 29 - Design patterns 30 - Data flow 31 - Control flow 32 - Diagrams (Mermaid) 33 - Architectural decisions 34 35 ### 3. Directory Structure 36 - Organization purpose 37 - Naming conventions 38 - Entry points 39 - Core modules 40 - Configuration locations 41 42 ### 4. Key Components 43 - Major modules 44 - Classes & functions 45 - Responsibilities 46 - Interactions 47 - Extension points 48 - Code examples 49 50 ### 5. External Integrations 51 - APIs consumed 52 - Databases & schemas 53 - Authentication 54 - Caching 55 - Message queues 56 - File storage 57 58 ### 6. Data Models 59 - Database schema 60 - Data structures 61 - Validation 62 - Migrations 63 - Data transformations 64 65 ### 7. Development Setup 66 - Prerequisites 67 - Installation steps 68 - Configuration 69 - Running the app 70 - Testing 71 - Debugging 72 - Troubleshooting 73 74 ### 8. Development Guidelines 75 - Coding conventions 76 - Testing approach 77 - Error handling 78 - Logging 79 - Security practices 80 - Performance patterns 81 82 ### 9. Deployment 83 - Build process 84 - Deployment steps 85 - Environments 86 - Monitoring 87 - Rollback procedures 88 89 ### 10. Contributing 90 - Development workflow 91 - Code review guidelines 92 - Testing requirements 93 - Documentation updates 94 95 ## Approach 96 97 1. **Explore** using Explore agent (thorough) 98 2. **Map structure** with Glob 99 3. **Read critical files** (README, entry points, core modules) 100 4. **Identify patterns** with Grep (imports, exports) 101 5. **Trace execution** paths 102 6. **Extract knowledge** from docs, comments, tests 103 7. **Synthesize** into cohesive documentation 104 105 ## Output 106 107 Creates markdown documentation: 108 ``` 109 docs/ 110 ├── README.md # Overview and quick start 111 ├── ARCHITECTURE.md # System architecture 112 ├── DEVELOPMENT.md # Development guide 113 ├── API.md # API documentation 114 ├── DEPLOYMENT.md # Deployment guide 115 └── CONTRIBUTING.md # Contribution guidelines 116 ``` 117 118 Or single comprehensive doc if preferred. 119 120 ## Depth Levels 121 122 - **Quick**: High-level overview (15-30 min) 123 - **Standard**: Comprehensive coverage (30-60 min) 124 - **Deep**: Exhaustive with examples (60+ min) 125 126 ## Visual Elements 127 128 - Mermaid diagrams (architecture, flow charts, sequence) 129 - Code examples from codebase 130 - Specific file:line references 131 - Tables for structured info 132 - Lists for guidelines 133 134 ## Tools Used 135 136 - **Task (Explore agent)**: Codebase exploration 137 - **Glob**: Map directory structure 138 - **Grep**: Find patterns, imports, exports 139 - **Read**: Analyze key files 140 - **Write**: Create documentation 141 - **Bash**: Extract metadata (git log, versions) 142 143 ## Success Criteria 144 145 - Complete coverage of all areas 146 - Clear explanations with examples 147 - Visual diagrams for complex concepts 148 - Specific file:line references 149 - Actionable setup/development instructions 150 - New developer can onboard using only docs 151 - Organized, navigable structure 152 - Accurate and current information 153 154 ## Integration 155 156 - **code-auditor**: Includes quality/security context 157 - **project-bootstrapper**: Documents bootstrap decisions 158 - **visual-html-creator**: Create visual diagrams
ComeOnOliver/skillshub/tree/main/skills/mhattingpete/claude-skills-marketplace/codebase-documenter commit 4326970d2c
Frequently asked questions How do I install the Codebase Documenter skill? Run npx skillmds@latest add comeonoliver/codebase-documenter in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
What does the Codebase Documenter skill do? Codebase Documenter It is listed under Coding & Dev Tools on SkillMD.
Is Codebase Documenter safe to use? This skill has not completed SkillMD's automated safety review yet. Independent scanners report: SkillSpector: PASS, Skill Scanner: PASS. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
Which AI agents work with Codebase Documenter? This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Is Codebase Documenter free to use? Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
Who published Codebase Documenter? ComeOnOliver (@comeonoliver) published this skill. Their other Agent Skills are listed on their SkillMD profile.