/odin-visual:pr-review-canvasfrom ODIN Visual
Renders a PR review as a local canvas artifact or standalone HTML page served on localhost, with risky hunks foregrounded above safe hunks.
Ships in ODIN Visual. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
| Field | Bound contract |
|---|---|
| Trigger | Render a PR review as a local canvas artifact (format: canvas, the default) or as a standalone self-contained HTML page served on localhost (format: html). |
| Authority | Reversible local: writes only the named canvas or HTML artifact; rollback is deleting that file. No remote mutation. |
| Side effect | Creates a local .canvas artifact file (overwrites any prior canvas for the same PR) or one self-contained HTML file under /tmp; mode html also serves it on a loopback port and reads PR data through gh api. |
| Done | The review artifact exists with risky hunks foregrounded above safe hunks: a .canvas file in the working directory, or a self-contained HTML page served on localhost. |
format: canvas (default) or html.canvas: PR diff (required): the unified diff of the pull request, supplied as a file path or piped content; PR metadata (optional): title, description, and linked issue text, which improve hunk risk classification.html: a GitHub PR web URL or owner/repo#<number> (required): the model extracts {owner}, {repo}, {number}; an installed, authenticated gh CLI.canvas: read the PR diff and parse it into individual hunks grouped by file. Mode html: extract {owner}, {repo}, {number} from the provided URL or owner/repo#number string, then fetch PR data with these gh api calls run concurrently:
gh api repos/{owner}/{repo}/pulls/{number} --jq '{title, body, user: .user.login, state, additions, deletions, changed_files, base: .base.ref, head: .head.ref}'
gh api repos/{owner}/{repo}/pulls/{number}/files --paginate --jq '.[] | {filename, status, additions, deletions, patch}'
gh api repos/{owner}/{repo}/pulls/{number}/comments --jq '.[] | {user: .user.login, body, path, line}'
Stop if extraction fails or any call fails or returns no data. Done when: the diff is parsed into file-grouped hunks, or owner/repo/number are extracted and all three API calls returned data.html: fold the fetched review comments into the analysis. Done when: every hunk is classified as risky or safe.canvas: assemble the canvas document with a PR metadata summary, followed by risky hunk blocks and then safe hunk blocks, each block a distinct canvas section.html: generate one complete self-contained HTML5 document directly: no scratch files, no renderer or template files read from the skill directory. Write the <body> content as HTML in whatever structure fits the PR: a header with title, PR number, author, and stats; a summary box explaining the PR in plain English; core file sections with annotations and diffs; boilerplate files collapsed by default; a review checklist at the bottom; <div data-diff="<target>"> placeholders where diffs render. Embed CSS for risk callouts, diffs, and collapsed boilerplate, and JavaScript that maps each data-diff key to its patch text. Build the patch map in memory from the step-1 fetch and embed it as JSON with <, >, and & escaped so patch text cannot terminate the script element.
Done when: the canvas document is assembled with metadata, risky blocks, then safe blocks; or the HTML document is complete with embedded CSS, JS, and safe JSON patch data.canvas: write the canvas document to <pr-identifier>.canvas in the working directory, overwriting the file if it exists.html: write the document to /tmp/pr-review-<number>.html, then serve it with python3 -m http.server 8432 --bind 127.0.0.1 under the harness background-process manager with /tmp as the working directory; if port 8432 is taken, try 8433, then 8434, and stop after 8434 fails. Report the ready URL to the user.
Done when: the .canvas file is written, or the HTML file is served and the ready URL is reported.| Failure class | Behavior |
|---|---|
| Empty or unparseable diff | Stop. Report that no hunks were found. Do not write a canvas artifact. |
| Diff exceeds reasonable size (>500 hunks) | Stop. Report the hunk count and recommend splitting the PR. Do not write a partial canvas. |
| Write permission denied | Stop. Report the target path and the permission error. No rollback needed since no file was written. |
| Hunk classification ambiguous | Mark the hunk as risky (conservative default). Note the ambiguity in the risk annotation. Do not drop the hunk. |
gh not available or not authenticated (mode html) | Stop; report that gh must be installed and authenticated. |
PR not found or network error (mode html) | Stop; report the error verbatim. |
Rate limit exceeded (mode html) | Stop; report rate limit hit. |
HTML assembly fails (mode html) | Stop; do not write or serve a partial artifact. |
Port exhausted (mode html) | Report the failure and the last port tried. |
The procedure never writes a partial artifact. If it stops before the write step, it does not create or overwrite an artifact file.
Mode canvas: a single .canvas file named after the PR identifier, with a header section (PR title, description, file count), risky hunk sections (path, range, diff, annotation), then safe hunk sections in the same format: local only, never published or pushed. Mode html: /tmp/pr-review-<number>.html (self-contained HTML with embedded CSS, JS, and safe JSON patch data) served at http://127.0.0.1:8432/pr-review-<number>.html (or the next available port), rendering the interactive risk-first review in the browser.
What SKILL.md sets; muted values are Claude Code's defaults
12 skills in this plugin
/automatic-cybernetic-flow-designUse when the user wants a cybernetic flow design document for an interactive system. Not for implementing or deploying the system./automatic-freeform-graphs-designUse when a user wants a looser conceptual graph for exploratory work. Not for remote, credential, publish, deploy, or irreversible changes./compile-3d-workflowUse when the user asks for direction and a compilable 3D workflow from an interview. Not for remote, credential, publish, deploy, or irreversible changes.npx claudepluginhub outlinedriven/odin-claude-plugin --plugin odin-visualOther plugins' skills for the same job