Doc Generator Skill
Purpose
Automatically generates professional documentation for projects by analyzing the codebase structure, detecting languages and frameworks, and creating:
CLAUDE.md - Guidance for Claude Code
README.md - Project documentation
Both files include the SDLC Agêntico signature: 🤖 Generated with SDLC Agêntico by @arbgjr
Features
- Language Detection: Auto-detects Python, JavaScript, TypeScript, Java, C#, Go, Rust, Ruby
- Framework Detection: Identifies Django, Flask, FastAPI, React, Next.js, Vue, Angular, Express, .NET, Maven, Gradle
- Directory Analysis: Generates project structure tree (max 3 levels deep)
- Smart Defaults: Language-specific installation, run, and test commands
- Test Detection: Identifies test files and directories
- Docker/CI Detection: Detects Dockerfile and GitHub Actions
- Professional Templates: Pre-built templates with all standard sections
- Signature: Adds SDLC Agêntico attribution to all generated docs
Usage
Via Slash Command
/doc-generate
Via Python Script
# Generate in current directory
python3 .claude/skills/doc-generator/scripts/generate_docs.py
# Generate in specific directory
python3 .claude/skills/doc-generator/scripts/generate_docs.py --output-dir /path/to/project
# Force overwrite existing files
python3 .claude/skills/doc-generator/scripts/generate_docs.py --force
Generated Content
CLAUDE.md Sections
- Project Overview
- Architecture
- Directory Structure
- Development Setup
- Development Workflow
- Code Standards
- Testing Strategy
- Deployment
- Common Tasks
- Troubleshooting
- SDLC Agêntico Signature
README.md Sections
- Overview
- Features
- Tech Stack
- Getting Started
- Usage
- API Documentation
- Architecture
- Development
- Deployment
- Contributing
- License
- Support
- SDLC Agêntico Signature
Detection Logic
Languages
Detected by file extensions:
- Python:
*.py
- JavaScript:
*.js, *.jsx
- TypeScript:
*.ts, *.tsx
- Java:
*.java
- C#:
*.cs
- Go:
*.go
- Rust:
*.rs
- Ruby:
*.rb
Frameworks
Detected by dependency files:
- Python:
requirements.txt → Django, Flask, FastAPI
- JavaScript/TypeScript:
package.json → React, Next.js, Vue, Angular, Express
- .NET:
*.csproj files
- Java:
pom.xml (Maven), build.gradle (Gradle)
Tests
Detected by:
- Test file patterns:
test_*.py, *_test.py, *.test.js, *.spec.js
- Test directories:
tests/, test/, __tests__/, spec/
Templates
Templates are located in .claude/skills/doc-generator/templates/:
CLAUDE.md.template - Claude Code guidance template
README.md.template - Project README template
Templates use {{placeholder}} syntax for variable substitution.
Signature Format
All generated files end with:
---
🤖 *Generated with [SDLC Agêntico](https://github.com/arbgjr/sdlc_agentico) by [@arbgjr](https://github.com/arbgjr)*
This provides:
- ✅ Attribution to SDLC Agêntico
- ✅ Link to project repository
- ✅ Link to author GitHub profile
- ✅ Professional branding
Integration
Agents
This skill can be invoked by:
- doc-generator agent (Phase 7 - Release)
- orchestrator agent (on-demand)
- Manual invocation via
/doc-generate command
Phase
Typically used in Phase 7 (Release) but can be invoked at any time.
Dependencies
- Python 3.11+
.claude/lib/python/sdlc_logging.py (structured logging)
Logging
All operations are logged with:
- Skill:
doc-generator
- Phase: 7 (Release)
- Events: Project analysis, file generation, errors
View logs:
# Grafana query
{skill="doc-generator"} | json
Examples
Python Project
Input:
requirements.txt with django
tests/ directory
Dockerfile
Output:
- CLAUDE.md with Django-specific setup
- README.md with Django stack
- Run command:
python manage.py runserver
- Test command:
pytest
TypeScript/React Project
Input:
package.json with react and typescript
__tests__/ directory
.github/workflows/
Output:
- CLAUDE.md with React/TS setup
- README.md with React stack
- Run command:
npm start
- Test command:
npm test
- Mentions CI automation
Limitations
- Placeholder content for features, usage examples (requires manual editing)
- Generic architecture descriptions (requires customization)
- Max 3 levels deep for directory structure
- Excludes common directories (node_modules, .git, venv, etc.)
Future Enhancements
Version History
v1.8.1 (2026-01-23)
- Initial implementation
- Language and framework detection
- Directory structure analysis
- CLAUDE.md and README.md generation
- SDLC Agêntico signature
1---2name: doc-generator-33description: Generates project documentation (CLAUDE.md and README.md) with SDLC Agêntico signature4---5
6# Doc Generator Skill
7
8## Purpose
9
10Automatically generates professional documentation for projects by analyzing the codebase structure, detecting languages and frameworks, and creating:
11- `CLAUDE.md` - Guidance for Claude Code
12- `README.md` - Project documentation
13
14Both files include the SDLC Agêntico signature: `🤖 Generated with SDLC Agêntico by @arbgjr`
15
16## Features
17
18- **Language Detection**: Auto-detects Python, JavaScript, TypeScript, Java, C#, Go, Rust, Ruby
19- **Framework Detection**: Identifies Django, Flask, FastAPI, React, Next.js, Vue, Angular, Express, .NET, Maven, Gradle
20- **Directory Analysis**: Generates project structure tree (max 3 levels deep)
21- **Smart Defaults**: Language-specific installation, run, and test commands
22- **Test Detection**: Identifies test files and directories
23- **Docker/CI Detection**: Detects Dockerfile and GitHub Actions
24- **Professional Templates**: Pre-built templates with all standard sections
25- **Signature**: Adds SDLC Agêntico attribution to all generated docs
26
27## Usage
28
29### Via Slash Command
30
31```bash
32/doc-generate
33```
34
35### Via Python Script
36
37```bash
38# Generate in current directory
39python3 .claude/skills/doc-generator/scripts/generate_docs.py
40
41# Generate in specific directory
42python3 .claude/skills/doc-generator/scripts/generate_docs.py --output-dir /path/to/project
43
44# Force overwrite existing files
45python3 .claude/skills/doc-generator/scripts/generate_docs.py --force
46```
47
48## Generated Content
49
50### CLAUDE.md Sections
51
52- Project Overview
53- Architecture
54- Directory Structure
55- Development Setup
56- Development Workflow
57- Code Standards
58- Testing Strategy
59- Deployment
60- Common Tasks
61- Troubleshooting
62- **SDLC Agêntico Signature**
63
64### README.md Sections
65
66- Overview
67- Features
68- Tech Stack
69- Getting Started
70- Usage
71- API Documentation
72- Architecture
73- Development
74- Deployment
75- Contributing
76- License
77- Support
78- **SDLC Agêntico Signature**
79
80## Detection Logic
81
82### Languages
83
84Detected by file extensions:
85- Python: `*.py`
86- JavaScript: `*.js`, `*.jsx`
87- TypeScript: `*.ts`, `*.tsx`
88- Java: `*.java`
89- C#: `*.cs`
90- Go: `*.go`
91- Rust: `*.rs`
92- Ruby: `*.rb`
93
94### Frameworks
95
96Detected by dependency files:
97- **Python**: `requirements.txt` → Django, Flask, FastAPI
98- **JavaScript/TypeScript**: `package.json` → React, Next.js, Vue, Angular, Express
99- **.NET**: `*.csproj` files
100- **Java**: `pom.xml` (Maven), `build.gradle` (Gradle)
101
102### Tests
103
104Detected by:
105- Test file patterns: `test_*.py`, `*_test.py`, `*.test.js`, `*.spec.js`
106- Test directories: `tests/`, `test/`, `__tests__/`, `spec/`
107
108## Templates
109
110Templates are located in `.claude/skills/doc-generator/templates/`:
111- `CLAUDE.md.template` - Claude Code guidance template
112- `README.md.template` - Project README template
113
114Templates use `{{placeholder}}` syntax for variable substitution.
115
116## Signature Format
117
118All generated files end with:
119
120```markdown
121---
122
123🤖 *Generated with [SDLC Agêntico](https://github.com/arbgjr/sdlc_agentico) by [@arbgjr](https://github.com/arbgjr)*
124```
125
126This provides:
127- ✅ Attribution to SDLC Agêntico
128- ✅ Link to project repository
129- ✅ Link to author GitHub profile
130- ✅ Professional branding
131
132## Integration
133
134### Agents
135
136This skill can be invoked by:
137- **doc-generator** agent (Phase 7 - Release)
138- **orchestrator** agent (on-demand)
139- Manual invocation via `/doc-generate` command
140
141### Phase
142
143Typically used in **Phase 7 (Release)** but can be invoked at any time.
144
145## Dependencies
146
147- Python 3.11+
148- `.claude/lib/python/sdlc_logging.py` (structured logging)
149
150## Logging
151
152All operations are logged with:
153- **Skill**: `doc-generator`
154- **Phase**: 7 (Release)
155- **Events**: Project analysis, file generation, errors
156
157View logs:
158```bash
159# Grafana query
160{skill="doc-generator"} | json
161```
162
163## Examples
164
165### Python Project
166
167Input:
168- `requirements.txt` with `django`
169- `tests/` directory
170- `Dockerfile`
171
172Output:
173- CLAUDE.md with Django-specific setup
174- README.md with Django stack
175- Run command: `python manage.py runserver`
176- Test command: `pytest`
177
178### TypeScript/React Project
179
180Input:
181- `package.json` with `react` and `typescript`
182- `__tests__/` directory
183- `.github/workflows/`
184
185Output:
186- CLAUDE.md with React/TS setup
187- README.md with React stack
188- Run command: `npm start`
189- Test command: `npm test`
190- Mentions CI automation
191
192## Limitations
193
194- Placeholder content for features, usage examples (requires manual editing)
195- Generic architecture descriptions (requires customization)
196- Max 3 levels deep for directory structure
197- Excludes common directories (node_modules, .git, venv, etc.)
198
199## Future Enhancements
200
201- [ ] Extract actual project description from git commits
202- [ ] Parse existing README/package.json for project metadata
203- [ ] Generate API docs from code comments
204- [ ] Create architecture diagrams (Mermaid)
205- [ ] Support for more languages (PHP, Swift, Kotlin)
206- [ ] Customizable templates per project type
207
208## Version History
209
210### v1.8.1 (2026-01-23)
211- Initial implementation
212- Language and framework detection
213- Directory structure analysis
214- CLAUDE.md and README.md generation
215- SDLC Agêntico signature