Cursor: Quarantine a Legacy Module Behind a Clean Interface
Wrap a messy legacy module behind a typed interface so new code stays clean while you defer the rewrite.
The Prompt
Already a member? Sign in.
Related prompts
Cursor Composer: Harden Every Input Boundary in a Module
Audits every external input entry point in a module and generates validation, normalization, and rejection code.
Cursor Composer: Migrate a Feature Behind a Kill Switch
Composer prompt that performs a risky migration with a feature flag wrapper and instant rollback path baked in.
Cursor Composer: Generate a Test Harness for Untested Code
Builds a meaningful test suite around legacy code by inferring its real behavior contract before touching it.
Cursor Composer: Split a Route Handler Into Layered Services
Refactors a bloated route handler into clean controller, service, and data-access layers without changing behavior.
