/aibp-base:audit-testfrom aibp-base
Guides test authoring and auditing: gates new tests on behavioral value, flags junk patterns (assertion-free, implementation-coupled, duplicative), and runs focused sweeps to prune low-value tests.
Ships in aibp-base. 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.
Three modes, one value bar. Authoring mode gates every new or changed test at write time. Audit mode runs focused sweeps of tests that re-assert source, duplicate stronger proof, couple behavior to implementation, or keep test-only production seams alive. Continue broad audits as separate coherent follow-up PRs; optimize for confidence, not deletion count. Campaign mode prunes one whole subsystem's test surface (every test file a package, plugin, or core area owns); before starting one, read CAMPAIGN.md.
Before adding any test, answer four questions; a missing answer means do not add it yet:
Then check the test against every junk pattern; a match fails the gate unless the retention bar names the contract it independently guards. A test that would break under behavior-preserving refactoring is asserting implementation, not behavior; rewrite it at the owning boundary before landing it.
Bug regression tests must fail on the pre-fix code for the intended reason and pass after the owner-boundary repair. A regression test that never demonstrably failed proves the mock, not the fix. One regression at the owner boundary covers the bug; do not replay the same scenario at every layer it crosses.
The shared checklist for both modes: the authoring gate rejects a new test that matches one, and audits hunt for existing tests that do.
Tests justify their maintenance cost by protecting behavior, a credible regression, or an independently meaningful contract. In an audit, an existing test that must change for behavior-preserving source reorganization is suspect, not automatically deletable; the authoring gate still rejects new ones.
Before judging a candidate, read the complete test and production owner, its
entry point, callers, callees, sibling implementations, overlapping tests, CI
routing, and relevant history. Read root and scoped AGENTS.md files first.
When the test claims dependency-backed behavior, inspect the dependency source
or types directly.
Keep discovery read-only and report evidence before editing. For broad scope, run parallel discovery lanes when available:
Outside campaign mode, prefer a few high-confidence candidates over a large speculative inventory. Hunt for the junk patterns.
Keep a test when it independently enforces a public API, SDK, protocol, config, migration, storage, security, platform, default, generated-output, package, release, or architecture contract. Also keep:
Static or slow is not a deletion reason. A test that resembles implementation may still be the independent contract; prove otherwise before removing it.
Record every field below before editing. A missing field means the candidate is not ready for deletion:
Choose one coherent owner-boundary batch. Delete obsolete test-only exports, globals, wrappers, and dead production paths instead of preserving aliases. Move retained regressions to their canonical owners. Consolidate repeated package or dependency assertions into one generic contract.
Prefer net-negative production LOC. Do not add replacement tests that restate the same implementation, and do not convert uncertain candidates into cleanup to increase deletion counts.
Never edit source or tests while a test watcher is running in the checkout. Use
the test commands documented in the repository's AGENTS.md, CLAUDE.md, or
package scripts.
git diff --check.git diff --numstat; report production/tooling separately from
tests and test support.Commit, push, open a PR, or land only when authorized. Follow the repository's
PR flow. Land one coherent PR at a time; after landing, refresh from current
main and rerun read-only discovery for the next high-confidence batch.
Report:
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
14 skills in this plugin
/agents-managerCreate, edit, debug, and orchestrate Claude Code agents and Task-tool workflows. Use when writing agent files, configuring tools or models, or debugging multi-agent runs./apexRun adaptive APEX implementation with scoped delegation, durable checkpoints, risk-based tests and review, and proof-backed verification. Use for features, bug fixes, migrations, or code changes requiring disciplined execution./app-iconGenerate a vibrant dimensional iOS and Android app icon, then post-process it for store specs. Use for creating, regenerating, or polishing an Expo or React Native app logo or launcher icon.npx claudepluginhub melvynx/aiblueprint --plugin aibp-baseOther plugins' skills for the same job