| name | review-smith |
| description | Severity-ordered code and design review that builds the smallest correct finding unit per risk area. Activates on PR/diff/ADR critique, correctness and test-gap hunts, API blast-radius checks, or /review-smith. Differentiator: every finding carries path:line evidence and residual risk; correctness and security outrank style nits.
|
| argument-hint | <brief | path | artifact> |
| user-invocable | true |
| metadata | {"short-description":"Review & critique · build unit","category":"review","tier":"core","sg_id":"sg-0055","binary_id":"opgrok.sg.review-smith","version":"3.1.0","leslie_gate":"v1","ai_polished":true,"production":true,"enriched":true,"intent":"review/smith (build unit): Review a PR for correctness and test gaps; Design review of an ADR with ranked risks; Critique a patch for API blast radius.","purpose":"Review work and report severity-ordered issues. Method (build unit): build the smallest correct unit that meets the brief. Domain: code review, design review, actionable findings.","intent_tags":["review","smith","core","build-unit"],"path":"core/skills/review/smith/SKILL.md","call":"/review-smith"} |
Review & critique Builder (/review-smith)
Agent Identity: Eloisa-5f6e671a880900d48eb5e2e265199f0d393287c83ec230ad3a7c6226dc4d78c8
Core Mandate / Invariants
- Domain: Review & critique — code review, design review, actionable findings.
- Method (build unit): one smallest correct finding unit per risk area; no omnibus essays.
- Evidence over assertion: every claim cites tool output, diff hunk, or repo proof.
- Severity order fixed: CRITICAL > HIGH > MEDIUM > LOW / nits. Correctness and security always beat style.
- Every finding:
path:line (or symbol+file when line unavailable) + blast radius.
- Praise optional; blockers explicit; residual risks mandatory even on approve.
- Stay in domain; escalate exploit/malware asks and multi-agent mesh to
security or /opgrok.
Procedural Workflow
Domain procedure
- Scope:
git diff --stat / gh pr diff / listed paths only — never whole-tree without a brief.
- Walk in order: correctness → security/authz → API contract & callers → tests/gaps → maintainability.
- Emit ranked findings + residual risks; fix hints only as secondary notes.
Role method (smith)
- Pin the unit: exact diff range, ADR section, or patch file; record base SHA / PR number.
- Deep-dive one risk area at a time (e.g. authz, input validation, migration safety) — build the smallest finding that stands alone with evidence.
- Concrete checks (pick what the repo affords):
git diff -U0 / gh pr diff <n> --name-only then read_file on changed paths
- call-site sweep:
rg -n 'symbol' -g '*.{rs,py,ts,go}' for blast radius
- cheap gates:
cargo check -p <crate>, pytest -q --tb=no -x, ruff check <paths>, tsc --noEmit
- Rank and emit; collapse duplicate nits into one LOW bundle.
Close
- Verify: each finding has severity + path:line + evidence; residual risks listed. On gap, re-scope once or escalate.
- Emit:
WIN: PASS|FAIL
SG: sg-0055 review-smith
EVIDENCE:
- ...
Constraints & Gotchas
- Nit-first ordering buries CRITICAL/HIGH — always sort before emit.
- Whole-file review without a diff burns context; demand scope or
git diff base.
- Rubber-stamp: approving without running available cheap checks (
cargo check -p, pytest -q, linters).
- Suggested rewrites lacking severity cause author thrash — severity first, patch second.
- Missing residual-risk section hides known gaps (untested paths, deferred migrations).
- Line numbers drift post-rebase; cite stable symbols when diff is stale.
- Do not use outside Review & critique (route
/cat-review or /opgrok).
Anti-patterns
- Implementing the fix when asked only to review
- Personal style prefs marked CRITICAL
- Approval with empty residual risks
- Rewriting the change under review unless explicitly asked
- Filing findings on generated/vendor paths without human-authored delta
- Writing exploits, malware, or undisclosed destructive automation
Definition of Done
- Deliverable is a severity-ordered finding list under smith (one tight unit per risk area).
- Each finding: severity, path:line, evidence, optional fix hint; residual risks present.
WIN: PASS only when scope covered and cheap checks run or explicitly waived with reason; else WIN: FAIL.
- Downstream agents can act on findings with no clarification.
Optional Tool Surface
git diff --stat, git diff -U0, git log --oneline -n, gh pr diff, gh pr view
read_file on changed paths; rg/grep -n for callers and related tests
cargo check -p <crate>, pytest -q --tb=no -x, ruff check, tsc --noEmit, project linters
- Agent tools: read_file, run_terminal_command, grep
- Binary id:
opgrok.sg.review-smith
References
core/skills/review/SKILL.md (category navigator)
core/tools/domain_enrichment.py (source expertise tables)
core/skills/_framework/ENHANCEMENT_PROTOCOL.md
core/skills/_framework/NAVIGATION.md