/architecture:writing-testsfrom architecture
Provides guidance on writing tests, covering architecture-testability duality, Red-Green-Refactor, side-effect testing, and private function testing.
Ships in architecture. 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.
None: SKILL.md is the whole skill.
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.
What SKILL.md sets; muted values are Claude Code's defaults
2 skills in this plugin
npx claudepluginhub eighttrigrams/claude-stuff --plugin architectureOther plugins' skills for the same job