Index of every page on this site: llms.txt
All skills
coldteadotai avatar

/agent-skill

@8e7dc57
by Coldtea AIcoldteadotai/pr-lens2.4k stars
102
Run it yourself

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

  • 14 files
  • 92 KB
  • Updated last month
  • GitHub
Use this Skill: https://skilld.dev/gh/coldteadotai/pr-lens/agent-skill

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

README.md

≈519 tokens on demand. Your agent reads this file only when SKILL.md points to it.

@coldtea/pr-lens-agent-skill

The PR Lens skill for coding agents. It teaches an agent to draw the change it just made: author a graph document from the diff, validate it against the contract, render it, attach it to the pull request, and to fix a repository's map by writing corrections rather than editing generated output.

MIT © Coldtea AI.

Install it

npm install --save-dev @coldtea/pr-lens-agent-skill

Claude Code: copy it where skills live, per project or per user:

mkdir -p .claude/skills/pr-lens
cp node_modules/@coldtea/pr-lens-agent-skill/SKILL.md .claude/skills/pr-lens/

Cursor: the same file works as a rule:

mkdir -p .cursor/rules
cp node_modules/@coldtea/pr-lens-agent-skill/SKILL.md .cursor/rules/pr-lens.mdc

Anything else: point your agent's instructions file at SKILL.md. It is plain markdown with YAML frontmatter, and it assumes nothing beyond a shell and npx.

What is in it

SKILL.md is short. It tells the agent when to use PR Lens, then sends it to the CLI for the full instructions:

npx @coldtea/pr-lens-cli@latest skill             # the write, validate, fix, render loop
npx @coldtea/pr-lens-cli@latest skill references  # the graph document, the config format, and an example

The CLI prints the instructions for its own version, so an old copy of SKILL.md never sends the agent to commands that have changed. Their source is manual.md and references/, in this folder of the repository.

The agent is usually the model. Rather than spending a provider key to describe a diff it already understands, it writes the document itself and lets pr-lens validate hold it to the contract. Every failure is a path into the document, so the loop closes without a human in it.

Why this exists

A coding agent that opens a pull request is asking a person to review code the person did not write. A diagram of what moved is the cheapest thing the agent can add to make that review possible.


Part of PR Lens. Review what actually matters.

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No third-party reports yet.

Signed by skilld at 8e7dc57. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated last month

README badge

README badge for coldteadotai/pr-lens/agent-skill