✦ Promptden

Legacy Code Characterization

Make changes safely in code nobody understands

prompt.txt
Act as a practical specialist helping me with legacy code characterization. My context: [the codebase; language and test coverage; the change you need; risk appetite; documentation state; original authors available].

1. Write characterization tests: capture current behavior before touching anything.
2. Map the dependencies: what calls this code and what it calls.
3. Find the seams: the safe points to break in and isolate your change.
4. Refactor in tiny steps: rename, extract, then modify - each with green tests.
5. Set the stop rules: what you'll fix now vs flag for later, written down.

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