diagram-flowchart-architect
Skill0 starsChanged 7 days agoMITView on GitHub
Autonomous flowchart, system architecture, swimlane, sequence, ER, and whiteboard diagram generator supporting Draw.io (.drawio), Excalidraw (.excalidraw), and themed Mermaid. Triggered automatically whenever the user requests a flowchart, architecture diagram, process map, sequence diagram, mind map, or visual schema.
In this repository60 other files it gives its agents.
- AGENTS.mdAGENTS.md
- skills/agent-browser/AGENTS.mdAGENTS.md
- skills/reverse-skill/AGENTS.mdAGENTS.md
- spec-kit/AGENTS.mdAGENTS.md
- skills/reverse-skill/CLAUDE.mdCLAUDE.md
- skills/taste-skill/skills/llms.txtllms.txt
- multimodal-media-directorSkill
- novel-story-architectSkill
- screenplay-manga-directorSkill
- ui-ux-pro-maxSkill
- appsec-reviewSkill
- ask-mattSkill
- codebase-designSkill
- code-reviewSkill
- code-simplifierSkill
- decompile-reconstructionSkill
- diagnosing-bugsSkill
- domain-modelingSkill
- gh-pr-ci-triageSkill
- grill-with-docsSkill
- implementSkill
- implement-specSkill
- improve-codebase-architectureSkill
- prototypeSkill
- prSkill
- researchSkill
- resolving-merge-conflictsSkill
- retroSkill
- setup-matt-pocock-skillsSkill
- skill-evaluatorSkill
- tddSkill
- to-specSkill
- to-ticketsSkill
- triageSkill
- wayfinderSkill
- wizardSkill
- chrome-extensionsSkill
- modern-web-guidanceSkill
- web-data-visualizationSkill
- web-game-studioSkill
- nano-banana-proSkill
- ponytail-auditSkill
- ponytail-debtSkill
- ponytail-gainSkill
- ponytail-helpSkill
- ponytail-reviewSkill
- ponytailSkill
- grillingSkill
- grill-meSkill
- handoffSkill
- office-pro-suiteSkill
- product-requirements-grillingSkill
- role-persona-routerSkill
- teachSkill
- to-questionnaireSkill
- wait-whatSkill
- writing-for-agentsSkill
- writing-great-skillsSkill
- reverse-skills-routerSkill
- self-improving-agentSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 0 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 27
When diagramming an existing codebase or infrastructure repository (Agents365-ai/drawio-skill v3.4.4):
- Very specific: line 29
When updating an existing .drawio architecture diagram after code changes, preserve manual node coordinates and layout zones (diagramctl …
- Very specific: line 50
Use explicit grid-snapped coordinates (x, y, width, height multiples of 10 or 20), minimum 60px horizontal gap and 50px vertical gap …
- Very specific: line 51
Use orthogonal edge routing (edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;) with explicit exitX/exitY and …
- Very specific: line 56
Only use supported diagram types (flowchart TD/LR, sequenceDiagram, stateDiagram-v2, classDiagram, erDiagram, xychart-beta).
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Diagram & Flowchart Architect (diagram-flowchart-architect)
This skill synthesizes the official Draw.io architecture of jgraph/drawio-mcp (v1.7.0) and Agents365-ai/drawio-skill (v3.4.4 — diagramctl Architecture Digital Twin / Diagram IR, 16 real-source extractors, 10,000+ vendor shapes, 321 AI/LLM brand icons, and Tube-Map mode), the hand-drawn spatial canvas discipline of coleam00/excalidraw-diagram-skill (yctimlin/mcp_excalidraw), and high-contrast themed Mermaid engineering.
1. Mandatory Automatic Activation Rule
Whenever the user asks to create, draw, design, sync, or export a flowchart (流程图), swimlane diagram (泳道图), system architecture diagram (系统架构图), sequence diagram (时序图), state machine (状态机), ER schema (实体关系图), tube-map pipeline (地铁线路式演进图), or mind map (思维导图), this skill activates automatically without requiring manual skill selection.
2. Automatic Format Selection Matrix & Real-Source Extraction
Select the output format automatically based on the user's target surface (or provide the dual Mermaid Preview + Editable .drawio/.excalidraw Source File when producing formal deliverables):
| Target Scenario | Primary Output Format | Why & When to Use |
| 1. Enterprise / Formal Engineering / Office Deliverable | Native .drawio XML (*.drawio / .drawio.svg) | When the user needs a formal swimlane flowchart, cloud/K8s/AI architecture, ER diagram, or diagram to embed in Word/PPT and drag-and-drop edit in Draw.io / VS Code Draw.io extension. |
| 2. Product Brainstorming / System Design Whiteboard / Technical Blog | Native .excalidraw JSON (*.excalidraw) | When the user wants a clean, high-craft hand-drawn aesthetic with color-coded domain zones, callout sticky notes, and visual hierarchy. |
| 3. Markdown Documentation / GitHub README / Instant Chat Preview | Themed Mermaid Code Block | Always include a syntax-validated, custom-themed Mermaid diagram directly in the response or Markdown doc for immediate visual preview alongside any .drawio or .excalidraw file. |
Real-Source Architecture Extraction (Zero-Hallucination Digital Twin)
When diagramming an existing codebase or infrastructure repository (Agents365-ai/drawio-skill v3.4.4):
- Extract real nodes, edges, and schemas directly from source artifacts across 16 supported source types (Python, TypeScript/JS, Go, Rust, Java, C#, Terraform
.tf, Kubernetes manifests, Docker Compose, SQL DDL, Prisma, OpenAPI, AsyncAPI, Protobuf, GraphQL, GitHub Actions) rather than guessing component names from memory. - When updating an existing
.drawioarchitecture diagram after code changes, preserve manual node coordinates and layout zones (diagramctl syncpattern) instead of regenerating coordinates from scratch. - Leverage official cloud/vendor stencil shapes (
mxgraph.aws4.*,mxgraph.azure.*,mxgraph.gcp2.*,mxgraph.kubernetes.*) and AI/LLM brand icons when drawing cloud or AI agent topologies; use Tube-Map Mode (transit-line style parallel tracks and shared interchange stations) for multi-track data/ML/release pipelines.
3. Strict Layout & Anti-Spaghetti Engineering Rules
Rule 1: Spatial Zoning & Visual Hierarchy
- Never dump 20+ ungrouped nodes into a flat graph. Group related nodes into Subgraphs / Swimlanes / Color-Coded Containers (e.g.,
Client Layer,API Gateway & Auth,Core Domain Services,Data & Cache Layer). - Maximum 7–9 nodes per container; if a flow has more than 18 steps, split it into a Macro Overview Diagram + Focused Sub-Flow Diagram.
Rule 2: Semantic Color Palette (No Default Neon/Rainbow Chaos)
Apply a consistent semantic palette across Mermaid classDef, .drawio styles, and .excalidraw elements:
- Entry / User / Trigger Nodes: Slate Blue (
fill:#EEF2FF,stroke:#4F46E5,color:#1E1B4B) - Core Process / Service Nodes: Clean Neutral (
fill:#F8FAFC,stroke:#334155,color:#0F172A) - Decision / Gate / Router Diamonds: Amber Gold (
fill:#FEF3C7,stroke:#D97706,color:#78350F) - Database / Storage / State: Emerald Teal (
fill:#ECFDF5,stroke:#059669,color:#064E3B) - Error / Exception / Security Block: Rose Red (
fill:#FFE4E6,stroke:#E11D48,color:#881337)
Rule 3: Zero-Overlap, Edge-Routing & 2-Round Visual Self-Check
- In
.drawio(mxGraphModel):- Use explicit grid-snapped coordinates (
x,y,width,heightmultiples of10or20), minimum60pxhorizontal gap and50pxvertical gap between sibling nodes. - Use orthogonal edge routing (
edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;) with explicitexitX/exitYandentryX/entryYports so arrows never cut through node text boxes. - Perform a 2-Round Structural & Visual Self-Check: verify zero overlapping bounding boxes, zero orphan edges, sufficient label width for CJK/English strings, and balanced container margins.
- Use explicit grid-snapped coordinates (
- In
.excalidraw:- Maintain explicit bounding-box separation (
>= 40pxpadding inside zone rectangles,>= 60pxbetween connected boxes) and bind text elements (containerId) properly to their parent shapes.
- Maintain explicit bounding-box separation (
- In
Mermaid:- Only use supported diagram types (
flowchart TD/LR,sequenceDiagram,stateDiagram-v2,classDiagram,erDiagram,xychart-beta). - Quote all node labels containing parentheses, brackets, colons, or slashes (e.g.,
A["Auth Gateway (JWT / OAuth2)"]instead ofA[Auth Gateway (JWT / OAuth2)]) and avoid raw HTML tags inside labels.
- Only use supported diagram types (
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.

