mermaid-architect

mermaid-architect is a skill for Claude Code, Codex from smicolon/ai-kit. It costs 39 tokens per session (607 once invoked), scanned A, original, MIT.

A guide for creating Mermaid.js diagrams in Markdown, including database relationships, system architecture, request sequences, class structures, and C4 component models. Mermaid.js turns text descriptions into diagrams.

In plain words
What is it for?
Use it to create entity-relationship diagrams, architecture diagrams, sequence diagrams, class diagrams, and C4 diagrams in documentation or pull requests.
Why use it?
It helps document systems and data relationships in a form that can be stored alongside code. Correct syntax reduces errors when diagrams contain complex labels or relationship details.

Skill for Claude CodeCodex

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

Good fit Use it to create entity-relationship diagrams, architecture diagrams, sequence diagrams, class diagrams, and C4 diagrams in documentation or pull requests.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/smicolon/ai-kit/mermaid-architect
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 smicolon/ai-kit --skill mermaid-architect
Clone the repo
git clone --depth 1 https://github.com/smicolon/ai-kit

Made for: Claude Code, Codex.

Its marketplace also offers this one on its own, as the plugin architect — /plugin install architect after adding the marketplace above.

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 mermaid-architect

README.md
[![agentmods](https://agentmods.dev/badge/skills/smicolon/ai-kit/mermaid-architect/github.svg)](https://agentmods.dev/skills/smicolon/ai-kit/mermaid-architect)
Your own site
<a href="https://agentmods.dev/skills/smicolon/ai-kit/mermaid-architect"><img src="https://agentmods.dev/badge/skills/smicolon/ai-kit/mermaid-architect/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 mermaid-architect

Your own site · 80×15
<a href="https://agentmods.dev/skills/smicolon/ai-kit/mermaid-architect"><img src="https://agentmods.dev/badge/skills/smicolon/ai-kit/mermaid-architect.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 39 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 607 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.00039 $0.00607
Opus 5.5 $0.00016 $0.00243
Sonnet 5.5 $0.00008 $0.00121
Haiku 4.5 $0.00004 $0.00061

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

Security

Grade A, and why

mermaid-architect 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 1mo 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.

packs/architect/skills/mermaid-architect/SKILL.md · 95 lines

What it actually says

Mermaid Architect

Specialized skill for creating robust, syntactically correct Mermaid.js diagrams for Markdown documentation, PR descriptions, and architectural blueprints.

Syntax Best Practices

  1. Quote Node Labels: Always quote labels containing special characters, brackets, or parentheses:
    graph TD
      A["Client (Browser / Mobile)"] --> B["API Gateway (Hono / Next.js)"]
    
  2. Cardinality in ERDs:
    • ||--|| : Exactly one to one
    • ||--o{ : One to zero-or-more
    • ||--|{ : One to one-or-more
    • }o--o{ : Zero-or-more to zero-or-more

Supported Diagram Types

1. Entity Relationship Diagram (ERD)

erDiagram
  USER ||--o{ POST : writes
  USER {
    uuid id PK
    string email UK
    datetime created_at
  }
  POST {
    uuid id PK
    uuid author_id FK
    string title
    text content
  }

2. Sequence Diagram (Auth & API Flow)

sequenceDiagram
  autonumber
  actor User
  participant Client as Client App
  participant Auth as Better Auth Server
  participant DB as Database

  User->>Client: Click Login with Google
  Client->>Auth: Redirect to /api/auth/sign-in/social
  Auth-->>Client: OAuth consent redirect
  User->>Auth: Approve scopes
  Auth->>DB: Upsert User & Session
  Auth-->>Client: Set HttpOnly session cookie
  Client-->>User: Redirect to /dashboard

3. C4 / System Topology Flowchart

flowchart TD
  subgraph Client Tier
    Web["Next.js Web App"]
    Mobile["Flutter App"]
  end

  subgraph Edge Tier
    Gateway["Cloudflare Workers (Hono API)"]
  end

  subgraph Service Tier
    AppServer["NestJS / Django Backend"]
    Worker["Async Celery / BullMQ"]
  end

  subgraph Data Tier
    Postgres[("PostgreSQL")]
    Redis[("Redis Cache / Queue")]
    S3[("R2 / S3 Object Storage")]
  end

  Web --> Gateway
  Mobile --> Gateway
  Gateway --> AppServer
  AppServer --> Postgres
  AppServer --> Redis
  AppServer --> S3
  Worker --> Redis
  Worker --> Postgres
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. 1mo ago First seen · 95 lines · 39 tokens per session scan A ba8b9577bc98

Subscribe to this mod's changes

mermaid-architect is a skill published in the GitHub repository smicolon/ai-kit (6 stars, last pushed 1mo ago), licensed MIT. It adds 39 tokens to every session and 607 once invoked, about $0.0002 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-09-04.