How this skill is triggered — by the user, by Claude, or both
Slash command
/architecture:writing-testsThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
If something is hard to test, this points at architecture flaws, i.e. violation of high-cohesion/low-coupling.
If something is hard to test, this points at architecture flaws, i.e. violation of high-cohesion/low-coupling.
Always do Red-Green-Refactor, i.e. verify that the test actually tests the thing. That is, changing the thing expected to be under test actually makes the test fail.
In test expectations, Roughly:
Don't test private functions. Such functionality should be implicit in the tests of the next higher up public function. If you feel tempted to test private functions, you are either overeager, or something which is private should actually be public.
npx claudepluginhub eighttrigrams/claude-stuff --plugin architectureEnforces test quality principles including Arrange-Act-Assert structure, single behavior per test, and meaningful naming when writing or reviewing test code.
Guides effective test writing with AAA structure, testing pyramid, mock boundaries. Debugs flaky/brittle tests, chooses unit/integration/E2E boundaries.
Use when implementing any feature or bugfix, before writing implementation code