Claude Skill MartBrowse skillsQuick linesLearn by videoTerminal guideWhat is a Skill?
Back to list

PR Lens — Animated Diagrams for Code Changes

Turns a diff or codebase into animated SVG architecture and data-flow diagrams and attaches them to your pull request.

Dev & CodingIntermediate2027AI score 9/10Last updated: Sep 3, 2026

What it does

  • Reads the change with git diff --find-renames <base>...<head> (merge base, not branch tip) and authors a graph document at .pr-lens/graph.json with lanes, nodes, edges and ordered flows.
  • Validates via npx @coldtea/pr-lens-cli validate, documenting the four failure codes that cause most rejections, then renders animated SVGs plus a manifest into .pr-lens/ (auto-gitignored).
  • Shares diagram-only requests through canvas push, handing back a login-free prlens.dev/c/{id} view link while keeping the edit link private.
  • For pull requests, writes a Markdown-image body and uploads assets with gh pr create/edit/comment --attach, with a fallback comment command using a published asset base URL.
  • Corrections go into a .github/pr-lens.yml overlay (rename, exclude, lane pinning) instead of hand-editing regenerated output.

Who it's for

  • Tech leads who want reviewers to grasp intent before reading the diff
  • Backend/platform engineers explaining refactors or shifting service boundaries
  • New joiners mapping an unfamiliar codebase with C4-style views

Example uses

  1. "Diagram this branch and open a PR" → graph authored, validated, rendered, attached as the architecture view in the PR description.
  2. "Show me how the billing module flows" → code-only read, container + data-flow views, canvas link returned.
  3. "That node is in the wrong lane" → add a lane rule to .github/pr-lens.yml, re-validate, re-render, same canvas link.

· · · Install guide · · ·

Try it now, no install

Paste this into Claude to use the skill without installing anything.

Read the instructions in this file and follow them to help me:
https://raw.githubusercontent.com/coldteadotai/pr-lens/HEAD/skills/pr-lens/SKILL.md

What I want: (describe your task here)

If Claude can't open the link, open it yourself and paste the contents instead.

If it works for you, download the ZIP below and install it. Then it runs on its own — no pasting each time.

Install in the Claude app (no terminal)
  1. Download the ZIP with the button below.
  2. In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
  3. Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Download ZIP
Install in Claude Code

Let Claude do it — paste this into Claude Code

Install the skill I found on Claude Skill Mart.
Copy the skills/pr-lens folder from the GitHub repo coldteadotai/pr-lens into my ~/.claude/skills/coldteadotai-pr-lens/.
When it's done, tell me in one line what this skill can do.

Install with a command instead

git clone https://github.com/coldteadotai/pr-lens.git /tmp/pr-lens && mkdir -p ~/.claude/skills && cp -r /tmp/pr-lens/skills/pr-lens ~/.claude/skills/

This is a third-party skill. Check the source repository before installing.

  1. Confirm Node.js is installed (node -v); the skill invokes the CLI through npx.
  2. For PR attachments, check gh --version — the --attach flag needs GitHub CLI 2.99 or newer.
  3. Clone the repo: git clone https://github.com/coldteadotai/pr-lens.git /tmp/pr-lens
  4. Copy the skill: mkdir -p ~/.claude/skills && cp -r /tmp/pr-lens/skills/pr-lens ~/.claude/skills/
  5. Verify references/graph-document.md, references/config.md and references/example.graph.json came along.
  6. Restart Claude Code and ask: "Use PR Lens to diagram this change."
  7. Optional: to let analyze draft the document for you, export a Gemini/OpenAI (or compatible /chat/completions) API key.