PR Lens — Animated PR Architecture Diagrams
Turns a diff or codebase into a JSON graph document and renders it as animated SVG architecture and data-flow diagrams attached to your pull request.
Dev & CodingIntermediate★ 202⑂ 7AI score 9/10Last updated: Sep 3, 2026
What it does
- Reads the change with
git diff --find-renames <base>...<head>(from the merge base) and authors.pr-lens/graph.jsonwith lanes, nodes, edges and ordered flows. - Runs
validatethenrenderfrom@coldtea/pr-lens-clito produce animated SVGs (dark theme by default) plus amanifest.json. - Attaches the right views to a PR via
gh pr create/edit/comment --attachwith Markdown image references and meaningful alt text. - For pure "explain this system" requests, pushes to a shareable canvas (
prlens.dev/c/{id}) that opens without login; the edit link stays private. - Corrections go into a
.github/pr-lens.ymloverlay (rename / exclude / lane pins) instead of editing regenerated output.
Who it's for
- Developers and tech leads who want reviewers to grasp the shape of a change before reading the diff.
- Teams shipping refactors or service-boundary changes where blast radius matters.
- Anyone wanting C4-inspired views (system context → container → component) of a codebase.
Examples
- "Diagram this PR and put it in the description" → diff → graph.json → validate/render →
gh pr edit 42 --body-file .pr-lens/body.md --attach ... - "Show me how data flows through this repo" → architecture root + data-flow root rendered, then
canvas pushand hand back the view link. - "Drop test files from the diagram and move broadcast-lib into the functions lane" → add exclude/lane rules to
.github/pr-lens.yml, re-validate and re-render.
· · · 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/packages/agent-skill/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)
- Download the ZIP with the button below.
- In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
- Go to Customize → Skills → + → 'Upload a skill' and upload the 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 packages/agent-skill folder from the GitHub repo coldteadotai/pr-lens into my ~/.claude/skills/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/pr-lens && cp -r /tmp/pr-lens/packages/agent-skill/* ~/.claude/skills/pr-lens/⚠ This is a third-party skill. Check the source repository before installing.
- Make sure Node.js (for
npx) and Git are installed. For PR attachments you also need GitHub CLI 2.99+ (gh --version). - Clone the repo:
git clone https://github.com/coldteadotai/pr-lens.git /tmp/pr-lens - Create the skill folder:
mkdir -p ~/.claude/skills/pr-lens - Copy the skill package:
cp -r /tmp/pr-lens/packages/agent-skill/* ~/.claude/skills/pr-lens/ - Confirm
SKILL.mdsits next to areferences/folder containing graph-document.md, config.md and example.graph.json. - Restart Claude Code, open your project, and ask something like "visualise this change as an architecture diagram".
- No package install is needed — the CLI runs via
npx @coldtea/pr-lens-cli@latest. Output lands in.pr-lens/, which is auto-added to .gitignore; don't commit it.
View source on GitHub ↗License: MIT