/dev-team:legacy-codefrom dev-team
Applies characterization tests and dependency-breaking techniques to safely modify code without test coverage. Use when changing untested code.
Ships in dev-team. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Role: worker. This command applies characterization-testing and dependency-breaking techniques directly to the code under change.
Techniques for safely modifying code that lacks tests or has poor structure. Based on the principle that legacy code is code without tests (Michael Feathers' definition) — regardless of age. The goal is to get code under test before changing it, then improve structure incrementally.
Code without tests. A well-structured 6-month-old codebase with no tests is legacy. A messy 10-year-old codebase with comprehensive tests is not. The presence or absence of tests determines whether you can change code safely.
A seam is a place where behavior can be altered without editing the code under test:
Tests that document what the code actually does, not what it should do. They lock down existing behavior so you can detect unintended changes. Characterization tests answer: "If I make a change here, what breaks?"
Step 2 of the algorithm — where can you observe the effects of the change? — is its own skill in tangled code. Before writing tests, reason about effects and place verification where it has leverage. The full method (effect sketches, interception points, pinch points, and the editing-safety techniques — Lean on the Compiler, Preserve Signatures, Single-Goal Editing) is in knowledge/legacy-test-strategy.md. In brief:
Graph-assisted exploration. Prefer CodeGraph/Repowise over raw Grep when identifying change points, tracing effects outward to interception/pinch points, and mapping the dependencies a seam needs to break — a pre-built call graph surfaces callers, callees, and blast radius faster and more completely than text search. See knowledge/codegraph-vs-graphify.md for tool selection and the fallback contract.
The everyday shortlist below covers most cases. The full 24-technique catalog (globals/singletons, non-OO seams, hard parameters, monster methods, with seam type and risk for each) lives in knowledge/dependency-breaking-techniques.md — read it when a break here doesn't present a seam.
| Technique | When to Use | Risk |
|---|---|---|
| Extract Interface | Class has a concrete dependency you need to substitute | Low |
| Extract Method | Long method with embedded logic you need to isolate (safest starting point) | Low |
| Parameterize Constructor | Class creates its own dependencies internally | Low |
| Extract and Override Call / Factory Method | A specific call or new in a constructor blocks the test | Low–Med |
| Subclass and Override Method | Need to neutralize or replace specific behavior in tests | Medium |
| Sprout / Wrap Method or Class | Adding new behavior to untested code (see decision below) | Low–Med |
| Adapt Parameter | Method depends on a type you can't use in tests | Medium |
Incrementally replace legacy components by routing new behavior through new code while old code remains operational:
Report the legacy code analysis: identified change points, test points, dependency breaks needed, characterization test targets, and the recommended refactoring sequence. Be concise — bullet list format; skip background explanation.
| Situation | Apply? |
|---|---|
| Modifying code without tests | Yes |
| Adding behavior to poorly structured code | Yes |
| Migrating legacy components to new architecture | Yes |
| Greenfield development | No |
| Code already well-tested and well-structured | No |
| Pure deletion of unused code | No |
What SKILL.md sets; muted values are Claude Code's defaults
103 skills in this plugin
/adr-toolsCreate and manage Architecture Decision Records using the npryce adr-tools CLI. Use when the user asks to "add an ADR", "record this decision", "create an ADR", "supersede ADR N", "link ADRs", "generate the ADR table of contents", or any request involving the `adr` command. Pairs with the adr-author agent — this skill is the mechanics (commands, files, links); adr-author is the decision framework (when an ADR is warranted) and the prose authoring./agent-auditAudit code-review agents, skills, and hooks for structural compliance. Use this when adding or modifying any agent, skill, or hook file, or for a periodic health check of the toolkit. Trigger phrases: "audit the agents", "check compliance", "validate the skills", "are the agents correct", or any time agent/skill files change./npx claudepluginhub bdfinst/agentic-dev-team --plugin dev-teamOther plugins' skills for the same job