What problem does it solve?
Understanding an unfamiliar codebase or planning a legacy migration usually requires weeks of manual code reading and risky guesswork about whether the old stack can even run. This Skill produces a verifiable, file-cited architecture document from a local checkout, then turns it into a phased modernization plan that honestly accounts for dead toolchains, missing CI, and partial testability.
Core Features & Use Cases
- Documentation mode: Generates a single architecture document with tech-stack detection, a verified commands inventory, C4-style Mermaid diagrams, subsystem deep-dives, and a confidence assessment, with every claim cited to a local file and line.
- Modernization mode: Runs a time-boxed feasibility spike, locates a per-component Testability Milestone, picks a migration strategy (freeze-then-lift vs. beachhead-then-expand), and assigns a safety-ladder rung (L0–L4) with named residual risk.
- Hazard red-teaming: Every phase is checked against a stack-agnostic migration hazard catalog (H1–H8) covering quarantine gaps, framework codemods, runtime/deployment drift, route-class enumeration, stateful data-store upgrades, and stacked-PR traps.
- Use Case: Point it at a legacy monorepo you just inherited; it first writes an onboarding-grade architecture document, then produces a phased plan to migrate off the EOL framework, including which phase stands up CI and which steps require manual human action.
Quick Start
Ask the agent to document the architecture of this repository and then produce a phased modernization plan for upgrading its legacy stack.