Characterization Tests Before a Refactor
Writes tests that lock in a module's current behavior, including edge cases and quirks, so you can refactor safely.
37 prompts
Prompts for Claude Code, Anthropic's coding agent that runs in your terminal and works across a repository. They describe the task, the files and checks involved, and what done looks like, so the agent can plan, edit and verify.
1 result
Writes tests that lock in a module's current behavior, including edge cases and quirks, so you can refactor safely.
Start claude in the repository's root folder and paste the prompt as your first message. Fill in the blanks with real paths, commands and limits first; the agent can't guess them.
Only rules that apply to every task, such as build commands and code style, belong in CLAUDE.md. Keep one-off task prompts in the chat so they don't steer later work.
Most do. Codex, Cursor and Copilot's agent mode follow the same kind of task brief; swap any mention of CLAUDE.md for that tool's instruction file, such as AGENTS.md.