Structured code review through the shared OpenClaw agent-skills installation.
中文简介正在准备中。当前显示原文说明。
Gate new or changed Enterprise tests and audit existing tests for observable behavior, credible regressions, duplicate coverage, and test-only production seams.
中文简介正在准备中。当前显示原文说明。
查看安装方法安装前可以查看交给 AI 代理的指令内容。
Use the authoring gate when writing or changing tests. For a requested audit, inspect the selected scope before proposing edits; keep each batch coherent. Read repository test integrity rules first. Use fixture and scenario conventions when extracting reusable setup, builders, or contract suites. Keep expected outcomes independent of the implementation and resource ownership explicit.
Before adding a test, answer all four questions:
A missing answer means the test is not ready. Demonstrate that a bug regression test fails on the pre-fix implementation for the intended reason and passes with the repair. If that comparison cannot run, report the gap rather than claiming the regression was proved. Do not replace real behavior with a self-fulfilling mock or copy application logic into a fixture.
Read the complete candidate test, production owner, callers, overlapping tests, relevant history, and CI selection. Inspect the dependency contract when the test claims dependency-backed behavior.
Look for assertion-free probes, self-comparisons, source-string assertions, copied inventories, duplicate contract invocations, private call-shape assertions, and exports or wrappers retained only for tests. These are candidates, not automatic deletions. A test that fails after behavior-preserving refactoring may need to move to a stable boundary.
Retain independent API, Driver, storage, security, configuration, protocol, packaging, generated-artifact, or architecture contract checks. Observable call ordering and credible regressions remain valuable. Static or slow tests are not low-value merely because of their form; source inspection can be an independent guard, but checking a SQL string does not prove database behavior.
Before deleting or rewriting a candidate, record:
Keep uncertain candidates and explain why. Within the authorized audit scope, remove confirmed obsolete test-only seams with their tests; do not preserve aliases or add new production seams to replace them. Optimize confidence rather than deletion counts. Report potential product changes separately.
Use enterprise-testing to choose the smallest real proof. Run commands from the repository root, for example:
node --test tests/conformance/contracts.test.mjs
node --test tests/integration/console-api.test.mjs
git diff --check
Select actual owner/sibling files for the change; the examples are not mandatory
targets. Use pnpm test:conformance or pnpm test:integration when broader
contracts warrant them. Persistence and runtime claims require the existing
PostgreSQL,
Docker, or
Kubernetes procedures. Do not edit inputs
while tests run. Retain integration-test comments that explain intent and invariants.
After audit edits, use deslop for behavior-neutral cleanup before requested autoreview. Report changed candidates, retained false positives, production versus test changes, exact proof and skips, and unresolved gaps. Follow contribution rules for authorized commits and PRs; an audit does not authorize a merge or another workstream.
Adapted from OpenClaw; see source and intentional adaptations.
还没有评价。欢迎分享你的使用感受。
无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。
还没有评论。来写第一条吧。
Structured code review through the shared OpenClaw agent-skills installation.
中文简介正在准备中。当前显示原文说明。
Assess designs, public interfaces, state ownership, readability, and refactor proposals when the task calls for design review or structural simplification; not for unrelated routine edits.
中文简介正在准备中。当前显示原文说明。
Clean only the current Enterprise diff before autoreview, preserving behavior, security boundaries, required TODOs, and useful test-intent comments.
中文简介正在准备中。当前显示原文说明。
Select proportional Enterprise validation and diagnose exact CI runs, distinguishing product, harness, infrastructure, and credential failures.
中文简介正在准备中。当前显示原文说明。
Develop OpenClaw Enterprise changes with proportional verification and source-backed flow documentation for non-trivial behavior.
中文简介正在准备中。当前显示原文说明。
Create or refine readable Mermaid diagrams for changes, architecture, lifecycles, and dependencies in Markdown documents and PR descriptions.
中文简介正在准备中。当前显示原文说明。