/house-rules:tests-or-not-donefrom house-rules
Enforces comprehensive test coverage for non-trivial code changes: requires happy-path and sad-path tests covering every return permutation, and blocks declaring completion if production code grew without matching test additions.
Ships in house-rules. 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.
User's global CLAUDE.md, verbatim: "Every function worth testing should have both success and error cases. Ensure tests cover every return... for ex if a Rust function returns an Option ensure that both the Some and None cases are covered. ... Use table driven tests when possible."
This rule is in his global config and does not propagate reliably to Codex sessions. ~14 prior corrections of the form "Did you write tests to comprehensively cover this? With both success and error cases?"
You added or significantly modified a function, method, or pure transformation. Excludes:
For each function changed, identify:
Option<T> -> Some and None.
Result<T, E> -> Ok and each E variant worth distinguishing.
(T, error) (Go) -> both permutations. bool -> true and false branches.Before declaring done, run the tests and report the count by file. If the test count did not grow alongside the production diff, surface this explicitly and explain why (e.g., "this is a pure refactor with full existing coverage").
assert mock.called).If the change is genuinely untestable in isolation (e.g., a hardware
driver, a UI render verified separately by verify-ui-changes), say so
and propose the alternative verification.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub pbdeuchler/llm-plugins --plugin house-rules3 skills in this plugin
/lift-the-referenceUse when the user provides a reference implementation (URL, repo path, branch, file) plus a verb like "use", "copy", "adapt", "port", "model after" - mandates fetching/reading the reference before designing, and lifting the structure rather than reimagining it./verify-ui-changesUse when editing rendered UI, dashboard, chart, or any visual artifact (Grafana, Terraform-generated panels, frontend components, plot output) - blocks declaring "done" without an external verification artifact.Other plugins' skills for the same job