start
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-craftOrient the user. Load the skill, read the current project, and report what ui-craft can do right now for it. This is the front door — most people run it first.
ui-craft<!-- HARNESS MIRROR — do not edit here. Canonical source: skills/ or commands/. After editing source, copy into cli/assets/<harness>/ and repo-root harness mirrors. -->
背景说明: 此子技能是更广泛的技能的一个组成部分。如果已安装技能,请先阅读其SKILL.md了解Discovery + Anti-Slop + Craft Test,再应用以下特定规则。
ui-craftui-craft为用户指引方向。加载技能,读取当前项目,报告ui-craft当前可为其执行的操作。这是入口命令——大多数人会首先运行它。
ui-craftORCHESTRATE-ONLY RULE
仅调度规则
This command detects state and routes. It MUST NOT build, edit, audit, or re-implement any phase logic. It contributes only:
- Project detection (read-only).
- A "what's available now" map across the three usage layers.
- One recommended next step + the command to run for it.
When the user wants to act, hand off to the real command (, , , , , the review agents, etc.). Do not inline their steps.
/brief/tokens/sddesign/craft/finalize此命令仅用于状态检测与路由。绝对不能执行构建、编辑、审计或重新实现任何阶段的逻辑。它仅负责:
- 项目检测(只读)。
- 生成跨三个使用层级的“当前可用功能”映射。
- 推荐一个下一步操作及对应的运行命令。
当用户想要执行操作时,将任务移交至实际命令(、、、、、审核agent等)。不要将这些步骤内联执行。
/brief/tokens/sddesign/craft/finalizeStep 1 — Detect (read-only)
步骤1 — 检测(只读)
Scan the project. Do not write anything. Gather:
| Signal | How to detect | Used for |
|---|---|---|
| Framework / styling | package.json deps, config files, file extensions — Tailwind, CSS Modules, styled-components/Emotion, vanilla CSS, Vue/Svelte/Astro SFC | Confirm ui-craft adapts to this stack |
| Token spine | CSS vars ( | Gate: is |
| Brief | | Gate: is |
| External design contract | | Treat as brief + token input — read it, honor it, don't duplicate it |
| Spec | | Is there work in flight? |
| Harness | Claude Code (plugin/skill) vs | Which layers are reachable (agents/MCP are Claude Code / MCP-client only) |
| Existing UI | are there components/pages already, or is this greenfield? | Build-new vs review/polish framing |
Keep detection fast and quiet — a few reads, no deep traversal. Report findings as a short table.
扫描项目。不要写入任何内容。收集以下信息:
| 信号 | 检测方式 | 用途 |
|---|---|---|
| 框架/样式 | package.json依赖、配置文件、文件扩展名 — Tailwind、CSS Modules、styled-components/Emotion、原生CSS、Vue/Svelte/Astro单文件组件 | 确认ui-craft是否适配此技术栈 |
| 令牌核心 | CSS变量( | 判断是否需要运行 |
| Brief | 是否存在 | 判断是否需要运行 |
| 外部设计约定 | 仓库根目录下是否有 | 将其视为brief和令牌输入——读取并遵循,不要重复创建 |
| Spec | 是否存在 | 是否有正在进行的工作? |
| Harness | Claude Code(插件/技能)vs | 哪些层级可访问(agent/MCP仅支持Claude Code / MCP-client) |
| 现有UI | 是否已有组件/页面,还是全新项目? | 区分是新建UI还是审核/优化场景 |
保持检测快速且无干扰——仅读取少量内容,不进行深度遍历。将检测结果整理为简短表格呈现。
Step 2 — Report the three layers
步骤2 — 报告三个层级
Print what's available now, mapped to how people actually use ui-craft. Mark each layer ● active / ○ available / – not reachable in this harness.
ui-craft is a design engineering SYSTEM. You're set up for:
● Layer 1 — Just ask
Describe any UI and the agent designs with taste (anti-slop, system tokens,
real hierarchy). No command needed. This is the default and the point.
○ Layer 2 — Drive it
Slash commands for focused passes. Given THIS project:
<tailored list — see Step 3>
○ Layer 3 — Verify it
design-reviewer + a11y-auditor agents · ui-craft-mcp gates · UICraftScore · ui-craft-detect CLI.
<mark – if the harness can't reach agents/MCP, and say so>Tailor the bullets to the detected state — don't print the generic catalog.
打印当前可用的功能,匹配用户实际使用ui-craft的方式。用●表示已激活 / ○表示可用 / –表示当前harness无法访问,标记每个层级。
ui-craft is a design engineering SYSTEM. You're set up for:
● Layer 1 — Just ask
Describe any UI and the agent designs with taste (anti-slop, system tokens,
real hierarchy). No command needed. This is the default and the point.
○ Layer 2 — Drive it
Slash commands for focused passes. Given THIS project:
<tailored list — see Step 3>
○ Layer 3 — Verify it
design-reviewer + a11y-auditor agents · ui-craft-mcp gates · UICraftScore · ui-craft-detect CLI.
<mark – if the harness can't reach agents/MCP, and say so>根据检测到的状态调整项目符号内容——不要打印通用目录。
Step 3 — Recommend ONE next step
步骤3 — 推荐一个下一步操作
Pick the single highest-value next action from detected state. Use this decision order:
- No brief, non-trivial project → recommend ("anchor every later decision to your product's principles — 5 min, writes
/brief")..ui-craft/brief.md - Brief exists, no token spine → recommend ("establish the 3-layer token spine so builds match a system, not inline guesses").
/tokens - Brief + tokens exist, building something net-new → recommend (full pipeline) or
/sddesign <surface>(one-shot) — ask which./craft <surface> - Existing UI to improve → route by intent: review → +
ui-craft:design-reviewer(Claude Code) orui-craft:a11y-auditor+/critique; polish →/audit; simplify →/polish; flat/generic →/distill; loud/busy →/bolder; dated site to modernize →/quieter./redesign - About to ship / merge → recommend (10-pass gate) and, for CI,
/finalizeor thenpx ui-craft-detectMCP tool.score_ui
Print it as one clear line:
Recommended next:— <one-sentence why>.…
Then offer the full menu only if asked: "Want the full command list, or shall I run that now?"
根据检测到的状态选择单个最高价值的下一步操作。遵循以下决策顺序:
- 无brief,非小型项目 → 推荐(“将后续所有决策锚定到产品原则——耗时5分钟,生成
/brief”)。.ui-craft/brief.md - 存在brief,无令牌核心 → 推荐(“建立三层令牌核心,使构建符合系统规范,而非随机内联样式”)。
/tokens - 存在brief和令牌,正在构建全新内容 → 推荐(完整流程)或
/sddesign <surface>(单次构建)——询问用户选择哪一个。/craft <surface> - 现有UI需要优化 → 根据意图路由:审核 → +
ui-craft:design-reviewer(Claude Code)或ui-craft:a11y-auditor+/critique;优化 →/audit;简化 →/polish;平淡/通用 →/distill;嘈杂/繁琐 →/bolder;老旧站点现代化 →/quieter。/redesign - 即将发布/合并 → 推荐(10轮检查),对于CI环境,推荐
/finalize或npx ui-craft-detectMCP工具。score_ui
将其打印为清晰的一行:
Recommended next:— <one-sentence why>.…
仅在用户要求时提供完整命令列表:“需要查看完整命令列表,还是现在就运行该命令?”
Step 4 — Hand off
步骤4 — 移交任务
If the user confirms, run the recommended command. Otherwise stop — never acts on its own. Its job is done once the user knows where they are and where to go.
/start如果用户确认,运行推荐的命令。否则停止——绝不会自行执行操作。一旦用户了解当前状态和下一步方向,它的任务就完成了。
/startNotes
注意事项
- Read-only. writes nothing and changes no code. The artifacts (
/start,brief.md, tokens) are written by their own commands.spec.md - Harness honesty. If the project is in a non-Claude-Code harness (,
.codex, etc.), Layer 3 agents and the MCP server may not be reachable from that agent — say so plainly and point to the CLI (.cursor) as the portable verify path.ui-craft-detect - Craft-intent routing. Full-surface builds (,
/craft) declare a Craft Read before code. If the user describes a built UI as "generic", "template-y", or "too safe", route to/sddesign; if "too loud" or "too busy", route to/bolder./quieter - Don't re-run Discovery. If a brief or spec already exists, don't interrogate the user for preferences — read the artifacts and report.
Next step: Follow the rung this run named. is read-only — the value is in doing the one command it picked.
/start- 只读模式:不写入任何内容,也不修改代码。相关产物(
/start、brief.md、tokens)由各自的命令生成。spec.md - Harness如实告知:如果项目处于非Claude-Code的harness(、
.codex等)中,第三层级的agent和MCP服务器可能无法从该agent访问——请明确告知用户,并将CLI工具.cursor作为可移植的验证途径。ui-craft-detect - 按设计意图路由:全界面构建命令(、
/craft)在编写代码前会声明Craft Read。如果用户描述已构建的UI为“通用”、“模板化”或“过于保守”,则路由至/sddesign;如果描述为“过于嘈杂”或“过于繁琐”,则路由至/bolder。/quieter - 不要重复执行Discovery:如果已存在brief或spec,不要询问用户偏好——读取现有产物并报告即可。
下一步: 执行本次推荐的命令。是只读命令——其价值在于引导您执行它所选择的那一个命令。
/start