bootspring analyze
Deep codebase analysis for understanding your project's architecture, patterns, and dependencies.
Overview#
The analyze command performs comprehensive codebase analysis to help you and AI assistants understand your project structure. It generates detailed reports about architecture, dependencies, patterns, and potential issues.
Usage#
bootspring analyze [command] [options]Commands#
| Command | Description |
|---|---|
| (default) | Run full analysis |
status | Show current progress |
resume | Continue from checkpoint |
reset | Reset workflow state |
Options#
| Option | Description |
|---|---|
--depth=<level> | Analysis depth: shallow, standard, deep |
--phase=<phase> | Run specific phase only |
--include=<glob> | Include pattern (e.g., "src/**") |
--exclude=<glob> | Exclude pattern |
Analysis Depth#
Shallow#
Quick scan focusing on structure and architecture only. Best for getting a quick overview.
bootspring analyze --depth=shallowStandard (Default)#
Standard analysis including patterns and dependencies. Recommended for most use cases.
bootspring analyzeDeep#
Comprehensive analysis with flow tracing and component analysis. Best for detailed understanding.
bootspring analyze --depth=deepAnalysis Phases#
The analysis runs through multiple phases:
- Structure Mapping - Parse files, build tree, detect monorepo
- Architecture - Identify layers, modules, patterns (MVC, etc.)
- Dependencies - Import graph, circular deps, unused deps
- Pattern Detection - Design patterns, anti-patterns, code smells
- Flow Tracing - Entry points, request flows, data flows
- Component Analysis - Component signatures, prop drilling, coupling
- Report Generation - Executive summary, Mermaid diagrams
Output#
Analysis generates a comprehensive report at /planning/CODEBASE_ANALYSIS.md containing:
- Executive summary with health score
- Architecture diagram (Mermaid)
- Module map with dependencies
- Entry points table
- Pattern findings
- Circular dependency warnings
- Recommendations
Examples#
1# Full analysis
2bootspring analyze
3
4# Quick scan
5bootspring analyze --depth=shallow
6
7# Deep analysis
8bootspring analyze --depth=deep
9
10# Check progress
11bootspring analyze status
12
13# Resume after interruption
14bootspring analyze resume
15
16# Analyze specific directory
17bootspring analyze --include="src/**"Related Commands#
bootspring audit- Quality and security auditbootspring onboard- Layer Bootspring onto existing projectsbootspring context- View project context