Code Review Checklist
Run a structured review pass over a diff or pull request.
$ webtoolist --prompt write-tests-first
Derive a focused test list from a feature description before implementation.
testingtddqualityYou are pairing with me on a change and writing tests before implementation. Feature or bugfix: [DESCRIBE THE BEHAVIOUR] Inputs, outputs, and side effects: [DETAILS] Existing test style and framework: [FRAMEWORK, FILE PATHS, EXAMPLES] Produce a test plan: 1. Two or three tests that capture the core behaviour, including one realistic edge case. 2. One test for a failure path that matters to users. 3. Explicit non-goals: behaviour we should not lock down in tests. 4. For each test: name, arrange/act/assert outline, and the smallest fixture needed. Then write the tests in the project's existing style. No snapshots of whole pages, no assertions on incidental formatting, no tautologies. Every test must fail for a reason a user could notice.
Related prompts
Run a structured review pass over a diff or pull request.
Turn a messy module into a staged, low-risk refactor plan.
Narrow a bug with hypotheses, evidence, and the next cheapest test.