Diagram Drawing
Skill by 0xcjl
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/0xcjl/diagram-drawingname: diagram-drawing description: Generate production-quality SVG+PNG technical diagrams from natural language. Use when user wants to create any technical diagram — architecture, data flow, flowchart, sequence, agent/memory, UML, mind map, or concept map — and export as SVG+PNG. Triggers (EN): "generate diagram", "draw diagram", "create chart", "visualize", "architecture diagram", "flowchart", "sequence diagram", "data flow", "tech graph". Triggers (中文): "画图", "帮我画", "生成图", "做个图", "架构图", "流程图", "可视化", "出图", "技术图". Also triggers on any system/flow description the user wants illustrated, especially for AI/Agent systems (RAG, Agentic Search, Mem0, Multi-Agent, Tool Call).
Diagram Drawing
Generate production-quality SVG+PNG technical diagrams from natural language descriptions.
Quick Start
- Classify diagram type from user request
- Extract layers, nodes, edges, flows
- Plan layout (top→bottom for most, left→right for wide flows)
- Generate SVG with semantic shapes and arrows
- Export PNG at 1920px width
Diagram Types & Layout
Architecture
Nodes = services/components. Group into horizontal layers (top→bottom or left→right).
- Typical: Client → Gateway → Services → Data/Storage
- Dashed
<rect>containers group related services - ViewBox:
0 0 960 600or0 0 960 800
Data Flow
Label every arrow with data type ("embeddings", "query", "context"). Wider arrows for primary paths.
Flowchart / Process
Top-to-bottom preferred. Diamond = decision, rounded rect = process, parallelogram = I/O.
Agent Architecture
5 layers: Input → Agent Core (LLM) → Memory → Tools → Output
- Show iterative reasoning with loop arcs (curved arrows)
- Separate memory read/write paths visually
Memory Architecture (Mem0-style)
- Show memory write path and read path separately
- Tiers: Working → Short-term → Long-term → External Store
- Operations:
store(),retrieve(),forget(),consolidate()
Sequence Diagram
- Vertical lifelines (dashed lines)
- Horizontal arrows = messages, top-to-bottom time order
- Activation boxes (thin filled rects on lifeline)
- ViewBox height = 80 + (num_messages × 50)
Comparison Matrix
- Column headers = systems, row headers = attributes
- Checked:
#dcfce7fill + ✓; unsupported:#f9fafbfill
Mind Map
- Central node at
cx=480, cy=280 - Curved bezier branches, not straight lines
- First-level: 360/N degrees apart
UML Diagrams
- Class: 3-compartment rect (name / attributes / methods)
- Use Case: Ellipse + stick figure actors
- State Machine: Rounded rects + transitions with guards
- ER: Rect entities + diamond relationships + cardinality
Shape Vocabulary
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-0xcjl-diagram-drawing": {
"enabled": true,
"auto_update": true
}
}
}Related Skills
autoresearch-pro
Automatically improve OpenClaw skills, prompts, or articles through iterative mutation-testing loops. Inspired by Karpathy's autoresearch. Use when user says 'optimize [skill]', 'autoresearch [skill]', 'improve my skill', 'optimize this prompt', 'improve my prompt', 'polish this article', 'improve this article', or explicitly requests quality improvement for any text-based content. Supports three modes: skill (SKILL.md files), prompt (any prompt text), and article (any document).
cjl-slides
Create stunning HTML presentations in 24 international design styles with strict design rules. Export to .pptx for PowerPoint editing. ## Design Philosophy - Aesthetic-first: each style is a curated visual system, not just colors - Font whitelist enforcement: prevents AI-generic typography - Container ratio lock (16:9): ensures consistent rendering across devices - Zero external dependencies: pure HTML/CSS/JS, works offline ## Usage 1. Activate → Select style by name/number or browse 24 options 2. Provide content (topic, audience, key points) or upload .pptx for conversion 3. Review generated HTML slides → request modifications (color/font/layout) 4. Optionally export .pptx for manual editing in PowerPoint ## Precautions - Fonts are restricted to a whitelist; custom fonts require adding to the allowed list first - Chart.js CDN is used; if blocked, falls back to jsdelivr mirror - HTML files must retain their relative structure when shared - .pptx export preserves exact colors and fonts but layout uses pptx-native elements ## Credits Design rules adapted from "专精 HTML 演示文稿的顶级视觉设计师" (24 design styles reference). Base HTML structure and tooling inspired by zarazhangrui/frontend-slides.
anti-sycophancy
Three-layer sycophancy defense based on ArXiv 2602.23971. Use /anti-sycophancy install to deploy all layers, or manage individually via install-claude-code / install-openclaw / uninstall / status / verify. Layer 1: CC-only hook; Layer 2: SKILL (cross-platform); Layer 3: CLAUDE.md (CC) / SOUL.md (OC).
web-reader-pro
Advanced web content extraction skill for OpenClaw using multi-tier fallback strategy (Jina → Scrapling → WebFetch) with intelligent routing, caching, quality scoring, and domain learning. Use when: reading article content, extracting web page text, scraping dynamic JS-heavy pages, or fetching WeChat official account articles.
auto-diary
Automatically write daily/weekly/monthly diary summaries and extract insights to auto-learn.md for HexaLoop.