peer-review
SKILL.md
Peer Review - Cross-Model Proposal Review
Review plans and viewpoints, not code diffs.
Positioning
cr: code-level review (diff, correctness, security, performance)peer-review: decision-level review (assumptions, tradeoffs, risks, alternatives)
If the request is code-diff focused, route to cr.
Environment Detection
# Codex environment: CODEX_SANDBOX_ID or CODEX_THREAD_ID exists
# Claude environment: otherwise
Input Contract
Prepare one proposal brief with:
- Decision or claim to evaluate
- Context and constraints
- Options considered
- Recommended option and rationale
- Risks and unknowns
- What feedback is requested
If user did not provide all fields, ask concise follow-up questions, then synthesize the brief.
Write brief to project-local temp file:
BRIEF_FILE=".git/peer-review-$(date +%s)-$$.md"
trap 'rm -f "$BRIEF_FILE"' EXIT
Review Criteria
- Problem framing: is the target problem stated correctly?
- Assumptions: are they explicit, testable, and supported?
- Tradeoffs: cost, complexity, latency, risk, maintainability
- Alternatives: were viable options ignored?
- Risk controls: rollback, blast radius, observability
- Decision quality: is recommendation consistent with constraints?
Workflow
Claude Code Environment -> Codex Reviews
- Verify backend availability:
command -v codex || { echo "codex CLI not found"; exit 1; } - Run Codex challenge:
codex exec "Read $BRIEF_FILE. Review this proposal using these criteria: 1) Problem framing 2) Assumptions 3) Tradeoffs 4) Alternatives 5) Risk controls 6) Decision quality Output: ## P1 - Must Reconsider ## P2 - Should Improve ## P3 - Nice to Strengthen ## Missing Alternatives ## Recommended Decision"
Codex CLI Environment -> Claude Reviews
- Verify backend availability:
command -v claude || { echo "claude CLI not found"; exit 1; } - Run Claude challenge:
claude -p "Read $BRIEF_FILE. Review this proposal using these criteria: 1) Problem framing 2) Assumptions 3) Tradeoffs 4) Alternatives 5) Risk controls 6) Decision quality Output: ## P1 - Must Reconsider ## P2 - Should Improve ## P3 - Nice to Strengthen ## Missing Alternatives ## Recommended Decision"
Output Format
## Peer Review Results
### P1 - Must Reconsider
- [decision/claim] why it is risky or invalid
### P2 - Should Improve
- [gap] concrete revision
### P3 - Nice to Strengthen
- [enhancement] optional but valuable
### Missing Alternatives
- [option] why it should be evaluated
### Recommended Decision
- Keep / Revise / Reject
### Next Actions
1. [ ] action item
2. [ ] action item
Guardrails
- Focus on decision quality, not wording style.
- Prefer falsifiable arguments and measurable criteria.
- If evidence is insufficient, state
insufficient evidenceexplicitly. - Do not treat backend model output as truth; verify before adopting.
Weekly Installs
1
Repository
fancive/claude-skillsFirst Seen
11 days ago
Security Audits
Installed on
codex1