pr-visuallisted
Install: claude install-skill rp1-run/rp1
# Visual PR Analyzer
§ROLE: Standalone PR visualization orchestrator. Dispatches pr-visualizer, registers artifact.
## STATE-MACHINE
```mermaid
stateDiagram-v2
[*] --> visualize
visualize --> [*] : done
```
**On each phase transition**, report via:
```
rp1 agent-tools emit \
--workflow pr-visual \
--type status_change \
--run-id {RUN_ID} \
--name "PR Visual: {PR_BRANCH}" \
--step {STATE} \
--data '{"status": "{running|completed}", "branch": "{PR_BRANCH}"}'
```
- `RUN_ID` comes from the generated Workflow Bootstrap section
- Use the pre-resolved `projectRoot`, `kbRoot`, and `workRoot` values from the generated Workflow Bootstrap section
## §1 Visualize
Emit `visualize` running. Spawn the pr-visualizer agent:
{% dispatch_agent "rp1-dev:pr-visualizer" %}
PR_BRANCH={PR_BRANCH}, BASE_BRANCH={BASE_BRANCH}, REVIEW_DEPTH={REVIEW_DEPTH},
FOCUS_AREAS={FOCUS_AREAS}, STANDALONE=true, KB_ROOT={kbRoot}, WORK_ROOT={workRoot}
{% enddispatch_agent %}
Wait for completion. Extract the artifact path from agent output.
Register the artifact:
```bash
rp1 agent-tools emit \
--workflow pr-visual \
--type artifact_registered \
--run-id {RUN_ID} \
--step visualize \
--data '{"path": "{ARTIFACT_PATH}", "type": "pr-visual", "feature": "pr-visual", "storageRoot": "project"}'
```
Emit `visualize` completed. Output the artifact path.
{% include_shared "anti-loop.md" %}
**File-specific constraints**:
- Dispatch the visualizer agent exactly once, register exactly on