{
  "schemaVersion": "1.0",
  "item": {
    "slug": "diagram",
    "name": "Diagram",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/ivangdavila/diagram",
    "canonicalUrl": "https://clawhub.ai/ivangdavila/diagram",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/diagram",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=diagram",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "Download the package from Yavira.",
        "Extract it into a folder your agent can access.",
        "Paste one of the prompts below and point your agent at the extracted folder."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
        },
        {
          "label": "Upgrade existing",
          "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-30T16:55:25.780Z",
      "expiresAt": "2026-05-07T16:55:25.780Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
        "contentDisposition": "attachment; filename=\"network-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/diagram"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/diagram",
    "agentPageUrl": "https://openagent3.xyz/skills/diagram/agent",
    "manifestUrl": "https://openagent3.xyz/skills/diagram/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/diagram/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "Download the package from Yavira.",
      "Extract it into a folder your agent can access.",
      "Paste one of the prompts below and point your agent at the extracted folder."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
      },
      {
        "label": "Upgrade existing",
        "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "Principle",
        "body": "Diagrams should clarify, not complicate. Start simple, add detail only when needed. A 5-box flowchart beats a 50-node sprawl."
      },
      {
        "title": "When User Describes a System or Flow",
        "body": "Identify diagram type — Is this a flow, architecture, sequence, or data model?\nChoose format — Mermaid (default), PlantUML (complex), ASCII (inline), SVG (custom)\nDraft minimal version — Core elements only, no decoration\nIterate — Add detail based on feedback"
      },
      {
        "title": "Diagram Types",
        "body": "TypeUse ForFormatFlowchartProcesses, decisions, workflowsMermaid flowchartSequenceAPI calls, interactions, protocolsMermaid sequenceDiagramArchitectureSystem components, infrastructureMermaid flowchart or C4ER/Data modelDatabase schemas, relationshipsMermaid erDiagramClassObject structure, inheritanceMermaid classDiagramStateLifecycles, status transitionsMermaid stateDiagram-v2TimelineProject phases, historyMermaid timelineMindmapBrainstorming, concept mappingMermaid mindmap"
      },
      {
        "title": "Output Methods",
        "body": "MethodWhenMermaid code blockUser can render (docs, GitHub, Notion)Render to PNG/SVGUser needs image fileASCII inlineQuick sketch in chatHTML + Mermaid.jsInteractive viewing"
      },
      {
        "title": "Rendering Mermaid to Image",
        "body": "# Using mmdc (mermaid-cli)\nnpx -y @mermaid-js/mermaid-cli mmdc -i diagram.mmd -o diagram.png -b transparent\n\n# Or via browser tool\n# Write HTML with Mermaid, screenshot the rendered diagram"
      },
      {
        "title": "Mermaid Quick Reference",
        "body": "Flowchart:\n\nflowchart LR\n    A[Start] --> B{Decision}\n    B -->|Yes| C[Action]\n    B -->|No| D[End]\n\nSequence:\n\nsequenceDiagram\n    User->>API: Request\n    API->>DB: Query\n    DB-->>API: Result\n    API-->>User: Response\n\nER Diagram:\n\nerDiagram\n    USER ||--o{ ORDER : places\n    ORDER ||--|{ ITEM : contains"
      },
      {
        "title": "Style Guidelines",
        "body": "Left-to-right (LR) for processes, top-to-bottom (TB) for hierarchies\nMax 10-15 nodes per diagram, split if larger\nConsistent naming — all caps for systems, lowercase for actions\nSubgraphs to group related components\nColor sparingly — highlight critical paths only"
      },
      {
        "title": "Common Requests",
        "body": "RequestInterpret As\"Draw my API flow\"Sequence diagram: client → API → services\"Show the architecture\"Flowchart with subgraphs for components\"Database schema\"ER diagram with relationships\"How the auth works\"Sequence or flowchart depending on complexity\"User journey\"Flowchart with decision points"
      },
      {
        "title": "Anti-Patterns",
        "body": "❌ Too many nodes (split into multiple diagrams)\n❌ Decorative icons without meaning\n❌ Mixing abstraction levels (database tables next to business concepts)\n❌ Arrows in all directions (confuses flow)\n❌ Labels too long (use short names, add legend if needed)"
      }
    ],
    "body": "Principle\n\nDiagrams should clarify, not complicate. Start simple, add detail only when needed. A 5-box flowchart beats a 50-node sprawl.\n\nWhen User Describes a System or Flow\nIdentify diagram type — Is this a flow, architecture, sequence, or data model?\nChoose format — Mermaid (default), PlantUML (complex), ASCII (inline), SVG (custom)\nDraft minimal version — Core elements only, no decoration\nIterate — Add detail based on feedback\nDiagram Types\nType\tUse For\tFormat\nFlowchart\tProcesses, decisions, workflows\tMermaid flowchart\nSequence\tAPI calls, interactions, protocols\tMermaid sequenceDiagram\nArchitecture\tSystem components, infrastructure\tMermaid flowchart or C4\nER/Data model\tDatabase schemas, relationships\tMermaid erDiagram\nClass\tObject structure, inheritance\tMermaid classDiagram\nState\tLifecycles, status transitions\tMermaid stateDiagram-v2\nTimeline\tProject phases, history\tMermaid timeline\nMindmap\tBrainstorming, concept mapping\tMermaid mindmap\nOutput Methods\nMethod\tWhen\nMermaid code block\tUser can render (docs, GitHub, Notion)\nRender to PNG/SVG\tUser needs image file\nASCII inline\tQuick sketch in chat\nHTML + Mermaid.js\tInteractive viewing\nRendering Mermaid to Image\n# Using mmdc (mermaid-cli)\nnpx -y @mermaid-js/mermaid-cli mmdc -i diagram.mmd -o diagram.png -b transparent\n\n# Or via browser tool\n# Write HTML with Mermaid, screenshot the rendered diagram\n\nMermaid Quick Reference\n\nFlowchart:\n\nflowchart LR\n    A[Start] --> B{Decision}\n    B -->|Yes| C[Action]\n    B -->|No| D[End]\n\n\nSequence:\n\nsequenceDiagram\n    User->>API: Request\n    API->>DB: Query\n    DB-->>API: Result\n    API-->>User: Response\n\n\nER Diagram:\n\nerDiagram\n    USER ||--o{ ORDER : places\n    ORDER ||--|{ ITEM : contains\n\nStyle Guidelines\nLeft-to-right (LR) for processes, top-to-bottom (TB) for hierarchies\nMax 10-15 nodes per diagram, split if larger\nConsistent naming — all caps for systems, lowercase for actions\nSubgraphs to group related components\nColor sparingly — highlight critical paths only\nCommon Requests\nRequest\tInterpret As\n\"Draw my API flow\"\tSequence diagram: client → API → services\n\"Show the architecture\"\tFlowchart with subgraphs for components\n\"Database schema\"\tER diagram with relationships\n\"How the auth works\"\tSequence or flowchart depending on complexity\n\"User journey\"\tFlowchart with decision points\nAnti-Patterns\n❌ Too many nodes (split into multiple diagrams)\n❌ Decorative icons without meaning\n❌ Mixing abstraction levels (database tables next to business concepts)\n❌ Arrows in all directions (confuses flow)\n❌ Labels too long (use short names, add legend if needed)"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/ivangdavila/diagram",
    "publisherUrl": "https://clawhub.ai/ivangdavila/diagram",
    "owner": "ivangdavila",
    "version": "1.0.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/diagram",
    "downloadUrl": "https://openagent3.xyz/downloads/diagram",
    "agentUrl": "https://openagent3.xyz/skills/diagram/agent",
    "manifestUrl": "https://openagent3.xyz/skills/diagram/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/diagram/agent.md"
  }
}