agentleFS
UIhoshiUIhoshi/AgentLogic/skills/engineering/diagram-flowchart-architect/SKILL.md

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.

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
  1. Very specific:

    When diagramming an existing codebase or infrastructure repository (Agents365-ai/drawio-skill v3.4.4):

    line 27
  2. Very specific:

    When updating an existing .drawio architecture diagram after code changes, preserve manual node coordinates and layout zones (diagramctl …

    line 29
  3. Very specific:

    Use explicit grid-snapped coordinates (x, y, width, height multiples of 10 or 20), minimum 60px horizontal gap and 50px vertical gap …

    line 50
  4. Very specific:

    Use orthogonal edge routing (edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;) with explicit exitX/exitY and …

    line 51
  5. Very specific:

    Only use supported diagram types (flowchart TD/LR, sequenceDiagram, stateDiagram-v2, classDiagram, erDiagram, xychart-beta).

    line 56

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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 ScenarioPrimary Output FormatWhy & When to Use
1. Enterprise / Formal Engineering / Office DeliverableNative .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 BlogNative .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 PreviewThemed Mermaid Code BlockAlways 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 .drawio architecture diagram after code changes, preserve manual node coordinates and layout zones (diagramctl sync pattern) 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, height multiples of 10 or 20), minimum 60px horizontal gap and 50px vertical gap between sibling nodes.
    • Use orthogonal edge routing (edgeStyle=orthogonalEdgeStyle;rounded=1;orthogonalLoop=1;jettySize=auto;html=1;) with explicit exitX/exitY and entryX/entryY ports 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.
  • In .excalidraw:
    • Maintain explicit bounding-box separation (>= 40px padding inside zone rectangles, >= 60px between connected boxes) and bind text elements (containerId) properly to their parent shapes.
  • 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 of A[Auth Gateway (JWT / OAuth2)]) and avoid raw HTML tags inside labels.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.