AGENT SKILL

drawio

画图规范——直接手写 draw.io 的 XML(.drawio 文件)画流程图/架构图/时序图/组织结构图,不用任何外部工具。触发词:画图、流程图、架构图、时序图、拓扑图、drawio、图。

License 许可
MIT
所属仓库
irisfeng/moqi
最近更新
2026-11-05
Stars
★ 1
Forks
0

01 前言 Front Matter

name
drawio
description
画图规范——直接手写 draw.io 的 XML(.drawio 文件)画流程图/架构图/时序图/组织结构图,不用任何外部工具。触发词:画图、流程图、架构图、时序图、拓扑图、drawio、图。

03 SKILL.md 正文

画图规范(直接写 XML)

不调用任何 drawio 工具——直接用文件写入能力手写 .drawio 文件。

格式要点

<mxfile host="app.diagrams.net">
  <diagram id="d1" name="页面1">
    <mxGraphModel dx="800" dy="600" grid="1" gridSize="10" pageWidth="1169" pageHeight="826">
      <root>
        <mxCell id="0"/><mxCell id="1" parent="0"/>
        <mxCell id="n1" value="节点文字" style="rounded=1;whiteSpace=wrap;fillColor=#dae8fc;" vertex="1" parent="1">
          <mxGeometry x="80" y="120" width="160" height="60" as="geometry"/>
        </mxCell>
        <mxCell id="e1" style="edgeStyle=orthogonalEdgeStyle;" edge="1" parent="1" source="n1" target="n2">
          <mxGeometry relative="1" as="geometry"/>
        </mxCell>
      </root>
    </mxGraphModel>
  </diagram>
</mxfile>
  • 每个节点一个 vertex="1" 的 mxCell,横向流程 x 每个节点 +240;连线 edge="1" 用 source/target 引用节点 id。
  • 样式速查:圆角矩形 rounded=1;菱形判断 rhombus;分组容器一个大的 vertex,子元素 parent 指向它;泳道用宽矩形分组。
  • 配色(淡色系可编辑):蓝 #dae8fc、绿 #d5e8d4、橙 #ffe6cc、黄 #fff2cc、紫 #e1d5e7。
  • 时序图:竖直生命线(细高矩形),水平箭头连接。

交付

cp <文件>.drawio "$AGENT_OUTBOX/"

仅口头说明路径不算交付。群 / 频道里 outbox 不生效:文件放普通工作区路径,发消息时在 post 的 files 参数里带上。命名与话术统一见 artifact-delivery 技能。用户用桌面 draw.io / diagrams.net / WPS 打开即可继续编辑。

04 同仓库更多 Skills

irisfeng
irisfeng/moqi

use-shared-credential

When you need to call a service the org has a SHARED credential for (a SERP/search key, a paid-API key, a data-vendor feed, a Git remote) — and the platform has told you that credential is available to this conversation — make the call BY PROXY through the credential broker. You never see the secret; the core stamps it onto the outbound request for you.

★ 1
irisfeng
irisfeng/moqi

ui-state

See what the person is looking at in the QM web UI right now — the whole page (sidebar, every multiview pane, open dialogs) as raw HTML, the app's state as JSON, optionally the CSS and a screenshot. Use when they ask about something on their screen, want help with the UI, or you need to check what a canvas you wrote actually rendered.

★ 1
irisfeng
irisfeng/moqi

ui-canvas

Draw your own HTML/CSS/JS as a full-window overlay on top of the QM web UI — a dashboard, a form, a visualization, controls that message you back. Write, update, replace, pin or dismiss it. Use when an interactive or visual result beats a chat reply.

★ 1
irisfeng
irisfeng/moqi

taste-skill

Design taste and process for anything a person will look at in a browser — landing page, dashboard, prototype, deck. The default design driver for a browsable artifact, with an anti-slop playbook for the visual language.

★ 1
irisfeng
irisfeng/moqi

slack-drafts

Create Slack message drafts in the user's own composer, as the user, through their per-user Slack OAuth. Drafting only — the user reviews and sends from Slack.

★ 1
irisfeng
irisfeng/moqi

send

Make a PR, wait for CI with bounded transport retries, independently review, and merge only when all gates pass.

★ 1