Skip to content
Agentmart
Submit a tool

test-audit

Invoke whenever writing, changing, reviewing, or sweeping tests.

Skill by VanL

IndexedMIT★ 1
Write a review

Chalk Labs

Need help deploying test-audit?

Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.

Book a call

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/vanl-test-audit-e873d0

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Invoke whenever writing, changing, reviewing, or sweeping tests. Authoring gate for new tests, rules for changing failing tests, and audit workflow for low-value, implementation-coupled, or duplicative tests and the test-only production seams they demand.

Use cases: testing, security, writing, productivity

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/test-audit

What's inside

Skill name
test-audit
Description
Invoke whenever writing, changing, reviewing, or sweeping tests. Authoring gate for new tests, rules for changing failing tests, and audit workflow for low-value, implementation-coupled, or duplicative tests and the test-only production seams they demand.
License
MIT
Instructions
382 lines in SKILL.md · view on GitHub

Files (2)

  • SKILL.md
  • SWEEP.md

SKILL.md (first lines)

# Test Audit

Status: Active — promoted 2026-10-15 per the `[DOM-14]` promotion tier from
multi-repo test-surface audits (`simplebroker` `208c3a8` whole-test-surface
audit across "2026-10-06-test-audit-remediation-plan" and its four lane
appendices; `weft` "2026-10-07-test-audit-repairs-plan" and
`test_test_audit_policy.py`; originally adapted from `openclaw/openclaw`
`80930af`).

Three modes, one value bar. **Authoring** gates every new or changed test at
write time. **Audit** runs focused passes for tests that re-assert source,
duplicate stronger proof, couple behavior to implementation, or keep test-only
production seams alive. **Sweep** prunes one whole subsystem's test surface.
Optimize for confidence, not deletion count.

This skill owns *judgment* about test value and the repeatable audit/sweep
procedure. `docs/agent-context/runbooks/testing-patterns.md` owns the standing
testing rules and patterns, and the repository owns *mechanics*: read its
`AGENTS.md` and `docs/agent-context/runbooks/testing-patterns.md` first, and
use its canonical test runner, parallelism, fixture, and CI rules wherever this
skill says "run tests". Repository rules win on any conflict.

## Governing References

- `docs/agent-context/runbooks/testing-patterns.md` — standing test rules
  (Rules 1–10) and patterns (Patterns 1–12 in this repo's numbering)
- `docs/agent-context/engineering-principles.md` — §7.5 (independent review),
  §4.1 (regression tests), §9 (enumerable contracts), and §11 (governed
  suppression registries)
- `docs/agent-context/decision-hierarchy.md` and
  `docs/agent-context/runbooks/review-loops-and-agent-bootstrap.md` —
  verification completion gate and independent review workflow
- `skills/call-agent/SKILL.md` — Tier-1 cross-family independent review for
  deleted coverage and preservation checks

## Which Sections Apply

| Mode | When | Read |
|---|---|---|
| Authoring | adding or changing one or a few tests | Value bar through Retention bar |
| Audit | a focused pass over existing tests | everything in this file |
| Sweep | pruning a whole subsystem's test surface | this file, then `skills/test-audit/SWEEP.md` |

## Value Bar

Tests justify their maintenance cost by protecting behavior, a credible
regression, or an independently meaningful contract. Apply the same
contract-based judgment to new tests and existing ones.

The *owner* of a contract is the production code responsible for it; its
*boundary* is the smallest interface through which that code's behavior is
observable without substituting it. "Owner boundary" throughout this skill
means that interface.

The one question behind every rule here: **if the claimed production behavior
were removed or deliberately broken, would this test still pass?** If yes, it
does not establish protection against that regression; it may still protect
other cases. Assess the gap rather than declaring the whole test worthless. The
[sensitivity check](#exercise-production-behavior) is how to answer it when
reading is not enough.

## Shape of a Good Test

A test makes one coherent behavioral claim. Its name states the behavior; its
setup is only what the claim needs; its assertions check observable results.
Retries, lifecycles, idempotency, and state machines may require several
actions to establish that one claim. Assert semantic properties, not brittle
counts or incidental ordering, unless the count or order is the contract. A
contract includes its failure modes: what the code rejects, and how, is as
much the claim as what it accepts. A reader should be able to tell from the
test alone what production behavior is promised and what change would break
it.

Tests must own and clean up their mutable state, pending work, and resources,
including on failure (`docs/agent-context/runbooks/hardening-plans.md` §13).
They must not depend on test execution order or uncontrolled time. Use explicit
synchronization or module-owned clock seams when timing matters
(`docs/agent-context/runbooks/testing-patterns.md` Pattern 12), so passing runs
and sensitivity checks are reproducible.

## Authoring Gate

Before adding any test, answer four questions; a missing answer means do not
add it yet:

1. What observable behavior, invariant, or independent contract does it protect?
2. What credible regression makes it fail?
3. Why does existing coverage not already catch that failure? Prefer the
   smallest reliable boundary that proves the claim. Another layer needs its
   own distinct risk, such as wiring, boundary straddling, or real dependency
   semantics (`docs/agent-context/runbooks/testing-patterns.md` Rule 9). A
   broader test is not stronger merely because it traverses more code. Prefer
   extending a table-driven case or shared fixture over a near-duplicate test
   when the cases share a contract. Share setup when it improves clarity
   without coupling unrelated cases.
4. Does it need a production seam (export, flag, wrapper, injection hook,
   test-environment branch) that exists only for testing? Prefer the real
   boundary. A seam is justified when it controls a real dependency, such as
   time, randomness, or external failures, without bypassing the production
   behavior under test. Explain that need; do not expose private logic merely
   to assert its implementation.

Make the gate reasoning clear in the test and review context; explain
non-obvious choices explicitly. Use concise comments where they preserve
useful context, such as a historical edge case, protocol requirement, or
required concurrency interleaving. No fixed comment length or reporting
location is required.

Then check the test against every [junk pattern](#junk-patterns); a match fails
the gate unless the [retention bar](#retention-bar) names the contract it
independently guards. If a behavior-preserving refactor would require changing
the assertion or expected result, check for implementation coupling. Updating
an import or setup alone is not evidence of a bad test. Rewrite coupled
assertions unless they protect an independent contract in the retention bar.

Bug regression tests must fail on the pre-fix code for the intended reason and
pass after the owner-boundary repair. Demonstrate it with the
[sensitivity check](#exercise-production-behavior), using the pre-fix behavior
as the control; without that demonstration, its ability to catch the

From VanL/weft, MIT.

Signals

Stars
1
Forks
0
Open issues
0
Last commit (this folder)
Oct 15, 2026 (15 days ago)
Last release
Oct 22, 2026 (9 days ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

Same skill elsewhere

Copies of this SKILL.md published by others; search shows only one of them.

More from VanL

Done for you

Rather not set it up yourself?

Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.

See how we build AI agents →Read the case studies

Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.

launches shipped
50+
launches shipped
media placements
500+
media placements
founders on every account
2
founders on every account

Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block

Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.

Get test-audit running in your business

Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.

Goes to the Chalk Labs founders, not the newsletter. Privacy

Need help deploying test-audit?

CallGet help
Cite this page

test-audit skill. Agent Mart. https://agentmart.dev/skills/vanl-test-audit-e873d0 (last updated 2026-10-24)