Implement / build
Write new code to a spec. Strongest with acceptance criteria and conventions attached.
Implement a debounced search hook with a 300ms delay and cancellation.
Plan first
Ask for an approach before code on anything non-trivial. Cheaper to correct a plan than a diff.
Plan the approach first, list the steps and files before writing code.
Refactor
Improve structure without changing behavior. Name the goal: readability, performance, testability.
Refactor this for readability, behavior must stay identical.
Debug
Find and fix a defect. Give the symptom, the trace, and how to reproduce.
Debug this, here's the error, the input, and expected output.
Review
Evaluate a diff or file for bugs, security, and style. Ask for severity-ranked findings.
Review this PR for bugs and security issues, ranked by severity.
Explain
Understand existing code. Great for onboarding to an unfamiliar repo.
Explain what this function does and why it's written this way.
Optimize
Improve a measurable metric, name it (latency, memory, bundle size) and the target.
Optimize this query, it's the N+1 hot path; cut DB round-trips.
Test
Generate tests for behavior, edge cases, and regressions. Name the framework.
Write tests (Vitest) covering empty, single, and overflow cases.