/test-quality:test-qualityfrom test-quality
Rules for writing and reviewing tests - few readable tests that each protect a behavior, shared test setup, real-dependency E2E tests over mock stacks, and no filler tests. Use when adding or changing tests, and when reviewing a change that adds or should add tests.
Ships in test-quality. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
A test suite nobody reads protects nothing. Prefer a few tests that each guard a real behavior, built on shared setup, over many tests that restate the code.
Read references/examples.md before applying the rules.
Each test answers "what breaks for a user or caller if this fails?" in one line. If it can't, it doesn't belong.
Not tests:
assert.Contains(msg, "failed") on a message built from a literal in the same test or the code under test).strings.Split).rg for testutil, testhelpers, harness, fixtures, support/, conftest.py, TestMain, factories, new*Harness, new*Site.code-structure R1).mise run test:e2e, or the repository's equivalent) so the fast suite stays fast.fnox), never from committed files.Before writing tests: find the harness (T3), decide which behaviors the change adds or changes, and for each pick unit (policy) or E2E (flow). Then write the minimum: one test or table row per behavior and failure mode, with its T1 line clear from the test name.
Review the tests the change adds, modifies, or makes redundant, and behavior it changes without a test.
Format: path:line Level (rule): the problem in at most two sentences, then the fix (which tests to delete or merge, which harness to use, which flow needs an E2E test). Verdict: High-Signal, Needs Work, or n/a (no test suite in the repository, or only docs, config, CI, or static assets changed).
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub dvcrn/skills --plugin test-quality