/will-wright-eng-skills:assess-test-suite [<path-to-package-or-test-dir>]from will-wright-eng-skills
Assess a project's test suite against the verification practice in "How the Claude Code team thinks about verification" — classifies every test on two axes (scope unit/integration/E2E × oracle interaction/example/snapshot/property/differential) plus health tags (flaky, slow, cannot-fail, not agent-runnable), maps user-facing features to E2E coverage, then proposes a ranked refactor toward E2E, property and differential tests, closing with a short note on what the refactor does to CI/CD runtime. Writes the assessment only on confirmation and never edits tests. Use when the user wants to "assess the test suite", "audit our tests", know "are our tests any good" or "which tests are worth writing", plan a test strategy or test refactor, deal with too many mocks or unit tests or with flaky tests, or make a test suite a reliable feedback loop for coding agents.
Ships in will-wright-eng-skills. 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.
Assess the test suite of this repo — or the package I name — against the verification practice described in How the Claude Code team thinks about verification. Classify every test with the precise definitions in TAXONOMY.md, map my product's user-facing features to the tests that prove they work, then propose a ranked refactor that moves investment toward the tests the article says are worth it — E2E, property and differential. Close with a short note on what the refactor does to CI/CD runtime.
Interview me one question at a time, with your recommended answer, as a quick pick when the options are discrete and as a discussion when they aren't. Write the assessment document only when I confirm it. Do not edit tests: the document is the deliverable, and carrying out the refactor is a separate task.
The article describes how one team verifies changes when about 90% of its code is written and reviewed by Claude. It is a strong, specific practice, not an industry standard, and the report says so. The skill takes from it:
An optional path to a package or test directory. Without one, assess the whole repo; in a monorepo, classify per package and report per package.
path:line that decided it. Mark what you can't settle with ? and list it — never guess.Find every test and how it runs:
pytest.ini / pyproject.toml, jest.config.*, vitest.config.*, playwright.config.*, go.mod, Cargo.toml, build.gradle, pom.xml, .rspec, and the test scripts in package.json, Makefile or justfile.pytest --collect-only -q, jest --listTests, vitest list, go test -list . ./..., cargo test -- --list, playwright test --list..claude/skills/verify/ skill or a documented make verify), or only in CI (which workflow jobs and steps).Summarize: runners, test file and case counts per suite, and the command and stage for each suite.
Classify every test file (split per case where cases differ) with TAXONOMY.md: one scope, one oracle, the health tags, the case count, and the evidence line.
Check the suite as a feedback loop:
gh run list --workflow <file> --limit 200 --json attempt,conclusion,headSha gives the rerun rate (attempt > 1) and same-commit flips (one headSha with both a failure and a success). For a few reruns, gh run view <run-id> --attempt <n> --log-failed names the test that flaked.continue-on-error, || true, swallowed exit codes, test jobs missing from the required checks, unconditional skips without a reason.gh api "repos/{owner}/{repo}/rulesets", read-only; branch protection may need admin access, so report it unknown rather than guessing).Feature map. The article's grading rubric: the product's features from the user's point of view. Build it from the user-facing surface — routes and pages, CLI commands and flags, public API endpoints, a library's public exports, README usage examples. One row per flow:
| Feature | User flow | Entry point | Expected result | E2E coverage | Other coverage | Priority |
|---|
Confirm the map with me before using it: I know which flows exist and which matter. Ask which flows to drop or add (select many, or discuss if the list is far off), then their priority, recommending one from how central each flow is in the code and the docs.
Property candidates. Search the code under test for:
encode/decode, serialize/parse, marshal/unmarshal, dump/load, a formatter and its parserf(f(x)) == f(x)), upserts, migrations, retry and webhook handlersRuleBasedStateMachine, fast-check fc.commands)Write each candidate as the statement the test would assert and its kind — round-trip, invariant, idempotency or equivalence.
Differential candidates. Only where an old system exists: two implementations behind a flag, v1/v2 or legacy modules, a port, a dependency being replaced, a rewrite on a branch. If none is visible, ask me whether a migration is planned; if not, record differential testing as not applicable rather than proposing it.
Draft a ranked list of changes. Every change states: what it touches, the evidence, the article principle it serves, its value tier before and after (TAXONOMY.md), the stage it runs in, its size (S / M / L), and what it depends on.
Change types, in the order the proposal ranks them — make the existing signal trustworthy before adding more of it:
continue-on-error and swallowed exits from test steps; make the test jobs required; give every skip a reason or remove it.New gating jobs start in observe mode — the article's "start a new gate in observe mode": a check that runs and reports but isn't required to merge, made required once it has run cleanly on enough commits (suggest 20). Prefer leaving it out of the required set over continue-on-error, which hides the failure.
Interview me through the draft: which changes to include (select many, grouped by type), then each prune (discuss).
Secondary to the proposal: once the changes are settled, add a short note on what they do to the pipeline as a whole. It informs where tests run and in what order changes land; it doesn't decide which tests are worth having.
gh run list --workflow <file> --branch <default> --status success --limit 30 --json databaseId, then gh run view <run-id> --json jobs for job and step durations. Note the critical path (the longest chain of needs: jobs), the setup steps versus the test step, the rerun rate from Phase 3, and runs per month. Without gh or GitHub Actions, estimate from test counts and the kinds of test, and label every number "estimated".One paragraph or a small before/after table is enough.
Default path docs/plans/test-suite-assessment.md. Confirm the path and the full content before writing. Structure:
? list.cannot-fail test steps.After writing, report briefly:
Pick the lightest format the decision allows:
For select-one and select-many, use the harness's structured question tool when it has one (Claude Code: AskUserQuestion); otherwise render a numbered list and accept numbers or free text. Two to four options, recommended first and labeled "(Recommended)"; never spend an option on "Other". Each question stands alone, with the evidence included. Independent quick picks may share one call, up to four; Discuss questions and any question another answer depends on go alone.
What SKILL.md sets; muted values are Claude Code's defaults
Generated from the plugin's indexed repository (will-wright-eng/skills) — no native marketplace selected
npx claudepluginhub p/will-wright-eng-will-wright-eng-skills21 skills in this plugin
/agent-specificationWrite or review the specification of an agent, or of a system of several agents, through a question/answer session. Chooses the arrangement first (one agent, pipeline, orchestrator or blackboard), then settles one SPECIFICATION.md per agent and, when there is more than one agent, a SYSTEM.md that states how they are joined. Works in a fresh repo or against one role of a system that already exists. Takes an optional path to a specification or system document to review. Use when defining, scoping or reviewing an agent or a multi-agent system, choosing between agent patterns, writing an agent's SPECIFICATION.md, or giving each role of an existing agent system a written scope./annealDecompose a god module into stable and volatile pieces whose boundaries match how the code actually changes. Locates hotspots with the hc CLI (decay-weighted churn × complexity quadrants), autopsies the chosen file along three evidence axes (symbol co-change, consumer slices, internal references), interviews through each proposed seam one at a time, and delivers a strangler-fig migration plan with a measurable hc baseline. Use when a file is a "god module" or "god file", one file soaks up every change, a module needs splitting, or the user wants to isolate hot code or reduce churn concentration.Other plugins' skills for the same job