← 返回列表
全部 Skill›商业 Business›test-audit

test-audit

作者 @openclaw · 语言 en
Invoke whenever writing, changing, reviewing, or sweeping tests. Authoring gate for new tests plus audit workflow for low-value, implementation-coupled, or duplicative tests and the test-only production seams they demand.
商业 Business房地产与法律通用待翻译
最近源活动
2026-11-21 23:32
检测 SKILL.md 语言
en
星标 ★
395,109
分支 Fork
82,939
安装选项
提示
指令
使用 AI 助手安装
将下面的提示复制到你正在使用的 AI 助手中。
下载完整 Skill 目录(含全部配套文件)。 下载压缩包 ↓
SKILL.md 原文预览

Test Audit

  • 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:

  1. Protected observable behavior, invariant, or independent contract?
  2. Credible regression that makes it fail?
  3. 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.

  1. 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.

评论
Oopenclaw
openclaw
openclaw/openclaw
查看 GitHub 仓库 查看作者的其他 Skill
来源信息
作者@openclaw
所属大类商业 Business / 房地产与法律
国内可用性通用
最近源活动2026-11-21 23:32
风险提示无
提示:风险标签为程序静态扫描结果,仅作提示,不代表安全认证。安装前请阅读 SKILL.md 及其引用的脚本、权限,自行判断是否可信。