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
Converted and distributed by TomeVault — claim your Tome and manage your conversions.
1---2name: doc-generator-23description: Generates project documentation (CLAUDE.md and README.md) with SDLC Agêntico signature4---56# Doc Generator Skill78## Purpose910Automatically generates professional documentation for projects by analyzing the codebase structure, detecting languages and frameworks, and creating:11- `CLAUDE.md` - Guidance for Claude Code12- `README.md` - Project documentation1314Both files include the SDLC Agêntico signature: `🤖 Generated with SDLC Agêntico by @arbgjr`1516## Features1718- **Language Detection**: Auto-detects Python, JavaScript, TypeScript, Java, C#, Go, Rust, Ruby19- **Framework Detection**: Identifies Django, Flask, FastAPI, React, Next.js, Vue, Angular, Express, .NET, Maven, Gradle20- **Directory Analysis**: Generates project structure tree (max 3 levels deep)21- **Smart Defaults**: Language-specific installation, run, and test commands22- **Test Detection**: Identifies test files and directories23- **Docker/CI Detection**: Detects Dockerfile and GitHub Actions24- **Professional Templates**: Pre-built templates with all standard sections25- **Signature**: Adds SDLC Agêntico attribution to all generated docs2627## Usage2829### Via Slash Command3031```bash32/doc-generate33```3435### Via Python Script3637```bash38# Generate in current directory39python3 .claude/skills/doc-generator/scripts/generate_docs.py4041# Generate in specific directory42python3 .claude/skills/doc-generator/scripts/generate_docs.py --output-dir /path/to/project4344# Force overwrite existing files45python3 .claude/skills/doc-generator/scripts/generate_docs.py --force46```4748## Generated Content4950### CLAUDE.md Sections5152- Project Overview53- Architecture54- Directory Structure55- Development Setup56- Development Workflow57- Code Standards58- Testing Strategy59- Deployment60- Common Tasks61- Troubleshooting62- **SDLC Agêntico Signature**6364### README.md Sections6566- Overview67- Features68- Tech Stack69- Getting Started70- Usage71- API Documentation72- Architecture73- Development74- Deployment75- Contributing76- License77- Support78- **SDLC Agêntico Signature**7980## Detection Logic8182### Languages8384Detected 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`9394### Frameworks9596Detected by dependency files:97- **Python**: `requirements.txt` → Django, Flask, FastAPI98- **JavaScript/TypeScript**: `package.json` → React, Next.js, Vue, Angular, Express99- **.NET**: `*.csproj` files100- **Java**: `pom.xml` (Maven), `build.gradle` (Gradle)101102### Tests103104Detected by:105- Test file patterns: `test_*.py`, `*_test.py`, `*.test.js`, `*.spec.js`106- Test directories: `tests/`, `test/`, `__tests__/`, `spec/`107108## Templates109110Templates are located in `.claude/skills/doc-generator/templates/`:111- `CLAUDE.md.template` - Claude Code guidance template112- `README.md.template` - Project README template113114Templates use `{{placeholder}}` syntax for variable substitution.115116## Signature Format117118All generated files end with:119120```markdown121---122123🤖 *Generated with [SDLC Agêntico](https://github.com/arbgjr/sdlc_agentico) by [@arbgjr](https://github.com/arbgjr)*124```125126This provides:127- ✅ Attribution to SDLC Agêntico128- ✅ Link to project repository129- ✅ Link to author GitHub profile130- ✅ Professional branding131132## Integration133134### Agents135136This skill can be invoked by:137- **doc-generator** agent (Phase 7 - Release)138- **orchestrator** agent (on-demand)139- Manual invocation via `/doc-generate` command140141### Phase142143Typically used in **Phase 7 (Release)** but can be invoked at any time.144145## Dependencies146147- Python 3.11+148- `.claude/lib/python/sdlc_logging.py` (structured logging)149150## Logging151152All operations are logged with:153- **Skill**: `doc-generator`154- **Phase**: 7 (Release)155- **Events**: Project analysis, file generation, errors156157View logs:158```bash159# Grafana query160{skill="doc-generator"} | json161```162163## Examples164165### Python Project166167Input:168- `requirements.txt` with `django`169- `tests/` directory170- `Dockerfile`171172Output:173- CLAUDE.md with Django-specific setup174- README.md with Django stack175- Run command: `python manage.py runserver`176- Test command: `pytest`177178### TypeScript/React Project179180Input:181- `package.json` with `react` and `typescript`182- `__tests__/` directory183- `.github/workflows/`184185Output:186- CLAUDE.md with React/TS setup187- README.md with React stack188- Run command: `npm start`189- Test command: `npm test`190- Mentions CI automation191192## Limitations193194- Placeholder content for features, usage examples (requires manual editing)195- Generic architecture descriptions (requires customization)196- Max 3 levels deep for directory structure197- Excludes common directories (node_modules, .git, venv, etc.)198199## Future Enhancements200201- [ ] Extract actual project description from git commits202- [ ] Parse existing README/package.json for project metadata203- [ ] Generate API docs from code comments204- [ ] Create architecture diagrams (Mermaid)205- [ ] Support for more languages (PHP, Swift, Kotlin)206- [ ] Customizable templates per project type207208## Version History209210### v1.8.1 (2026-01-23)211- Initial implementation212- Language and framework detection213- Directory structure analysis214- CLAUDE.md and README.md generation215- SDLC Agêntico signature216217---218> Converted and distributed by [TomeVault](https://tomevault.io/claim/arbgjr) — claim your Tome and manage your conversions.219<!-- tomevault:4.0:skill_md:2026-04-13 -->