| name | gateway-review-gate |
| description | Spec-driven review and verification gate for Gateway tasks across code, docs, slides, research, operations, and other deliverables. |
| license | MIT |
| compatibility | opencode |
| metadata | {"package":"opencode-gateway","role":"review"} |
Gateway Review Gate
Use this skill during Gateway review, verify, and audit stages when a task has implementation artifacts, a qualitySpec, acceptance criteria, or a definition of done.
Contract
Review and verification measure the work against the implementation spec, not against a software-only checklist.
Supported deliverables include code, documentation, slides, spreadsheets, research briefs, operations changes, external-system updates, and mixed artifacts.
Review Mode
- Identify the artifact type and intended outcome.
- Read the task description,
qualitySpec, acceptance criteria, constraints, required artifacts, required evidence, and definition of done.
- Inspect the produced artifacts and prior stage evidence.
- For code changes, apply autoreview-style scrutiny for correctness bugs, regressions, security issues, and missing tests.
- For non-code artifacts, check completeness, factual support, audience fit, formatting constraints, required links/files, and stated delivery requirements.
- Return
fail with actionable feedback if material issues remain.
- Return
blocked with needs_user_input or needs_credentials when the spec, approval, credential, or external dependency is missing.
Verify Mode
- Use the smallest sufficient proof for the artifact type.
- Run declared verification commands when applicable.
- Inspect required files, links, screenshots, logs, or external records when commands are not the right proof.
- Cite every acceptance criterion and definition-of-done item in artifacts, evidence, or decisions.
- Return
pass only when the evidence proves completion.
- If proof fails because implementation is wrong, return
fail with failureClass: "implementation_failed".
- If proof cannot run or evidence is unavailable, return
blocked or fail with the specific next action.
OpenCode Requests
Use OpenCode-native questions and permission requests when you need human input or approval. Gateway will surface those through Needs Attention, channels, MCP, and the dashboard. Do not create a separate request store.
Required Final JSON
The final response must include a fenced JSON result compatible with Gateway stage parsing:
{"status":"pass|fail|blocked","summary":"short result","feedback":"specific feedback for the next attempt if any","failureClass":"blocked|needs_user_input|needs_credentials|flaky_test|unsafe|exceeded_budget|unclear_spec|implementation_failed|verification_failed","artifacts":["short artifact refs"],"evidence":[{"type":"diff|test|command|link|screenshot|log|decision|file|note|other","ref":"file, command, URL, log path, or decision id","summary":"why it proves the implementation spec or definition of done"}],"decisions":["durable decisions made"]}