Skip to content

Agent skill that turns natural language, code, Terraform/K8s, SQL, OpenAPI, AsyncAPI, Protobuf and GraphQL sources into editable, tested draw.io architecture diagrams: incremental sync, multi-view projection, drift diff, CI architecture tests, whiteboard derasterize, interactive HTML/PPTX/Mermaid exports.

39.0 KB
Raw Blame
<!doctype html>
<html lang="en" data-theme="dark">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>drawio-skill — From Text to Professional Diagrams</title>
    <meta
      name="description"
      content="Claude Code skill for professional draw.io diagrams from natural language: 11 presets, ML/DL support, codebase visualization, 10,000+ official shapes, 321 AI/LLM brand logos, self-check loop. Exports PNG/SVG/PDF/JPG."
    />
    <meta name="theme-color" content="#0d1117" />
    <link rel="canonical" href="https://agents365-ai.github.io/drawio-skill/" />
    <link
      rel="alternate"
      hreflang="zh"
      href="https://agents365-ai.github.io/drawio-skill/zh.html"
    />
    <link
      rel="alternate"
      hreflang="en"
      href="https://agents365-ai.github.io/drawio-skill/"
    />
    <meta
      property="og:title"
      content="drawio-skill — From Text to Professional Diagrams"
    />
    <meta
      property="og:description"
      content="Professional draw.io diagrams from natural language: 11 presets, codebase visualization, 10,000+ official shapes, 321 AI/LLM brand logos, self-check loop."
    />
    <meta property="og:type" content="website" />
    <meta
      property="og:url"
      content="https://agents365-ai.github.io/drawio-skill/"
    />
    <meta
      property="og:image"
      content="https://raw.githubusercontent.com/Agents365-ai/drawio-skill/main/assets/demo-star.png"
    />
    <meta name="twitter:card" content="summary_large_image" />
    <style>
      *,
      *::before,
      *::after {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
      }

      /* Theme variables */
      [data-theme="dark"] {
        --bg: #0d1117;
        --bg-card: #161b22;
        --bg-code: #1c2128;
        --border: #30363d;
        --text: #e6edf3;
        --text-muted: #8b949e;
        --accent: #58a6ff;
        --accent-hover: #79c0ff;
        --green: #3fb950;
        --red: #f85149;
      }
      [data-theme="light"] {
        --bg: #ffffff;
        --bg-card: #f6f8fa;
        --bg-code: #f0f3f6;
        --border: #d0d7de;
        --text: #1f2328;
        --text-muted: #656d76;
        --accent: #0969da;
        --accent-hover: #0550ae;
        --green: #1a7f37;
        --red: #cf222e;
      }

      body {
        font-family:
          -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial,
          sans-serif;
        background: var(--bg);
        color: var(--text);
        line-height: 1.6;
        overflow-x: hidden;
        transition:
          background 0.3s,
          color 0.3s;
      }
      a {
        color: var(--accent);
        text-decoration: none;
      }
      a:hover {
        color: var(--accent-hover);
        text-decoration: underline;
      }

      /* Nav */
      nav {
        position: sticky;
        top: 0;
        z-index: 100;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
        padding: 12px 24px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        transition: background 0.3s;
      }
      nav .logo {
        font-weight: 700;
        font-size: 16px;
        color: var(--text);
      }
      nav .logo span {
        color: var(--accent);
      }
      nav .nav-right {
        display: flex;
        align-items: center;
        gap: 16px;
      }
      .lang-switch {
        font-size: 14px;
        font-weight: 500;
        color: var(--text-muted);
        padding: 4px 12px;
        border: 1px solid var(--border);
        border-radius: 6px;
        transition: all 0.2s;
      }
      .lang-switch:hover {
        color: var(--text);
        border-color: var(--text-muted);
        text-decoration: none;
      }
      .theme-btn {
        background: none;
        border: 1px solid var(--border);
        color: var(--text-muted);
        border-radius: 6px;
        padding: 4px 10px;
        cursor: pointer;
        font-size: 16px;
        transition: all 0.2s;
        line-height: 1;
      }
      .theme-btn:hover {
        color: var(--text);
        border-color: var(--text-muted);
      }

      /* Layout */
      .container {
        max-width: 1080px;
        margin: 0 auto;
        padding: 0 24px;
      }
      section {
        padding: 72px 0;
      }
      section + section {
        border-top: 1px solid var(--border);
      }

      /* Hero */
      .hero {
        text-align: center;
        padding: 96px 0 72px;
        border-bottom: 1px solid var(--border);
      }
      .hero-badge {
        display: inline-block;
        font-size: 13px;
        color: var(--accent);
        border: 1px solid var(--accent);
        border-radius: 20px;
        padding: 4px 14px;
        margin-bottom: 20px;
        letter-spacing: 0.5px;
      }
      .hero h1 {
        font-size: 48px;
        font-weight: 800;
        margin-bottom: 16px;
        letter-spacing: -1px;
      }
      .hero h1 span {
        color: var(--accent);
      }
      .hero p {
        font-size: 20px;
        color: var(--text-muted);
        max-width: 600px;
        margin: 0 auto 32px;
      }
      .hero-install {
        display: inline-flex;
        align-items: center;
        gap: 12px;
        background: var(--bg-code);
        border: 1px solid var(--border);
        border-radius: 8px;
        padding: 12px 20px;
        font-family: "SF Mono", "Fira Code", monospace;
        font-size: 15px;
        margin-bottom: 24px;
      }
      .hero-install code {
        color: var(--green);
      }
      .copy-btn {
        background: none;
        border: 1px solid var(--border);
        color: var(--text-muted);
        border-radius: 6px;
        padding: 4px 10px;
        cursor: pointer;
        font-size: 13px;
        transition: all 0.2s;
      }
      .copy-btn:hover {
        color: var(--text);
        border-color: var(--text-muted);
      }
      .hero-links {
        display: flex;
        justify-content: center;
        gap: 16px;
        flex-wrap: wrap;
      }
      .btn {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 10px 24px;
        border-radius: 8px;
        font-size: 15px;
        font-weight: 600;
        transition: all 0.2s;
      }
      .btn-primary {
        background: var(--accent);
        color: #fff;
      }
      [data-theme="light"] .btn-primary {
        color: #fff;
      }
      .btn-primary:hover {
        background: var(--accent-hover);
        text-decoration: none;
      }
      .btn-outline {
        border: 1px solid var(--border);
        color: var(--text);
      }
      .btn-outline:hover {
        border-color: var(--text-muted);
        text-decoration: none;
      }

      /* Section headers */
      .section-title {
        font-size: 32px;
        font-weight: 700;
        margin-bottom: 8px;
        text-align: center;
      }
      .section-sub {
        color: var(--text-muted);
        font-size: 17px;
        text-align: center;
        margin-bottom: 48px;
      }

      /* Feature cards */
      .features-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 20px;
      }
      .feature-card {
        background: var(--bg-card);
        border: 1px solid var(--border);
        border-radius: 12px;
        padding: 28px;
        transition: background 0.3s;
      }
      .feature-icon {
        font-size: 28px;
        margin-bottom: 12px;
      }
      .feature-card h3 {
        font-size: 18px;
        margin-bottom: 8px;
      }
      .feature-card p {
        color: var(--text-muted);
        font-size: 14px;
      }

      /* Demo gallery */
      .demos {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 24px;
      }
      .demo-item {
        text-align: center;
      }
      .demo-item img {
        width: 100%;
        border-radius: 10px;
        border: 1px solid var(--border);
        margin-bottom: 12px;
      }
      .demo-item h4 {
        font-size: 16px;
        margin-bottom: 4px;
      }
      .demo-item p {
        color: var(--text-muted);
        font-size: 13px;
      }

      /* Comparison table */
      .compare-table {
        width: 100%;
        border-collapse: collapse;
        font-size: 15px;
      }
      .compare-table th,
      .compare-table td {
        padding: 12px 16px;
        text-align: left;
        border-bottom: 1px solid var(--border);
      }
      .compare-table th {
        color: var(--text-muted);
        font-weight: 600;
        font-size: 13px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
      }
      .compare-table tr:hover {
        background: var(--bg-card);
      }
      .check {
        color: var(--green);
        font-weight: 700;
      }
      .cross {
        color: var(--red);
      }

      /* Install tabs */
      .tabs {
        display: flex;
        gap: 0;
        margin-bottom: 0;
        flex-wrap: wrap;
      }
      .tab {
        padding: 10px 20px;
        background: var(--bg-card);
        border: 1px solid var(--border);
        border-bottom: none;
        color: var(--text-muted);
        cursor: pointer;
        font-size: 14px;
        font-weight: 500;
        transition: all 0.2s;
      }
      .tab:first-child {
        border-radius: 8px 0 0 0;
      }
      .tab:last-child {
        border-radius: 0 8px 0 0;
      }
      button.tab {
        font-family: inherit;
      }
      .tab.active {
        background: var(--bg-code);
        color: var(--text);
        border-bottom-color: var(--bg-code);
      }
      .tab-content {
        display: none;
        background: var(--bg-code);
        border: 1px solid var(--border);
        border-radius: 0 8px 8px 8px;
        padding: 20px;
      }
      .tab-content.active {
        display: block;
      }
      .tab-content pre {
        font-family: "SF Mono", "Fira Code", monospace;
        font-size: 14px;
        line-height: 1.5;
        white-space: pre-wrap;
        color: var(--green);
      }

      /* Support */
      .support-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 20px;
        max-width: 820px;
        margin: 0 auto 40px;
      }
      .support-card {
        background: var(--bg-card);
        border: 1px solid var(--border);
        border-radius: 12px;
        padding: 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        transition: background 0.3s;
      }
      .support-card img {
        width: 160px;
        height: 160px;
        object-fit: contain;
        border-radius: 8px;
        margin-bottom: 12px;
        background: #fff;
      }
      .support-card b {
        font-size: 14px;
        color: var(--text);
      }
      .author-block {
        text-align: center;
        padding-top: 32px;
        margin-top: 16px;
        border-top: 1px solid var(--border);
      }
      .author-block h3 {
        font-size: 18px;
        margin-bottom: 8px;
        font-weight: 700;
      }
      .author-block p {
        color: var(--text-muted);
        margin-bottom: 12px;
      }
      .author-links {
        display: inline-flex;
        gap: 24px;
        font-size: 14px;
      }

      /* Footer */
      footer {
        border-top: 1px solid var(--border);
        padding: 32px 0;
        text-align: center;
        color: var(--text-muted);
        font-size: 14px;
      }
      footer a {
        color: var(--text-muted);
      }
      footer a:hover {
        color: var(--text);
      }

      /* Responsive */
      @media (max-width: 640px) {
        .hero h1 {
          font-size: 32px;
        }
        .hero p {
          font-size: 17px;
        }
        section {
          padding: 48px 0;
        }
        .features-grid {
          grid-template-columns: 1fr;
        }
        .hero-install {
          flex-direction: column;
          font-size: 13px;
        }
      }
      .skip-link {
        position: absolute;
        top: -40px;
        left: 0;
        background: var(--accent);
        color: #fff;
        padding: 8px 16px;
        z-index: 200;
        font-size: 14px;
        transition: top 0.2s;
      }
      .skip-link:focus {
        top: 0;
      }
      .table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
      }
    </style>
  </head>
  <body>
    <a href="#main-content" class="skip-link">Skip to main content</a>

    <nav role="navigation" aria-label="Main">
      <div class="logo">drawio-<span>skill</span></div>
      <div class="nav-right">
        <a href="zh.html" class="lang-switch">中文</a>
        <button
          class="theme-btn"
          onclick="toggleTheme()"
          title="Toggle theme"
          aria-label="Toggle dark/light theme"
        >
          &#x1F319;
        </button>
      </div>
    </nav>

    <main id="main-content">
      <!-- Hero -->
      <div class="hero">
        <div class="container">
          <div class="hero-badge">
            v1.32.0 &mdash; Codebase Viz, Shape Search, AI &amp; Data Logos
          </div>
          <h1>drawio-<span>skill</span></h1>
          <p>
            From text to professional diagrams. Generate draw.io files from
            natural language &mdash; or turn an existing codebase into a
            structure diagram &mdash; with self-check, iterative refinement,
            10,000+ official shapes, and AI/LLM brand logos.
          </p>
          <div class="hero-install">
            <code id="install-cmd"
              >npx skills add Agents365-ai/drawio-skill -g</code
            >
            <button class="copy-btn" onclick="copyInstall()">Copy</button>
          </div>
          <div class="hero-links">
            <a
              href="https://github.com/Agents365-ai/drawio-skill"
              class="btn btn-primary"
              >GitHub</a
            >
            <a
              href="https://skillsmp.com/skills/agents365-ai-drawio-skill-skills-drawio-skill-skill-md"
              class="btn btn-outline"
              >SkillsMP</a
            >
            <a href="https://discord.gg/Fpbkw7cAhp" class="btn btn-outline"
              >Discord</a
            >
          </div>
          <div style="margin-top: 56px">
            <img
              src="https://raw.githubusercontent.com/Agents365-ai/drawio-skill/main/assets/microservices-example.png"
              alt="Microservices architecture diagram generated by drawio-skill from a single natural-language prompt"
              style="
                width: 100%;
                max-width: 920px;
                height: auto;
                border-radius: 12px;
                border: 1px solid var(--border);
                box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
              "
            />
            <p
              style="
                margin-top: 14px;
                font-size: 13px;
                color: var(--text-muted);
              "
            >
              Generated from one natural-language prompt &mdash; full prompt in
              the
              <a href="https://github.com/Agents365-ai/drawio-skill#-examples"
                >README</a
              >.
            </p>
          </div>
        </div>
      </div>

      <!-- Features -->
      <section>
        <div class="container">
          <h2 class="section-title">Why This Skill</h2>
          <p class="section-sub">
            The only pure-SKILL.md solution that reads its own output and
            auto-fixes before showing you.
          </p>
          <div class="features-grid">
            <div class="feature-card">
              <div class="feature-icon">&#x1F5FA;&#xFE0F;</div>
              <h3>Visualize a Codebase</h3>
              <p>
                Turn a Python / JS-TS / Go / Rust project (import graphs) or a
                Python class hierarchy into an auto-laid-out diagram &mdash;
                Graphviz placement, transitive reduction, colour-by-module
                containers.
              </p>
            </div>
            <div class="feature-card">
              <div class="feature-icon">&#x1F50D;</div>
              <h3>10,000+ Official Shapes</h3>
              <p>
                Search the real draw.io shape library (AWS, Azure, GCP, Cisco,
                Kubernetes, UML, BPMN, P&amp;ID&hellip;) for the exact style
                instead of guessing &mdash; no blank-box typos.
              </p>
            </div>
            <div class="feature-card">
              <div class="feature-icon">&#x1F916;</div>
              <h3>AI / LLM Brand Logos</h3>
              <p>
                321 logos (OpenAI, Claude, Gemini, Mistral, Llama, Ollama,
                LangChain&hellip;) that draw.io has none of &mdash; for LLM-app
                architecture diagrams.
              </p>
            </div>
            <div class="feature-card">
              <div class="feature-icon">&#x1F4CB;</div>
              <h3>11 Diagram Presets</h3>
              <p>
                ERD, UML Class, Sequence, C4, Architecture, ML/Deep Learning,
                Flowchart, SysML, BPMN, Network Topology, Cross-Functional
                Swimlane &mdash; each with preset shapes, styles, and layout
                conventions.
              </p>
            </div>
            <div class="feature-card">
              <div class="feature-icon">&#x1F9E0;</div>
              <h3>ML / Deep Learning</h3>
              <p>
                Transformer, CNN, LSTM architectures with tensor shape
                annotations (B, C, H, W). Built for NeurIPS, ICML, ICLR papers.
              </p>
            </div>
            <div class="feature-card">
              <div class="feature-icon">&#x1F50D;</div>
              <h3>Self-Check Loop</h3>
              <p>
                Reads the exported PNG, detects 6 issue types (overlaps, clipped
                labels, stacked edges), and auto-fixes before showing you.
              </p>
            </div>
            <div class="feature-card">
              <div class="feature-icon">&#x2728;</div>
              <h3>Animated Connectors</h3>
              <p>
                Add <code>flowAnimation=1</code> for moving dot animations along
                arrows. Ideal for data-flow and pipeline diagrams in SVG.
              </p>
            </div>
            <div class="feature-card">
              <div class="feature-icon">&#x1F3A8;</div>
              <h3>Style Presets</h3>
              <p>
                Teach the skill your visual style from a
                <code>.drawio</code> file or image. Save by name and apply to
                future diagrams. 3 built-ins included: <code>default</code>,
                <code>corporate</code>, <code>handdrawn</code>.
              </p>
            </div>
            <div class="feature-card">
              <div class="feature-icon">&#x1F310;</div>
              <h3>6 Platforms, Zero Config</h3>
              <p>
                Claude Code, Opencode, OpenClaw, Hermes, Codex, SkillsMP &mdash;
                just one SKILL.md file + draw.io desktop. No MCP server, no
                background daemon.
              </p>
            </div>
            <div class="feature-card">
              <div class="feature-icon">&#x1F4BB;</div>
              <h3>Browser Fallback</h3>
              <p>
                No desktop CLI? Generates a diagrams.net URL that opens your
                diagram in the browser for viewing and editing.
              </p>
            </div>
          </div>
        </div>
      </section>

      <!-- Demo Gallery -->
      <section>
        <div class="container">
          <h2 class="section-title">Demo Gallery</h2>
          <p class="section-sub">
            Clean edge routing across different topologies &mdash; no lines
            crossing through shapes.
          </p>
          <div class="demos">
            <div class="demo-item">
              <img
                src="https://raw.githubusercontent.com/Agents365-ai/drawio-skill/main/assets/demo-star.png"
                alt="Star topology diagram"
              />
              <h4>Star Topology</h4>
              <p>
                7 nodes &mdash; central broker, 6 services radiating outward
              </p>
            </div>
            <div class="demo-item">
              <img
                src="https://raw.githubusercontent.com/Agents365-ai/drawio-skill/main/assets/demo-layered.png"
                alt="Layered flow diagram"
              />
              <h4>Layered Flow</h4>
              <p>
                10 nodes, 4 tiers &mdash; with cross-connections routed cleanly
              </p>
            </div>
            <div class="demo-item">
              <img
                src="https://raw.githubusercontent.com/Agents365-ai/drawio-skill/main/assets/demo-ring.png"
                alt="Ring cycle diagram"
              />
              <h4>Ring / Cycle</h4>
              <p>
                8 nodes &mdash; CI/CD pipeline with closed loop and spur
                branches
              </p>
            </div>
            <div class="demo-item">
              <img
                src="https://raw.githubusercontent.com/Agents365-ai/drawio-skill/main/assets/code-structure-example.png"
                alt="Auto-generated class hierarchy coloured by module"
              />
              <h4>Visualize a Codebase</h4>
              <p>
                Python <code>logging</code> class hierarchy &mdash; 38 classes
                auto-laid-out, coloured by module
              </p>
            </div>
            <div class="demo-item">
              <img
                src="https://raw.githubusercontent.com/Agents365-ai/drawio-skill/main/assets/shape-search-example.png"
                alt="Serverless AWS architecture from official shapes"
              />
              <h4>Official Shape Search</h4>
              <p>
                Serverless AWS architecture &mdash; every icon resolved by
                <code>shapesearch.py</code>
              </p>
            </div>
            <div class="demo-item">
              <img
                src="https://raw.githubusercontent.com/Agents365-ai/drawio-skill/main/assets/ai-logos-example.png"
                alt="Multi-provider LLM app with AI brand logos"
              />
              <h4>AI / LLM Brand Logos</h4>
              <p>
                Multi-provider LLM app &mdash; OpenAI, Claude, Gemini&hellip;
                via <code>aiicons.py</code>
              </p>
            </div>
          </div>
        </div>
      </section>

      <!-- Comparison -->
      <section>
        <div class="container">
          <h2 class="section-title">vs Native Agent</h2>
          <p class="section-sub">
            What you get with the skill vs prompting an LLM directly.
          </p>
          <div class="table-wrapper">
            <table class="compare-table">
              <thead>
                <tr>
                  <th>Feature</th>
                  <th>Native Agent</th>
                  <th>This Skill</th>
                </tr>
              </thead>
              <tbody>
                <tr>
                  <td>Self-check after export</td>
                  <td class="cross">&#x2717;</td>
                  <td class="check">&#x2713; 2-round auto-fix</td>
                </tr>
                <tr>
                  <td>Iterative review loop</td>
                  <td class="cross">&#x2717;</td>
                  <td class="check">&#x2713; 5-round with targeted edits</td>
                </tr>
                <tr>
                  <td>Diagram type presets</td>
                  <td class="cross">&#x2717;</td>
                  <td class="check">
                    &#x2713; 11 presets (ERD, UML, Seq, C4, Arch, ML, Flow,
                    SysML, BPMN, Network, Swimlane)
                  </td>
                </tr>
                <tr>
                  <td>ML model diagrams</td>
                  <td class="cross">&#x2717;</td>
                  <td class="check">&#x2713; Tensor shapes, layer colors</td>
                </tr>
                <tr>
                  <td>Animated connectors</td>
                  <td class="cross">&#x2717;</td>
                  <td class="check">&#x2713; flowAnimation=1</td>
                </tr>
                <tr>
                  <td>Grid-aligned layout</td>
                  <td class="cross">&#x2717;</td>
                  <td class="check">&#x2713; 10px snap</td>
                </tr>
                <tr>
                  <td>Complexity-scaled spacing</td>
                  <td class="cross">&#x2717;</td>
                  <td class="check">&#x2713; 200&ndash;350px by node count</td>
                </tr>
                <tr>
                  <td>Color palette</td>
                  <td class="cross">Random</td>
                  <td class="check">&#x2713; 7-color semantic system</td>
                </tr>
                <tr>
                  <td>Edge routing rules</td>
                  <td class="cross">Basic</td>
                  <td class="check">
                    &#x2713; Corridors + waypoints + distribution
                  </td>
                </tr>
                <tr>
                  <td>Container/group nesting</td>
                  <td class="cross">&#x2717;</td>
                  <td class="check">&#x2713; Swimlane + group + custom</td>
                </tr>
                <tr>
                  <td>Visualize a codebase</td>
                  <td class="cross">&#x2717;</td>
                  <td class="check">
                    &#x2713; import graphs (Py/JS/Go/Rust) + class diagrams
                  </td>
                </tr>
                <tr>
                  <td>Auto-layout for large graphs</td>
                  <td class="cross">&#x2717;</td>
                  <td class="check">
                    &#x2713; Graphviz placement, ortho routing, nested
                    containers
                  </td>
                </tr>
                <tr>
                  <td>Structural validation</td>
                  <td class="cross">&#x2717;</td>
                  <td class="check">&#x2713; deterministic .drawio linter</td>
                </tr>
                <tr>
                  <td>Official shape search</td>
                  <td class="cross">&#x2717;</td>
                  <td class="check">
                    &#x2713; 10,000+ AWS/Azure/GCP/UML styles
                  </td>
                </tr>
                <tr>
                  <td>AI/LLM brand logos</td>
                  <td class="cross">&#x2717;</td>
                  <td class="check">
                    &#x2713; 321 logos (OpenAI/Claude/Gemini&hellip;)
                  </td>
                </tr>
                <tr>
                  <td>Embed diagram in export</td>
                  <td class="cross">&#x2717;</td>
                  <td class="check">&#x2713; --embed-diagram</td>
                </tr>
                <tr>
                  <td>Browser fallback</td>
                  <td class="cross">&#x2717;</td>
                  <td class="check">&#x2713; diagrams.net URL</td>
                </tr>
                <tr>
                  <td>Auto-launch desktop app</td>
                  <td class="cross">&#x2717;</td>
                  <td class="check">&#x2713; Opens .drawio for fine-tuning</td>
                </tr>
                <tr>
                  <td>Style presets</td>
                  <td class="cross">&#x2717;</td>
                  <td class="check">
                    &#x2713; Learn, save &amp; apply named styles
                  </td>
                </tr>
              </tbody>
            </table>
          </div>
        </div>
      </section>

      <!-- Install -->
      <section>
        <div class="container">
          <h2 class="section-title">Install</h2>
          <p class="section-sub">Pick your platform. Takes 10 seconds.</p>
          <div class="tabs" role="tablist" aria-label="Installation platforms">
            <button
              class="tab active"
              role="tab"
              aria-selected="true"
              aria-controls="tab-claude"
              onclick="switchTab(event, 'tab-claude')"
            >
              Claude Code
            </button>
            <button
              class="tab"
              role="tab"
              aria-selected="false"
              aria-controls="tab-opencode"
              onclick="switchTab(event, 'tab-opencode')"
            >
              Opencode
            </button>
            <button
              class="tab"
              role="tab"
              aria-selected="false"
              aria-controls="tab-openclaw"
              onclick="switchTab(event, 'tab-openclaw')"
            >
              OpenClaw
            </button>
            <button
              class="tab"
              role="tab"
              aria-selected="false"
              aria-controls="tab-skillsmp"
              onclick="switchTab(event, 'tab-skillsmp')"
            >
              SkillsMP
            </button>
            <button
              class="tab"
              role="tab"
              aria-selected="false"
              aria-controls="tab-codex"
              onclick="switchTab(event, 'tab-codex')"
            >
              Codex
            </button>
          </div>
          <div id="tab-claude" class="tab-content active" role="tabpanel">
            <pre>
# Install with the skills CLI (global)
npx skills add Agents365-ai/drawio-skill -g --agent claude-code

# Manual alternative: clone once, then link the skill subdirectory
# Use an unused source location, or skip this clone if you already have a clone to reuse
mkdir -p ~/src
git clone https://github.com/Agents365-ai/drawio-skill.git ~/src/drawio-skill

# Target entries must not exist yet: move an existing drawio-skill entry
# aside before linking (global and project). Plain ln -s nests inside an existing directory.
mkdir -p ~/.claude/skills
ln -s ~/src/drawio-skill/skills/drawio-skill ~/.claude/skills/drawio-skill

# Project-level: link the same subdirectory under .claude/skills/
mkdir -p .claude/skills
ln -s ~/src/drawio-skill/skills/drawio-skill .claude/skills/drawio-skill

# Guide: https://github.com/Agents365-ai/drawio-skill/blob/main/docs/INSTALL_SKILL.md</pre>
          </div>
          <div id="tab-opencode" class="tab-content" role="tabpanel">
            <pre>
# Install with the skills CLI (global)
npx skills add Agents365-ai/drawio-skill -g --agent opencode

# Manual alternative: clone once, then link the skill subdirectory
# Use an unused source location, or skip this clone if you already have a clone to reuse
mkdir -p ~/src
git clone https://github.com/Agents365-ai/drawio-skill.git ~/src/drawio-skill

# Target entries must not exist yet: move an existing drawio-skill entry
# aside before linking (global and project). Plain ln -s nests inside an existing directory.
mkdir -p ~/.config/opencode/skills
ln -s ~/src/drawio-skill/skills/drawio-skill ~/.config/opencode/skills/drawio-skill

# Project-level: link the same subdirectory under .opencode/skills/
mkdir -p .opencode/skills
ln -s ~/src/drawio-skill/skills/drawio-skill .opencode/skills/drawio-skill

# Opencode also reads ~/.claude/skills/ and .claude/skills/ automatically
# Guide: https://github.com/Agents365-ai/drawio-skill/blob/main/docs/INSTALL_SKILL.md</pre>
          </div>
          <div id="tab-openclaw" class="tab-content" role="tabpanel">
            <pre>
# Install with the skills CLI (global)
npx skills add Agents365-ai/drawio-skill -g --agent openclaw

# Manual alternative: clone once, then link the skill subdirectory
# Use an unused source location, or skip this clone if you already have a clone to reuse
mkdir -p ~/src
git clone https://github.com/Agents365-ai/drawio-skill.git ~/src/drawio-skill

# The target entry must not exist yet: move an existing drawio-skill entry
# aside before linking. Plain ln -s nests inside an existing directory.
mkdir -p ~/.openclaw/skills
ln -s ~/src/drawio-skill/skills/drawio-skill ~/.openclaw/skills/drawio-skill

# Guide: https://github.com/Agents365-ai/drawio-skill/blob/main/docs/INSTALL_SKILL.md</pre>
          </div>
          <div id="tab-skillsmp" class="tab-content" role="tabpanel">
            <pre>
# SkillsMP is an index, not an installer. Listing:
# https://skillsmp.com/skills/agents365-ai-drawio-skill-skills-drawio-skill-skill-md

# Install with the skills CLI
npx skills add Agents365-ai/drawio-skill -g</pre>
          </div>
          <div id="tab-codex" class="tab-content" role="tabpanel">
            <pre>
# Install with the skills CLI (user-level)
npx skills add Agents365-ai/drawio-skill -g --agent codex

# Manual alternative: clone once, then link the skill subdirectory
# Use an unused source location, or skip this clone if you already have a clone to reuse
mkdir -p ~/src
git clone https://github.com/Agents365-ai/drawio-skill.git ~/src/drawio-skill

# Target entries must not exist yet: move an existing drawio-skill entry
# aside before linking (global and project). Plain ln -s nests inside an existing directory.
mkdir -p ~/.agents/skills
ln -s ~/src/drawio-skill/skills/drawio-skill ~/.agents/skills/drawio-skill

# Project-level: link the same subdirectory under .agents/skills/
mkdir -p .agents/skills
ln -s ~/src/drawio-skill/skills/drawio-skill .agents/skills/drawio-skill

# Guide: https://github.com/Agents365-ai/drawio-skill/blob/main/docs/INSTALL_SKILL.md</pre>
          </div>
        </div>
      </section>

      <!-- Related Skills -->
      <section>
        <div class="container">
          <h2 class="section-title">Related Skills</h2>
          <p class="section-sub">
            Part of the Agents365-ai diagram-skill family &mdash; pick the right
            tool for the job.
          </p>
          <div class="features-grid">
            <a
              href="https://github.com/Agents365-ai/excalidraw-skill"
              class="feature-card"
              style="text-decoration: none; color: inherit"
            >
              <div class="feature-icon">&#x270F;&#xFE0F;</div>
              <h3>excalidraw-skill</h3>
              <p>
                Hand-drawn / sketchy &mdash; whiteboard mockups, informal
                diagrams.
              </p>
            </a>
            <a
              href="https://github.com/Agents365-ai/mermaid-skill"
              class="feature-card"
              style="text-decoration: none; color: inherit"
            >
              <div class="feature-icon">&#x1F4CA;</div>
              <h3>mermaid-skill</h3>
              <p>
                Text-based, auto-layout &mdash; README-embeddable,
                version-control friendly.
              </p>
            </a>
            <a
              href="https://github.com/Agents365-ai/plantuml-skill"
              class="feature-card"
              style="text-decoration: none; color: inherit"
            >
              <div class="feature-icon">&#x1F9E9;</div>
              <h3>plantuml-skill</h3>
              <p>
                UML-focused &mdash; class / sequence diagrams in CI pipelines.
              </p>
            </a>
            <a
              href="https://github.com/Agents365-ai/tldraw-skill"
              class="feature-card"
              style="text-decoration: none; color: inherit"
            >
              <div class="feature-icon">&#x1F3A8;</div>
              <h3>tldraw-skill</h3>
              <p>
                Whiteboard collaboration &mdash; casual sketches, FigJam-style
                boards.
              </p>
            </a>
          </div>
        </div>
      </section>

      <!-- Support & Author -->
      <section id="support">
        <div class="container">
          <h2 class="section-title">Support</h2>
          <p class="section-sub">
            If this skill helps you, consider supporting the author.
          </p>
          <div class="support-grid">
            <div class="support-card">
              <img
                src="https://raw.githubusercontent.com/Agents365-ai/images_payment/main/qrcode/wechat-pay.png"
                alt="WeChat Pay"
                loading="lazy"
              />
              <b>WeChat Pay</b>
            </div>
            <div class="support-card">
              <img
                src="https://raw.githubusercontent.com/Agents365-ai/images_payment/main/qrcode/alipay.png"
                alt="Alipay"
                loading="lazy"
              />
              <b>Alipay</b>
            </div>
            <div class="support-card">
              <img
                src="https://raw.githubusercontent.com/Agents365-ai/images_payment/main/qrcode/buymeacoffee.png"
                alt="Buy Me a Coffee"
                loading="lazy"
              />
              <b>Buy Me a Coffee</b>
            </div>
            <div class="support-card">
              <img
                src="https://raw.githubusercontent.com/Agents365-ai/images_payment/main/awarding/award.gif"
                alt="Give a Reward"
                loading="lazy"
              />
              <b>Give a Reward</b>
            </div>
          </div>
          <div class="author-block">
            <h3>Author</h3>
            <p><strong>Agents365-ai</strong></p>
            <div class="author-links">
              <a href="https://github.com/Agents365-ai">GitHub</a>
              <a href="https://space.bilibili.com/441831884">Bilibili</a>
            </div>
          </div>
        </div>
      </section>
    </main>

    <!-- Footer -->
    <footer>
      <div class="container">
        <p>
          <a
            href="https://github.com/Agents365-ai/drawio-skill/blob/main/LICENSE"
            >MIT License</a
          >
          &middot;
          <a href="https://github.com/Agents365-ai/drawio-skill">GitHub</a>
          &middot;
          <a href="https://github.com/Agents365-ai">Agents365-ai</a>
        </p>
      </div>
    </footer>

    <script>
      function copyInstall() {
        const cmd = document.getElementById("install-cmd").textContent;
        navigator.clipboard.writeText(cmd).then(() => {
          const btn = document.querySelector(".copy-btn");
          btn.textContent = "Copied!";
          setTimeout(() => (btn.textContent = "Copy"), 2000);
        });
      }
      function switchTab(e, id) {
        document.querySelectorAll(".tab").forEach((t) => {
          t.classList.remove("active");
          t.setAttribute("aria-selected", "false");
        });
        document
          .querySelectorAll(".tab-content")
          .forEach((t) => t.classList.remove("active"));
        e.target.classList.add("active");
        e.target.setAttribute("aria-selected", "true");
        document.getElementById(id).classList.add("active");
      }
      function toggleTheme() {
        const html = document.documentElement;
        const current = html.getAttribute("data-theme");
        const next = current === "dark" ? "light" : "dark";
        html.setAttribute("data-theme", next);
        localStorage.setItem("theme", next);
        document.querySelector(".theme-btn").textContent =
          next === "dark" ? "🌙" : "☀️";
      }
      // Restore saved theme
      (function () {
        const saved = localStorage.getItem("theme");
        if (saved) {
          document.documentElement.setAttribute("data-theme", saved);
          document.querySelector(".theme-btn").textContent =
            saved === "dark" ? "🌙" : "☀️";
        }
      })();
    </script>
  </body>
</html>