ワンクリックで
planforge-step5-review-gate
Pipeline Step 5 — Independent review gate and drift detection. Run in a fresh agent session (read-only audit).
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Pipeline Step 5 — Independent review gate and drift detection. Run in a fresh agent session (read-only audit).
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
| name | planforge-step5-review-gate |
| description | Pipeline Step 5 — Independent review gate and drift detection. Run in a fresh agent session (read-only audit). |
| metadata | {"author":"plan-forge","source":".github/prompts/step5-review-gate.prompt.md"} |
Pipeline: Step 5 of 5 (Session 3 — Review & Audit)
When: After completeness sweep passes (Step 4), in a fresh agent session
Model suggestion: Claude or Gemini — best at independent critical analysis and drift detection
Verdict: PASS (ship it) or FAIL (lockout — fix and re-review)
Replace <YOUR-HARDENED-PLAN> with your hardened plan filename.
Read these files first:
Now act as a REVIEWER GATE + DRIFT DETECTION AGENT.
You are an independent quality gate. You should be a different session from the one that wrote the code.
--- PART A: CODE REVIEW ---
Review checklist:
For each finding, assign: 🔴 Critical / 🟡 Warning / 🔵 Info
Output Part A:
| # | File | Finding | Severity | Rule Violated |
|---|
--- PART B: DRIFT DETECTION ---
Compare Scope Contract against actual changes:
Output Part B:
| File | Issue | Violated Section |
|---|
--- COMBINED SUMMARY ---
Do NOT modify any files. Report only.
If the verdict is PASS and the phase is Small or Medium (≤5 slices), you may proceed to Step 6 (Ship) in this same session — Session 4 is optional for smaller features. For Large phases (6+ slices), a separate Session 4 is recommended to avoid context exhaustion.
## AmendmentsIf you are re-reviewing after a LOCKOUT fix, the user may specify which slices were re-executed. In that case, focus the review on:
You may skip full review of slices that were not re-executed, unless the fix introduced cross-cutting changes (e.g., shared interfaces, database schema). If in doubt, do a full review.
forge_diff with the plan file — structured drift detection against the Scope Contractforge_sweep to verify zero deferred-work markers remainforge_validate to confirm all guardrail files are intactUse MCP tools for structured results when available. Fall back to manual
git diff+ grep if MCP is not configured.
search_thoughts("all decisions for this phase", project: "TimeTracker", created_by: "copilot-vscode", type: "decision") — load the full decision trail from planning and execution sessions for drift comparisoncapture_thought("Review verdict: PASS/FAIL — N findings, details: ...", project: "TimeTracker", created_by: "copilot-vscode", source: "plan-forge-step-5-review", type: "postmortem") — persist the review outcome and any violations foundRun a comprehensive code review across architecture, security, testing, naming, and patterns. Invokes relevant reviewer agents in sequence. Use before merging features or at the end of a phase. With --quorum, dispatches multi-model analysis for higher confidence.
Audit UI components for WCAG 2.2 compliance, semantic HTML, ARIA labels, keyboard navigation, color contrast, and responsive design.
Audit API endpoints for backward compatibility, versioning, OpenAPI compliance, pagination, rate limiting, and RFC 9457 error responses.
Review code for architecture violations: layer separation, sync-over-async, missing CancellationToken, improper DI. Use for PR reviews or code audits.
Fix a bug using TDD: reproduce with a failing test first, then implement the fix, then verify. Prevents regressions.
Review CI/CD pipelines for best practices: environment promotion, secrets management, rollback strategies, build caching, and deployment safety.