Skip to content
Code Review
Skill

/pr-lens

WHAT: Draws a code change or part of a codebase as an animated architecture, data-flow or data-model diagram, on its own or in a pull request. WHEN: asked to diagram, visualise or explain a change, a system or a schema change, or when a pull request should carry a diagram.

From plugin
pr-lens
2.4k2 skills

Claude Code

$ npx -y skills add coldteadotai/pr-lens --skill pr-lens --agent claude-code

SKILL.md

pr-lens.SKILL.md
name: pr-lens
description: "WHAT: Draws a code change or part of a codebase as an animated architecture, data-flow or data-model diagram, on its own or in a pull request. WHEN: asked to diagram, visualise or explain a change, a system or a schema change, or when a pull request should carry a diagram. KEYWORDS: PR Lens, diagram, architecture, data flow, data model, schema, ERD, visualise, visualize, pull request"

PR Lens

Animated architecture, data-flow and data-model diagrams for code changes and codebases. The agent writes one JSON document, and PR Lens draws it.

Run: `npx @coldtea/pr-lens-cli@latest <command>`. Nothing to install first.

Start here

This file is a discovery stub, not the usage guide. Before running any PR Lens command, load the actual workflow content from the CLI:

npx @coldtea/pr-lens-cli@latest skill              # start here: write, validate, render, share
npx @coldtea/pr-lens-cli@latest skill references   # the graph document field by field, the config format, a full example

The CLI serves skill content that always matches the installed version, so instructions never go stale. The content in this stub cannot change between releases, which is why it just points at `skill`.

Why PR Lens

  • Works with any coding agent (Claude Code, Codex, Gemini CLI, Cursor, OpenCode, Copilot)
  • Draws one self-contained animated SVG that GitHub shows in a comment, with no scripts
  • `validate` names the exact field that is wrong, so the agent can fix its own document
  • Opens as a live canvas you can step through and ask questions on
  • Needs no model key when the agent writes the document itself
Read more
@coldteadotai
Ships withpr-lens

The fastest way to understand code

Stars on GitHub

Momentum

stars in total
2.4k
Star history of coldteadotai/pr-lens on GitHub, a chart by star-history.com

Other skills on pr-lens.

eli5

eli5

WHAT: Explains a codebase, a folder, a feature, a command or a pull request to someone who knows nothing about it, as a PR Lens…

More skills from other plugins.

open-code-review

open-code-review

Review workspace changes, PRs, commits, or branch comparisons with OCR's native review pipeline and independently configured…

@alibaba@alibabaInstall Skill
build-graph

build-graph

Build or update the code review knowledge graph. Run this first to initialise, or let hooks keep it updated automatically.

@tirth8205@tirth8205Install Skill
hunk-extensions

hunk-extensions

Maps the `hunkdiff/extension` authoring surface for Hunk, the terminal diff viewer — hiding or reordering reviewed files, docked…

hunk3d9.8k
@modem-dev@modem-devInstall Skill

Questions about pr-lens.

Which coding agents can use pr-lens?
pr-lens installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.