mermaid-diagrams
Create software diagrams using Mermaid syntax. Use when users need to create, visualize, or document software through diagrams including class diagrams, sequence diagrams, flowcharts, ERDs, C4 architecture diagrams, state diagrams, git graphs, and other diagram types. Triggers include requests to diagram, visualize, model, map out, or show the flow of a system.
Why use this skill?
Easily create and maintain software diagrams including flowcharts, sequence diagrams, and ERDs using OpenClaw's Mermaid skill. Perfect for documentation.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/wpank/mermaid-diagramsWhat This Skill Does
The mermaid-diagrams skill empowers OpenClaw users to generate professional-grade software and process visualizations directly from natural language requests. By utilizing the Mermaid.js syntax, this skill bridges the gap between abstract concepts and concrete architectural documentation. Whether you are mapping out database schemas, visualizing API interaction sequences, or defining complex class hierarchies, the skill translates your requirements into clean, version-controllable diagrams. It acts as an integrated diagramming engine, ensuring your documentation remains as dynamic as your codebase.
Installation
To integrate this skill into your environment, use the OpenClaw/Clawbot CLI tool. Execute the following command in your terminal:
npx clawhub@latest install mermaid-diagrams
Alternatively, you can install it via the source repository: clawhub install openclaw/skills/skills/wpank/mermaid-diagrams.
Use Cases
- Technical Documentation: Automate the creation of C4 architectural diagrams for onboarding documentation.
- Database Design: Visualize ERD relationships before writing migrations, ensuring logical data integrity.
- API Design: Sequence diagrams are invaluable for debugging authentication flows and defining payload exchanges between client and server components.
- System Flows: Use flowcharts to map out decision trees, user onboarding journeys, or complex algorithmic logic steps.
- Agile Planning: Utilize Gantt charts to track project timelines and dependency management.
Example Prompts
- "Visualize the user authentication flow for our login API using a sequence diagram, showing interactions between the Client, API Gateway, and the Auth Database."
- "Create a flowchart that describes the decision process for our system's image compression algorithm, including steps for file validation and resolution checking."
- "Generate an ERD for an e-commerce platform that includes Users, Products, and Orders, showing the one-to-many relationships between them."
Tips & Limitations
- Tip: Keep your initial prompts concise. If the diagram is too complex, ask for the structure first and then request refinements to add specific attributes or classes.
- Tip: Use comments (
%%) in your Mermaid code if you plan to export the file, as it helps other developers understand the rationale behind the diagram layout. - Limitation: Mermaid rendering depends on the capabilities of the viewer/frontend. Highly complex, dense diagrams may suffer from rendering overlaps. Ensure you keep diagram nodes logically grouped.
- Limitation: The skill provides a text-based definition. While these are highly portable, they require a compatible Mermaid-supported environment (like GitHub Markdown or VS Code extensions) to be rendered as visual imagery.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-wpank-mermaid-diagrams": {
"enabled": true,
"auto_update": true
}
}
}Tags
Related Skills
local-rag-index-planner
规划本地知识库的目录、分片粒度、命名、更新时间与访问边界,而不是直接堆 RAG。;use for rag, indexing, knowledge workflows;do not use for 直接部署向量数据库, 忽略权限隔离.
benchmark-lobster-forge
用元认知引导发现值得被做成小龙虾的机会点,并将其收敛为可开箱即用的基准 Agent 小龙虾。
xiaoyi-claw-omega-final
六层架构智能助手文档 - 包含架构设计、身份定义、工具规则等纯文档内容。无代码执行,无外部连接,无凭据要求。
skill-risk-splitter
把职责过杂的 Skill 拆成安全版、增强版或多子 Skill,降低扫描和维护风险。;use for skills, refactor, risk workflows;do not use for 为了拆分而失去清晰定位, 隐藏高风险行为.
skill-gap-finder
扫描现有 Skill 套装,找重复、缺口、职责冲突和最该补的空位。;use for skills, bundle, analysis workflows;do not use for 臆造目录内容, 直接删除 skill.