pr-reviewlisted
Install: claude install-skill rp1-run/rp1
# PR Review Orchestrator
§ROLE: Map-reduce PR review orchestrator. 6 phases, local + CI modes, comment deduplication.
§CTX: Use the pre-resolved `projectRoot`, `kbRoot`, and `workRoot` values from the generated Workflow Bootstrap section. Do not hardcode `.rp1/work/` or `.rp1/context/` paths.
§GUARDRAILS
- Never create git worktrees under `.rp1/work/` or anywhere inside the target project's `.rp1/` directory.
- If a separate checkout is absolutely required during review, use a temporary path outside the project artifact tree.
## References
| File | Purpose | When to Load |
|------|---------|--------------|
| `references/link-artifacts.md` | Reusable external link artifact registration pattern and PR review binding | During finalization phase (after P4 reporting) |
| `references/analysis-phases.md` | P0.5 visual gen, P1 splitting, P2 analysis, P3 synthesis, P4 reporting, P5 comment posting | After P0 resolves target and intent |
## STATE-MACHINE
```mermaid
stateDiagram-v2
[*] --> reviewing
reviewing --> posting : analysis_complete
posting --> [*] : done
```
**On each phase transition**, report via:
```
rp1 agent-tools emit \
--workflow pr-review \
--type status_change \
--run-id {RUN_ID} \
--step {CURRENT_STATE} \
--data '{"status": "running"}'
```
- `RUN_ID` comes from the generated Workflow Bootstrap section
- Derive `RUN_NAME` from the resolved PR context: use `"PR #{pr_number}"` when a PR number is available, otherwise use `"PR: {branch_name