跳到正文
cccskills
OpenClaw 官方免费在 GitHub 公开

design-review

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.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(1)

  • SKILL.md5.1 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Review design through a real caller

Use this skill to explain a design's consequences and identify the smallest coherent improvement. Preserve the user's chosen task, technologies, and scope. Read applicable repository instructions and the relevant architecture or feature contract; distinguish implemented behavior from target design. A review-only request stays read-only. This skill grants no implementation or publication authority beyond the user's request.

Read relevant sections of the design philosophy for the reasoning behind a design decision, and readable code for practical choices about functions, values, branching, composition, and ownership. Read selectively; examples illustrate options, while repository policies supply requirements.

Follow the behavior before changing the structure

Scale the assessment to the question. A local readability issue may need one source trace and a short paragraph; a lifecycle or interface change needs its callers and failure paths. The following prompts guide the work, not a mandatory report template.

  1. Trace a supported caller. Follow one real task through the affected operation to its observable result. Identify the responsibility owner, concrete dependencies, mutable state, and effects. For a proposal, distinguish existing calls from proposed steps. If a caller or implementation is missing, record the gap instead of inventing integration.
  2. Record the invariants that constrain the change. Name the behavior to preserve: relevant inputs and outcomes, authority, identity, ordering, lifetimes, and cleanup. Follow consequential failure paths. Where asynchronous work outlives its caller, identify who owns settlement and disposal. Keep uncertain outcomes distinct when they require different caller behavior. Check that expected validation failures and absence are explicit outcomes, while exceptional failures reach the owner that decides whether to continue.
  3. Audit the interface against its consumers. Find actual uses of exported operations, types, inputs and outputs. Ask which decisions callers need to make and which mechanics belong inside the owner. Check runtime values when narrowing a response; a narrower type alone does not remove fields. Bound claims about unused surface to the consumers searched.
  4. Inspect the relevant sources of complexity. Check whether branching exposes meaningful outcomes, dependencies are selected in a clear place, changing operation data is explicit, and configuration is separate from live resource ownership. Look for repeated reassignment, deep nesting, forwarding wrappers and broad context objects that obscure decisions or effects. These are prompts to investigate, not automatic defects. Preserve effect order, aliasing constraints and cleanup when comparing alternatives. if, let, loops, closures and classes can each be appropriate.
  5. Choose a scoped action. Recommend the smallest coherent change that addresses a demonstrated problem and preserves the recorded invariants. Prefer the existing responsibility owner; check available capabilities before introducing an abstraction. Similar syntax alone does not justify shared machinery. Keep unrelated improvements outside the assignment. Implement only when the user's task authorizes it, following repository development guidance.
  6. Match the claim to proof. Identify the supported caller and observable outcomes that would establish the result, including relevant failures. Inspect existing evidence and state its limits. When assessing or changing tests, use $test-audit; when selecting executable verification, use $enterprise-testing. Follow repository requirements for the kind of change. Source inspection, composed behavior, installed runtime, and live-provider results establish different claims; missing proof remains a gap.

Return findings someone can act on

Lead with the consequence for the caller. For each material finding, give a precise source pointer, the behavior or invariant to preserve, the proposed scoped change, and the evidence that supports it or the proof still needed. Prioritize correctness and ownership problems over optional polish. Distinguish what the source establishes, what you propose, and what remains unknown; do not present an unrun check as a result.

Use the user's requested format. Otherwise, short paragraphs or a few bullets are enough. State when no actionable findings remain; do not manufacture a refactor to satisfy the procedure.

Example invocation:

Use $design-review to assess the public interface in this diff. Trace a supported caller and recommend scoped improvements that preserve its behavior. Keep the review read-only.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

autoreview

OpenClaw 官方免费

Structured code review through the shared OpenClaw agent-skills installation.

中文简介正在准备中。当前显示原文说明。

openclaw/openclaw-enterprise4252026年10月21日 更新

deslop

OpenClaw 官方免费

Clean only the current Enterprise diff before autoreview, preserving behavior, security boundaries, required TODOs, and useful test-intent comments.

中文简介正在准备中。当前显示原文说明。

openclaw/openclaw-enterprise4252026年10月21日 更新

enterprise-testing

OpenClaw 官方免费

Select proportional Enterprise validation and diagnose exact CI runs, distinguishing product, harness, infrastructure, and credential failures.

中文简介正在准备中。当前显示原文说明。

openclaw/openclaw-enterprise4252026年10月21日 更新

local-dev

OpenClaw 官方免费

Develop OpenClaw Enterprise changes with proportional verification and source-backed flow documentation for non-trivial behavior.

中文简介正在准备中。当前显示原文说明。

openclaw/openclaw-enterprise4252026年10月21日 更新

mermaid-diagrams

OpenClaw 官方免费

Create or refine readable Mermaid diagrams for changes, architecture, lifecycles, and dependencies in Markdown documents and PR descriptions.

中文简介正在准备中。当前显示原文说明。

openclaw/openclaw-enterprise4252026年10月21日 更新

oceinteg

OpenClaw 官方免费

Run named OpenClaw Enterprise end-to-end integration scenarios against real supported installations. Use only when explicitly invoked.

中文简介正在准备中。当前显示原文说明。

openclaw/openclaw-enterprise4252026年10月21日 更新

查看 openclaw 的全部技能

报告此技能的问题