Test
# /test
Runs the project's test suite, and for every failure reports the test, the expected-vs-actual, the root cause in the source file, and a proposed fix to the code (not the test).
**Source:** ch03:221 names the command and states what it must do; ch04:380–390 prints a sample `/test` run. **The book never prints this command's body.** The body below is authored from ch03:221's own description of what `test.md` should do — "runs the test suite, analyzes failures, and suggests fixes... include your testing conventions so Claude Code fixes failing tests the way your team expects, not the fastest way it can think of" — turned into the six numbered steps. The file's own header comment says the same thing; nothing here is presented as the author's exact words.
## The promptwhen to use it
Community prompt sourced from the open-source GitHub repo regardo911/master-claude-code (NOASSERTION). A "Test" style prompt — adapt the placeholders and specifics to your task. Imported as-is and not independently retested here, so check the output before relying on it.
tags
writingcommunitygeneral
source
regardo911/master-claude-code · NOASSERTION
more in Writing
Writing✓ tested
Explain anything to a smart friend
great teacher who refuses to dumb things down
Writing✓ tested
Line-edit my draft (keep my voice)
sharp copy editor who tightens without flattening
Writing✓ tested
Outline a long piece before you write it
editor who structures the argument before a word is drafted