Skip to content

roxorlt/UEmaster / skills/flow-canvas

flow-canvas

Verified

把业务图渲染成横平竖直的规范 SVG:流程图(正交规范)、架构图(泳道分层)、ER 图、甘特图、时序图。触发:画流程图、业务流程图、架构图、ER 图、甘特图、时序图、把 mermaid 转规范图、流程图横平竖直、评审用图、render flowchart / orthogonal flowchart / architecture diagram / ER diagram / gantt / sequence diagram / draw a clean diagram from mermaid。不适用:只要 mermaid 源码文本、脑图、表格。

FileKindSize
LICENSEother1.0 KB
README.mdmarkdown3.7 KB
SKILL.mdskill md10.2 KB
agents/interface.yamlconfig1.4 KB
contract/archspec-v1.mdmarkdown2.1 KB
contract/archspec-v2.mdmarkdown3.0 KB
contract/archspec-v3.mdmarkdown5.1 KB
contract/archspec-v4.mdmarkdown5.0 KB
contract/archspec-v5.mdmarkdown3.5 KB
contract/blueprintspec-v1.mdmarkdown7.7 KB
contract/blueprintspec-v2.mdmarkdown4.0 KB
contract/blueprintspec-v4.mdmarkdown4.1 KB
contract/erspec-v1.mdmarkdown1.9 KB
contract/erspec-v2.mdmarkdown4.2 KB
contract/flowspec-v1.mdmarkdown3.0 KB
contract/ganttspec-v1.mdmarkdown1.9 KB
contract/seqspec-v1.mdmarkdown1.6 KB
examples/arch-3tier.mmdother289 B
examples/arch-logical.mmdother680 B
examples/arch-microservice.mmdother342 B
examples/arch-portal.mmdother262 B
examples/arch-skip.mmdother337 B
examples/blueprint-enterprise.mmdother2.0 KB
examples/blueprint-layered.mmdother794 B
examples/er-blog.mmdother324 B
examples/er-order.mmdother449 B
examples/er-school.mmdother409 B
examples/gantt-day-schedule.mmdother321 B
examples/gantt-infra.mmdother473 B
examples/gantt-release.mmdother483 B
examples/minimal.mmdother133 B
examples/pet-boarding.mmdother1.2 KB
examples/seq-login-auth.mmdother308 B
examples/seq-oauth-resource.mmdother386 B
examples/seq-order-pay.mmdother338 B
examples/seq-push-notify.mmdother414 B
manifest.jsonconfig288 B
scripts/flowcommon.pyexecutablescript21.3 KB
scripts/flowlayout.pyexecutablescript30.7 KB
scripts/layout_arch.pyexecutablescript60.6 KB
scripts/layout_blueprint.pyscript78.8 KB
scripts/layout_er.pyexecutablescript21.1 KB
scripts/layout_gantt.pyexecutablescript14.4 KB
scripts/layout_seq.pyexecutablescript13.5 KB
scripts/selftest.pyexecutablescript6.0 KB
scripts/selftest_arch.pyexecutablescript18.5 KB
scripts/selftest_blueprint.pyscript22.2 KB
scripts/selftest_er.pyexecutablescript10.5 KB
scripts/selftest_gantt.pyexecutablescript6.7 KB
scripts/selftest_seq.pyexecutablescript6.1 KB

contract/ganttspec-v1.md

View on GitHub
# ganttspec/1 契约(甘特图)

flow-canvas 多图类型引擎 · 甘特图排版契约。破坏性变更时主版本 +1。

## 输入:mermaid gantt 子集

```
gantt
  dateFormat YYYY-MM-DD
  title 发布计划
  section 开发
  需求分析 :done, a1, 2026-01-05, 3d
  编码     :active, a2, after a1, 5d
  里程碑   :milestone, m1, 2026-01-15, 0d
  section 测试
  回归测试 :a3, after a2, 2d
```

- `dateFormat`:v1 支持 `YYYY-MM-DD` 与 `HH:mm`,其他报错。
- 任务行:`名称 :[crit,] [done|active,] id, 开始, 时长`;时长 `Nd`(天)/ `Nw`(周)/ `Nm`(月 ≈ 30d);开始为日期/时间或 `after 任务id`。
- 里程碑:`:milestone, id, 开始, 0d`;开始可为绝对日期/时间,也可为 `after 任务id`(依赖前序任务结束);时长必须为 `0d`。
- **不支持**:`until`、百分比、双日期区间依赖等 → 报「形态超限」错误降级。

## 布局规则

1. 时间轴 nice ticks:1/2/5×10^k 步进(天单位;`HH:mm` 用分钟),**刻度间距 ≥ 刻度标签宽度 + 16px**(刻度日期文案互不重叠,间距按当前 dateFormat 的标签宽度计算,不再用固定 40px 下限)。
2. 行高统一 28px;左标签列宽 = 最宽任务名 + 边距;section 为灰底分隔带 + 标题。
3. 任务条:矩形,起于开始日期、宽 = 时长;条内文本(宽-8)放得下则居中,放不下右置条外。
4. 里程碑:日期处菱形。
5. 条外标签不能超画布右缘,超了 → 报「形态超限」错误降级。

## 输出 SVG 契约

- 根元素:`<svg data-ganttspec="1" viewBox="0 0 W H">`
- 任务:`<g class="task" id="gantt-{id}" data-task="{id}">`(含条 rect 与标签 text)

## 质检

统一 `--check` 报告字段(edges 恒为 0);同行条重叠 0、标签溢出 0、交叉 0,任一非 0 拒绝产出并降级。
任务数 > 40 或日期解析失败 → 报「形态超限」错误降级。
slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack."Stars: 198kUpdated Claude CodeCodexVerifiedInstall
ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt.Stars: 194kUpdated Claude CodeCodexVerifiedInstall