Pr Lens

coldteadotai/pr-lens/skills/pr-lens

作者 coldteadotai7a9115c8202d无许可证1.8K 个星标收录于 2026年10月8日更新于 2026年10月8日仓库4天前更新

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

AI 生成的概览

将代码改动或代码库绘制成动画架构图或数据流图,也可附在拉取请求中。

功能
PR Lens 让智能体编写一份描述代码改动或代码库某部分的 JSON 图文档,然后将其渲染为动画架构图或数据流图。它生成一个自包含的动画 SVG,可显示在拉取请求评论中,并能校验文档,指出具体出错的字段,便于智能体自行修正。它还可作为可逐步查看并提问的实时画布打开。
适用场景
当被要求绘制、可视化或解释某项改动或某个系统时,或当拉取请求需要附带图表时使用。它既适用于单个代码改动,也适用于代码库的较大部分。
运行要求
需要网络访问和 npx 来运行 CLI 命令 npx @coldtea/pr-lens-cli@latest;无需预先安装任何内容。当智能体自行编写文档时不需要模型密钥。该技能不附带脚本,只有说明。

PR Lens

Animated architecture and data-flow 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:

bash
npx @coldtea/pr-lens-cli@latest skill              # start here: write, validate, render, sharenpx @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

来源与署名

来源:coldteadotai/pr-lens位于skills/pr-lens提交7a9115c

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架