1---2name: dev-review3description: Review code, docs, specs, architecture, UX, or design docs.4---56# dev.review78## Workflow9101. Identify the review type from the user's request and artifact.11 - Examples: code, docs, design-doc, spec, simplify-spec, architecture, ux, skills, integrator, deslop, dead-code.12 - Use `simplify-spec` when the user asks to radically simplify a spec or its proposed implementation, narrow the solution, or find an 80/20 approach.13 - Use `spec` for correctness, approved-scope completeness, ownership, safety, and implementation readiness; leave design minimization to `simplify-spec`.14 - If ambiguous, ask one clarifying question before reviewing.152. Load the matching workflow from `./references/workflow-[review-type].md`.16 - If the workflow file does not exist, ask the user for the prompt to add and pause the review.17 - For skills reviews, use `$sc` for the local skill-authoring contract.18 - For docs reviews, use `./references/workflow-docs.md`; when reviewing OpenClaw docs and `$openclaw-docs` is available, apply its guidance as domain-specific context.19 - For `integrator`, default input artifacts are outputs from `ag-learn` and adjacent retrospectives.20 - For code reviews that require flow docs, use `$specy`.213. Route every top-level review request through the `trigger:loop` shortcut from `dev.shortcuts`.22 - If the user request already contains `trigger:...`, resolve it through `dev.shortcuts`.23 - If no shortcut trigger is present, invoke `trigger:loop` with the resolved review instruction, for example `trigger:loop review the current diff with $dev.review`.24 - Give the loop reviewer the review type, workflow file, artifact paths, current diff, and review scope.25 - Routing a plain review request through `trigger:loop` does not grant edit26 authorization. In that case, require the reviewer pass and parent27 classification, but stop after reporting any blocker or major findings;28 do not start a fixer pass without user authorization.29 - An explicit `trigger:loop` invocation, explicit review-and-fix request, or30 edit task authorizes the shortcut's scoped fixer passes. Follow the full31 reviewer/classifier/fixer loop for those requests.32 - When this skill is already running inside a `trigger:loop` reviewer pass, apply the workflow directly to the material and produce the review instead of nesting another loop.33 - When this skill is already running as a read-only reviewer subagent for `trigger:spec`, apply the selected workflow directly; do not redispatch the parent shortcut or start a nested review/fixer loop.344. For PR or CI-backed review loops, keep going until the remote exit condition is met.35 - Completion is remote-state based, not patch based: current head SHA is known, relevant CI is green, unresolved non-outdated review threads are zero, and actionable comments are addressed or explicitly routed to the user.36 - Before saying the loop is finished, run a final PR gate query and report head SHA, failing/pending check count, unresolved thread count, and actionable comment count.37 - If any required check is failed/pending or any actionable review item remains, the loop is not finished; continue fixing or report the exact blocker.3839## Output4041- Lead with findings ordered by severity (blocker/major/minor) or by impact if severity is unclear.42- Prefer concrete, actionable feedback over generic commentary.43- Call out assumptions, risks, and unclear ownership/abstractions.44- Propose simplifications when the selected workflow owns simplification.45- Keep the review concise; avoid restating large sections of the input.46- For code reviews, include both the `Simplicity Audit` and `Test Audit`47 checklists required by `./references/workflow-code.md`; never check an item48 without inspected evidence or report a clean review with either audit49 incomplete.50- Give every added or modified test a `keep`, `merge`, or `delete` disposition.51 Treat tests without distinct production-behavior evidence as major findings;52 remove or consolidate them when edits are authorized, or report them without53 changing files during a review-only request.54- Treat materially avoidable duplicate ownership, parallel implementations,55 and implementation-coupled test machinery as major when a concrete smaller56 design preserves approved capabilities, security, and supported compatibility.57- If blocker or major findings remain in a review-only request, report them as58 unresolved and state that no fixer pass ran because edits were not authorized.5960## Workflows6162- `./references/workflow-code.md` for code review.63- `./references/workflow-docs.md` for developer documentation, user guides, API references, CLI references, quickstarts, READMEs, and troubleshooting docs.64- `./references/workflow-design-doc.md` for design doc review.65- `./references/workflow-spec.md` for product, implementation, or test spec review.66- `./references/workflow-simplify-spec.md` for reducing a spec to the smallest complete implementation that satisfies its current goal.67- `./references/workflow-architecture.md` for architecture and system-boundary review.68- `./references/workflow-ux.md` for UX review.69- `./references/workflow-skills.md` for reviewing `SKILL.md` files and bundled skill resources.70- `./references/workflow-integrator.md` for integrating learnings into skill/code/project changes.71- `./references/workflow-deslop.md` for anti-slop code review focused on excess complexity, patch size, and unnecessary helper extraction.72- `./references/workflow-dead-code.md` for dead-code review that accounts for every new class, function, method, variable, constant, option, config field, and other named artifact introduced by a PR.