ensodynamics/enso-method/test-audit
Claude Code and agent skill by ensodynamics/enso-method
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Checking that the SKILL.md file is still in the repository.
Independent audit, once a phase or a whole PRD is finished, of how well its tests prove each acceptance criterion, then fixing what it finds. Grades each criterion's evidence Missing, Weak, Adequate or Strong by one question (would the suite notice if this broke?), breaks the code on purpose to see which tests notice, and writes the map to test-audit.md in the PRD directory. Fixing chats then fill the gaps, missing before weak, in batches handed on through that file, until every criterion is at…
Install
npx vskill@latest install ensodynamics/enso-method/test-auditSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as ensodynamics/enso-method/test-audit.
Test Audit
An independent check, run once a phase or a whole PRD is finished, of how well the tests prove its acceptance criteria, followed by fixing what it finds. The audit chat grades every criterion's test evidence and writes the map to test-audit.md in the PRD's directory. When the gaps are few it fixes them in the same chat; otherwise fixing chats fill the gaps in a fixed order until every criterion has credible evidence or the user accepts what remains. Each chat takes a batch it can hold and hands the rest on through that file.
Unlike test-hardening, which each implementation session runs on its own criteria as its implementer describes them, this audit covers the finished whole, takes the criteria from the PRD itself, and breaks code on purpose to see which tests notice.
When to Use
- A phase is closed, or every child of a split phase is, or a whole PRD is finished, and you want to know whether its criteria are really proven. At the close of a split PRD it runs after
delivery-audit, which checks that every criterion is built and adds completion phases for any that aren't; once nothing is left to build,implement-from-requirementsordelivery-audithands off here. - The user asks to audit the tests of a finished phase or PRD, to check them against its acceptance criteria, which criteria are untested, or whether the tests are good enough.
- To continue fixing that an earlier audit left open: the continuation prompt re-runs this skill, which picks up from
test-audit.md. - To accept the rows still below the target, when the user says so ("Accepting Rows", below).
Do NOT use this skill for:
- The pass at the end of an implementation session. That is
test-hardening. - Work with no written acceptance criteria. Never reconstruct criteria from what the code does. A discovery-driven fix is hardened against its stated intent by
test-hardening. - A whole-repo coverage review. The criteria are the whole test universe here, exactly as in
test-hardening.
Scope: Which Criteria Are Audited
The user points at a document, and that document fixes the criteria. Never infer them from code.
| Pointed at | Audits | |
|---|---|---|
| A phase document (a leaf) | The labels in its "Acceptance criteria covered" list | |
| A split record | Its labels: the union of its children's | |
| A PRD, or a change directory | Every criterion in the PRD, retired labels excepted |
If what the user said fits more than one document, ask in one line. An unlabeled PRD (small ones may be) is cited by each criterion's bold title. In every scope, a criterion with a `Superseded by:` line is left out, listed as superseded with its pointer, never graded. One with Superseded in part by: is graded on the part still in force (prd-writing-standards, "When Later Work Changes an Earlier Criterion").
Only built criteria are graded. Pointing at a phase or an unsplit PRD says it is built. When the scope is a PRD or a split record whose phases are not all closed, criteria owned by a phase with no **Closed:** line are listed as Not built yet and left out. So is a criterion an open completion phase completes: its build is still to come.
A cross-cutting criterion, one a phase document lists as also applying to its work, is graded in a phase audit for that phase's work only, and the grade is marked this phase only. A PRD audit always re-assesses it, across the work of the closed phases.
The audit grades the code as it stands in the checkout; when files in scope have uncommitted changes, the file's header says so.
The Grades
One question decides every grade: if this criterion's behavior broke, would the suite notice?
| Grade | Meaning | |
|---|---|---|
| Missing | Nothing exercises any required part. If it broke, nothing would notice. | |
| Weak | Something is tested, but some required part could break without any test failing: assertions that don't pin the required value (not-null, didn't-crash, count-only), expectations copied from the implementation, a mock standing in for the boundary the criterion is about, or a stated required part (Assessment Checklist), including an error case the criterion names, with no test at all. | |
| Adequate | Every stated required part is covered: a test at the boundary it is about would fail if it broke. Gaps remain only in implied parts, or the evidence has never been seen to fail. | |
| Strong | Adequate, with the implied parts covered too, and red checks (Step 3) have seen a test fail with each stated part broken. |
A criterion takes the grade of its least-proven stated part, with one exception: it is Missing only when nothing exercises any part, so one strong test beside an untested part makes it Weak. Look hardest for Weak: it looks like coverage.
What counts as evidence: a test, or a re-runnable verification script the repo carries, that passes in the project's normal test run (its test command or CI). A skipped test, an expected-failure test, a test the normal run never collects, or a manual check recorded nowhere proves nothing today; grade as if it did not exist. A mapped test that fails means the criterion may be broken, and it goes first in remediation.
Statuses, for rows that get no grade:
- Not implemented: no code does what the criterion says. First check whether the behavior was changed on purpose later, by a later-built criterion or a commit in the code's history (
prd-writing-standards, "When Later Work Changes an Earlier Criterion"; one conflict check covers every such row in the audit). If a later PRD changed it, add the missing pointer pair and list the row as superseded. If the code follows a decision the technical design states with its reason and the criterion records no stakeholder's ruling, amend the criterion to match withprd-writing-standards, running the conflict check for an amendment (both ways), and grade the row against it. Otherwise, if the code does something else a person could have chosen, it is shipped behavior and stands (the shipped-behavior rule inprd-writing-standards): list the row as changed outside the requirements and name it in the wrap-up for the user to record, whatever the history shows. Otherwise it is a delivery gap, not a test gap: leave it out of remediation and handle it as Step 5's "A delivery gap" says. - Person-checked: only a person could check it, such as whether a printed page looks right. Use it only when no test or script could check the criterion; "hard to automate" is not the bar.
- Not built yet: see Scope.
- Superseded: a later PRD replaced the criterion; the row shows its pointer.
- Changed outside the requirements: the code deliberately does something else and no document records it, or the change overrides a stakeholder's ruling; named in the wrap-up for the user to record.
Blocked. When the boundary a criterion is about has no non-production counterpart (no vendor sandbox, no dev environment), the best possible evidence is a narrow mock plus read-only checks (engineering-principles, "The Evidence Standard"). Grade it honestly, usually Weak, and add blocked: <what is missing>. It is outside the remediation target, and the user gets the action: stand up the environment.
High risk. Mark a criterion high risk when a silent break would cost money, corrupt or lose data, expose private data or access, or do something irreversible outside the system (a message to a customer, an order to a vendor). High-risk criteria get red checks first and are worked first within each tier.
Bounding Each Chat
These limit the work a chat takes on, never what the audit finds: every criterion in scope is graded and every gap recorded, and work left over stays under To fix, graded as it was.
- No suite runs in the audit. It assumes the suite passes (Step 1). The only tests it runs are the ones a red check aims at, by name.
- About ten red checks of existing evidence per chat, counting widening checks and red checks still to run. A check whose test takes more than about five minutes a run counts as two. The red check each new test gets in Step 5 is part of writing that test and doesn't count.
- Widening stops at three. A green check adds checks for at most three other criteria resting on the same test file or pattern.
- Checks past the cap or the widening limit go under To fix as red checks still to run. When the cap stops a fixing chat partway through them, it goes on to the Weak rows; the cap outranks finishing a tier.
- The audit chat closes at Step 4 unless To fix holds about three rows or fewer, none of them a delivery gap.
- A fixing chat takes one batch: the rows it can build and verify in one session, sized the way
phase-splitsizes a phase, usually a group that shares test setup. It finishes work in progress before handing off: no check unrestored, no test half written. - Most significant first, so what is left is least important. Rows within a tier: high risk, then the most required parts uncovered, then rows sharing setup with others so one fix raises several. Red checks: high-risk criteria, then evidence the most other criteria rest on.
- Two short re-grades make a row stuck. Each re-grade that finds a part this chat worked still not covered adds
tried <date>: <what was done; what the re-grader still found>to the row's To fix entry. A part the re-grader names that To fix did not list is a new gap: add it to the row's entry to be worked like any other, with notriedline. At the secondtriedline, mark itstuck, stop working it, and name it in the wrap-up; no chat works it again until the user says how (a different approach, a requirement clarified through the assumptions document, or acceptance). A stuck row never stops the chat early: finish Step 6 (commit, record it as stuck intest-audit.md, hand off), and ask about it only in the wrap-up.
Accepting Rows
The user may decide that some rows are good enough: "accept the remaining Weak rows", "accept AC-RET-02". Only the user's own words do this: said in this chat, or quoted in the prompt with where the user said them. Never this skill's judgment, and never an orchestrator's or another agent's. The wrap-up offers it whenever every row left to fix is Weak or a red check still to run and none is high risk, and for every stuck row.
- "Accept the remaining Weak rows" covers Weak rows and red checks still to run. A Missing row, a row with a failing mapped test, and a high-risk row are accepted only when the user names it; before recording one, say in one line what it leaves unproven.
- A row waiting on delivery can't be accepted. The criterion isn't built; if it shouldn't be, the requirement changes (
prd-writing-standards, "When Later Work Changes an Earlier Criterion"), not the audit. - Recording. Each accepted row moves from To fix to an Accepted section of
test-audit.md, keeping its grade and its one-line gap, with the date, the commit, and the user's words quoted with where they were said. The table shows the grade with, accepted. Accepted rows count as settled for the Status line:Done 2026-10-29; accepted: AC-RET-02 (Weak). - Acceptance lasts while the row is unchanged. A re-audit re-assesses an accepted row by Step 1's rules like any other. If its criterion changed, or its grade came back lower than the grade accepted, the acceptance lapses and the row returns to To fix, noting when it was accepted.
Process
Remediation is implementation work and runs under implementation-lifecycle's session discipline (No Loose Ends, the Materiality Gate); read that skill first if it isn't loaded. The audit steps are review mode: within the criteria in scope, hunt broadly.
Step 1: Scope and access
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/test-audit/SKILL.md
Popularity
- Repository stars
- 5
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Extension points
hookPre/post lifecycle hooks
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/ensodynamics/enso-method/test-audit)