Loading...
Loading...
Analyze a codebase and generate comprehensive documentation including architecture, components, interfaces, workflows, and dependencies. Creates an AI-optimized knowledge base (index.md) and can consolidate into AGENTS.md, README.md, or CONTRIBUTING.md. Use when the user wants to document a codebase, create AGENTS.md, understand system architecture, generate developer documentation, or asks to "summarize the codebase".
npx skill4agent add m31uk3/ai-skills codebase-summary| Parameter | Default | Description |
|---|---|---|
| Current directory | Path to analyze |
| | Documentation output directory |
| | Create consolidated file at codebase root |
| | Target: AGENTS.md, README.md, or CONTRIBUTING.md |
| | Check for cross-document inconsistencies |
| | Identify documentation gaps |
| | Update existing docs based on git changes |
codebase_pathoutput_dirupdate_modeindex.mdgit log --oneline -20python {baseDir}/scripts/analyze_structure.py "{codebase_path}" --depth 4 --output "{output_dir}/codebase_info.md"python {baseDir}/scripts/extract_dependencies.py "{codebase_path}" --output "{output_dir}/dependencies.md"{output_dir}/graphclassDiagramerDiagramsequenceDiagram{baseDir}/references/documentation-templates.mdcheck_consistencycheck_completeness{output_dir}/review_notes.mdconsolidatetrueconsolidate_target| Target | Focus |
|---|---|
| AGENTS.md | AI context, directory structure, coding patterns, testing |
| README.md | Project overview, installation, usage, getting started |
| CONTRIBUTING.md | Dev setup, coding standards, contribution workflow |
update_mode{consolidate_target} # At codebase root if consolidate=true
{output_dir}/
├── index.md # Primary AI context (read this first)
├── codebase_info.md # Structure analysis output
├── architecture.md # System architecture
├── components.md # Component details
├── interfaces.md # APIs and interfaces
├── data_models.md # Data models
├── workflows.md # Key workflows
├── dependencies.md # Dependencies output
└── review_notes.md # Review findingsSetting up...
✅ Created {output_dir}
Analyzing structure...
✅ Found X packages across Y languages
✅ Identified Z components
Generating documentation...
✅ Created index.md
✅ Generated architecture.md, components.md...
Reviewing...
✅ Consistency check complete
✅ Found N gaps documented in review_notes.md
Done!
✅ Documentation at {output_dir}
✅ Primary context file: {output_dir}/index.md{baseDir}/scripts/analyze_structure.py{baseDir}/scripts/extract_dependencies.py{baseDir}/references/documentation-templates.md