SkillsReviewed · coldteadotai

PR Lens Agent Skill

PR Lens Agent Skill is an instruction pack for developers who want coding assistants to draw code changes, but it requires a separate command-line tool and accurate interpretation of the code. It describes how to create structured diagrams, validate their documents and share animated SVGs or hosted canvases.

Researched 15 Nov 2026

In short.

PR Lens Agent Skill is an instruction pack for developers using coding assistants to explain code changes with diagrams, but validation cannot prove that the diagrams match the code. Its documented workflow turns an agent-authored JSON document into architecture, data-flow or data-model views, with optional guided walkthroughs and pull-request attachments. The captured package declares version 0.7.0; the separate CLI supplies the operating instructions. Installation, rendering, sharing and compatibility were not assessed through execution.

Researched and written by an AI model and checked by a second AI model. How it works

Covers all 14 captured files in packages/agent-skill: SKILL.md, README.md, manual.md, package.json, LICENSE, the three reference files, the two synchronization scripts, the two test files, tsconfig.json and vitest.config.ts. The repository-root LICENSE is included as a related notice. All belong to source revision d94e0b076e7c94a0d3b66e4e2b6fd6b683e50d51. Separate CLI, renderer, schema, installer-mirror and hosted-service implementations are excluded except where described or referenced by these files. No code or commands were executed, and no live integration or published-package behavior was assessed.

The overview

identity

Coldtea AI publishes this resource as @coldtea/pr-lens-agent-skill. It supplies instructions for coding assistants rather than a standalone diagramming application. The original source is the packages/agent-skill folder in PR Lens [https://github.com/coldteadotai/pr-lens/tree/main/packages/agent-skill].

The package metadata declares version 0.7.0. Its SKILL.md is deliberately a discovery stub: the detailed manual and references are delivered through the separate @coldtea/pr-lens-cli package.

assessment

The resource is worth considering when a code change is easier to understand through relationships, boundaries or an ordered sequence than through a diff alone. Its useful distinction is that the coding agent writes an explicit diagram document, which can then receive precise structural feedback.

Diagram accuracy still depends on the agent reading the relevant code and including enough unchanged context. The supplied material establishes a detailed workflow, but does not establish faster reviews, better comprehension or reliable results across coding assistants.

users

The intended users are developers working with coding assistants and reviewers trying to understand those assistants' changes. The documentation names Claude Code, Codex, Gemini CLI, Cursor, OpenCode and Copilot, although compatibility with each was not assessed.

Beginners receive a concrete read, write, validate and render sequence. Experienced developers get references for graph structure, commit provenance, file links, schema changes and persistent map corrections. Effective use still requires someone who can check whether the diagram represents the actual system.

capabilities

The documented outputs include architecture views, ordered data flows and data-model diagrams. Elements can be marked added, modified, removed or unchanged. Nested views support narrower explanations, while walkthroughs guide readers through individual changes.

The manual describes animated SVG output, light and dark variants, hosted canvases and attachment routes for GitHub, GitLab and Bitbucket. Canvas-specific features include sample request and response data, focused answers and component expansions. Persistent configuration can rename, exclude, move or group inferred nodes.

Using it

requirements

The documented workflow requires a coding assistant with access to the relevant source, a shell and npm/npx tooling capable of invoking the separate CLI. Git is used to read changes between commits. Minimum supported Node.js and npm versions are not established by the supplied package metadata.

Publishing adds service-specific requirements. The documented GitHub attachment route requires GitHub CLI 2.99 or later; other routes require suitable upload permissions or durable asset hosting. Agent-authored documents need no additional model-provider key for PR Lens analysis, while the optional analyze command requires one.

mechanism

The agent reads the code or diff and writes .pr-lens/graph.json. This document describes lanes, nodes, connections, ordered messages and views. The documented validator rejects unknown fields, broken references and other contract violations, reporting paths into the document for correction.

Rendering produces SVGs, a manifest and drawn.graph.json in a drawing-specific directory. The manual distinguishes an authored diagram from a generated repository map: lasting map corrections belong in .github/pr-lens.yml, which is applied over fresh inference. These corrections cannot add arbitrary nodes or connections.

setup

The README documents npm install --save-dev @coldtea/pr-lens-agent-skill, followed by copying SKILL.md into .claude/skills/pr-lens/ for Claude Code or .cursor/rules/pr-lens.mdc for Cursor. Other assistants can be directed to the file through their instructions.

The stub directs the agent to npx @coldtea/pr-lens-cli@latest skill and npx @coldtea/pr-lens-cli@latest skill references. The npm package's file list includes SKILL.md, README.md and LICENSE; the full manual and references are supplied by the CLI instead.

The documented next steps are authoring the graph, validating it and rendering it. Configuration recipes are fragments: a complete .github/pr-lens.yml also requires schemaVersion, shown as 0.3.1 in this snapshot.

example

The supplied example depicts an email application moving from individual Postmark sends to batches of 500. It represents the queue, suppression lookup, new sender, removed handlers and unchanged user interface across three lanes.

The graph includes nested architecture views, a seven-message flow and five walkthrough steps. It demonstrates how the format can explain both the new path and the retired path. Its call-reduction figures describe the example application; they are not PR Lens benchmarks or measured execution results.

Assessment & evidence

limitations

Structural validity does not establish semantic accuracy: a graph can reference valid identifiers while omitting a dependency or describing the wrong behavior. PR Lens is documented as a comprehension tool, with no findings field for bugs or security notes.

The documented format caps individual graphs at 256 nodes, 512 edges and 16 flows, with up to 64 messages per flow. Sample traffic appears only on canvases. GitLab and Bitbucket use neutral stills because the manual provides no neutral walkthrough embed.

Sharing needs care. The normal canvas view link is documented as opening without login, while its edit link grants overwrite access. The manual also describes owner-only private canvases. GitLab attachment links can be viewed by anyone holding them. Hosted access-control implementation, retention policies and service reliability are not assessed.

reasoning

The design separates interpretation from drawing: the coding assistant explains the code in structured data, and the CLI is responsible for checking and rendering that data. Precise validation errors should make document repair more manageable, although no reliability improvement is measured here.

Serving the manual through the CLI is intended to keep instructions aligned with that CLI version. This reduces reliance on a copied manual, but the stub's @latest commands leave the executable version unpinned. Consistent reproduction therefore depends on recording the actual CLI and contract versions used.

alternatives

Within PR Lens, the documented alternative to agent-authored JSON is analyze --base <ref>, which asks a configured provider to interpret the change. This adds a provider-key requirement; comparative accuracy, cost and speed are unknown.

For delivery, local SVGs avoid publishing a hosted canvas, while a canvas adds interactive exploration and sample traffic. Pull-request attachments place the explanation beside the change. The supplied material does not establish how PR Lens compares with competing diagramming tools.

evidence

The source snapshot is available at the fixed revision [https://github.com/coldteadotai/pr-lens/tree/d94e0b076e7c94a0d3b66e4e2b6fd6b683e50d51/packages/agent-skill]. It contains the skill, manual, references, package metadata, licence, synchronization scripts, test source and development configuration.

The synchronization source copies the skill and licence into an installer-facing folder and embeds the manual and references into CLI source. The tests specify checks for matching copies, packaging boundaries, example validity, configuration and documentation consistency.

Test source is not a passing test result. Nothing was executed: installation, validation, rendering, canvas behavior and forge uploads remain unassessed. The CLI, schema and renderer implementations referenced by these files are outside the supplied folder.

Access & freshness

costs

The MIT licence permits use and redistribution without a licence charge. That does not establish the total cost of using the coding assistant, CLI or hosted services.

When an existing agent writes the graph, the documented workflow avoids a separate provider call to interpret the diff. The optional analyze route uses a user-supplied key for Gemini, OpenAI or a compatible chat-completions endpoint. Provider charges, typical token usage, canvas pricing and hosted GitHub App pricing are unknown.

rights

The folder and repository-root notices both use the MIT License and name Copyright (c) 2026 Coldtea AI. They permit use, copying, modification, publication, distribution, sublicensing and sale, provided the copyright and permission notice remains in copies or substantial portions.

The software carries no warranty. These notices support redistribution of the captured skill files, but do not establish hosted-service terms, separate dependency licences or rights in diagrams containing third-party code information.

freshness

The supplied snapshot was captured on 15 November 2026 at 18:58:13.720 UTC from commit d94e0b076e7c94a0d3b66e4e2b6fd6b683e50d51. It declares skill package version 0.7.0 and uses graph/configuration schema version 0.3.1. These are different version identifiers.

The example's generatedAt value is not a package release date. Because the stub invokes @latest, a future invocation may retrieve a different CLI and manual. The currently published npm contents and hosted-service behavior are unknown.

actions

For an initial evaluation, use a small change and follow the documented sequence: load the CLI manual and references, read the actual diff, write the graph, resolve validation failures and render it. Record the CLI version so the result can be reproduced.

Compare the diagram with the code before sharing it, especially unchanged neighbors, removed paths and schema relationships. Inspect local SVGs first, choose the appropriate publication route and keep canvas edit links private. For recurring map mistakes, use the correction overlay rather than editing generated output.

Evidence for this report

LICENSEnotice · checked 2026-11-15
packages/agent-skill/LICENSEnotice · checked 2026-11-15
packages/agent-skill/README.mdselected · checked 2026-11-15
packages/agent-skill/SKILL.mdselected · checked 2026-11-15
packages/agent-skill/manual.mdselected · checked 2026-11-15
packages/agent-skill/package.jsonselected · checked 2026-11-15
packages/agent-skill/references/config.mdselected · checked 2026-11-15
packages/agent-skill/scripts/mirror.tsselected · checked 2026-11-15
packages/agent-skill/scripts/sync.tsselected · checked 2026-11-15
packages/agent-skill/test/mirror.test.tsselected · checked 2026-11-15
packages/agent-skill/test/skill.test.tsselected · checked 2026-11-15
packages/agent-skill/tsconfig.jsonselected · checked 2026-11-15
packages/agent-skill/vitest.config.tsselected · checked 2026-11-15