AGENT SKILL
test-audit
Writing/changing/reviewing/sweeping tests: reject duplicate or implementation-coupled proof; remove test-only production seams.
- License 许可
- MIT
- 所属仓库
- alexj11324/Mikka
- 最近更新
- 2026-11-15
- Stars
- ★ 87
- Forks
- 11
01 前言 Front Matter
- name
- test-audit
- description
- Writing/changing/reviewing/sweeping tests: reject duplicate or implementation-coupled proof; remove test-only production seams.
02 资源文件 4
- 参考文档CAMPAIGN.md5.4 KB
- 许可证LICENSE.md1.1 KB
- 参考文档README.md1.5 KB
- 参考文档references/audit.md3.5 KB
03 SKILL.md 正文
Test Audit
For Mikka, read Mikka usage before applying this checklist.
- Authoring gates every new/changed test.
- Audits: remove low-value proof in coherent owner batches; never chase deletion counts.
- Whole-subsystem campaign: read CAMPAIGN.md first.
Authoring gate
Before adding test, answer:
- Protected observable behavior, invariant, or independent contract?
- Credible regression that makes it fail?
- Why existing proof misses it? Each contract: one primary owner at strongest boundary. Another layer needs distinct transport/lifecycle risk. Extend tables/shared fixtures; consolidate repeated setup.
- Export, flag, wrapper, injection hook with no production caller needed? Move proof to real boundary instead.
- Use boundary and cost guide.
- Regressions must fail pre-fix for intended reason, pass after repair; report unavailable baseline proof.
- One owner regression covers bug; never replay at every crossed layer.
- Behavior-preserving refactors should not break test.
Junk patterns
- Reject self-comparisons, copied inventories, source greps, implementation/call-shape assertions, duplicate contracts, test-only seams, subject-generated expected values, mocks supplying asserted behavior.
- Fixtures must not fabricate owner receipts/order or claim persistence path never writes.
- Negative controls must fail at intended guard; names must match exercised behavior.
- Auditing candidates: use full checklist.
Retention bar
- Keep independent API, SDK, protocol, config, migration, storage, security, platform, default, prompt-byte, generated-language, package, release, architecture, observable-ordering contracts. Static/slow ≠ disposable.
- Source inspection must survive identifier-only refactors and guard independent user-facing contract.
- Baseline failures may be bugs to repair, not tests to delete.
Audit and validation
- Before audit edit: read candidate evidence and workflow; inspect full owners/callers/history; record remaining proof before deletion.
- Delete obsolete production seams with tests; never optimize for deletion counts.
- Follow proof policy; preserve active Vitest checkouts; run owner/sibling proof + changed checks; then autoreview.
- Report causes, retained contracts, proof/cost, production versus test LOC, follow-ups. Commit/push/land only with task authority.
04 同仓库更多 Skills
run-report
暂无简介
★ 87
source-checking
暂无简介
★ 87
writing-shape
Writing, exploit: shape raw material into an article, paragraph by paragraph.
★ 87
writing-fragments
Writing, explore: mine raw fragments, no structure yet.
★ 87
writing-for-agents
Writing documents for agents. Use when creating or editing skills, or modifying AGENTS.md or CLAUDE.md.
★ 87
writing-beats
Writing, exploit; assemble raw material into a journey of beats, grounding each term before a beat leans on it.
★ 87