sddesign
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinese<!-- HARNESS MIRROR — do not edit here. Canonical source: skills/ or commands/. After editing source, copy into cli/assets/<harness>/ and repo-root harness mirrors. -->
Context: this sub-skill is one lens of the broader skill. If the skill is also installed, read its SKILL.md first for Discovery + Anti-Slop + Craft Test, then apply the specific lens below.
ui-craftui-craftRun the spec-driven design pipeline for . Load the skill.
$ARGUMENTSui-craft<!-- HARNESS MIRROR — 请勿在此编辑。标准源文件位于skills/或commands/目录下。编辑源文件后,请复制到cli/assets/<harness>/和仓库根目录的harness镜像文件夹中。 -->
背景说明: 此子技能是更广泛的技能的一个分支。如果已安装技能,请先阅读其SKILL.md文档了解Discovery(探索)、Anti-Slop(反冗余)和Craft Test(构建测试)相关内容,再应用以下特定流程。
ui-craftui-craft针对描述的内容运行规格驱动设计流水线。加载技能。
$ARGUMENTSui-craftORCHESTRATE-ONLY RULE
仅编排规则
This command sequences existing phase commands. It MUST NOT re-implement or duplicate any logic from them. Every composition rule, wireframe algorithm, craft rule, and convergence engine lives in the phase commands. This command contributes only:
- Gate detection (does the artifact exist?)
- Offer prompts (run phase X or skip?)
- Progress reporting (the checklist)
- Degraded-mode honesty (what was skipped and what that costs)
When in doubt: call the phase command, don't inline its steps.
此命令仅用于编排现有阶段命令的执行顺序。不得重新实现或复制这些阶段命令中的任何逻辑。所有布局规则、线框算法、构建规则和收敛引擎均存在于阶段命令中。此命令仅负责以下内容:
- 节点检测(检查相关工件是否存在)
- 提示选择(是否运行某个阶段或跳过)
- 进度报告(任务清单)
- 降级模式说明(说明跳过的内容及其影响)
如有疑问:调用阶段命令,不要将其步骤内联到本命令中。
Progress Checklist
进度清单
Print this at the start and update it after each gate resolves:
[ ] brief [ ] tokens [ ] shape (spec) [ ] craft (build) [ ] converge [ ] shipUse for completed/skipped-with-artifact, for the current gate, for skipped-without-artifact (degraded).
[✓][>][–]在流程开始时打印此清单,并在每个节点处理完成后更新:
[ ] brief [ ] tokens [ ] shape (spec) [ ] craft (build) [ ] converge [ ] ship使用表示已完成/跳过但存在相关工件,表示当前正在处理的节点,表示跳过且无相关工件(降级模式)。
[✓][>][–]Pipeline Gates
流水线节点
Gate 1 — Brief
节点1 — 需求概述(Brief)
Check: does exist?
.ui-craft/brief.mdIf yes: mark . Note that brief §6 learned constraints and the a11y/correctness floor are in effect for all downstream gates — they take precedence over any spec.md composition choice.
[✓] briefIf no: offer to run now.
/brief- User confirms → run . When it completes, mark
/brief.[✓] brief - User declines → mark . Note downstream impact: "no brief → craft will use skill defaults; composition will not be anchored to project principles."
[–] brief
检查:文件是否存在?
.ui-craft/brief.md如果存在: 标记。注意,需求概述第6节中提到的约束条件以及无障碍(a11y)/正确性底线将对所有下游节点生效——它们的优先级高于spec.md中的任何布局选择。
[✓] brief如果不存在: 询问用户是否立即运行命令。
/brief- 用户确认 → 运行。完成后标记
/brief。[✓] brief - 用户拒绝 → 标记。说明下游影响:“无需求概述 → 构建(craft)将使用技能默认设置;布局将无法锚定到项目原则。”
[–] brief
Gate 2 — Tokens
节点2 — 设计令牌(Tokens)
Check: does a token spine exist? (Look for CSS variables , , , a Tailwind with tokens, or a token file.)
--color-*--font-*--accent-*theme.extendIf yes: mark .
[✓] tokensIf no: offer to run now.
/tokens- User confirms → run . When it completes, mark
/tokens.[✓] tokens - User declines → mark . Note downstream impact: "no token spine → craft will establish a minimal inline token set; it won't match an existing system."
[–] tokens
检查:是否存在令牌核心?(查找CSS变量、、,包含令牌的Tailwind ,或令牌文件。)
--color-*--font-*--accent-*theme.extend如果存在: 标记。
[✓] tokens如果不存在: 询问用户是否立即运行命令。
/tokens- 用户确认 → 运行。完成后标记
/tokens。[✓] tokens - 用户拒绝 → 标记。说明下游影响:“无令牌核心 → 构建(craft)将建立最小化的内联令牌集;无法匹配现有系统。”
[–] tokens
Gate 3 — Shape (spec)
节点3 — 原型定义(Shape,即规格)
Existing-surface guard: Before running , check if already contains a block for this surface. If it does, do NOT re-run shape and blindly append a duplicate section — offer to update the existing section or skip shape (the spec already exists).
/shape.ui-craft/spec.md## Surface: <name>Run for the surface described in . Shape produces its full five-step output (content inventory, ASCII layout, state list, open questions).
/shape$ARGUMENTSPersist in pipeline (default): Inside the pipeline, shape's Step 6 spec persist is the default — it is auto-confirmed unless the user explicitly opts out of the spec gate. The persist writes (or appends the surface section). This is the whole point of the pipeline.
/sddesign.ui-craft/spec.md- Persist completes → is written (or the surface section is appended). Mark
.ui-craft/spec.md.[✓] shape (spec) - User explicitly opts out of persist → mark . Note downstream impact: "no spec.md → craft (build) will build against shape's printed output; acceptance bar will not be persisted."
[–] shape (spec, unsaved)
已有界面防护: 在运行之前,检查中是否已包含针对此界面的区块。如果已存在,请勿重新运行shape并盲目追加重复区块——提供更新现有区块或跳过shape的选项(规格已存在)。
/shape.ui-craft/spec.md## Surface: <name>针对描述的界面运行。Shape会生成完整的五步输出(内容清单、ASCII布局、状态列表、待解决问题)。
$ARGUMENTS/shape流水线内持久化(默认): 在流水线中,shape的第6步规格持久化为默认操作——除非用户明确选择退出规格节点,否则将自动确认。持久化操作会写入文件(或追加界面区块)。这是本流水线的核心目标。
/sddesign.ui-craft/spec.md- 持久化完成 → 已写入(或已追加界面区块)。标记
.ui-craft/spec.md。[✓] shape (spec) - 用户明确选择退出持久化 → 标记。说明下游影响:“无spec.md文件 → 构建(craft)将基于shape输出到终端的内容进行开发;验收标准不会被持久化。”
[–] shape (spec, unsaved)
Gate 4 — Craft (build)
节点4 — 构建实现(Craft,即开发)
Run where matches the description in .
/craft <surface><surface>$ARGUMENTS/craftreferences/craft-intent.md/craft.ui-craft/spec.md[✓] shape (spec)If , craft builds against the shape output printed to the terminal. Note in the checklist.
[–] shape (spec, unsaved)Mark when the build completes.
[✓] craft (build)运行,其中与中的描述匹配。
/craft <surface><surface>$ARGUMENTS/craftreferences/craft-intent.md/craft.ui-craft/spec.md[✓] shape (spec)如果标记了,则craft将基于输出到终端的shape内容进行构建。在清单中注明此情况。
[–] shape (spec, unsaved)构建完成后标记。
[✓] craft (build)Gate 5 — Converge
节点5 — 迭代收敛(Converge)
Run the preset from . This iterates — evaluate → fix one → re-evaluate — until the zero-critical gate passes or the budget is exhausted (default budget: 3 iterations).
visual-anti-slop../skills/ui-craft/references/loops.md- If the loop gate passes (zero critical findings) → mark .
[✓] converge - If budget exhausted with open findings → mark . List unresolved findings from the loop report.
[>] converge (open findings)
运行中的预设。此过程会循环执行——评估→修复一项→重新评估——直到零严重问题节点通过或预算耗尽(默认预算:3次迭代)。
../skills/ui-craft/references/loops.mdvisual-anti-slop- 如果循环节点通过(无严重问题)→ 标记。
[✓] converge - 如果预算耗尽仍有未解决问题 → 标记。列出循环报告中未解决的问题。
[>] converge (open findings)
Gate 6 — Ship
节点6 — 交付上线(Ship)
Run verdict. Finalize reports READY / NOT READY / BLOCKED based on the 10-pass finish bar and the brief/token gate.
/finalizePrint the final verdict and the complete resolved checklist:
[✓] brief [✓] tokens [✓] shape (spec) [✓] craft (build) [✓] converge [✓] shipDegraded-mode honesty. If any gate was marked , list them in the ship verdict with their downstream impacts:
[–]"Skipped gates: tokens (skipped) → token spine not validated; shape (spec, unsaved) → acceptance bar not persisted. These gaps reduce the ship verdict's confidence."
运行命令获取最终结论。Finalize会基于10项完成标准以及需求概述/令牌节点的情况,报告READY(就绪)/NOT READY(未就绪)/BLOCKED(阻塞)状态。
/finalize打印最终结论和完整的已处理清单:
[✓] brief [✓] tokens [✓] shape (spec) [✓] craft (build) [✓] converge [✓] ship降级模式说明:如果任何节点被标记为,在上线结论中列出这些节点及其下游影响:
[–]"跳过的节点:tokens(已跳过)→ 令牌核心未验证;shape (spec, unsaved) → 验收标准未持久化。这些缺口会降低上线结论的可信度。"
Precedence
优先级规则
Brief §6 learned constraints and the a11y/correctness floor take precedence over spec.md composition choices at every gate. If a constraint conflicts with a spec.md decision, the constraint wins — update the spec section to reflect the winning choice and note the brief §6 reference.
Next step: Ship. The pipeline already walked rungs 1 to 3; is the record for the next session.
.ui-craft/spec.md需求概述第6节中的约束条件以及无障碍(a11y)/正确性底线在所有节点中的优先级均高于spec.md中的布局选择。如果约束条件与spec.md中的决策冲突,约束条件优先——更新规格区块以反映最终选择,并注明参考需求概述第6节。
下一步: 交付上线。流水线已完成第1至第3阶段;将作为下一次会话的记录。
.ui-craft/spec.md