plugins/dev/skills/pr-visual/SKILL.md
Transform pull request diffs into Mermaid diagrams for visual code review and change understanding.
npx skillsauth add rp1-run/rp1 pr-visualInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
§ROLE: Standalone PR visualization orchestrator. Dispatches pr-visualizer, registers artifact.
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 sectionprojectRoot, kbRoot, and workRoot values from the generated Workflow Bootstrap sectionEmit 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:
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.
Single pass. Dispatch agent once, register once, stop.
data-ai
Capture session context as a structured, frontmatter-rich markdown note under .rp1/work/notes/ with auto-maintained index and log.
tools
Plan and execute splitting a large PR or branch into a reviewable stacked PR sequence.
development
Write maximally terse agent prompts from scratch. Use when creating new agent specs, command prompts, or instruction sets. Teaches structure-first composition with compression-by-default patterns. Extended with constitutional governance, epistemic stance selection, and a six-stage prompt pipeline.
development
Interactive speedrun loop for small, low-risk changes. Delegates each request to a general sub-agent. Redirects larger work to /build-fast or /build.