What problem does it solve?
Understanding an existing system's real architecture is hard when documentation is missing or outdated. This Skill performs reverse architecture analysis on brownfield codebases: it reads the actual code, maps module dependencies, draws as-is C4 diagrams, locates coupling hotspots and architecture smells, and produces a system health assessment report.
Core Features & Use Cases
- Dependency Mapping: Statically analyze imports and runtime call chains to build module dependency graphs, detecting circular dependencies, cross-layer references, and shared databases.
- As-Is C4 Diagrams: Reverse-engineer Context, Container, and Component diagrams from code, deployment files, and configuration, annotated with tech stacks and communication protocols.
- Smell Detection & Health Scoring: Identify structural, data, and deployment smells (god services, distributed monoliths, N+1 queries), then score scalability, availability, maintainability, observability, security, and cost on a 1-5 scale.
- Use Case: You inherit a legacy microservices system with no documentation. Use this Skill to read the code, generate the as-is architecture diagrams, list the top 5 coupling hotspots, and produce a health assessment report that feeds directly into evolution planning.
Quick Start
Assess the architecture of the current repository by mapping module dependencies, drawing as-is C4 diagrams, and producing a system health report.