<< All versions

Skill v1.0.1

currentAutomated scan100/100
musingfox/cc-plugins/tests

+1 new, ~1 modified

──Details
PublishedNovember 8, 2026 at 10:20 AM
Content Hashsha256:5149bbc832c70b42...
Git SHA3f97c1d20f64
Bump Typepatch
Compare with v1.0.0
──Files
Files (1 file, 3.4 KB)
SKILL.md3.4 KBactive
SKILL.md · 84 lines · 3.4 KB

name: tests description: Audit whether a repo's tests guard what its standing milestones committed to — trace each commitment clause in docs/milestones/ to the assertion that checks it, and list the clauses no test guards. disable-model-invocation: true argument-hint: "[repo path]" metadata: version: "1.0.1"


Audit tests against milestone commitments

A milestone's commitments are the one source of what the delivered work must do. This audit traces each commitment clause to the tests meant to guard it and says which clauses nothing guards. It works at the requirement level: it reads assertions and judges them. The skill never edits the repo and never runs the repo's tests, and the receipt in step 6 checks on every run that the working tree is unchanged.

1. Resolve the repo

Take the repo from the argument and resolve a relative path to an absolute one. With no argument, use git rev-parse --show-toplevel of the session's cwd. Make the scratch directory outside the repo with mktemp -d, and a reports/ directory inside it.

Save git -C <repo> status --porcelain to <scratch>/before.txt.

Done when the repo is an absolute path, <scratch>/reports exists outside it and before.txt exists.

2. List the milestones

Run bash "${CLAUDE_PLUGIN_ROOT}/scripts/milestones.sh" <repo> into <scratch>/inventory.tsv and read that file. Each line is <action>\t<status>\t<path>.

  • When the script exits 2, relay its stderr and stop.
  • When it exits 1, print its stderr and stop.
  • With zero trace lines, print No standing milestones in <repo>/docs/milestones/ plus

the skip lines, and stop without writing a list.

Name the milestones you are about to trace.

Done when you have printed the trace milestones, or stopped with the message above.

3. Find the test files

Run bash "${CLAUDE_PLUGIN_ROOT}/scripts/test-files.sh" <repo> into <scratch>/tests.txt. When it exits 1, print its stderr and stop.

Done when <scratch>/tests.txt exists.

4. Trace

Dispatch one audit:tests-tracer per trace line, in parallel, each with:

  • Milestone: <repo>/<path>
  • Repo: <repo>
  • Tests: <scratch>/tests.txt
  • Report path: <scratch>/reports/<slug>.md, where the slug is the milestone filename without .md

Each tracer is one agent seat, so the cost scales with the number of milestones.

Done when every tracer has returned.

5. Assemble

Run bash "${CLAUDE_PLUGIN_ROOT}/scripts/assemble.sh" <scratch>/inventory.tsv <scratch>/reports into <scratch>/tests-audit.md. A tracer that failed shows as not traced, and a missing report is never read as a clean milestone. When it exits non-zero, print its stderr and the scratch path, run the receipt from step 6 and print it, then stop without printing the list: the redirect has left an empty or partial list behind, but the tracers have already run.

Done when the script exited 0 and <scratch>/tests-audit.md exists, or, after a non-zero exit, when the user has its stderr, the scratch path and the receipt.

6. Report

Run git -C <repo> status --porcelain again and compare it with before.txt. When the two match, print repo untouched. Otherwise print repo changed during the audit: followed by the differing lines. The receipt reports and never aborts.

Print the list path, the ## Counts and ## Hand to the main session blocks from the list, and the receipt.

Done when the user has the list path, both blocks and the receipt.

← v1.0.0All versions