
PR Lens
Skill把代码改动或系统的一部分画成带动画的架构图或数据流图:agent 先写 JSON 图文档,经 PR Lens CLI 校验后渲染为 SVG,可推送到 prlens.dev 画布生成分享链接,或附到 GitHub、GitLab、Bitbucket 的 PR 描述与评论中。通过 npx 运行,附图到 GitHub PR 需要 GitHub CLI 2.99 以上。
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
validatenames 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
相關資源

Diagram Design
Skill生成自包含 HTML+SVG 的杂志风图表:架构图、流程图、时序图、泳道图、甘特图等数十种类型,可读取网站配色匹配品牌,支持导入 Mermaid、draw.io 与 Excalidraw 源文件重绘。
cathrynlavery/diagram-design76.2k
visual-explainer
Skill把架构说明、diff 评审、计划审查、数据对比等内容生成自包含的 HTML 页面或幻灯片,支持 Mermaid 图与深浅色主题,替代终端里的 ASCII 图表。
nicobailon/visual-explainer11.4k
Visual PR
Skill为当前任务创建或更新 PR 描述:读完整个 diff,用一句话写清改动原因,最多列三条注意事项,再用文件树、组件树、调用树、数据结构等 diff 风格的结构图概括实现,通过 gh 写回 PR。只在用户点名调用时使用,需要 GitHub CLI。
humanlayer/skills6k
ELI5 (coldteadotai)
Skill把一个代码库、功能、命令或 PR 讲给完全不了解它的人听:先用一句话说清它做什么,再生成 PR Lens 画布,从两个节点开始逐步加入组件,配合分步讲解直到呈现全貌,最后给出可分享的链接。需要同时安装 PR Lens 技能,通过 npx 调用它的 CLI。
coldteadotai/pr-lens2.5k
gh-stack
Skill用 GitHub CLI 扩展 gh stack 管理堆叠式分支与相互依赖的 PR:把多部分工作拆成按依赖排列的分支层,每层一个 PR,并处理创建、推送、提交、同步、变基与合并;说明在非交互环境下必须带上的参数,避免命令卡在交互界面。GitHub 官方技能,需要安装该扩展。
github/gh-stack1.8k
Code Review
Plugin用多个并行子代理评审 PR,逐条按置信度打分、过滤误报,可把结果发成 PR 评论。Anthropic 官方插件,需要已登录的 GitHub CLI。
anthropics/claude-code158k