From Tech Doc Skills
Use this skill when asked to create, fix, review, or validate Mermaid diagrams in technical docs, RFCs, ADRs, architecture notes, or Markdown. Helps choose the right Mermaid diagram type, apply consistent semantic colors and groups, and validate diagrams before finalizing.
How this skill is triggered — by the user, by Claude, or both
Slash command
/tech-doc-skills:mermaid-diagramsThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Use this skill for any Mermaid work in technical writing.
Use this skill for any Mermaid work in technical writing.
README.md, design docs, RFCs, ADRs, runbooks, or onboarding notesflowchart / graph — architecture overview, process flow, request pipeline, ownership boundariessequenceDiagram — time-ordered service interactions or control flowstateDiagram-v2 — lifecycle/state machineclassDiagram — domain model, interfaces, component relationshipserDiagram — tables/entities and cardinalitytimeline — chronology or milestone historygantt — execution plan, migration plan, rollout schedulemindmap — scope decomposition or brainstormingjourney — end-user workflow scoringgitGraph — release flow or branch strategyPrefer one consistent palette across the document:
Use reusable styles instead of one-off colors wherever possible.
flowchart LR
subgraph Clients["Clients"]
U["Developer"]
end
subgraph Control["Control plane"]
API["Docs API"]
WF["RFC workflow"]
end
subgraph Data["Persistence"]
DB[("Metadata DB")]
end
U --> API --> WF --> DB
classDef actor fill:#E0F2FE,stroke:#0369A1,color:#0C4A6E;
classDef control fill:#F5F3FF,stroke:#7C3AED,color:#4C1D95;
classDef data fill:#FEE2E2,stroke:#DC2626,color:#7F1D1D;
class U actor;
class API,WF control;
class DB data;
sequenceDiagram
box rgba(224, 242, 254, 0.45) User
actor Author as RFC author
end
box rgba(245, 243, 255, 0.55) Control plane
participant Docs as Docs service
participant Review as Review workflow
end
box rgba(220, 252, 231, 0.55) Runtime
participant Store as Content store
end
Author->>Docs: Submit draft
Docs->>Review: Start review
Review->>Store: Persist version
Store-->>Review: Saved
Review-->>Docs: Review requested
Docs-->>Author: Show status
end as an unquoted label.linkStyle indexes edges by declaration order.Always validate Mermaid if mmdc is available.
Run the bundled validator from the skill directory:
node ./scripts/validate-mermaid.js path/to/file.md
node ./scripts/validate-mermaid.js path/to/diagram.mmd
node ./scripts/validate-mermaid.js docs/
node ./scripts/validate-mermaid.js --self-test-styles
The validator:
.mmd and .mermaid filesUse the template generator when you want a fast, styled starting point:
node ./scripts/new-mermaid-template.js flowchart
node ./scripts/new-mermaid-template.js sequence --title "RFC review lifecycle"
Before finalizing Mermaid changes:
Read these as needed:
references/diagram-types.md — small working examples for major Mermaid diagram types; use the deeper per-type docs only when a flowchart, ER, or gantt diagram gets complexreferences/flowchart-keywords.md — flowchart / graph keywords, edge operators, subgraphs, shapes, and gotchasreferences/er-keywords.md — ER relationship syntax, cardinality markers, attributes, keys, and layoutreferences/gantt-keywords.md — gantt task metadata, dates, dependencies, sections, tags, and exclusionsreferences/rfc-diagram-patterns.md — doc/RFC-friendly patterns with colors, groups, and recommended use casesreferences/official-sources.md — official Mermaid docs and validation notesnpx claudepluginhub championswimmer/tech-doc-skillsFetches up-to-date documentation from Context7 for libraries and frameworks like React, Next.js, Prisma. Use for setup questions, API references, and code examples.
Applies a firm's KYC/AML rules grid to parsed onboarding records: assigns risk rating, checks required documents, outputs rule outcomes with citations, and routes for escalation.
Generates daily or weekly digests of activity from connected sources (chat, email, docs, tasks, CRM), highlighting action items, decisions, mentions, and project updates.