/principle:principle-test-behavior-not-implementationfrom principle
Guides writing tests that assert observable behavior and contracts rather than implementation details. Helps avoid brittle tests that break on refactoring.
Ships in principle. 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.
Call the subject through the interface its users use. Assert concrete results or external effects with an independent oracle: literal payloads, persisted values, recipients, counts and relevant ordering.
Ask which plausible wrong implementation would still pass. Replace tautologies, assertions on fixture-only data and helper-call choreography with checks that fail on those regressions. A mock is useful at an external boundary when its payload and effect are the contract.
Empty, undefined and absent effects can be correct outcomes. Keep those checks, and add discriminating inputs: found versus missing, authorized versus unauthorized, accepted versus declined. A stored unauthorized record is stronger evidence than an empty fixture alone. Positive counterparts defeat unconditional-empty mutants. For a shared decision, cover allowed and denied outcomes and each intentional caller difference.
Keep meaningful schema relations and compile-time tests. Evaluate an assertion by the contract it protects, not a blacklist of assertion methods.
Distinct from: principle-scale-verification (choosing which checks to run), principle-never-weaken-a-check (a gate fails), principle-prove-it-works (claiming a result works).
Done: a named plausible regression fails the test.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
54 skills in this plugin
/principle-attack-the-premiseWHEN repeated fixes sharing an assumption fail the same check; NOT for a first unexplained failure or a settled mechanical edit; tests the shared premise before another fix./principle-build-the-leverWHEN repetitive work or a difficult check benefits from a rerunnable tool; NOT when an existing command or a direct small edit already suffices; builds the smallest useful lever./principle-capture-the-baselineWHEN about to change something whose result you will verify or compare; NOT for read-only investigation or syncing a git base; records pre-change evidence so the check reads old value versus new value.npx claudepluginhub mintuz/skills --plugin principleOther plugins' skills for the same job