一键导入
receiving-change-review
Phase 2 of /peer-review. Use after generalist dispatch completes to aggregate findings, present results, and manage specialist lifecycle.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Phase 2 of /peer-review. Use after generalist dispatch completes to aggregate findings, present results, and manage specialist lifecycle.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Orchestrate parallel subagent execution across isolated jj workspaces with wave-based scheduling and spec-informed peer review, then reunify results into a single change. Use when the user asks to "fan out tasks", "run tasks in parallel with isolation", "dispatch subagents for independent tasks", or when subagent-driven-development routes here via CLAUDE.md override in a jj repo.
Phase 1 of /peer-review. Use when dispatching generalist reviewers for a jj change. Triggers after completing work, before committing, or when reviewing a change.
| name | receiving-change-review |
| description | Phase 2 of /peer-review. Use after generalist dispatch completes to aggregate findings, present results, and manage specialist lifecycle. |
Phase 2 of /peer-review: aggregate findings, present results, manage specialist lifecycle.
Union of files_reviewed across all generalist responses should equal the full file set from the change.
If gaps exist: report which files were missed. Consider re-dispatching for missed files.
| Condition | Overall Verdict |
|---|---|
Any no | no |
Any with_fixes (no no) | with_fixes |
All yes | yes |
Preserve per-partition verdicts in the output so users can see which areas are clean vs. need fixes.
This step runs BEFORE appending the current review to history (so the current review's patterns don't count toward their own emergence threshold).
.claude/peer-review/history.jsonl if it existspattern values per concern type across entriesPresent prompt to user:
[peer-review] "<type>" flagged in N reviews for this project.
Distinct patterns: <pattern1>, <pattern2>, <pattern3>.
Create a project specialist? (y/n)
Three occurrences of the same pattern is repetition, not emergence. Three different manifestations of a concern type across reviews — that's emergence.
.claude/peer-review/ directory if needed: mkdir -p .claude/peer-reviewtee -a (not Write, which would overwrite):echo '{"timestamp":<unix>,"revision":"<short>","files_reviewed":[...],"findings_count":{"critical":N,"important":N,"minor":N},"concerns":[{"type":"<enum>","pattern":"<description>","files":[...],"line_ranges":[...]}],"verdict":"<verdict>"}' | tee -a .claude/peer-review/history.jsonl > /dev/null
## Peer Review: <change-id short>
### Findings
#### Critical (N)
- [change-reviewer] description — file:line
#### Important (N)
- [change-reviewer] description — file:line
#### Minor (N)
- [change-reviewer] description — file:line
### Verdict
Ready to merge: Yes / No / With fixes
Reasoning: <one sentence>
### Specialist Recommendations
- **error-handling**: 3 catch blocks in src/api/client.rs (lines 45-90, 120-135)
- **type-design**: New SessionState enum in src/types.rs
### Actions
- /peer-review --deep errors # dispatch recommended specialist
- /peer-review --post # post findings to GitHub PR
--post) format:Format as a PR comment via gh pr comment. If no open PR found:
Error: No open PR found for bookmark '<name>'. Create one first or omit --post.
--json) format:Output raw JSON — the aggregated response with all findings, verdicts, and recommendations.
Create .claude/peer-review/specialists/<concern-type>.md seeded with:
---
name: <concern-type>
description: Project specialist for <concern-type> patterns
model: sonnet
---
## Role
You are a specialist reviewer for <concern-type> issues. You review specific files and line ranges flagged by the generalist reviewer.
## Patterns Observed in This Project
<list of accumulated distinct patterns from history with file references>
## Relevant Guidelines
<applicable CLAUDE.md rules>
## Review Focus
Analyze the flagged locations for <concern-type> issues. Return structured JSON findings using the same schema as the generalist, but with deeper analysis for your specialty.
## Proposed Refinements
(Generalist proposals appear here. Only humans promote them into the active prompt.)
Dispatch specialists for flagged concerns:
.claude/peer-review/specialists/) → user-global (~/.claude/peer-review/specialists/) → plugin built-in (peer-review-jj/agents/)"Patterns previously observed in this project (for context, not as a checklist): broad exception types (3x, last seen 2026-02-10), missing error context in retry paths (2x, last seen 2026-03-01)."
If a generalist proposes a refinement to an existing specialist, append it to the specialist's ## Proposed Refinements section:
- [YYYY-MM-DD] change-reviewer flagged: "<proposal>" (seen in <file>:<lines>)
Use tee -a or similar append operation. Only humans promote proposals into the active prompt.