/crewforth:testingfrom Crewforth
Guides writing and maintaining tests with a focus on behavior correctness, the testing pyramid, and avoiding false positives. Activates when writing tests, checking test status, or debugging flaky/slow suites.
Ships in Crewforth. 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.
Trigger phrases: "write a test", "run the tests", "coverage", "are the tests green", "unit test", "integration test", "tests pass locally", "flaky test", "test is flaky"
Goal: behavior correctness — test real behavior without breaking product code just to make a test pass.
what_it_tests_under_which_condition_what_it_expects — on failure it is clear what broke.| Excuse | Reality |
|---|---|
| "It is too simple to break." | Simple code breaks at its boundaries; the boundary test is the cheap one. |
| "I'll add the test after it works." | After it works, the test is written to pass, not to catch. |
| "I ran it by hand." | A hand check is not repeated on the next change. |
| "The old test fails, so I updated the expected value." | Find out first whether the code or the expectation is wrong. |
Green is evidence only if the test could have gone red. Shapes that check nothing:
Prove it can fail: break what the test covers — invert a condition, return a wrong constant — confirm it goes red, then restore. Still green means the test is documentation, not a gate: fix it or delete it, never count it as coverage. For a bug fix the same proof is the fix itself: the new test fails with the fix reverted and passes with it.
An intermittent failure gets exactly one outcome, decided the day it is seen: fix it, quarantine it (out of
the gating lane, never out of the suite, with an owner and a date), or escalate it as the product defect it
signals. Infrastructure flakes may get a bounded, logged retry; product flakes never do. Classifying them, the retry
rule, and what a quarantine entry must carry: references/flaky-triage.md.
dotnet test · npm test · pytest ·
go test ./...), don't assume one; critical paths are covered; no empty/meaningless tests.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
testing, test-pyramid, flaky-tests, test-quality, behavior-correctness
npx claudepluginhub crewforth/crewforth --plugin crewforth60 skills in this plugin
/a11yUse when building or changing UI, before shipping a user-facing screen, and when something cannot be
reached with a keyboard, read by a screen reader, or seen at low contrast.
/adrArchitecture Decision Record: context-decision-consequences, for decisions that are expensive to reverse.
Written under docs/adr/.
/api-designUse when an API contract is designed or changed: a new endpoint or resource, how its errors and pages
are returned, a field to add or remove, or a version to cut without breaking a consumer.
/automode-policyAuto-mode classifier config: inspect what the classifier that answers permission prompts is configured
with, and catch the silent case where a custom autoMode block drops the built-in block rules.
/backend-architectureDecide, record and apply the backend stack and architecture pattern.
Use when backend work starts with no recorded stack, or a framework/DB/pattern must be chosen.
/brainstormUse when the ask is still fuzzy and no direction is chosen yet: "not sure what we want", several ways to go,
or a scope to settle before any plan is written.
Other plugins' skills for the same job