/harness-anchor:test-coverage-designfrom harness-anchor
Derives test coverage obligations from code and spec, finds gaps in what the runner actually executes, and designs minimal edge-case-first test sets. Use after implementation to prevent confident-wrong traps.
Ships in harness-anchor. 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.
A passing test suite proves only that the tests you wrote pass — not that they exercise what the feature actually requires or where the code is actually risky. This skill is the post-implementation discipline for closing that gap: derive what must be tested, check it against what the suite runs, and design the smallest test set that covers it.
| Phase | Owner | What |
|---|---|---|
| Pre-implementation (spec-driven, test-first) | superpowers test-driven-development | Red-green-refactor; write the failing test before the code. Deliberately code-blind. |
| Post-implementation (code-aware) | this skill + coverage-analyst | Read the actual code for risk; confirm the spec's obligations are met and actually run. |
Do not reimplement TDD's process here. Use TDD first for the spec-driven cases; use this after the
code exists for the cases TDD structurally can't see (its discipline forbids looking at the
implementation). The design techniques in coverage-reference.md serve both phases.
checksum() on large input, so a fixed-width-accumulator overflow ships).add_executable but never add_test-registered, so
/sanitize + /verify silently skip it and report "clean").These are classic confident-wrong traps, and a line-coverage tool misses them: the line can run under a small input yet never at the magnitude / in the scope where the bug bites.
feature_list.json description + done_criteria,
AGENTS.md, any docs/superpowers/specs|plans/*. List behaviours incl. malformed / empty /
boundary inputs the spec implies.coverage-reference.md. These are the ones the spec never names but the code reveals.coverage-reference.md).A different agent writing the tests decorrelates context bias, not shared model priors: the model
that wrote int h may also not think to test for overflow. So prefer defenses that don't depend on the
model's judgement:
For anything past a glance — risk constructs, large-data / numeric paths, "is this really covered before
I mark it done" — dispatch the coverage-analyst subagent (fresh context = it didn't write the
code, so it reads adversarially). Run /test-plan, or dispatch it directly via the Task tool. It
returns obligations + run-scope gaps + a minimal oracle-independent-first test set, persisted to
.harness-anchor/coverage-<ts>.md. It is read-only — it recommends; you write the tests, then
/verify + (for C/C++) /sanitize.
A green suite that skips the risk path is a false pass. Before flipping feature_list.json to
pass, the spec / code obligations must be exercised by tests the run actually executes — record the
coverage-<ts>.md report as evidence. See anti-hallucination-gates (the "Coverage obligations"
criterion).
anti-hallucination-gates — the Default-FAIL evidence gate this feedstest-driven-development — the pre-implementation, spec-driven counterpart/verify + verification-runner — runs the registered suite (this finds what's missing from it)cpp-sanitizers — for C/C++, the run-scope caveat + ub-failure-patterns.md (the C/C++ risk arm)docs-lookup — for unfamiliar test frameworks / coverage tools (don't guess)coverage-reference.md (sibling) — design-technique catalog + risk-construct checklistWhat SKILL.md sets; muted values are Claude Code's defaults
14 skills in this plugin
/anti-hallucination-gatesUse before claiming done/fixed/passing — or before asserting something is absent: not installed, not available, no such function, couldn't find it. Default-FAIL runs both ways — every claim needs an evidence path. A negative claim must carry its search scope and observation date; state calibrated uncertainty when evidence is missing./capturing-golden-rulesUse when the same mistake or bad pattern recurs, when a code-review comment is really a convention worth enforcing, or when you catch AI-generated drift/slop and want it to never happen again. Encodes the lesson as a durable rule in golden-rules.md — the feedback-flywheel / harness-layer-learning ratchet — instead of a one-off fix. Generic (language-agnostic)./npx claudepluginhub redtropig/harness-anchor --plugin harness-anchorOther plugins' skills for the same job