/awesome-agent-skills:awesome-test-writingfrom awesome-agent-skills
Designs and writes tests that catch real regressions: unit, integration or E2E placement, fixtures, behavior-first assertions, characterization and property tests. Use when asked to write tests, add coverage or a regression test.
Ships in awesome-agent-skills. 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.
Write tests that fail when the behavior breaks and stay green through refactors. The deliverable is not coverage — it is a tripwire: for every realistic way the code under test could regress, at least one test goes red. A test that cannot fail against broken code is documentation wearing a test's costume.
Do not activate to review test quality in a diff (awesome-code-review Phase 4 owns that) or to find the root cause of a failure (awesome-bug-fix).
awesome-architecture-audit/references/design-vocabulary.md; without that skill installed, agreeing the seam list still binds and only the shared words are missing.TZ=UTC; seed or inject randomness; never sleep — wait on a condition with a deadline. A test that depends on wall clock, network weather, or execution order is flaky by construction.../../etc/passwd, ' OR 1=1--, <img onerror=…>, 10MB strings, RTL/zero-width Unicode) runs against every input-handling seam. Any serialize/parse or encode/decode pair gets a round-trip property: decode(encode(x)) == x over generated inputs, empty, maximal and non-ASCII values included — it catches the field one side forgot without a single hand-written example. Harness rules (determinism, size validation, resetting global state), per-ecosystem fuzzers (libFuzzer/AFL++/cargo-fuzz/Atheris/Go), sanitizer builds (ASan/UBSan), coverage-as-signal, and wycheproof crypto vectors are in references/fuzzing.md. Read it when the seam under test parses untrusted bytes, and not for ordinary unit work.awesome-code-review, or awesome-code-cleanup for a repo-wide pass), where the tests written here are what makes it safe.mutmut/cosmic-ray (Python), PIT (JVM), cargo-mutants (Rust), go-mutesting (Go). Act on survivors, not on the score — a mutation percentage chased for its own sake buys the same padding as a coverage number. Equivalent mutants (a change that cannot alter observable behavior) are noise: mark them and move on.freezegun vs injected clocks; t.Parallel() isolation vs transaction rollback). Discover the idiom from the repo's existing tests, not from another ecosystem's habits.Tests written — <module / behavior> — <N> tests
Cases covered:
- <scenario> → <expectation> [unit|integration|e2e]
...
Proven to fail: <which mutation/revert made each go red>
Run: <command> → <N passed, 0 failed, 0 errored, 0 skipped, exit 0> (new tests counted apart from the existing suite)
Not covered (and why): <cases deferred, with reason — not silence>
| Anti-pattern | Instead |
|---|---|
| Mirror assertion — expected value computed the same way as the code | Hardcode the known-correct value from the spec or a hand calculation |
| Change-detector test — snapshot of internals that fires on any redesign | Assert the observable contract; snapshot only true output surfaces |
| Assertion roulette — many bare asserts, unclear which failed | One behavioral focus per test; messages on non-obvious asserts |
| Testing the mock — asserting the stub returned what it was told to | Assert the system's behavior around the mock, and the request into it |
| Shape-only assertion — checks a value is there, not what it is | Assert the value itself |
| First-match-only check — finds one correct item among many and stops | Assert the whole collection: count, order, and that no wrong item is present |
| One-sided negative test — on rejection, asserts one consequence is absent | Assert every consequence is absent: no write, no event, no side effect, state unchanged |
| A mutation or boundary input the validator rejects first | Use an input that passes validation, so the test exercises the logic and not the validator (test the validator separately) |
| New framework beside the incumbent runner | The repo's runner, even if another is nicer |
| Coverage-driven padding — trivial getters tested, error paths bare | Case list from behavior and risk, boundaries and failures first |
| A test written after the fix and never seen red | Revert the fix, watch red, restore, watch green — both ways, every time |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub khasky/awesome-agent-skills --plugin awesome-agent-skills49 skills in this plugin
/awesome-accessibility-auditRead-only WCAG audit of UI and markup with a concrete fix per finding. Use when asked to check accessibility, a11y, keyboard or screen-reader support, or contrast./awesome-agents-md-generatorMines a codebase's real commands, conventions and boundaries into an agent-agnostic AGENTS.md, nested per package in monorepos, every rule backed by counted evidence. Use when asked to write, generate or refresh AGENTS.md or agent instructions for a repo./awesome-api-designDesigns or reviews an HTTP API's shape before code: resources, versioning, pagination, idempotency, filtering. Use when asked to design an API or an endpoint.Other plugins' skills for the same job