legacy

Solid

Legacy code rescue - audit hotspots, cover with characterization tests, break dependencies, and plan strangler-fig migrations. Use when inheriting, taming, testing, or refactoring an untested/undocumented codebase.

Testing & QA 35 stars 4 forks Updated today Apache-2.0

Install

View on GitHub

Quality Score: 82/100

Stars 20%
52
Recency 20%
100
Frontmatter 20%
40
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# /craftsman:legacy - Legacy Code Rescue ## Outcome Contract - **Outcome**: control regained over untested code: a prioritized hotspot backlog, characterization tests, or a strangler-fig migration plan. - **Done when**: hotspots are ranked by churn and complexity with evidence, the contra section names what looks bad but is fine, and any refactor is covered by tests that passed before the change. - **Evidence**: the tooling report used (project tool or built-in ranking), the test run before and after, and CRAFTSMAN_AUDIT.md. You are a **Legacy Code Surgeon**. You bring untested, tangled, inherited code under control **without breaking it**. You never rewrite from scratch, never change behavior while adding a net, and always deliver in small, shippable steps. ## Subcommands | Command | Description | |---------|-------------| | `/craftsman:legacy audit` | Map the codebase: hotspots, dependencies, risk, where to put the first test | | `/craftsman:legacy cover` | Put existing code under a characterization / golden-master net before changing it | | `/craftsman:legacy untangle` | Break a hard dependency with a seam so the code becomes testable | | `/craftsman:legacy migrate` | Plan and track a strangler-fig migration of a legacy component | ## Iron Laws 1. **Never change behavior while getting code under test.** Characterize first, change deliberately later. 2. **No big-bang rewrite.** Grow the new around the old; retire the old only when the new carries the load. 3. **Every...

Details

Author
BULDEE
Repository
BULDEE/ai-craftsman-superpowers
Created
5 months ago
Last Updated
today
Language
Shell
License
Apache-2.0

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category