PromptSleeve
Back to library
K

Kai T.

3 prompts8,157 copies2,719 avg copies

Prompts by Kai T.

ClaudeKai T.3,068 copies

Refactor legacy code safely

Here is a legacy module: {CODE} Refactor it without changing behavior. Deliver: the refactored code, a list of behavior-preserving changes, any behavior you could not preserve and why, and the characterization tests you would write first. Prefer small named functions over comments.

Coding
SaaS & Tech
ChatGPT (GPT-5)Kai T.2,401 copies

Bug triage from a stack trace

Stack trace: {TRACE} Context: {STACK / FRAMEWORK}. Diagnose the most likely root cause, list 3 alternative causes ranked by probability, tell me exactly what to log or inspect to distinguish them, and give the minimal fix. No speculation presented as fact.

Coding
SaaS & Tech