diagram

diagram is a skill for Claude Code from andregusman-raiz/a-gusman-claude. It costs 49 tokens per session (2,004 once invoked), scanned A, original, MIT.

A tool for creating technical diagrams such as flowcharts, sequence diagrams, entity-relationship diagrams, and architecture diagrams. It supports Mermaid, PlantUML, and D2 diagram formats.

In plain words
What is it for?
Use it to describe software flows, data models, classes, deployment setups, system architecture, and other technical relationships, then render them as PNG or SVG files.
Why use it?
It turns technical structures and processes into visual documents that are easier to understand and share.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: model in frontmatter.

Good fit Use it to describe software flows, data models, classes, deployment setups, system architecture, and other technical relationships, then render them as PNG or SVG files.

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

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 diagram

README.md
[![agentmods](https://agentmods.dev/badge/skills/andregusman-raiz/a-gusman-claude/diagram/github.svg)](https://agentmods.dev/skills/andregusman-raiz/a-gusman-claude/diagram)
Your own site
<a href="https://agentmods.dev/skills/andregusman-raiz/a-gusman-claude/diagram"><img src="https://agentmods.dev/badge/skills/andregusman-raiz/a-gusman-claude/diagram/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 diagram

Your own site · 80×15
<a href="https://agentmods.dev/skills/andregusman-raiz/a-gusman-claude/diagram"><img src="https://agentmods.dev/badge/skills/andregusman-raiz/a-gusman-claude/diagram.svg" alt="Reviewed on agentmods" width="80" 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 2,004 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 warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Excessive Agency · line 4
    Skill selects an external model or provider that may use a different account or billing plan than the operator expects. Undisclosed model switches can cause unexpected cost or quota consumption.
    Fix: Remove the model/provider override or disclose it prominently and require explicit operator approval before invoking an external coding CLI or billed model.
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.00049 $0.02004
Opus 5 $0.00024 $0.01002
Sonnet 5 $0.00010 $0.00401
Haiku 4.5 $0.00005 $0.00200

Measured 9d ago against content hash 52097f2a9052, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

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 9d 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/diagram/SKILL.md · 286 lines

How it starts

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

Diagram Skill

Gerar diagramas tecnicos com Mermaid (preferido), PlantUML ou D2.

Decision Matrix

Diagram Type Best Tool Reason
Flowchart Mermaid Simples, renderiza direto
Sequence Mermaid Excelente suporte
ER / Data Model Mermaid erDiagram nativo
Class Mermaid classDiagram nativo
Gantt Mermaid gantt nativo
State Machine Mermaid stateDiagram-v2
Architecture (complex) D2 Melhor layout para diagramas grandes
Deployment PlantUML Mais icons de infra
C4 Model PlantUML Plugin C4 dedicado

Rendering

Usar o MCP tool mcp__mermaid__generate para renderizar diagramas como PNG/SVG:

mcp__mermaid__generate({
  code: "flowchart LR\n  A --> B",
  name: "my-diagram",
  outputFormat: "png",
  theme: "default",
  folder: "/tmp"
})

Temas disponiveis: default, forest, dark, neutral

Mermaid Syntax

Flowchart

flowchart LR
    A[Start] --> B{Decision?}
    B -->|Yes| C[Process A]
    B -->|No| D[Process B]
    C --> E[End]
    D --> E

    style A fill:#4361ee,color:#fff
    style E fill:#2d6a4f,color:#fff
    style B fill:#f4845f,color:#fff

Direcoes: TB (top-bottom), BT, LR (left-right), RL

Shapes: [rect], (rounded), {diamond}, ([stadium]), [[subroutine]], [(cylinder)], ((circle)), >flag], {hexagon}

Sequence Diagram

sequenceDiagram
    actor U as User
    participant F as Frontend
    participant A as API
    participant D as Database

    U->>F: Click login
    F->>A: POST /auth/login
    A->>D: SELECT user
    D-->>A: User data
    A-->>F: JWT token
    F-->>U: Redirect to dashboard

    Note over A,D: Auth flow
    rect rgb(200, 220, 255)
        A->>D: Log access
        D-->>A: OK
    end

Arrows: ->> (solid), -->> (dashed), -x (cross), -) (async)

Class Diagram

classDiagram
    class User {
        +String id
        +String name
        +String email
        +login() bool
        +logout() void
    }
    class Order {
        +String id
        +Date createdAt
        +Float total
        +addItem(item) void
        +checkout() bool
    }
    class Product {
        +String id
        +String name
        +Float price
    }

    User "1" --> "*" Order : places
    Order "*" --> "*" Product : contains

Read the full file on GitHub · 286 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. 9d ago First seen · 286 lines · 49 tokens per session scan A 52097f2a9052

Subscribe to this mod's changes

diagram is a skill published in the GitHub repository andregusman-raiz/a-gusman-claude (19 stars, last pushed 4d ago), licensed MIT. It adds 49 tokens to every session and 2,004 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-09-03.

Related

Other skills, from other repositories

architecture-diagram-creator

Create comprehensive HTML architecture diagrams showing data flows, business objectives, features, technical architecture, and deployment. Use when users request system architecture, project documentation, high-level overviews, or technical specifications.

mhattingpete/claude-skills-marketplace · 45 tokens

minimax-pdf

Use this skill when visual quality and design identity matter for a PDF. CREATE (generate from scratch): "make a PDF", "generate a report", "write a proposal", "create a resume", "beautiful PDF", "professional document", "cover page", "polished PDF", "client-ready document". FILL (complete form fields): "fill in the…

bighardperson/computer-science-skills-collection · 197 tokens

taiyi-ui-design

A design-planning guide for describing how an application's user interface should look and behave. It produces a UI-DESIGN.md document covering layouts, components, interactions, accessibility, and error states.

Dong90/oh-my-taiyiforge · 35 tokens

taiyi-diagram-arch

A workflow for turning written system or product architecture into readable, version-controlled diagrams using Mermaid or exported SVG and PNG files. Architecture diagrams show components, boundaries, data flows, and deployment relationships.

Dong90/oh-my-taiyiforge · 48 tokens

taiyi-restyle

A planning guide for breaking a large user-interface redesign into smaller, independently reviewable tasks. A user interface is the part of an application that people see and use.

Dong90/oh-my-taiyiforge · 39 tokens

taiyi-diagram-pipeline

A pipeline that creates and updates architecture diagrams in three stages: a C4 model from the code, an engineering architecture diagram, and an exported PNG image. C4 is a way to describe software architecture at several levels of detail.

Dong90/oh-my-taiyiforge · 52 tokens