test-plan

test-plan is a command for Claude Code from Redtropig/harness-anchor. It costs 63 tokens per session (755 once invoked), scanned A, original, MIT.

A post-implementation review of test coverage for a feature. It compares the feature's code and specification with the tests that actually run, including important paths the test runner may miss.

In plain words
What is it for?
Use it after implementing a feature and before marking it as passing, alongside a verification run, to find missing tests and coverage gaps.
Why use it?
It finds untested requirements and execution paths that a normal verification run does not cover. This helps identify the smallest additional test set needed for confidence.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions subagents.

Part of the harness-anchor plugin — 14 skills, 9 commands, 5 agents, 5 hooks shipped together

Good fit Use it after implementing a feature and before marking it as passing, alongside a verification run, to find missing tests and coverage gaps.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/redtropig/harness-anchor/test-plan
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/Redtropig/harness-anchor

Made for: Claude Code.

Or install harness-anchor, the plugin that ships this one along with the rest of its 14 skills, 9 commands, 5 agents, 5 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for test-plan

README.md
[![agentmods](https://agentmods.dev/badge/commands/redtropig/harness-anchor/test-plan.svg)](https://agentmods.dev/commands/redtropig/harness-anchor/test-plan)
Your own site
<a href="https://agentmods.dev/commands/redtropig/harness-anchor/test-plan"><img src="https://agentmods.dev/badge/commands/redtropig/harness-anchor/test-plan.svg" alt="Measured on agentmods" height="20"></a>
Per session 63 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 755 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00063 $0.00755
Opus 5 $0.00032 $0.00378
Sonnet 5 $0.00013 $0.00151
Haiku 4.5 $0.00006 $0.00076

Measured 7d ago against content hash 17af8e0c2a5c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

test-plan scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

commands/test-plan.md · 64 lines

How it starts

The opening of the file, as written. The whole thing — 64 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/test-plan

Produce a coverage plan for the active feature: what must be tested, what the suite already covers, what's missing (including paths the test runner never runs), and the minimal set of tests to close the gaps. Runs after implementation — it complements /verify (which runs the registered suite; this finds what's missing from it).

This is the post-implementation, code-aware counterpart to superpowers TDD's pre-implementation test-first pass. Like /verify, it uses a fresh-context subagent so the analysis isn't biased by the agent that wrote the code.

Steps

  1. Dispatch coverage-analyst via the Task tool:

    Task tool with:
      subagent_type: coverage-analyst
      prompt: Analyse test coverage for the active feature in feature_list.json (or the feature named in
              the arguments). Derive obligations from code + spec, diff against the test set and the
              verified run scope, and recommend a minimal oracle-independent-first test set. Follow the
              fixed report format in your instructions. Read-only — do not write code or tests.
    

    If the user passed a feature id or path as an argument, name it in the prompt.

  2. Surface the report verbatim### Obligations derived, ### Run-scope gaps, ### Recommended tests, ### Coverage verdict, ### Uncertainties. The point of fresh-context analysis is the user sees the analyst's actual words.

  3. If ### Uncertainties is non-empty: ask the user those questions before acting — the analyst escalated because an oracle couldn't be derived. Do not fabricate expected values.

  4. If verdict is GAPS: offer to act on the recommendations —

    • write the recommended tests (oracle-independent first), and/or
    • register any orphan binary with the test runner (e.g. add add_test / gtest_discover_tests),

    then run /verify (and /sanitize for C/C++) to confirm the now-in-scope tests pass.

  5. If verdict is COVERED: report it with the .harness-anchor/coverage-<ts>.md evidence path — that is the artifact for the "Coverage obligations" criterion in anti-hallucination-gates.

Read the full file on GitHub · 64 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 64 lines · 63 tokens per session scan A 17af8e0c2a5c

Subscribe to this mod's changes

test-plan is a command published in the GitHub repository Redtropig/harness-anchor (13 stars, last pushed 1mo ago), licensed MIT. It adds 63 tokens to every session and 755 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.