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

Written for no agent in particular: nothing here depends on one.

Good fit Changing Model DSL, model.go, or views.go files; updating system relationships and boundaries; and regenerating readable SVG diagrams.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/goadesign/model/editing-model-diagrams
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 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/github.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/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 editing-model-diagrams

Your own site · 80×15
<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="Reviewed on agentmods" width="80" 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. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00069 $0.03335
Opus 5.5 $0.00028 $0.01334
Sonnet 5.5 $0.00014 $0.00667
Haiku 4.5 $0.00007 $0.00333

Measured 3mo ago against content hash 147248dbe3d3, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 3mo 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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

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. 3mo 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 (470 stars, last pushed yesterday), licensed MIT. It adds 69 tokens to every session and 3,335 once invoked, about $0.0003 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-08-30.

Related

editing-model-diagrams compared with skills from other repositories

editing-model-diagrams next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
editing-model-diagramsgoadesign/modelSkill470yesterdayMITA69Claude Code, Codex
excalidraw-diagramisatimur/excalidraw-skill-packSkill4todayMITA205Claude Code
kroki-diagramssmoldrago/kroki-diagramsSkill67d agoMITA111Claude Code, Codex
Architecture Diagrams Readinesss977043/river-reviewSkill8todayMITA27Claude Code
excalidraw-diagramisatimur/excalidraw-skill-packSkill4todayMITA205Claude Code
kroki-editorial-diagramsLabinatorSolutions/kroki-editorial-diagramsSkill43mo agoGPL-3.0A96Claude Code
architecture-diagram-creatorbookforge-ai/bookforge-skillsSkill437mo agoCC-BY-SA-4.0A128Claude Code