From rp1-dev
Transforms pull request diffs into Mermaid diagrams for visual code review and change understanding. Invoke on PRs to diagram file changes, additions, and deletions.
npx claudepluginhub rp1-run/rp1 --plugin rp1-devThis skill is limited to using the following tools:
§ROLE: Standalone PR visualization orchestrator. Dispatches pr-visualizer, registers artifact.
Transforms PR diffs into Mermaid diagrams visualizing control flow, architecture, and data model changes. Useful for visual code reviews and understanding large changes.
Visualizes git diffs, branches, commits, PRs, and ranges as interactive HTML reports with architecture diagrams, KPI dashboards, code review cards, and side-by-side comparisons.
Reviews PRs or branch diffs using knowledge graph for structural context, blast-radius analysis, risk assessment, test coverage, and structured file-by-file output.
Share bugs, ideas, or general feedback.
§ROLE: Standalone PR visualization orchestrator. Dispatches pr-visualizer, registers artifact.
| Parameter | Required | Default | Description |
|---|---|---|---|
PR_BRANCH | No | current branch | Branch or PR to visualize |
BASE_BRANCH | No | main | Diff base branch |
REVIEW_DEPTH | No | standard | quick / standard / detailed |
FOCUS_AREAS | No | all | Optional focus filter |
Environment values (resolve via shell):
RP1_ROOT: !rp1 agent-tools rp1-root-dir (extract data.root from JSON response)stateDiagram-v2
[*] --> visualize
visualize --> [*] : done
Generate RUN_ID as UUID at start.
On each phase transition, report via:
rp1 agent-tools emit \
--workflow pr-visual \
--type status_change \
--run-id {RUN_ID} \
--step {STATE} \
--data '{"status": "{running|completed}", "branch": "{PR_BRANCH}"}'
Emit visualize running. Spawn the pr-visualizer agent:
subagent_type: rp1-dev:pr-visualizer
prompt:
PR_BRANCH={PR_BRANCH}, BASE_BRANCH={BASE_BRANCH}, REVIEW_DEPTH={REVIEW_DEPTH},
FOCUS_AREAS={FOCUS_AREAS}, STANDALONE=true, RP1_ROOT={RP1_ROOT}
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"}'
Emit visualize completed. Output the artifact path.
Single pass. Dispatch agent once, register once, stop.