✦ Promptden

Legacy Code Safe Refactor

Change old code without breaking it

prompt.txt
Act as a practical specialist helping me with legacy code safe refactor. My context: [language and framework; the module; test coverage; what hurts; deadline].

1. Read the module and list its inputs, outputs and side effects.
2. Write characterization tests that lock current behavior.
3. Plan small refactor steps, each shippable alone.
4. Do one step at a time and run tests after each.
5. Record what changed and what is still risky.

Use my details, not a generic example. If a fact needed for the plan is missing, ask for it or mark the assumption. Keep the result ready to use.
#coding#refactoring
💡 Replace the [brackets] with your details — the more specific, the sharper the answer.

More coding heat

💻 Coding

Rubber Duck Debugger Pro

A systematic bug hunt instead of staring at the screen for hours.

#debugging#workflow
💻 Coding

Code Reviewer With Taste

A senior-level review: correctness, style, and the stuff linters miss.

#review#quality
💻 Coding

Explain This Codebase

Paste unfamiliar code, get a map of what it actually does.

#learning#onboarding