Coding prompts · Prompt

Write a PR review canvas (prompt)

write-pr-review-canvas-prompt

Builds a local interactive HTML page that walks a reviewer through one GitHub pull request, with core edits separate from mechanical boilerplate, annotations, moved-code marks and a checklist. Use when someone pastes a pull request URL and wants a review canvas or an HTML walkthrough page.

Works with: Any AI Not yet model-tested; testing Jan 2027

Paste it into ChatGPT, Claude, Gemini or any AI chat, then tell it about your project. How it works

Install in Claude Code, Cursor or Codex (optional)

Only for AI coding tools that read skill folders. Run one line in a terminal, in your project folder. It downloads this skill's text files from TheSkillVault and nothing else; you can read them first with “View raw SKILL.md”.

Claude Code (all your projects)

curl -fsSL --create-dirs 'https://theskillvault.ai/api/skills/write-pr-review-canvas-prompt/raw' -o ~/'.claude/skills/write-pr-review-canvas-prompt/SKILL.md' && curl -fsSL --create-dirs 'https://theskillvault.ai/api/skills/write-pr-review-canvas-prompt/files/LICENSE.txt' -o ~/'.claude/skills/write-pr-review-canvas-prompt/LICENSE.txt'

Cursor (this project)

curl -fsSL --create-dirs 'https://theskillvault.ai/api/skills/write-pr-review-canvas-prompt/raw' -o '.cursor/skills/write-pr-review-canvas-prompt/SKILL.md' && curl -fsSL --create-dirs 'https://theskillvault.ai/api/skills/write-pr-review-canvas-prompt/files/LICENSE.txt' -o '.cursor/skills/write-pr-review-canvas-prompt/LICENSE.txt'

Codex and other Agent Skills tools (this project)

curl -fsSL --create-dirs 'https://theskillvault.ai/api/skills/write-pr-review-canvas-prompt/raw' -o '.agents/skills/write-pr-review-canvas-prompt/SKILL.md' && curl -fsSL --create-dirs 'https://theskillvault.ai/api/skills/write-pr-review-canvas-prompt/files/LICENSE.txt' -o '.agents/skills/write-pr-review-canvas-prompt/LICENSE.txt'

Or connect the whole library over MCP

Add TheSkillVault to Cursor or add this to your app's MCP settings (read-only; help):

{
  "mcpServers": {
    "theskillvault": {
      "url": "https://theskillvault.ai/mcp"
    }
  }
}

A findings list is easy to skim past. This page walks a reviewer through the pull request in the browser. Core edits stay open. Mechanical edits stay folded. The page stays on your machine.

When to use

  • Someone pastes a GitHub pull request URL and wants a walkthrough, not a comment thread.
  • You want core changes separated from lockfiles, formatting and generated files.
  • You want annotations next to the diff, plus a short review checklist at the end.

When not to use

  • You want a severity table of bugs. Use review-code-prompt.
  • You want only high-confidence findings. Use review-for-high-confidence-findings-prompt.
  • You want the branch tested, committed and opened as a pull request. Use review-and-ship-work.

Steps

  1. Read the owner, repo and number from the URL. Confirm them with gh pr view.
  2. Fetch the title, body, author, files and review comments. Save each file patch to a JSON file with jq. Do not paste patches into a script by hand.
  3. Split files into core (behaviour) and mechanical (lockfiles, formatting, generated code, dependency bumps).
  4. Paste the prompt below with that split and the JSON path.
  5. Assemble the HTML with the escape step in the prompt. Open it only on 127.0.0.1.
  6. Read the page yourself before you share the file.

Prompt

Build one self-contained HTML file that walks a reviewer through this pull request.
Pull request: <URL>
Patch JSON path: <PATH FROM jq>
Do not post the page or any comment to GitHub.

Page order:
1. Header: title, number, author, additions, deletions, file count.
2. A short summary in plain language of what the change does.
3. One open card per core file. Each card has a one or two sentence note, then the diff.
4. Mechanical files in collapsed cards, with a one-line reason.
5. A review checklist of questions a reviewer should still answer.

Diff rules:
1. Number every line from the raw unified diff first. Record old and new line numbers from the hunk headers.
2. After numbering, you may hide import-only lines and whitespace-only changes. Do not renumber. The numbers must still match the patch.
3. If three or more identical lines were removed in one place and added unchanged somewhere else, mark that block as moved. Do not paint it as a plain deletion plus a plain addition.
4. A long function can show a short plain-language sketch first, with the full diff folded underneath.

Assembly:
1. Write the body HTML to a temp file you create.
2. Load the patch JSON in Python. Escape <, > and & before you place it in the page (replace them with the usual JSON unicode escapes). A patch that contains a script end tag must not close the script early.
3. Write the finished file under /tmp. Do not overwrite a file you did not create.
4. Serve it with python3 -m http.server on 127.0.0.1 and a fixed port such as 8432. If that port is taken, try the next one. Do not use port 0.

Keep the visual design simple and dark. Sticky file titles are enough. Add a diagram or a before/after table only when it makes one core change clearer.

How to adapt

  • A tiny pull request? Skip the mechanical section and keep one card per file.
  • No GitHub? Use the host's API, or paste a diff and skip the fetch.
  • The reviewer wants pseudocode for one dense file? Add a sketch in that card and leave the diff folded.

Gotchas

  • Hiding imports before you number lines shifts every later number. Number first.
  • Never embed a raw patch inside a script tag. The escape step is required.
  • The page can contain secrets, tokens or private code from the diff. Do not commit it, attach it to a ticket, or serve it on a public host.
  • Bind to 127.0.0.1. A server on all interfaces exposes the diff on the network.

Portability

Works with any AI that can run shell commands, and with any language in the diff. Without gh, paste the metadata and patches. On another host, use that host's CLI or API instead of gh. A local static file works the same if you cannot start a server.

Done when

  • The HTML file opens on 127.0.0.1 and shows the pull request title.
  • Core files are expanded, mechanical files are collapsed, and line numbers match the raw patch.
  • Moved blocks are marked as moves, and the checklist is at the bottom.
  • The file is still local.

Example prompt

"Turn this GitHub pull request into an interactive HTML walkthrough. Separate core edits from boilerplate, keep line numbers from the raw patch, and serve the page only on localhost."

---

Modified from the original "pr-review-canvas" skill in cursor/plugins (cursor-team-kit) (Copyright (c) 2026 Cursor, MIT). Original: https://github.com/cursor/plugins/tree/2f87c854fe3e2fcda44ca86b46ede35aad3c46b7/cursor-team-kit/skills/pr-review-canvas. Changes by TheSkillVault are listed in the metadata above. See LICENSE.txt.

Bundled files

Licence

Adapted from Eric Zakariasson (ericzakariasson), Cursor team kit in cursor/plugins (Copyright (c) 2026 Cursor), MIT License. Modified from the original by TheSkillVault on 2026-11-17. Rewritten as a house-style prompt. The bundled renderer, stylesheet and template were not copied. Line numbers are taken from the raw patch before import lines or whitespace-only changes are hidden. Moved blocks stay marked as moves. Patch JSON is escaped so a script end tag cannot break the page. The preview stays on localhost. Not the original file.

Licence: MIT License. Attribution when you reuse it: Based on work by Eric Zakariasson (ericzakariasson), Cursor team kit in cursor/plugins (Copyright (c) 2026 Cursor, MIT License), https://github.com/cursor/plugins/tree/2f87c854fe3e2fcda44ca86b46ede35aad3c46b7/cursor-team-kit/skills/pr-review-canvas; adapted by TheSkillVault, https://theskillvault.ai