create-diagram

A command for creating an architecture or design diagram from source material such as an issue, specification, plan, or repository documentation.

In plain words
What is it for?
It is for making sequence, class, state-machine, entity-relationship, or C4 diagrams for a chosen audience and level of detail.
Why use it?
It turns written system information into a focused visual view while reducing the risk of adding components or relationships that are not documented.

Command for Cursor

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.

agentmods
npx agentmods add commands/jabrena/plinth/create-diagram
Clone the repo
git clone --depth 1 https://github.com/jabrena/plinth

Made for: Cursor.

Per session 11 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 296 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00011 $0.00296
Opus 5 $0.00005 $0.00148
Sonnet 5 $0.00002 $0.00059
Haiku 4.5 $0.00001 $0.00030

Measured yesterday against content hash ddf66e090d4f, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

create-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 yesterday.

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.

.cursor/commands/create-diagram.md · 55 lines

What it actually says

create-diagram

Create an architecture or design diagram that explains a selected system view.

Usage

/create-diagram <source-artifact> [<diagram-type>]

Accepted Inputs

  • Issue, approved design, ADR, specification, plan, or repository architecture
  • Optional diagram type: sequence, class, state machine, ER, or C4
  • Desired audience and level of detail

Owning Agent

@plinth-architect

Associated Skill

033-architecture-diagrams

Workflow

  1. Confirm the diagram purpose, audience, type, and scope.
  2. Extract only the components and relationships needed for that view.
  3. Generate the diagram source using the repository convention.
  4. Check names and relationships against the source artifacts.
  5. Report the diagram path and any assumptions.

Output

  • Diagram source for the selected architecture view
  • Concise explanation of scope and assumptions
  • Links to the source artifacts represented

Safeguards

  • Do not mix unrelated architecture views into one diagram.
  • Do not invent components or interactions.
  • Do not replace an existing diagram without reviewing its current purpose.
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. yesterday First seen · 55 lines · 11 tokens per session scan A ddf66e090d4f

Subscribe to this mod's changes

create-diagram is a command published in the GitHub repository jabrena/plinth (435 stars, last pushed today), licensed Apache-2.0. It adds 11 tokens to every session and 296 once invoked, about $0.0001 per session on Opus 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-08-30.