diagram

diagram is a skill for Claude Code, Codex from backnotprop/plannotator. It costs 47 tokens per session (5,752 once invoked), scanned A, original, Apache-2.0.

A tool for designing structured diagrams and rendering them as SVG images. SVG is a scalable image format that stays sharp when resized.

In plain words
What is it for?
Use it to create architecture diagrams, process flows, system maps, and other visual explanations with connected components and labeled sections.
Why use it?
It helps check diagram layout for overlaps, crossed connectors, misplaced ports, and colliding labels before the result is used.

Skill for Claude CodeCodex

Written for Claude Code and Codex: disable-model-invocation in frontmatter, but also agents/openai.yaml present.

Good fit Use it to create architecture diagrams, process flows, system maps, and other visual explanations with connected components and labeled sections.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/backnotprop/plannotator/diagram
About the project

Plannotator is a local browser-based review tool for coding agents that lets people annotate plans, documents, HTML artifacts, code diffs, and pull requests, then send feedback back to the agent. It is used by developers and teams reviewing work from agents across supported coding tools and version-control systems.

backnotprop/plannotator · 15,886 stars · on GitHub · plannotator.ai

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add backnotprop/plannotator --skill diagram
Clone the repo
git clone --depth 1 https://github.com/backnotprop/plannotator

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for diagram

README.md
[![agentmods](https://agentmods.dev/badge/skills/backnotprop/plannotator/diagram/github.svg)](https://agentmods.dev/skills/backnotprop/plannotator/diagram)
Your own site
<a href="https://agentmods.dev/skills/backnotprop/plannotator/diagram"><img src="https://agentmods.dev/badge/skills/backnotprop/plannotator/diagram/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for diagram

Your own site · 80×15
<a href="https://agentmods.dev/skills/backnotprop/plannotator/diagram"><img src="https://agentmods.dev/badge/skills/backnotprop/plannotator/diagram.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 47 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,752 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00047 $0.05752
Opus 5.5 $0.00019 $0.02301
Sonnet 5.5 $0.00009 $0.01150
Haiku 4.5 $0.00005 $0.00575

Measured today against content hash c98c0c11dbd8, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

diagram scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

apps/skills/core/diagram/SKILL.md · 211 lines

How it starts

The opening of the file, as written. The whole thing — 211 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Diagram

Design and author a structured diagram as a .diagram.json specification and render it to SVG with @plannotator/diagrams. The renderer measures typography, sizes panels, routes connectors, and checks geometry—reporting overlaps, crossings, ports facing away, and label collisions so you can refine the drawing until it renders cleanly.

1. Ground the content, then choose your own form

Decide for yourself what viewpoint, composition, level of detail, emphasis, and omissions best answer the reader's request using the primitives below.

  • Start from the library's visual language, and depart only with intent: @plannotator/diagrams ships with tactile architectural defaults—subtle 3D lids, beveled tiles, blueprint mini-graphs, structured cards, dashed boundary groups, and host-adaptive colors—that work well out of the box. Prefer structured visual blocks (tiles, card, graph, row, groups, footer, steps) that show components, boundaries, and concrete data at a glance instead of prose paragraphs. Adjust theme relief, typography, or custom tones only when that choice carries a real distinction or makes the finished drawing clearer to read.
  • Verify real references: When drawing from an existing codebase or repository, read the actual source, config, or doc files first and cite real symbols, project-relative paths, and 1-based line numbers—never invent them. When drawing from a brief with no repo files, omit file refs (or include only real URLs).

2. Create or locate the .diagram.json file

A top-level "id" identifies one logical diagram across its revisions. Never copy a literal example ID across unrelated drawings.

  • New diagram with Plannotator CLI:
    plannotator diagram new my-diagram
    # or an explicit path ending in .diagram.json:
    plannotator diagram new docs/my-diagram.diagram.json
    
    Writes a starter file with a freshly generated UUID top-level id and prints its absolute path. Pass a plain name (letters, digits, spaces, ., _, -) to store it in the project's Plannotator diagram folder, or pass an explicit *.diagram.json path when a specific location was requested. Keep the generated UUID as the diagram's "id". Never run plannotator diagram new on an existing diagram—it fails if the file exists, and replacing "id" breaks revision history.
  • New diagram standalone (no Plannotator CLI, or an older Plannotator without diagram): Create a UTF-8 *.diagram.json file in the requested or working directory and generate a fresh UUID for its top-level "id" (for example with crypto.randomUUID()).
  • Revising an existing diagram: Edit the existing .diagram.json file in place and keep its top-level "id" unchanged.

Read the full file on GitHub · 211 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today First seen · 211 lines · 47 tokens per session scan A c98c0c11dbd8

Subscribe to this mod's changes

diagram is a skill published in the GitHub repository backnotprop/plannotator (15,886 stars, last pushed today), licensed Apache-2.0. It adds 47 tokens to every session and 5,752 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-12-01.

Related

diagram compared with skills from other repositories

diagram next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
diagrambacknotprop/plannotatorSkill16ktodayApache-2.0A47Claude Code, Codex
archifytt-a1i/archifySkill102ktodayApache-2.0A209Claude Code, Codex
archify-tuningtt-a1i/archifySkill102ktodayApache-2.0A49Claude Code, Codex
loftYeachan-Heo/oh-my-claudecodeSkill41ktodayMITA96Claude Code
anywhere-uianywhere-labs/Agents-AnywhereSkill3.9kyesterdayApache-2.0A46Claude Code, Codex
obsidian-layout-adjustmentAr9av/obsidian-wikiSkill3.8ktodayMITA52Claude Code
aoe-keyboard-focusagent-of-empires/agent-of-empiresSkill5.2ktodayMITA71Claude Code, Codex