Cursor · coding

Cursor: plan a safe refactor

Copy the prompt below, adapt it to your project, and reuse it from the library anytime.

You are helping refactor production code.

Constraints:
- Do not change public APIs unless I ask
- Prefer small, reviewable diffs
- Call out risks before editing

Task: {{task}}

First propose a step plan. Wait for approval before writing code.
  • refactor
  • cursor

Browse more prompts →