editing-model-diagrams

editing-model-diagrams is a skill for Claude Code, Codex from goadesign/model. It costs 69 tokens per session (3,335 once invoked), scanned A, original, MIT.

A guide for creating and reviewing C4 architecture diagrams from goa.design/model source files. C4 diagrams show a system at levels such as its overall landscape, containers, components, interactions, or deployment.

In plain words
What is it for?
Changing Model DSL, model.go, or views.go files; updating system relationships and boundaries; and regenerating readable SVG diagrams.
Why use it?
Architecture diagrams can look tidy while showing incorrect ownership, dependencies, or directions. This helps keep the diagram faithful to the source model and understandable.

Skill for Claude CodeCodex

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 skills/goadesign/model/editing-model-diagrams
Any agent
npx skills add goadesign/model --skill editing-model-diagrams
Clone the repo
git clone --depth 1 https://github.com/goadesign/model

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 editing-model-diagrams

README.md
[![agentmods](https://agentmods.dev/badge/skills/goadesign/model/editing-model-diagrams.svg)](https://agentmods.dev/skills/goadesign/model/editing-model-diagrams)
Your own site
<a href="https://agentmods.dev/skills/goadesign/model/editing-model-diagrams"><img src="https://agentmods.dev/badge/skills/goadesign/model/editing-model-diagrams.svg" alt="Measured on agentmods" height="20"></a>
Per session 69 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,335 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.00069 $0.03335
Opus 5 $0.00034 $0.01667
Sonnet 5 $0.00014 $0.00667
Haiku 4.5 $0.00007 $0.00333

Measured 4d ago against content hash 147248dbe3d3, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

editing-model-diagrams 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 4d 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.

cmd/mdl/skills/editing-model-diagrams/SKILL.md · 314 lines

How it starts

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

Editing Model diagrams

Produce diagrams whose source model is architecturally true and whose rendered views communicate that model without ambiguous ownership.

Prioritize truth, readability, then polish

Use this order when design goals conflict:

  1. Represent the real ownership, dependencies, directions, and runtime behavior.
  2. Make that reality readable through the right abstraction level, focused views, deliberate layout, and clear labels.
  3. Improve visual balance and polish without changing or hiding architectural meaning.

Never omit, reverse, reparent, or relabel architecture merely to make a diagram look cleaner. If a truthful view is unreadable, reduce its question, remove out-of-scope elements, or split it into additional truthful views while keeping the main view representative of the whole system.

Workflow

  1. Read the model definitions, the affected view, and imported model packages.
  2. State the one question the view answers and the expected elements, relationships, and boundaries.
  3. Identify the owner of every element and the source-model relationship for every intended edge.
  4. Choose the C4 view level that answers the question.
  5. Preserve published view keys unless the requested change intentionally renames or removes an output.
  6. Edit Model DSL source. Do not edit generated SVG or JSON output directly.
  7. Regenerate every affected view.
  8. Inspect the rendered diagram, not only the compiling DSL.

Preserve ownership

  • A SoftwareSystem owns the Container elements declared inside it.
  • A Container owns the Component elements declared inside it.
  • Add, AddDefault, AddAll, and imported packages change view membership; they do not change element ownership.
  • A deployment node may contain infrastructure nodes, child deployment nodes, and container instances. A container instance represents deployment of its referenced container; it does not transfer software ownership.
  • Do not redefine or reparent an element to make a layout easier. Correct the model first, then select and arrange the view.
  • A view cannot create a relationship absent from the source model. Do not invent or reverse an edge to complete a desired narrative; report or correct the model contract when evidence supports that change.
  • When a repository inventory reports a missing service or element, verify its ownership and typed callers before adding it. Model the real container and relationships; do not add a name-only placeholder merely to satisfy a check.

Read the full file on GitHub · 314 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. 4d ago First seen · 314 lines · 69 tokens per session scan A 147248dbe3d3

Subscribe to this mod's changes

editing-model-diagrams is a skill published in the GitHub repository goadesign/model (466 stars, last pushed 14d ago), licensed MIT. It adds 69 tokens to every session and 3,335 once invoked, about $0.0003 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.

Related

Other skills, from other repositories

excalidraw-diagram

Create Excalidraw diagrams as editable .excalidraw JSON that make a visual argument — architecture, flowchart, sequence, state, ER, timeline, swimlane, quadrant, loop/flywheel, layers, nested, tree, org chart, venn, pyramid, process, medallion, data flow, IT current-state, evidence/protocol explainers, before/after…

isatimur/excalidraw-skill-pack · 205 tokens

kroki-diagrams

Create clean, readable diagrams using Kroki with a use-case-first selector. Use when the user wants repository-local diagrams for architecture, runtime topology, request flows, dependency graphs, schemas, planning structures, or tree-like repository layouts from code, docs, or natural-language descriptions. Prefer…

smoldrago/kroki-diagrams · 111 tokens

kroki-editorial-diagrams

Create premium, responsive, interactive diagrams (flowcharts, sequence, architecture, data models, timing, data visualization) with an elegant editorial design aesthetic. Chooses the optimal layout engine (PlantUML, C4, D2, Mermaid, Graphviz, Structurizr, WaveDrom, Vega-Lite, ERD, BPMN, and more) and exports to…

LabinatorSolutions/kroki-editorial-diagrams · 96 tokens

excalidraw-diagram

Create Excalidraw diagrams as editable .excalidraw JSON that make a visual argument — architecture, flowchart, sequence, state, ER, timeline, swimlane, quadrant, loop/flywheel, layers, nested, tree, org chart, venn, pyramid, process, medallion, data flow, IT current-state, evidence/protocol explainers, before/after…

isatimur/excalidraw-skill-pack · 205 tokens

arch4-mcp

Use Arch4 MCP tools to create, update, build, and visualize repository architecture maps.

P451M/Arch4 · 23 tokens

architecture-diagram-creator

Create effective architecture diagrams following established diagramming standards (UML, C4, ArchiMate) with proper visual elements and presentation techniques. Use this skill whenever the user needs to create, review, or improve architecture diagrams, wants guidance on which diagramming standard to use, needs help…

bookforge-ai/bookforge-skills · 128 tokens