Peer Reviewer
Objective
Deliver a high-signal peer review for planning artifacts before implementation starts.
Prioritize defects and execution risks, not writing style.
Inputs
Provide:
- Target document path(s) to review.
- Optional related references (code, schema, migration files, linked docs).
- Optional review focus (for example: data contracts, testability, rollout risk).
Workflow
Read the target doc end-to-end and build a requirement map:
- goals, non-goals, acceptance criteria, dependencies, constraints, open questions.
Cross-check internal consistency:
- detect contradictions between goals, acceptance criteria, and technical approach.
Validate feasibility against implementation reality:
- compare required behavior with existing CLI, contracts, DB schema, and test patterns.
Run risk lenses:
- scope boundaries, backward compatibility, data integrity, observability, testability, delivery sequencing, migration/deletion safety.
Produce findings ranked by severity with concrete remediation and PRD/plan update instructions.
Severity Rubric
Use exactly these labels:
critical: Release-blocking contradiction or missing requirement that can cause wrong behavior, data loss/corruption, severe security/compliance risk, or invalid scope.
major: High-impact gap likely to cause rework, failed delivery, or materially incorrect/ambiguous implementation.
normal: Important clarity/testability/operability issue that should be fixed for reliable execution but is not release-blocking.
low: Improvement for precision, maintainability, or readability with limited delivery risk.
Review Lenses
Use all lenses, then emphasize the highest-risk areas:
- Problem framing: Is the problem measurable and tied to user/business outcomes?
- Scope boundaries: Are non-goals explicit and enforceable?
- Requirements quality: Are acceptance criteria verifiable, unambiguous, and complete?
- Data/contracts: Are schemas, stage identities, keys, and invariants defined correctly?
- Failure behavior: Are error handling, edge cases, and exit semantics explicit?
- Compatibility/migration: Are deletion and replacement plans gated and reversible?
- Testing strategy: Are test gates realistic, sufficient, and aligned to risk?
- Operational readiness: Are observability, metrics, and rollout safeguards specified?
- Sequencing: Is implementation order coherent and dependency-safe?
Output Format
Produce findings first, sorted by severity descending. Include:
Severity
Issue
Evidence with file path and line reference
Recommendation
How to update PRD/plan with section-level patch guidance
Then include:
Open questions/assumptions (only if unresolved decisions remain)
Optional short summary (after findings)
If no findings exist, state that explicitly and list residual risks or testing gaps.
PRD Update Guidance Pattern
For each finding, propose document edits that are directly actionable:
- section to modify (for example: "US-003 Acceptance Criteria")
- exact change type (
add, replace, clarify, defer, gate)
- specific text direction (what requirement to add/change and why)
Implementation Plan Add-On
When reviewing implementation plans, additionally verify:
- each increment is atomic and independently testable
- each increment has a deterministic test gate
- dependency ordering is explicit
- rollback/remediation paths exist for risky increments
- file ownership and touch-points are scoped to reduce regression risk
Ralph Loop Readiness
When reviewing plans intended for autonomous execution via ralph-loop-runner, additionally verify:
- Every increment has a
**Status:** pending field.
- The plan header includes
**Overall Status:** and **Current Increment:** fields.
- The milestone table includes a
Status column.
- Test gates contain executable commands (not prose descriptions).
- The corresponding PRD has
- [ ] checkboxes on all acceptance criteria.
- The PRD has
**Status:** fields on each user story.
- Increments are ordered so that each can be implemented independently of later ones.
If any of these are missing, flag as major severity — the plan cannot be executed autonomously without them.
Do not implement code in this skill; review and planning quality is the deliverable.
1---2name: spec-peer-reviewer3description: Critically review PRDs and implementation plans to identify gaps, blind spots, contradictions, and delivery risks before coding begins. Use when asked to review product docs, technical specs, implementation plans, migration/deletion plans, acceptance criteria, or rollout strategy; produce ranked findings by severity (critical, major, normal, low) with concrete remediation and exact document updates.4---56# Peer Reviewer78## Objective910Deliver a high-signal peer review for planning artifacts before implementation starts.11Prioritize defects and execution risks, not writing style.1213## Inputs1415Provide:16171. Target document path(s) to review.182. Optional related references (code, schema, migration files, linked docs).193. Optional review focus (for example: data contracts, testability, rollout risk).2021## Workflow22231. Read the target doc end-to-end and build a requirement map:2425 - goals, non-goals, acceptance criteria, dependencies, constraints, open questions.26272. Cross-check internal consistency:2829 - detect contradictions between goals, acceptance criteria, and technical approach.30313. Validate feasibility against implementation reality:3233 - compare required behavior with existing CLI, contracts, DB schema, and test patterns.34354. Run risk lenses:3637 - scope boundaries, backward compatibility, data integrity, observability, testability, delivery sequencing, migration/deletion safety.38395. Produce findings ranked by severity with concrete remediation and PRD/plan update instructions.4041## Severity Rubric4243Use exactly these labels:44451. `critical`: Release-blocking contradiction or missing requirement that can cause wrong behavior, data loss/corruption, severe security/compliance risk, or invalid scope.462. `major`: High-impact gap likely to cause rework, failed delivery, or materially incorrect/ambiguous implementation.473. `normal`: Important clarity/testability/operability issue that should be fixed for reliable execution but is not release-blocking.484. `low`: Improvement for precision, maintainability, or readability with limited delivery risk.4950## Review Lenses5152Use all lenses, then emphasize the highest-risk areas:53541. Problem framing: Is the problem measurable and tied to user/business outcomes?552. Scope boundaries: Are non-goals explicit and enforceable?563. Requirements quality: Are acceptance criteria verifiable, unambiguous, and complete?574. Data/contracts: Are schemas, stage identities, keys, and invariants defined correctly?585. Failure behavior: Are error handling, edge cases, and exit semantics explicit?596. Compatibility/migration: Are deletion and replacement plans gated and reversible?607. Testing strategy: Are test gates realistic, sufficient, and aligned to risk?618. Operational readiness: Are observability, metrics, and rollout safeguards specified?629. Sequencing: Is implementation order coherent and dependency-safe?6364## Output Format6566Produce findings first, sorted by severity descending. Include:67681. `Severity`692. `Issue`703. `Evidence` with file path and line reference714. `Recommendation`725. `How to update PRD/plan` with section-level patch guidance7374Then include:75761. `Open questions/assumptions` (only if unresolved decisions remain)772. `Optional short summary` (after findings)7879If no findings exist, state that explicitly and list residual risks or testing gaps.8081## PRD Update Guidance Pattern8283For each finding, propose document edits that are directly actionable:84851. section to modify (for example: "US-003 Acceptance Criteria")862. exact change type (`add`, `replace`, `clarify`, `defer`, `gate`)873. specific text direction (what requirement to add/change and why)8889## Implementation Plan Add-On9091When reviewing implementation plans, additionally verify:92931. each increment is atomic and independently testable942. each increment has a deterministic test gate953. dependency ordering is explicit964. rollback/remediation paths exist for risky increments975. file ownership and touch-points are scoped to reduce regression risk9899## Ralph Loop Readiness100101When reviewing plans intended for autonomous execution via `ralph-loop-runner`, additionally verify:1021031. Every increment has a `**Status:** pending` field.1042. The plan header includes `**Overall Status:**` and `**Current Increment:**` fields.1053. The milestone table includes a `Status` column.1064. Test gates contain executable commands (not prose descriptions).1075. The corresponding PRD has `- [ ]` checkboxes on all acceptance criteria.1086. The PRD has `**Status:**` fields on each user story.1097. Increments are ordered so that each can be implemented independently of later ones.110111If any of these are missing, flag as `major` severity — the plan cannot be executed autonomously without them.112113Do not implement code in this skill; review and planning quality is the deliverable.