Cy impl peer review

From compozy/skeeper · View interactive version

Cy impl peer review is an AI agent skill from the GitHub repository compozy/skeeper. Runs an optional cross-LLM peer review of an implemented change via compozy exec --ide claude --model opus --reasoning-effort xhigh and packages findings for user-directed remediation. Use after any implementation pass (feature, bug fix, refactor) when the user explicitly asks for an external Opus r

How to use this skill

Skill file

Implementation Peer Review

Claude Opus pressure-tests an implementation diff via compozy exec. This skill runs that pressure-test only when the user explicitly asks for a review round after an implementation pass. It is decoupled from any PRD/task tracking system — the scope is the diff itself plus any optional context files the user names. The skill never auto-runs, auto-incorporates findings, auto-commits, or auto-loops additional rounds.

User Decisions

When this skill instructs the agent to ask whether to incorporate findings or run another round, it MUST use the runtime's dedicated interactive question tool — the tool or function that presents a question to the user and pauses execution until the user responds.

If the runtime does not provide such a tool, present the question as the complete assistant message and stop generating. Do not answer the question on the user's behalf.

Optional Inputs

All inputs are optional. Defaults make the common path cy-impl-peer-review with no arguments.

Procedures

Step 1: Validate Input and Compute Scope

  1. Confirm the user has just completed (or paused) the implementation pass and explicitly asked to review the current state. Do not run review rounds during active editing.
  2. Resolve the diff scope:
  1. Resolve the artifact directory:
  1. Read .agents/skills/cy-impl-peer-review/references/readiness-checks.md and verify every readiness marker passes (build/tests green, no committed .tmp/ or ai-docs/, diff is non-empty, no obvious WIP markers in changed files, codegen co-ship if contracts touched, migration co-ship if schema touched, reviewable size). If any marker fails, report the failed markers and abort — Opus review on a broken or incomplete change wastes credit and produces noise.
  2. Determine the next review round number by listing existing impl-review-result-round*.json files in the artifact directory. Start at round1 when none exist.

Step 2: Compose the Review Prompt

  1. Read .agents/skills/cy-impl-peer-review/references/impl-review-prompt.md for the canonical Opus prompt template.
  2. Capture the diff payload:
  1. Substitute the placeholders in the prompt template:
  1. Write the assembled prompt to <out>/impl-review-prompt-roundN.md.

Step 3: Execute the Cross-LLM Review

  1. Run compozy exec --ide claude --model opus --reasoning-effort xhigh --format json --prompt-file <out>/impl-review-prompt-roundN.md.
  2. Capture stdout to <out>/impl-review-result-roundN.json and stderr to <out>/impl-review-result-roundN.err.
  3. If the command returns a non-zero exit code, fail loudly. Do not retry silently. Inspect the stderr for model misconfiguration (see Error Handling).

Step 4: Summarize Findings

  1. Parse the JSON output. Expect four sections: blockers, risks, nits, verdict.
  2. Write <out>/impl-review-summary-roundN.md with:
  1. Present a concise user-facing summary of the review. Include the verdict, blocker/risk/nit counts, the main themes, and the artifact paths written for the round.
  2. Do NOT modify any source code, tests, configs, docs, or commits yet.

Step 5: User-Directed Remediation

  1. Ask the user which findings to incorporate:
  1. Apply only the findings the user selected. Do not silently apply all blockers, all risks, or all nits.
  2. Re-run the project's verification gate (make verify in this repo, or whatever command the user names) after applying any code change. Do not declare remediation done if verification fails — fix the new failure or surface it back to the user.
  3. Record the remediation decision in <out>/impl-review-remediation-roundN.md, listing:
  1. Show the user what changed and what remains deferred. Do not commit or push without an explicit user instruction.

Step 6: Optional Additional Rounds

  1. Ask whether the user wants another peer-review round against the updated code or wants to stop with the current state.
  2. If the user requests another round, re-run from Step 2 against the new diff and create a fresh roundN+1 artifact set in the same <out> directory.
  3. Do not auto-loop. The user explicitly requests further rounds.

Critical Rules

Error Handling

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.