diagramArchitect

diagramArchitect is a skill for Claude Code from AlirezaSoltaniJazi/Skillnir. It costs 141 tokens per session (3,453 once invoked), scanned A, original, MIT.

A tool for creating, reviewing, fixing, and maintaining diagrams as text files, using Mermaid first and PlantUML when needed. It covers diagrams such as flows, sequences, states, classes, databases, deployments, and system components.

In plain words
What is it for?
Use it to document processes and software structure, review diagram changes, repair broken diagrams, create diagrams from code or schemas, and derive test cases from state or activity diagrams.
Why use it?
Text-based diagrams can become outdated or fail to render when code and architecture change. This tool helps keep diagram source consistent with the project and catches rendering problems.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions CLAUDE.md; mentions subagents.

Good fit Use it to document processes and software structure, review diagram changes, repair broken diagrams, create diagrams from code or schemas, and derive test cases from state or activity diagrams.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/alirezasoltanijazi/skillnir/diagramarchitect
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 AlirezaSoltaniJazi/Skillnir --skill diagramarchitect
Clone the repo
git clone --depth 1 https://github.com/AlirezaSoltaniJazi/Skillnir

Made for: Claude Code.

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 diagramArchitect

README.md
[![agentmods](https://agentmods.dev/badge/skills/alirezasoltanijazi/skillnir/diagramarchitect/github.svg)](https://agentmods.dev/skills/alirezasoltanijazi/skillnir/diagramarchitect)
Your own site
<a href="https://agentmods.dev/skills/alirezasoltanijazi/skillnir/diagramarchitect"><img src="https://agentmods.dev/badge/skills/alirezasoltanijazi/skillnir/diagramarchitect/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 diagramArchitect

Your own site · 80×15
<a href="https://agentmods.dev/skills/alirezasoltanijazi/skillnir/diagramarchitect"><img src="https://agentmods.dev/badge/skills/alirezasoltanijazi/skillnir/diagramarchitect.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 141 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,453 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.00141 $0.03453
Opus 5.5 $0.00056 $0.01381
Sonnet 5.5 $0.00028 $0.00691
Haiku 4.5 $0.00014 $0.00345

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

Security

Grade A, and why

diagramArchitect 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 11d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/validate-diagrams.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

.data/skills/diagramArchitect/SKILL.md · 212 lines

How it starts

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

Before You Start

  1. Always say "Using: diagramArchitect skill" at the very start of the response, before any work — the user needs to know which ruleset drives the output.
  2. Read LEARNED.md first — it overrides defaults here; skipping it repeats fixed mistakes.
  3. Detect notation: Glob **/*.{mmd,puml,plantuml,d2,drawio,dsl}, Grep ```mermaid in docs. Follow what exists; none → Mermaid in Markdown (native render, zero install), recorded in LEARNED.md.

When to Use

  1. Explain or document a flow, lifecycle, interaction, or structure visually
  2. Model a business or engineering process (steps, decisions, owners)
  3. Review a diagram or a PR touching diagrams
  4. Fix a diagram that won't render (parse error, blank block on GitHub)
  5. Code changed under a diagrammed area — check for drift
  6. Generate class/package/ER diagrams from code or schema
  7. Derive test cases from a state machine, activity, or sequence diagram

Do NOT Use

  • Long-form architecture docs / wiki — wiki-generator or docs skill (this skill supplies only the diagrams)
  • Threat models — security skill
  • Writing test code — testing / test-design skill (this skill stops at the test-case table)
  • UI mockups — ui-ux-designer skill · Data charts — data-visualization skill

Diagram Selection

Pick from the reader's question, not habit. Full matrix + worked examples: diagram-selection.md.

Reader's question Diagram Mermaid PlantUML
Steps, decisions, who owns each? Activity + lanes flowchart + subgraph activity |Lane|
Who calls whom, in what order? Sequence sequenceDiagram sequence
What states can X be in, what moves it? State machine stateDiagram-v2 state
What can each actor do? Use case — (not supported) usecase
How is code / data structured? Class / ER classDiagram / erDiagram class / entity
How do deployables fit / where do they run? C4 container / deployment flowchart approximation C4-PlantUML / deployment
Business process for non-engineers BPMN (not UML — say so) flowchart approximation —

Read the full file on GitHub · 212 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. 11d ago First seen · 212 lines · 141 tokens per session scan A c1a644034094

Subscribe to this mod's changes

diagramArchitect is a skill published in the GitHub repository AlirezaSoltaniJazi/Skillnir (9 stars, last pushed 12d ago), licensed MIT. It adds 141 tokens to every session and 3,453 once invoked, about $0.0006 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-10-26.

Related

diagramArchitect compared with skills from other repositories

diagramArchitect next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
diagramArchitectAlirezaSoltaniJazi/SkillnirSkill912d agoMITA141Claude Code
webgl-holographic-foilnexu-io/open-designSkill106kyesterdayApache-2.0A41Claude Code, Codex
html-ppt-hermes-cyber-terminalnexu-io/open-designSkill106kyesterdayApache-2.0A53Claude Code, Codex
html-ppt-taste-brutalistnexu-io/open-designSkill106kyesterdayApache-2.0A78Claude Code, Codex
visual-ralphYeachan-Heo/oh-my-codexSkill34k3d agoMITA52Codex
glance-canonical-layoutsandroid/skillsSkill10kyesterdayApache-2.0A56Claude Code
accessibilitymicrosoft/hve-coreSkill1.6kyesterdayMITA47Claude Code