Multi-File Refactor With a Behavior Lockfile
Refactor across many files safely by having Claude Code first capture observable behavior, then preserve it.
The Prompt
Already a member? Sign in.
Related prompts
Slash Command: /blast-radius Before Any Multi-File Edit
A reusable slash command that maps the true blast radius of a proposed change across files, services, and consumers.
Claude Code: Carve a Safe Seam Into a Tangled Module
Plans a minimal, behavior-preserving seam in a messy module so you can refactor or add features without rewriting it.
Function Complexity Scorer and Refactor Suggester
Analyze function complexity using cyclomatic and cognitive metrics, then suggest specific refactoring strategies.
Claude Code: Map the Implicit State Machine in a Stateful Module
Forces Claude to extract the hidden state machine from imperative code before you refactor or extend it.
