Use when reviewing code and PRs created by Codegen agents — two-stage review process. Stage 1 checks spec compliance (did the agent do what was asked?). Stage 2 checks code quality (is the code good?). Triggers after agent runs complete.
Instalação
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Use when reviewing code and PRs created by Codegen agents — two-stage review process. Stage 1 checks spec compliance (did the agent do what was asked?). Stage 2 checks code quality (is the code good?). Triggers after agent runs complete.
user-invocable
true
Reviewing Agent Output
Overview
Agent-created code requires verification before merging. Trust but verify — agents complete most tasks correctly, but edge cases, misunderstandings, and quality issues slip through.
Iron Law: NO MERGE WITHOUT REVIEW.
Two-stage process:
Spec Compliance — did the agent do what was asked?
Code Quality — is the code good enough to merge?
Announce at start: "I'm using the reviewing-agent-output skill to review this agent's work."
When This Skill Activates
Agent run reaches completed status with a PR
User asks to review an agent-created PR
As part of executing-via-codegen workflow between tasks
User says "check what the agent did" or "review the PR"
Prerequisites
Before reviewing, gather the context:
Run details:codegen_get_run(run_id) — get status, PR links, summary
Run logs:codegen_get_logs(run_id, limit=30, reverse=false) — chronological activity
Original prompt: from execution context or conversation history — what was the agent asked to do?
Stage 1: Spec Compliance Review
Question: Did the agent do what was asked?
Checklist
Task completed — all items from the original prompt are addressed
Correct files — changes are in the expected files, no unexpected files modified
Tests written — if the prompt asked for tests, they exist
Tests passing — logs show test run with passes (not just "tests written")
PR created — PR exists with descriptive title and body
Branch correct — branched from the right base (usually main)
Scope respected — no changes outside the specified scope
How to Check
From logs:
Look for Bash calls with test commands → check output for PASS/FAIL
Look for Edit/Write calls → verify correct files were modified
Look for gh pr create → verify PR was created
From run result:
Check pull_requests array for PR links
Check summary for agent's own description of what it did
Spec Compliance Verdict
Verdict
Meaning
Action
PASS
All requirements met
Proceed to Stage 2
PARTIAL
Some requirements met, some missing
Resume agent with specific missing items
FAIL
Wrong approach or major misunderstanding
Create new run with clarified prompt
UNCLEAR
Can't determine from logs alone
Need to read the actual PR diff
If PARTIAL: codegen_resume_run(run_id, prompt="You missed: [specific items]. Please complete them.")
If FAIL: Use debugging-failed-runs skill to diagnose, then prompt-crafting for a better prompt.
Stage 2: Code Quality Review
Question: Is the code good enough to merge?
Only proceed to Stage 2 if Stage 1 passed.
Quality Checklist
No obvious bugs — logic errors, off-by-one, null handling
Error handling — errors caught and handled appropriately, not swallowed
No security issues — no hardcoded secrets, no SQL injection, no XSS