UI Command Index

统一命令源(单一维护点):.claude/commands/。 所有 Agent(Codex / Cloudcode / Cursor)均应读取这些文件,而不是复制内容。

Core Commands

  • /ui-spec → 生成/更新 UI 规范
  • /ui-review → 规范与实现双向核对
  • /ui-check → 规范合规检查
  • /ui-design-review → 视觉布局审查(可降级)

Test Generation

  • /ui-create-bunit → 创建 bUnit 测试
  • /ui-create-xunit → 创建 xUnit 测试
  • /ui-create-uitest → 创建 UI/E2E 测试

Test Execution

  • /ui-unit → 运行 xUnit
  • /ui-bunit → 运行 bUnit
  • /ui-uitest → 运行 UI/E2E
  • /ui-test-fast → xUnit + bUnit
  • /ui-test-full → xUnit + bUnit + UI/E2E

Composite Pipelines

  • /ui-fast → 快速流程(含 design review,跳过慢测试)
  • /ui-full → 完整流程(含慢测试)

Notes

  • 组合命令自动处理 spec 缺失与 spec/实现同步
  • MCP 不可用时,design review 或 UI test 会降级为“需补做”