Install
openclaw skills install @xukp20/iterate-design-reviewReview designs and plans through a focused convergence loop
openclaw skills install @xukp20/iterate-design-reviewProduce the smallest stable design or execution plan that satisfies the real system requirements. The primary agent owns the draft and decisions; reviewers challenge it but do not silently become co-authors.
Keep this skill in English. Use the user's requested language, the target repository's documentation policy, or otherwise the conversation's dominant language for drafts and user-facing communication. Preserve code identifiers and quoted source text.
Before drafting, assemble only the context needed to make the design trustworthy:
Distinguish current fact, target design, historical evidence, and open questions. Prefer a concise indexed context over repeatedly rereading broad repositories. Do not invent missing facts or treat an unfinished upstream implementation as current behavior.
The primary agent writes and updates one canonical draft in place. Optimize for:
Do not add abstractions, optional fields, compatibility paths, registries, or extension points merely to answer speculative futures. A review iteration should normally simplify or clarify the draft, not make it larger.
Use one independent reviewer by default. Use multiple reviewers only when distinct review dimensions are substantial enough to justify parallel coverage, and give each a non-overlapping focus.
The reviewer receives the canonical draft and the design basis. Ask it to evaluate architecture and plan quality, not prose taste or implementation minutiae. Review dimensions should include:
Review is risk-proportional, not an exercise in enumerating every theoretically possible failure. A finding is material enough to drive another design iteration only when at least one of these is true:
Rank findings by business impact, plausible reachability, and evidence strength. Do not block convergence on speculative hardening such as extreme nesting or size far outside supported limits, impossible internal states, hypothetical provider/library failures outside the owned contract, or portability concerns with no current consumer. A thousand-level JSON nesting case, for example, is non-blocking unless the system explicitly promises that input shape, exposes it as a realistic untrusted boundary, or has evidence that it occurs in production.
Consolidate non-material observations into at most one residual note. Do not require new abstractions, wrappers, schema fields, or test matrices solely to close those observations. If a cheap local correction is obvious, the primary agent may include it, but the reviewer must not turn optional defense-in-depth into a release gate.
Keep review discussion outside the canonical design unless the user explicitly requests review records. The design should always represent the latest accepted state, not the history of reviewer debate.
Ask the reviewer to inspect the whole draft once and report all material findings it can identify in that pass. Require grouped, prioritized findings with evidence, impact, and a concrete correction or simpler alternative. Discourage serial discovery of one issue per turn.
Require the reviewer to omit non-material minutiae from the finding list and to distinguish blocking findings from optional follow-up. A severity label alone does not make a finding blocking; the report must state the owned contract, realistic reachability, and material impact.
For every finding, the primary agent must choose one of:
Send disputed reasoning back to the same reviewer when useful. Do not accept a finding merely to end the loop, and do not ignore a supported finding because it changes earlier work.
After the comprehensive pass, subsequent reviews should inspect only accepted fixes, disputed findings, and their immediate consistency impact. Do not restart a full repository or full-draft audit on every round. Ask whether each named issue is resolved and whether the fix introduced a directly related contradiction or complexity increase.
When all known findings are resolved, request one final whole-draft review against the same design basis. If it finds new material issues, return to focused repair and repeat the final review once those issues are closed.
The draft is stable only when:
Stop instead of iterating indefinitely. Report residual uncertainty honestly when evidence is unavailable.