mermaid-diagrams
Skill110 starsChanged 9 months agoApache-2.0View on GitHub
Generate Mermaid.js diagrams for system architecture, data flows, sequence diagrams, ERDs, and project planning. Use when the user asks to visualize architecture, create flowcharts, draw sequence diagrams, map data flows, or document system design.
41 other projects use a version of this.
Adopted by
Most recently taken up by
- KarhouTam/agent-skillstheir own version, first seen Oct 5, 2026
- compozy/compozytheir own version, first seen Oct 1, 2026
- gigio1023/agent-skillstheir own version, first seen Sep 29, 2026
- transon-top/skillstheir own version, first seen Sep 28, 2026
- langchain-ai/openwikitheir own version, first seen Sep 23, 2026
- ZeroTokenClaw/agents-skillstheir own version, first seen Sep 21, 2026
Used with
Projects with it also use backend-to-frontend-handoff-docs, lesson-learned and 7 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
softaworksSkillbackend-to-frontend-handoff-docs
Create API handoff documentation for frontend developers. Use when backend work is complete and needs to be documented for frontend integration, or user says 'create handoff', 'document API', 'frontend handoff', or 'API documentation'.
Also in 3 projects that use this
softaworksSkilllesson-learned
Analyze recent code changes via git history and extract software engineering lessons. Use when the user asks 'what is the lesson here?', 'what can I learn from this?', 'engineering takeaway', 'what did I just learn?', 'reflect on this code', or wants to extract principles from recent work.
Also in 3 projects that use this
SupabaseSkillcopywriting
Write or audit UI copy (buttons, labels, empty states, error messages, tooltips, form text) anywhere in the monorepo. Load it before shipping or reviewing any user-facing text — including when copy is incidental to the task, like a new feature that adds buttons, toasts, dialogs, or validation messages.
Also in 5 projects that use this
VercelSkillagent-browser
Automates browser interactions for web testing, form filling, screenshots, and data extraction. Use when the user needs to navigate websites, interact with web pages, fill forms, take screenshots, test web applications, or extract information from web pages.
Also in 3 projects that use this
VercelSkillvercel-react-best-practices
React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.
Also in 3 projects that use this
OpenAISkilltest-driven-development
Use when implementing any feature or bugfix, before writing implementation code
Also in 3 projects that use this
- +2 more from softaworks
Other versions41 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 41
- langchain-ai/openwiki★ 17ksame name
- compozy/compozy★ 2.8ksame name
- softaworks/agent-toolkit★ 2.5ksame name
- pedronauck/skills★ 633same name
- hoodini/ai-agents-skills★ 281same name
- shep-ai/shep★ 262same name
- veelenga/claude-mermaid★ 214same name
- magnus919/agent-skills★ 109same name
- ccheney/robust-skills★ 60same name
- justinwetch/Skill-RSI★ 22same name
31 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository75 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- algorithmic-artSkill
- api-designSkill
- apple-notesSkill
- apple-remindersSkill
- article-writingSkill
- async-pythonSkill
- brand-guidelinesSkill
- camsnapSkill
- canvas-designSkill
- celery-tasksSkill
- claude-apiSkill
- coding-agentSkill
- content-engineSkill
- diffsSkill
- doc-coauthoringSkill
- docker-deploymentSkill
- docxSkill
- e2e-testingSkill
- email-serviceSkill
- fastapi-backendSkill
- frontend-designSkill
- frontend-slidesSkill
- gh-issuesSkill
- githubSkill
- git-workflowSkill
- graphql-apiSkill
- healthcheckSkill
- internal-commsSkill
- investor-materialsSkill
- jwt-authenticationSkill
- market-researchSkill
- mcp-builderSkill
- microservicesSkill
- mobile-react-nativeSkill
- model-usageSkill
- nextjs-fullstackSkill
- nodejs-expressSkill
- obsidianSkill
- openai-whisperSkill
- oracleSkill
- pdfSkill
- peekabooSkill
- planning-with-filesSkill
- postgres-databaseSkill
- pptxSkill
- prisma-ormSkill
- proseSkill
- pytest-patternsSkill
- react-typescriptSkill
- redis-cachingSkill
- s3-file-storageSkill
- security-reviewSkill
- session-logsSkill
- skill-creatorSkill
- slack-gif-creatorSkill
- sqlalchemy-ormSkill
- state-managementSkill
- strategic-compactSkill
- stripe-paymentsSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
6 rules. 0 are common, 6 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 39 edited versions we read keep these.
6
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 10
When documenting or explaining complex systems
- Distinctive: line 86
Always use descriptive node labels (not just A, B, C)
- Distinctive: line 88
Use appropriate arrow styles (solid for sync, dashed for async)
- Distinctive: line 90
Keep diagrams focused — split large systems into multiple diagrams
- Distinctive: line 95
When asked to document an existing codebase:
- Distinctive: line 96
Read the main source files (entry points, routers, models)
“Common” is measured: kept by at least 6 in 10 of the 39 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Mermaid Diagrams & Architecture Visualization
Generate Mermaid.js diagrams for system architecture, data flows, sequence diagrams, ERDs, and project planning. Use when the user asks to visualize architecture, create flowcharts, draw sequence diagrams, map data flows, or document system design.
Triggers
- "draw a diagram", "create a flowchart", "architecture diagram"
- "sequence diagram", "data flow", "ERD", "entity relationship"
- "visualize the system", "map the architecture"
- "Mermaid diagram", "system diagram"
- When documenting or explaining complex systems
Diagram Types
1. System Architecture (C4-style)
graph TB
subgraph Frontend
UI[React App] --> API[API Gateway]
end
subgraph Backend
API --> Auth[Auth Service]
API --> Core[Core Service]
Core --> DB[(PostgreSQL)]
Core --> Cache[(Redis)]
end2. Sequence Diagrams
sequenceDiagram
participant U as User
participant F as Frontend
participant A as API
participant D as Database
U->>F: Click Submit
F->>A: POST /api/data
A->>D: INSERT INTO...
D-->>A: OK
A-->>F: 201 Created
F-->>U: Success Toast3. Data Flow / Pipeline
flowchart LR
Input[Raw Data] --> Process[Transform]
Process --> Validate{Valid?}
Validate -->|Yes| Store[(Database)]
Validate -->|No| Error[Error Queue]
Store --> Notify[Send Notification]4. Entity Relationship Diagrams
erDiagram
USER ||--o{ PROJECT : owns
PROJECT ||--|{ TASK : contains
USER ||--o{ TASK : assigned_to5. State Diagrams
stateDiagram-v2
[*] --> Idle
Idle --> Running: start
Running --> Paused: pause
Paused --> Running: resume
Running --> Done: complete
Running --> Error: fail
Error --> Idle: reset6. Gantt / Timeline
gantt
title Project Timeline
section Phase 1
Design: 2024-01-01, 2w
Prototype: 2024-01-15, 1w
section Phase 2
Development: 2024-01-22, 4w
Testing: 2024-02-19, 2wBest Practices
- Always use descriptive node labels (not just A, B, C)
- Group related components in subgraphs
- Use appropriate arrow styles (solid for sync, dashed for async)
- Include data annotations on edges where relevant
- Keep diagrams focused — split large systems into multiple diagrams
- Save diagrams as
.mdfiles with embedded Mermaid blocks - For HTML output, use
<script src="https://cdn.jsdelivr.net/npm/mermaid/dist/mermaid.min.js"></script>
Auto-Generation Pattern
When asked to document an existing codebase:
- Read the main source files (entry points, routers, models)
- Identify key components and their relationships
- Map the request/response flow
- Generate appropriate diagram type(s)
- Save to
docs/architecture.mdor similar
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

