本文へ移動
cccskills
無料GitHub で公開

fec-drawio-studio

Use when creating editable technical diagrams with draw.io / diagrams.net sources, including architecture diagrams, ERD, UML, sequence diagrams, flowcharts, ML model diagrams, official shape lookup, brand symbols, Graphviz auto-layout, codebase structure maps, .drawio validation, or draw.io CLI export fallback. Do not use for ordinary raster image generation, freehand sketches, interactive canvas/Three.js scenes, or decorative SVG animation. Chinese triggers include draw.io, diagrams.net, editable architecture diagrams, .drawio, ER diagrams, UML, sequence diagrams, auto layout, shape retrieval, code structure diagrams.

インストール方法を見る

含まれるファイル(28)

  • SKILL.md7.0 KB
  • data/brand-icons.json12.6 KB
  • data/shape-index.json4.6 MB
  • data/THIRD_PARTY_NOTICES.md1.0 KB
  • references/data-residency.md1.9 KB
  • references/diagram-patterns.md2.8 KB
  • references/flowchart-quality.md3.3 KB
  • references/layout-and-export.md2.6 KB
  • references/troubleshooting.md1.1 KB
  • references/xml-and-mermaid.md3.9 KB
  • scripts/brand-symbols.mjs4.1 KB
  • scripts/diagram-lint.mjs9.7 KB
  • scripts/diagram-url.mjs3.4 KB
  • scripts/drawio-export.mjs4.4 KB
  • scripts/layout-graph.mjs4.4 KB
  • scripts/png-embed-fix.mjs1.1 KB
  • scripts/scan-go-packages.mjs1.8 KB
  • scripts/scan-js-modules.mjs2.2 KB
  • scripts/scan-python-classes.mjs1.4 KB
  • scripts/scan-python-modules.mjs2.2 KB
  • scripts/scan-rust-modules.mjs1.7 KB
  • scripts/scan-ts-modules.mjs357 B
  • scripts/shape-query.mjs3.5 KB
  • scripts/studio-core.mjs4.4 KB
  • styles/built-in/corporate.json1.4 KB
  • styles/built-in/default.json1.4 KB
  • styles/built-in/handdrawn.json1.4 KB
  • styles/schema.json3.9 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Editable technical chart workflow

Purpose

Generate, verify and export draw.io / diagrams.net technical diagrams that can be edited further.

Procedure

  1. Determine the chart route

    • Simple diagrams in Markdown that need long-term maintenance, Mermaid is preferred.
    • Use this workflow when you need official icons, swimlanes, complex layouts, layers/tags/metadata, editable PNG/SVG/PDF or .drawio sources.
    • When you need fast browser opening or sharing, use diagram-url.mjs to generate the URL; when you need local auditable delivery, always save the .drawio source.
    • If the user already has Mermaid or CSV content, they can use diagram-url.mjs --create --type mermaid|csv to import it to diagrams.net; when long-term maintenance or precise shape is required, convert it to XML.
    • If the draw.io MCP App/Tool has been configured on the current host, it can be used as a preview or editing entrance; this skill does not require the installation of MCP server.
    • Go the image generation route when you need photos, posters, visual concepts or bitmap editing.
  2. Create chart specifications

    • Clarify diagram type, audience, output format, node list, relationships, hierarchical grouping and save location.
    • Read diagram-patterns.md when the user specifies Flowchart, Architecture, Sequence, UML Class, ERD, Mindmap, Network Topology or ML/DL diagrams.
    • For process, workflow, approval, release or incident-response flowcharts that must open cleanly in diagrams.net, also read flowchart-quality.md.
    • To select XML, Mermaid, CSV, container, layer, tag, metadata or dark mode policy, read xml-and-mermaid.md.
    • When you need a specific vendor/cloud/network/flowchart shape, run shape-query.mjs; when you need AI, database or infrastructure brand symbols, run brand-symbols.mjs.
  3. Generate .drawio source

    • Draw.io XML can be manually generated for small drawings when exact node coordinates, sizes and connections are easier to reason about directly.
    • When there are more than about 15 nodes, dependency graphs or code structure graphs, first generate graph JSON and then use layout-graph.mjs for automatic layout.
    • For manually placed XML, align coordinates to a 10px grid, keep generous gaps between sibling nodes, use whiteSpace=wrap;html=1, prefer fontSize=14, encode forced line breaks as 
, and size containers to their content instead of leaving one-sided blank areas.
    • For manually authored flowcharts, keep pageWidth in the readable 600-800 range unless a wide cross-functional table is intentional; use swimlane containers for real stages and route loop or rollback edges around the margin with explicit waypoints.
    • Code structure diagram can be used first scan-js-modules.mjs, scan-ts-modules.mjs, scan-python-modules.mjs, scan-go-packages.mjs, scan-rust-modules.mjs or scan-python-classes.mjs to generate graph JSON.
  4. Checksum preview

    • Run after each generation of .drawio:
      node skills/fec-drawio-studio/scripts/diagram-lint.mjs diagram.drawio --format markdown
      
    • If the machine has draw.io desktop CLI, do not embed XML when exporting the preview PNG, and control the width:
      node skills/fec-drawio-studio/scripts/drawio-export.mjs diagram.drawio --format png --output diagram.png --width 2000
      
    • If CLI is not available, use diagram-url.mjs to generate diagrams.net viewer/editor URL; first read data-residency.md when strictly offline or data residency is sensitive.
  5. Deliver the final product

    • Save .drawio source files and PNG/SVG/PDF/JPG required by users.
    • If the final PNG is embedded in XML using draw.io -e, run after exporting:
      node skills/fec-drawio-studio/scripts/drawio-export.mjs diagram.drawio --format png --output diagram.drawio.png --scale 2 --embed
      node skills/fec-drawio-studio/scripts/png-embed-fix.mjs diagram.drawio.png
      
    • Report source files, exported files, verification results, and external dependencies that cannot be automatically verified.

Tool Resources

Tool script sharing studio-core.mjs. Offline query uses shape-index.json and brand-icons.json. Style preset resources include schema.json, default.json, corporate.json and handdrawn.json.

Constraints

  • Do not use draw.io as a normal image model; text-heavy or structured images must remain editable source.
  • Don't guess complex shape=mxgraph.* styles; use the shape query tool to get the official styles first.
  • The MCP server runtime dependency is not introduced for the draw.io workflow; MCP App/Tool is only used as an optional interoperability entry when the user environment already exists.
  • Mermaid/CSV URLs are import shortcuts and do not replace .drawio source files, lint and editable delivery.
  • Do not embed XML in preview PNGs; embedding is for final delivery only.
  • Graphviz, draw.io desktop, and networked branding icons are all optional external capabilities; they must be downgraded instead of retried when missing. drawio-export.mjs may detect local draw.io paths and print installation guidance, but it must not install draw.io automatically.
  • Brand icons and third-party shape indexes follow the source and licensing instructions in THIRD_PARTY_NOTICES.md.
  • When referring to the external draw.io MCP ecosystem, only absorb routes, constraints and interoperability experience, and do not copy its service implementation or long prompts.

Expected Output

Deliver editable .drawio source and required export format, with structural verification results. The diagram should have complete nodes, traceable connections, non-truncated labels, non-overlapping layouts, and a diagrams.net fallback that can be opened when external tools are missing.

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

用于审查或改进前端无障碍、语义结构、键盘支持、焦点管理、ARIA 标签、屏幕阅读器行为、WCAG 2.2 问题、触控无障碍或辅助技术回归;中文触发词包括 无障碍、accessibility、a11y、WCAG、屏幕阅读器。

日本語の概要は準備中です。原文の説明を表示しています。

bovinphang/frontend-craft222026年9月26日 更新

Use when reviewing or improving frontend accessibility, semantic structure, keyboard support, focus management, ARIA labels, screen reader behavior, WCAG 2.2 issues, touch accessibility, or assistive-technology regressions; Chinese triggers include accessibility, accessibility, a11y, WCAG, screen reader.

日本語の概要は準備中です。原文の説明を表示しています。

bovinphang/frontend-craft222026年9月26日 更新

用于从参考系统中吸收想法、能力、工作流、架构、质量体系、生态扩展或工程实践,并通过原创的项目内重设计转化为当前项目能力,而不是复制原实现。

日本語の概要は準備中です。原文の説明を表示しています。

bovinphang/frontend-craft222026年9月26日 更新

Use when absorbing ideas, capabilities, workflows, architecture, quality systems, ecosystem extensions, or engineering practices from any reference system into the current project through original, project-native redesign rather than copying.

日本語の概要は準備中です。原文の説明を表示しています。

bovinphang/frontend-craft222026年9月26日 更新

Use when designing, implementing, or reviewing frontend-to-backend API integration, typed API clients, REST/tRPC/OpenAPI client choices, auth refresh, API error mapping, upload flows, SSE/WebSocket/polling choices, CORS-facing frontend behavior, or cross-boundary loading/error states. Do not use for backend-only service architecture or TanStack Query cache policy alone; Chinese triggers include API integration, front-end and back-end joint debugging, typed API client, Interface error handling, SSE, WebSocket.

日本語の概要は準備中です。原文の説明を表示しています。

bovinphang/frontend-craft222026年9月26日 更新

用于设计、实现或审查前后端 API 集成、类型化 API client、REST/tRPC/OpenAPI 客户端选型、认证刷新、API 错误映射、上传流程、SSE/WebSocket/轮询选择、CORS 相关前端行为或跨边界 loading/error 状态。不要用于纯后端服务架构或仅 TanStack Query 缓存策略;中文触发词包括 API 集成、前后端联调、typed API client、接口错误处理、SSE、WebSocket。

日本語の概要は準備中です。原文の説明を表示しています。

bovinphang/frontend-craft222026年9月26日 更新

bovinphang のスキルをすべて見る

このスキルの問題を報告する