Step 04 of 9 2 weeks· advanced
Step 4: Lock Down Current Behavior
Capture the legacy system's behavior as a parity test suite before changing anything. The new system has to match the legacy — including its quirks.
Recommended prompts
Use one of these to do the work in your IDE
Open the template to read it in full. Click Copy prompt to grab it (with your stack values pre-filled where they apply) — then paste into Claude Code, Cursor, or wherever you build.
Recommended skills
Drop these into Claude Code for this phase
Skills auto-trigger on the right kind of request. Install once; they apply to every prompt that fits.
Recommended MCP configs
Wire these tools into Claude Code first
MCP servers give Claude Code direct access to external systems (Jira, browsers, databases). Configure once.
When you're done
Verify these in your own work before moving on
This is a checklist for you to mentally tick off in your repo and IDE — the site doesn't track it, you do.
- Parity test framework at /tests/parity/ with record + verify modes
- 30-50 test cases covering slice 1 capabilities
- Golden responses captured from legacy and committed to git
- Tests run in CI on every PR
- Quirks (legacy bugs users depend on) explicitly documented as expected behavior
Common pitfalls
What goes wrong at this step
- Skipping parity tests — "it's a rewrite, we'll fix bugs along the way". Users will notice every change
- Pixel-perfect screenshot diffs — too brittle. Prefer behavioral assertions
- Treating quirks as bugs to fix during migration — fix them AFTER, with explicit user comms
- Not committing golden files to git — they're the migration contract