diagram-design

diagram-design is a skill for Claude Code, Codex from soulcodex/agentic. It costs 49 tokens per session (597 once invoked), scanned A, original, MIT.

A guide for drawing architecture, sequence, and flow diagrams from existing code and documentation. It maps only verified parts of the system and identifies information that is missing or inconsistent.

In plain words
What is it for?
Use it to show system structure, request timing, data movement, ownership, dependencies, or decision branches based on implementation evidence.
Why use it?
It helps diagrams reflect the software that actually exists instead of showing guessed components or data flows.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Codex; mentions OpenCode.

Good fit Use it to show system structure, request timing, data movement, ownership, dependencies…

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/soulcodex/agentic/diagram-design
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 soulcodex/agentic --skill diagram-design
Clone the repo
git clone --depth 1 https://github.com/soulcodex/agentic

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-design

README.md
[![agentmods](https://agentmods.dev/badge/skills/soulcodex/agentic/diagram-design.svg)](https://agentmods.dev/skills/soulcodex/agentic/diagram-design)
Your own site
<a href="https://agentmods.dev/skills/soulcodex/agentic/diagram-design"><img src="https://agentmods.dev/badge/skills/soulcodex/agentic/diagram-design.svg" alt="Measured on agentmods" height="20"></a>
Per session 49 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 597 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.00049 $0.00597
Opus 5 $0.00024 $0.00298
Sonnet 5 $0.00010 $0.00119
Haiku 4.5 $0.00005 $0.00060

Measured 6d ago against content hash ec4ebf3dd9fe, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

diagram-design 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 6d ago.

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.

skills/ui/diagram-design/SKILL.md · 80 lines

How it starts

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

Diagram Design Skill

Step 1 — Inspect Source of Truth

Inspect implementation artifacts before drawing:

  • Code structure and runtime boundaries (modules, routes, services, adapters).
  • Existing docs (README, ADRs, RFCs, architecture docs, API contracts).
  • Current terminology used by the codebase and product language.

Capture what is explicitly evidenced. If evidence is missing, mark it as unknown.

Step 2 — Define Diagram Objective

State the single primary question the diagram must answer, such as:

  • "How data moves from UI action to persistence."
  • "Which components own state vs orchestration."
  • "Where sync vs async boundaries are enforced."

Limit scope to one context per diagram to keep it reviewable.

Step 3 — Choose Notation Intentionally

Select notation based on the objective:

  • C4/container or component view for structural ownership and dependencies.
  • Sequence diagram for request/response timing and actor interactions.
  • Flow/state diagram for decision branches, retries, and error handling.

Document why this notation was chosen and why alternatives were not.

Step 4 — Map Only Verified Components and Flows

Build the diagram strictly from verified artifacts:

  • Use real component/service/module names from code/docs.
  • Include only flows that can be traced to handlers, functions, contracts, or tests.
  • Mark uncertain links as Unknown or TBD (needs evidence) instead of inventing paths.

Do not add speculative systems, side effects, queues, or external actors without evidence.

Step 5 — Cross-Check ADR/RFC/Code Consistency

Validate consistency across design intent and implementation:

  • ADR says X, code does Y.
  • RFC flow omits a runtime guard present in code.
  • Code introduces dependency or sync call not reflected in docs.

List mismatches explicitly with:

  • Source reference (ADR/RFC filename or code path).
  • Observed conflict.
  • Impact (correctness, performance, operability, ownership).

Step 6 — Deliver Diagram + Review Notes

Read the full file on GitHub · 80 lines

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. 6d ago First seen · 80 lines · 49 tokens per session scan A ec4ebf3dd9fe

Subscribe to this mod's changes

diagram-design is a skill published in the GitHub repository soulcodex/agentic (10 stars, last pushed 2d ago), licensed MIT. It adds 49 tokens to every session and 597 once invoked, about $0.0002 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-31.