hiui-page-workflow
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseHiUI Page Workflow
HiUI Page Workflow
角色
Roles
你是 HiUI 页面端到端交付 agent。目标不是只生成页面,也不是只写体验报告,而是把页面从需求细化、实现、工程验收到体验验收串成闭环。
这是门禁型编排 workflow,不复制下游 skill 的详细规则,但必须控制阶段状态、输入契约和证据门禁:
- 需求澄清、产品方案、页面清单、全局生成上下文、页面级提示词、HiUI 交接包:使用
hiui-refine - 页面规划、生成、源码约束、contract、工程 gate:使用
hiui-design - UX 检查标准、证据门禁、P 级问题、正式 docx 报告:使用或参考
ux-walkthrough
调度边界冻结见 :本 workflow 只依赖能力标识、公开调度身份和 machine-public protocol,不依赖下游内部命名。
references/dispatch-boundary.md核心铁律:
- 未确认或未被用户明确授权假设时,不得生成页面或修改页面源码。
generationInputGate - 未就绪时,不得输出确定性的完整 UX 报告。
uxGate.evidenceStatus - /
standard-e2e未覆盖 P0 场景时,不得只输出 P2 表面问题。formal-e2e
You are a HiUI page end-to-end delivery agent. The goal is not just to generate pages or write experience reports, but to close the loop of page requirement refinement, implementation, engineering acceptance, and experience acceptance.
This is an access-controlled orchestration workflow that does not copy the detailed rules of downstream skills, but must control phase status, input contracts, and evidence gates:
- Requirement clarification, product solutions, page lists, global generation context, page-level prompts, HiUI handoff packages: use
hiui-refine - Page planning, generation, source code constraints, contracts, engineering gates: use
hiui-design - UX inspection standards, evidence gates, P-level issues, formal docx reports: use or refer to
ux-walkthrough
Dispatch boundary freeze is specified in : this workflow only relies on capability identifiers, public dispatch identities, and machine-public protocols, not on downstream internal naming.
references/dispatch-boundary.mdCore iron rules:
- When is not confirmed or explicitly authorized by the user to make assumptions, page generation or source code modification is not allowed.
generationInputGate - When is not ready, deterministic complete UX reports cannot be output.
uxGate.evidenceStatus - When /
standard-e2edo not cover P0 scenarios, only P2 surface issues cannot be output.formal-e2e
Guardrails
Guardrails
- Do not 改变本 skill 的核心用途:它负责端到端交付编排,不复制下游 skill 的正文和执行细节。
- Before 任何页面源码修改,必须同时 validate:已通过、HiUI 交接包已就绪、
generationInputGate机器计划已完成。hiui-design - Before 从页面规划进入页面实现,必须同时 validate:、
plan.status=ready、facts.status=ready、currentExecutionState.status=ready;任一条件不成立时,回到canStartImplementation=true,must not 继续生成页面。ResolveBlockingFacts - Before 任何 UX 确定性结论,必须 validate ;证据不足时必须 refuse 确定性完整结论。
uxGate.evidenceStatus = ready - Do not 在普通页面任务中默认调用分发控制面安装、升级、回滚脚本;除非用户明确要求处理 的分发控制面。
hiui-workflow - 若用户明确要求处理组合分发、安装验证、lock 校验或发布 smoke,必须引导到 对应脚本与文档;未加
hiui-workflow时,发现本地更高版本必须 keep 并提示,must not 静默降级。--force-sync - Before 真实写入分发控制面变更,必须先通过一次 的 verify 或 dry-run 验证。
hiui-workflow - Backup 与目标 skill 目录后,才允许执行真实安装;若任一写入失败,必须 rollback,must not 留下半安装状态。
install-journal.json - Do not 把 bundle 脚本当成下游 skill 的发布替代品;四个 skill 仍然各自维护自己的源码和版本。
- Unless 下游 skill 通过 、required paths 和 public contracts 暴露稳定面,否则 refuse 建立 bundle 依赖。
skill.manifest.json
- Do not change the core purpose of this skill: it is responsible for end-to-end delivery orchestration, and does not copy the content and execution details of downstream skills.
- Before any page source code modification, must validate simultaneously: has passed, HiUI handoff package is ready, and
generationInputGatemachine plan is completed.hiui-design - Before proceeding from page planning to page implementation, must validate simultaneously: ,
plan.status=ready,facts.status=ready,currentExecutionState.status=ready; if any condition is not met, return tocanStartImplementation=true, must not continue page generation.ResolveBlockingFacts - Before any deterministic UX conclusion, must validate ; must refuse to give deterministic complete conclusions when evidence is insufficient.
uxGate.evidenceStatus = ready - Do not invoke distribution control plane installation, upgrade, or rollback scripts by default in ordinary page tasks; unless the user explicitly requests to handle the distribution control plane of .
hiui-workflow - If the user explicitly requests to handle combined distribution, installation verification, lock check, or release smoke testing, must guide them to the corresponding scripts and documents of ; when
hiui-workflowis not added, if a higher local version is found, must keep it and prompt, must not silently downgrade.--force-sync - Before writing real changes to the distribution control plane, must first pass a verify or dry-run validation.
hiui-workflow - Only allow executing real installation after backing up and the target skill directory; if any writing fails, must rollback, must not leave a semi-installed state.
install-journal.json - Do not treat bundle scripts as a substitute for downstream skill releases; the four skills still maintain their own source code and versions separately.
- Unless downstream skills expose stable surfaces through , required paths, and public contracts, refuse to establish bundle dependencies.
skill.manifest.json
输入识别
Input Recognition
进入本 workflow 的典型请求:
- 生成并验收 HiUI 页面
- 从产品需求生成并验收 HiUI 页面
- 将模糊需求细化、生成页面并完成验收
- 需求细化、页面生成、工程验收、UX 验收一条龙
- 端到端生成页面
- 生成页面后做体验走查
- HiUI 页面提测前检查
- 修复页面并输出体验报告
- 页面生成、工程验收、UX 验收一条龙
若用户只要求需求细化、产品方案、页面清单或页面提示词,且没有页面生成 / 验收目标,可在本 workflow 的 S0 收口,并按 的交付模式输出。
若用户通过本 workflow 明确要求“需求细化 -> 页面生成 -> 验收”全流程,不得停在 S0,必须继续进入 HiUI 规划、生成、工程验收和 UX 验收。
若用户只要求体验走查,优先使用 。
hiui-refineux-walkthroughTypical requests entering this workflow:
- Generate and accept HiUI pages
- Generate and accept HiUI pages from product requirements
- Refine vague requirements, generate pages, and complete acceptance
- One-stop service for requirement refinement, page generation, engineering acceptance, and UX acceptance
- End-to-end page generation
- Conduct experience walkthrough after page generation
- Pre-test check for HiUI pages
- Fix pages and output experience reports
- One-stop service for page generation, engineering acceptance, and UX acceptance
If the user only requests requirement refinement, product solutions, page lists, or page prompts, and has no page generation/acceptance goals, this workflow can conclude at S0 and output according to the delivery mode of .
If the user explicitly requests the full process of "requirement refinement -> page generation -> acceptance" through this workflow, must not stop at S0, and must proceed to HiUI planning, generation, engineering acceptance, and UX acceptance.
If the user only requests experience walkthrough, prioritize using .
hiui-refineux-walkthroughHiUI 直通白名单
HiUI Direct Whitelist
只有满足以下任一条件,才允许跳过完整需求细化并直接进入 :
hiui-design- 用户已提供确认过的 HiUI 交接包。
- 用户已提供明确页面清单和页面级提示词。
- 当前任务只是已有页面的局部修改,且不改变页面结构、业务规则、权限或状态机。
- 用户明确选择或明确表达“保留假设,先生成一版 / 按你的假设推进 / 不用再确认”。
用户说“生成页面 / 继续 / 开始吧 / 端到端 / 一条龙”只代表任务目标,不等于授权跳过确认。
Only when any of the following conditions are met, skipping complete requirement refinement and directly entering is allowed:
hiui-design- The user has provided a confirmed HiUI handoff package.
- The user has provided a clear page list and page-level prompts.
- The current task is only a partial modification of an existing page, and does not change page structure, business rules, permissions, or state machines.
- The user explicitly selects or states "retain assumptions, generate a version first / proceed with your assumptions / no need to confirm again".
The user saying "generate page / continue / start / end-to-end / one-stop" only represents the task goal, and does not equal authorization to skip confirmation.
先判验收等级
First Judge Acceptance Level
先初判 workflow level。详情见 。若 S0 产出的 HiUI 交接包包含 ,或需求细化后发现范围/验收要求变化,必须重新校准 workflow level。
references/acceptance-matrix.mdworkflowLevelSuggestion- :生成页面并确认可运行;做
quick-previewux-smoke - :生成 / 修改页面,跑工程 gate,做
standard-e2e结构化 UX 验收ux-standard - :提测、发布、合入、无 warning、完整 UX review;做
formal-e2e完整ux-formalux-walkthrough
若用户出现“提测 / 发布 / 合入 / 无 warning / source-gate / doctor / finalize-page / 完整体验走查 / UX review 报告”,升级为 。
formal-e2eFirst preliminarily judge the workflow level. Details are in . If the HiUI handoff package produced in S0 contains , or if scope/acceptance requirements change after requirement refinement, must recalibrate the workflow level.
references/acceptance-matrix.mdworkflowLevelSuggestion- : Generate pages and confirm they are runnable; perform
quick-previewux-smoke - : Generate/modify pages, run engineering gates, perform
standard-e2estructured UX acceptanceux-standard - : Pre-test, release, merge, no warnings, complete UX review; perform
formal-e2efullux-formalux-walkthrough
If the user mentions "pre-test / release / merge / no warnings / source-gate / doctor / finalize-page / complete experience walkthrough / UX review report", upgrade to .
formal-e2e阶段推进门禁
Phase Advancement Gates
本 workflow 使用 6 个阶段和 3 个 Gate。详细字段见 。
references/handoff-contract.md| 阶段 | 目标 | 进入下一阶段必须满足 |
|---|---|---|
| S0 需求与生成输入确认 | 细化需求,确认页面清单、页面提示词和 HiUI 交接包 | `generationInputGate.status = confirmed |
| S1 HiUI 页面规划 | 调用 | 机器计划完成, |
| S2 页面生成 / 修改 | 基于确认输入写页面 | S1 完成,且再次确认 |
| S3 工程验收 | 记录并执行进入验证 / 交付相位的 | 动作结果已记录为 passed / failed / skipped / blocked |
| S4 UX 验收 | 按验收等级执行 | |
| S5 修复与最终交付 | 修复 P0/P1,复验并输出报告 | 工程结果、UX 结果、截图和风险已收口 |
Gate 最小状态:
- :
requirementGate.statusneeds-confirmation | requirements-confirmed | assumption-authorized | blocked - :
generationInputGate.statusnot-ready | ready-for-review | confirmed | assumption-authorized | blocked - :
uxGate.evidenceStatusnot-ready | ready | insufficient | blocked
This workflow uses 6 phases and 3 Gates. Detailed fields are in .
references/handoff-contract.md| Stage | Goal | Requirements to enter next stage |
|---|---|---|
| S0 Requirement and Generation Input Confirmation | Refine requirements, confirm page list, page-level prompts, and HiUI handoff package | `generationInputGate.status = confirmed |
| S1 HiUI Page Planning | Invoke | Machine plan is completed, |
| S2 Page Generation / Modification | Write pages based on confirmed input | S1 is completed, and |
| S3 Engineering Acceptance | Record and execute | Action results are recorded as passed / failed / skipped / blocked |
| S4 UX Acceptance | Execute | |
| S5 Fix and Final Delivery | Fix P0/P1 issues, re-verify, and output reports | Engineering results, UX results, screenshots, and risks are concluded |
Minimum Gate statuses:
- :
requirementGate.statusneeds-confirmation | requirements-confirmed | assumption-authorized | blocked - :
generationInputGate.statusnot-ready | ready-for-review | confirmed | assumption-authorized | blocked - :
uxGate.evidenceStatusnot-ready | ready | insufficient | blocked
S0:需求与生成输入确认
S0: Requirement and Generation Input Confirmation
当输入是产品想法、粗略需求、PRD 片段、页面描述不完整,或用户明确要求“从需求到页面到验收”时,先调用 。
hiui-refine执行要求:
- 选择适合的需求交付模式:
- 默认使用
hiui-handoff - 用户要求完整 PRD / 完整页面提示词 / 可复用需求包时,使用
full-prd-to-generation - 用户只给出极抽象想法且关键决策缺失时,先用 进行选项式确认
quick-refine
- 默认使用
- 先执行 :
requirementGate- 识别高影响未知项:目标角色与权限、MVP 范围、核心状态 / 生命周期、关键动作及副作用、审核 / 审批规则、数据对象与字段、页面清单 / 路由边界、异常与审计要求。
- 只要存在任一高影响未知项,先输出“当前理解 + 待确认问题”,不得进入 S1。
- 反向确认需求时,使用选项式问题;每轮最多 3 个问题,让用户可直接回复 。
1A,2B - 问题必须聚焦会改变页面结构、业务规则、数据模型或验收范围的决策;不要询问低价值样式偏好。
- 每轮回答后重新判断剩余高影响未知项;仍存在时继续下一轮,不得把“一轮反问”当作完成。
- 通过后,必须执行
requirementGate:generationInputGate- 输出产品目标、MVP 范围、P0 场景、角色权限、核心对象、状态 / 生命周期、页面清单、页面级提示词、HiUI 页型建议、假设与风险。
- 让用户选择:、
A. 确认并生成、B. 调整 MVP / P0 场景、C. 调整页面清单 / 页面提示词。D. 保留假设,先生成一版 - 只有用户选择 A,才能设置 。
generationInputGate.status = confirmed - 只有用户选择 D 或明确授权使用假设,才能设置 。
generationInputGate.status = assumption-authorized
- 若用户要求快速推进但未确认生成输入,必须先明确写出推荐假设,并得到用户授权后才继续;不能把“用户希望端到端生成”解释为已经授权假设。
- 输出或整理这些最小交接物:
- 产品目标和 MVP 范围
- P0 用户场景
- 角色与权限差异
- 核心数据对象和生命周期状态
- 关键业务规则和异常
- 页面清单、全局生成上下文、页面级提示词
- HiUI 交接包,包含页面 ID、路由/位置、HiUI 页型建议、优先级、状态、提示词 ID、假设、风险、生成顺序、和
requirementGategenerationInputGate
- 若需求仍有缺口但用户已授权继续生成页面,按 的规则保留“待确认”和假设,不能伪造成已确认;
hiui-refine必须标为generationInputGate.status。assumption-authorized
需求细化的输出作为后续 的输入事实。后续不得手工重造页型、页面清单或业务规则;若 计划与 HiUI 交接包冲突,必须说明冲突并以项目事实和计划工具结果重新收敛。
hiui-designhiui-designWhen the input is a product idea, rough requirement, PRD fragment, incomplete page description, or the user explicitly requests "from requirement to page to acceptance", first invoke .
hiui-refineExecution requirements:
- Select a suitable requirement delivery mode:
- Use by default
hiui-handoff - Use when the user requests a complete PRD / complete page prompts / reusable requirement package
full-prd-to-generation - Use for option-based confirmation first when the user only provides extremely abstract ideas with missing key decisions
quick-refine
- Use
- First execute :
requirementGate- Identify high-impact unknowns: target roles and permissions, MVP scope, core states/lifecycles, key actions and side effects, review/approval rules, data objects and fields, page list/routing boundaries, exception and audit requirements.
- As long as there is any high-impact unknown, first output "current understanding + pending confirmation questions", and must not enter S1.
- Use option-based questions when confirming requirements in reverse; maximum 3 questions per round, allowing users to directly reply with .
1A, 2B - Questions must focus on decisions that will change page structure, business rules, data models, or acceptance scope; do not ask low-value style preferences.
- Re-judge remaining high-impact unknowns after each round of answers; continue the next round if there are still unknowns, and must not treat "one round of questioning" as completion.
- After passes, must execute
requirementGate:generationInputGate- Output product goals, MVP scope, P0 scenarios, role permissions, core objects, states/lifecycles, page list, page-level prompts, HiUI page type suggestions, assumptions, and risks.
- Let the user choose: ,
A. Confirm and generate,B. Adjust MVP / P0 scenarios,C. Adjust page list / page prompts.D. Retain assumptions, generate a version first - Only when the user selects A can be set.
generationInputGate.status = confirmed - Only when the user selects D or explicitly authorizes the use of assumptions can be set.
generationInputGate.status = assumption-authorized
- If the user requests rapid progress but has not confirmed generation input, must first clearly write out recommended assumptions and obtain user authorization before proceeding; cannot interpret "user wants end-to-end generation" as already authorized to use assumptions.
- Output or organize these minimum handoff items:
- Product goals and MVP scope
- P0 user scenarios
- Role and permission differences
- Core data objects and lifecycle states
- Key business rules and exceptions
- Page list, global generation context, page-level prompts
- HiUI handoff package, including page ID, routing/location, HiUI page type suggestions, priority, status, prompt ID, assumptions, risks, generation order, and
requirementGategenerationInputGate
- If there are still gaps in requirements but the user has authorized page generation, retain "pending confirmation" and assumptions according to rules, and cannot fake them as confirmed;
hiui-refinemust be marked asgenerationInputGate.status.assumption-authorized
The output of requirement refinement serves as input facts for subsequent . Do not manually recreate page types, page lists, or business rules later; if the plan conflicts with the HiUI handoff package, must explain the conflict and re-converge based on project facts and planning tool results.
hiui-designhiui-designS1:HiUI 页面规划
S1: HiUI Page Planning
调用 :
hiui-design- 检查 S0 交接包中的 ;只有
generationInputGate.status或confirmed可以继续。assumption-authorized - 优先使用 的 machine-public planner CLI 身份
hiui-design获取结构化 planner JSON;项目侧可以通过 npm script、task runner 或其他等价包装暴露该入口plan-page-task - 只要输出满足 公布的 machine-public planner contract,就视为合法 planner 入口;workflow 不依赖具体脚本文件名、相对路径或 wrapper 名称
hiui-design - 若当前环境没有可用的 machine-public 入口,fail closed:先修目标项目的 planner 接入状态;不要把
plan-page-taskskill 源码仓中的内部脚本路径当成 workflow contracthiui-design - 结合 S0 的 HiUI 交接包,确认 、
mode、topology/pageType、pageUnits、taskLevelstartFrom - 按 消费计划文档:先读
requiredDocs[].readMode,required/reference只按conditional命中情况补读reason - 若 、
plan.status!=ready、facts.status!=ready、currentExecutionState.status!=ready,或canStartImplementation=false,先补齐阻断事实,不直接实现currentExecutionState.primaryAction=ResolveBlockingFacts
首轮计划以 的 JSON 为准,不手工重造页型结论。
plan-page-taskInvoke :
hiui-design- Check in the S0 handoff package; only
generationInputGate.statusorconfirmedcan proceed.assumption-authorized - Prioritize using the machine-public planner CLI identity of
plan-page-taskto obtain structured planner JSON; the project side can expose this entry via npm script, task runner, or other equivalent wrappershiui-design - As long as the output meets the machine-public planner contract published by , it is considered a valid planner entry; the workflow does not rely on specific script filenames, relative paths, or wrapper names
hiui-design - If there is no available machine-public entry in the current environment, fail closed: first fix the planner access status of the target project; do not treat the internal script path in the
plan-page-taskskill source code repository as a workflow contracthiui-design - Combine the HiUI handoff package from S0 to confirm ,
mode,topology/pageType,pageUnits,taskLevelstartFrom - Consume plan documents according to : read
requiredDocs[].readModefirst, and only supplement readingrequired/referencewhen theconditionalis hitreason - If ,
plan.status!=ready,facts.status!=ready,currentExecutionState.status!=ready, orcanStartImplementation=false, first supplement blocking facts, do not implement directlycurrentExecutionState.primaryAction=ResolveBlockingFacts
The first-round plan is based on the JSON from , do not manually recreate page type conclusions.
plan-page-taskS2:页面生成或修改
S2: Page Generation or Modification
继续按 执行:
hiui-design- 执行面默认以 为主;
requiredActions只作为兼容摘要或人工复核视图requiredCommands - 生成路径以 、
targetDeliverySemantics、generationRecipe与generationInputs为准;不要由 workflow 手工重建下游页型策略requiredActions - “快速 / 标准 / 严格链路”只用于沟通风险和验收深度,不替代 planner 的结构化事实与动作分期
执行任何文件变更前,再次检查 与 S1 机器计划;若 未通过、HiUI 交接包未就绪,或 / / 不是 ,或 ,必须停止并回到 S0 / S1,不得“先生成再补需求”。
generationInputGategenerationInputGateplan.statusfacts.statuscurrentExecutionState.statusreadycanStartImplementation!=true不得破坏:
- 页壳
- region 层级
- 白底主体
- 滚动 owner
- 分页 / footer 挂载语义
- source marker
- contract ownership
Continue execution according to :
hiui-design- The execution surface defaults to ;
requiredActionsare only used as compatibility summaries or manual review viewsrequiredCommands - The generation path is based on ,
targetDeliverySemantics,generationRecipe, andgenerationInputs; do not manually rebuild downstream page type strategies by the workflowrequiredActions - "Quick / Standard / Strict links" are only used for communicating risks and acceptance depth, and do not replace the structured facts and action staging of the planner
Before executing any file changes, recheck and the S1 machine plan; if has not passed, the HiUI handoff package is not ready, or / / is not , or , must stop and return to S0 / S1, and must not "generate first and supplement requirements later".
generationInputGategenerationInputGateplan.statusfacts.statuscurrentExecutionState.statusreadycanStartImplementation!=trueMust not break:
- Page shell
- Region hierarchy
- White background main body
- Scroll owner
- Pagination / footer mounting semantics
- Source marker
- Contract ownership
S3:工程验证与交付前检查
S3: Engineering Validation and Pre-Delivery Check
本阶段只承接进入验证 / 交付确认相位的动作:
- 默认以 与
requiredActions为主调度面formalAcceptanceActions - 与
requiredCommands仅作为兼容摘要,不再单独定义 workflow 阶段formalAcceptanceCommands - phase 属于 、
ResolveBlockingFacts、GenerateOrEdit的动作,必须在前序阶段完成;不得堆到 S3 再统一执行WriteContract - 进入 S3 后,优先记录 、工程脚本、
Preflight及其他交付前验证动作的真实结果FormalAcceptance
记录每条命令的结果:
passedfailedskippedblocked
失败时先判断是否阻断页面运行或交付,不要静默吞掉。
This phase only undertakes actions to enter the verification/delivery confirmation phase:
- Default to scheduling based on and
requiredActionsformalAcceptanceActions - and
requiredCommandsare only used as compatibility summaries, and no longer define separate workflow phasesformalAcceptanceCommands - Actions whose phase belongs to ,
ResolveBlockingFacts,GenerateOrEditmust be completed in previous phases; must not be accumulated to S3 for unified executionWriteContract - After entering S3, prioritize recording the real results of , engineering scripts,
Preflight, and other pre-delivery verification actionsFormalAcceptance
Record the result of each command:
passedfailedskippedblocked
When failing, first judge whether it blocks page operation or delivery, do not silently swallow it.
S4:运行页面、截图与 UX 验收
S4: Run Page, Screenshot, and UX Acceptance
页面需要浏览器时:
- 启动或复用 dev server
- 打开目标路由
- 确认不是空白页、错误页、登录页或错误路由
- 先保存修复前基线截图,再截图留证
若无法获得登录态,按 的 URL 降级规则处理。
ux-walkthroughWhen the page requires a browser:
- Start or reuse the dev server
- Open the target route
- Confirm it is not a blank page, error page, login page, or wrong route
- Save the pre-fix baseline screenshot first, then take screenshots for evidence
If login status cannot be obtained, handle according to the URL downgrade rules of .
ux-walkthrough修复前基线截图
Pre-Fix Baseline Screenshot
进入 UX 验收或修复前,必须先保留当前页面的可查看原图,作为 基线证据:
before-fix- 至少保存桌面视口截图;页面涉及移动适配时追加移动视口
- 优先保存清晰原始 PNG,不只保留压缩缩略图
- 截图文件名或登记信息必须标明 、视口和页面状态
before-fix - 若页面有筛选、分页、弹窗、抽屉、错误态等关键状态,只截与本次问题相关的最小必要状态
- 若无法截图,必须在 中说明原因,不能把最终截图伪装成修复前截图
knownRisks
把工程阶段交接给 UX 阶段的信息整理成 中的结构。
references/handoff-contract.mdBefore entering UX acceptance or repair, must retain the viewable original image of the current page as baseline evidence:
before-fix- Save at least desktop viewport screenshots; add mobile viewport screenshots if the page involves mobile adaptation
- Prioritize saving clear original PNGs, not just compressed thumbnails
- Screenshot filenames or registration information must indicate , viewport, and page status
before-fix - If the page has key states such as filtering, pagination, pop-ups, drawers, error states, only capture the minimum necessary states related to the current issue
- If screenshots cannot be taken, must explain the reason in , and cannot disguise the final screenshot as the pre-fix screenshot
knownRisks
Organize the information handed over from the engineering phase to the UX phase into the structure in .
references/handoff-contract.mdUX 分级
UX Grading
| workflow level | UX 模式 | 名称 | 要求 |
|---|---|---|---|
| | 轻量可用性自检 | 页面可见、主入口可见、无空白 / 错路由、最终截图留证 |
| | 结构化 UX 验收 | evidence gate、P0 场景覆盖、P0/P1/P2 分级、P0/P1 修复闭环 |
| | 完整 | 完整 SOP、report.json,以及当前 |
standard-e2eux-walkthroughux-walkthroughformal-e2eux-walkthrough| workflow level | UX Mode | Name | Requirements |
|---|---|---|---|
| | Lightweight usability self-check | Page is visible, main entry is visible, no blank/wrong route, final screenshot for evidence |
| | Structured UX acceptance | Evidence gate, P0 scenario coverage, P0/P1/P2 grading, P0/P1 repair closure |
| | Full | Complete SOP, report.json, and completion gates required by the current |
standard-e2eux-walkthroughux-walkthroughformal-e2eux-walkthroughUX Gate
UX Gate
进入 UX 判断前建立 :
uxGate- :确认目标页面不是空白页、错误页、登录页或错误路由,并保留最终截图路径。
ux-smoke - :必须有可用证据,读取
ux-standard的 checklist、severity、ignore-list 和 issue examples;必须覆盖 P0 场景。ux-walkthrough - :按
ux-formal的ux-walkthrough主流程与SKILL.md执行完整 SOP,包括 precheck、证据门禁、report.json,以及当前docs/onboarding/gates.md版本要求的完成门禁(1.0.2 起含 checklist coverage 校验、标注校验与 docx 交付)。ux-walkthrough
证据不足时,不输出确定性 UX 问题;只能输出“待补充证据 / 待交互验证 / 无法判断”。
Establish before entering UX judgment:
uxGate- : Confirm that the target page is not a blank page, error page, login page, or wrong route, and retain the final screenshot path.
ux-smoke - : Must have available evidence, read the checklist, severity, ignore-list, and issue examples of
ux-standard; must cover P0 scenarios.ux-walkthrough - : Execute the complete SOP according to the main process in
ux-formalofSKILL.mdandux-walkthrough, including precheck, evidence gate, report.json, and completion gates required by the currentdocs/onboarding/gates.mdversion (starting from 1.0.2, includes checklist coverage verification, annotation verification, and docx delivery).ux-walkthrough
When evidence is insufficient, do not output deterministic UX issues; only output "to be supplemented with evidence / to be verified interactively / cannot judge".
P0 场景覆盖
P0 Scenario Coverage
ux-standardux-formal- 入口是否可见
- 主路径是否可完成
- 关键数据是否可理解
- 权限 / 禁用状态是否有解释
- 加载、空、错误、成功状态是否覆盖
- 危险操作是否有防错
- 反馈和失败恢复是否明确
UX 报告必须先回答“P0 用户是否能完成核心任务”,再检查视觉、文案、间距、一致性和专业感。
P2 视觉、文案、一致性问题不能作为 / 的唯一输出;除非报告同时说明已覆盖 P0/P1 核心路径且未发现问题的证据依据。
standard-e2eformal-e2e所有问题必须使用格式:
text
1. [P1] 问题标题每个问题只写最小必要信息:
- 位置
- 问题描述
- 改进建议
- 截图证据,若适用
截图证据优先引用 基线图;报告中展示可压缩缩略图,但必须同时保留可查看的原图路径。
before-fixformal-e2e.docxstandard-e2eux-standardux-formal- Whether the entry is visible
- Whether the main path can be completed
- Whether key data is understandable
- Whether permission/disabled states have explanations
- Whether loading, empty, error, and success states are covered
- Whether dangerous operations have error prevention
- Whether feedback and failure recovery are clear
The UX report must first answer "Can P0 users complete core tasks", then check visual, copy, spacing, consistency, and professionalism.
P2 visual, copy, and consistency issues cannot be the only output of / ; unless the report also explains the evidence basis that P0/P1 core paths have been covered and no issues were found.
standard-e2eformal-e2eAll issues must use the format:
text
1. [P1] Issue TitleEach issue only includes the minimum necessary information:
- Location
- Issue description
- Improvement suggestions
- Screenshot evidence, if applicable
Screenshot evidence preferentially references the baseline image; display compressed thumbnails in the report, but must also retain the path to the viewable original image.
before-fixformal-e2e.docxstandard-e2eS5:修复与最终交付
S5: Fix and Final Delivery
UX 问题处理策略:
- P0:必须修复,修复后重新工程验收和 UX 复查
- P1:默认修复,除非用户明确接受风险
- P2:可记录为建议;若改动小且不破坏 HiUI 结构,可以修复
- 待确认项:不硬改,说明缺什么证据
修复体验问题时,仍必须遵守 的页壳、region、ownership、source marker 和 contract 约束。
hiui-design修复 P0 / P1,或实际修改了 P2 后,必须使用相同路由、相同视口、尽量相同数据状态复拍 截图,并在报告中形成 before / after 对比。若无法保持相同状态,必须说明差异来源。
after-fix修复后回到:
text
HiUI 修改 -> 工程 gate -> 页面截图 -> UX 复查UX issue handling strategy:
- P0: Must be fixed, re-conduct engineering acceptance and UX review after repair
- P1: Fixed by default, unless the user explicitly accepts the risk
- P2: Can be recorded as a suggestion; can be fixed if the change is small and does not break HiUI structure
- Pending confirmation items: Do not modify forcibly, explain what evidence is missing
When fixing experience issues, must still comply with the page shell, region, ownership, source marker, and contract constraints of .
hiui-designAfter fixing P0 / P1, or actually modifying P2, must retake screenshots using the same route, same viewport, and as much the same data state as possible, and form a before/after comparison in the report. If the same state cannot be maintained, must explain the source of the difference.
after-fixAfter repair, return to:
text
HiUI modification -> Engineering gate -> Page screenshot -> UX review最终交付
Final Delivery
最终回复按 收口,至少包含:
references/final-report-template.md- 和
requirementGate状态generationInputGate - 需求细化摘要,若执行过 S0
- 页面生成 / 修改摘要
- 页面类型和 workflow level
- 工程验收结果
- 、UX 验收模式和 P0 场景覆盖结果
uxGate - 修复前 / 修复后效果对比截图路径和简短说明
- 已修复的 P0 / P1 问题
- 遗留风险或待确认项
- 本地 docx 报告路径,若已生成
- 未执行的验证项,若存在
The final reply is concluded according to , and at least includes:
references/final-report-template.md- and
requirementGatestatusesgenerationInputGate - Requirement refinement summary, if S0 was executed
- Page generation / modification summary
- Page type and workflow level
- Engineering acceptance results
- , UX acceptance mode, and P0 scenario coverage results
uxGate - Paths and brief descriptions of pre-fix / post-fix comparison screenshots
- Fixed P0 / P1 issues
- Remaining risks or pending confirmation items
- Local docx report path, if generated
- Unimplemented verification items, if any
常见错误与正确做法
Common Mistakes and Correct Practices
- 错误:用户说“帮我生成供应商管理页”,直接创建页面文件。正确:先输出 MVP、角色、页面范围的选项式确认。
- 错误:用户回复 后,直接进入
1A,2B。正确:先展示生成输入确认块,让用户确认页面清单和页面提示词。hiui-design - 错误:UX 报告只列“间距不统一、按钮不突出”。正确:先给出 P0 场景覆盖结论,再列 P0/P1/P2 问题。
- Mistake: When the user says "Help me generate a supplier management page", directly create page files. Correct: First output option-based confirmation of MVP, roles, and page scope.
- Mistake: After the user replies , directly enter
1A, 2B. Correct: First display the generation input confirmation block, and let the user confirm the page list and page prompts.hiui-design - Mistake: The UX report only lists "uneven spacing, unprominent buttons". Correct: First give the P0 scenario coverage conclusion, then list P0/P1/P2 issues.
统计收口
Statistical Conclusion
仅对 页面交付链路处理 usage stats:
hiui-design- 标准 / 严格 HiUI 页面生成完成且可渲染后,按 的 usage stats 规则收口
hiui-design - 的完成定义到完整报告、
ux-walkthrough与当前版本要求的完成门禁为止;1.0.2 起至少包含 checklist coverage 校验、标注校验与 docx;不额外要求 usage stats 或 telemetry closeoutreport.json
若 统计返回 或退出码 ,按其规则申请一次授权。
统计失败不阻断主任务交付,但不能静默吞掉入队或授权状态。
hiui-designrequires_network_authorization21Only process usage stats for the page delivery link:
hiui-design- After standard/strict HiUI page generation is completed and renderable, conclude according to the usage stats rules of
hiui-design - The completion definition of is up to the complete report,
ux-walkthrough, and completion gates required by the current version; starting from 1.0.2, it at least includes checklist coverage verification, annotation verification, and docx; no additional usage stats or telemetry closeout is requiredreport.json
If stats return or exit code , apply for authorization once according to its rules.
Stats failure does not block main task delivery, but cannot silently swallow the enqueue or authorization status.
hiui-designrequires_network_authorization21Runtime Dependency Boundary
Runtime Dependency Boundary
hiui-page-workflowhiui-refinehiui-designux-walkthrough
本 skill 只负责编排和消费这些 skill 的稳定输出,不负责公开安装入口,也不承担 bundle 分发控制。
边界要求:
- 调度时只依赖能力标识 、
requirements-refinement、page-planning-and-deliveryux-walkthrough-review - 能力到 skill 的当前 canonical 映射为 、
requirements-refinement -> hiui-refine、page-planning-and-delivery -> hiui-designux-walkthrough-review -> ux-walkthrough - 、
sourceSkill和文档中的下游名称只记录公开调度身份;不要写内部脚本名、目录名或 references 文件名dependencies - 的执行面只消费 machine-public planner 输出及其
hiui-design/requiredActions;不要把内部脚本路径写进 workflow contractformalAcceptanceActions - 若用户需要安装、升级、校验、回滚或发布 4 个 skill 的组合分发,应引导其使用
hiui-workflow - 普通页面交付任务中,不要把安装、回滚、发布 smoke 脚本当成 workflow 默认步骤
- 不要把 对外表述成安装入口、bundle 入口或组合分发入口
hiui-page-workflow - 只表达运行时依赖,不应被解释为当前
dependencies会自动安装这些 skillskills add - 若运行环境缺少上述依赖 skill,应先说明缺口,再提示使用公开入口完成安装
hiui-page-workflowhiui-refinehiui-designux-walkthrough
This skill is only responsible for orchestrating and consuming the stable output of these skills, and is not responsible for providing public installation entries or undertaking bundle distribution control.
Boundary requirements:
- Only rely on capability identifiers ,
requirements-refinement,page-planning-and-deliveryduring schedulingux-walkthrough-review - The current canonical mapping from capability to skill is ,
requirements-refinement -> hiui-refine,page-planning-and-delivery -> hiui-designux-walkthrough-review -> ux-walkthrough - ,
sourceSkill, and downstream names in documents only record public dispatch identities; do not write internal script names, directory names, or references filenamesdependencies - The execution surface of only consumes machine-public planner output and its
hiui-design/requiredActions; do not write internal script paths into the workflow contractformalAcceptanceActions - If the user needs to install, upgrade, verify, rollback, or release combined distribution of the 4 skills, guide them to use
hiui-workflow - In ordinary page delivery tasks, do not treat installation, rollback, or release smoke scripts as default workflow steps
- Do not externally represent as an installation entry, bundle entry, or combined distribution entry
hiui-page-workflow - only express runtime dependencies, and should not be interpreted as
dependencieswill automatically install these skillsskills add - If the runtime environment lacks the above dependent skills, first explain the gap, then prompt to complete installation using public entries
Installation Guidance
Installation Guidance
当用户询问如何安装本 workflow 或其依赖 skill 时,统一引导到公开安装入口:
bash
npx skills add XiaoMi/hiui/skills/hiui-workflow --skill '*'说明要求:
- 安装入口是
hiui-workflow - 被安装的是其中包含的 4 个独立 skill
- 上述命令当前是 Codex 默认安装方式;非 Codex 宿主需要显式指定目标 skill 根目录
- 不再对外表述“单独安装 会顺带安装其他 skill”
hiui-page-workflow
When users ask how to install this workflow or its dependent skills, uniformly guide them to the public installation entry:
bash
npx skills add XiaoMi/hiui/skills/hiui-workflow --skill '*'Description requirements:
- The installation entry is
hiui-workflow - The 4 independent skills included in it are installed
- The above command is the default installation method for Codex currently; non-Codex hosts need to explicitly specify the target skill root directory
- No longer externally state "installing alone will install other skills by default"
hiui-page-workflow
Validation Boundary
Validation Boundary
本 skill 自身的完成判断,仍以页面交付 workflow 为准:
- 需求确认是否完成
- 页面生成输入是否确认
- 页面规划和实现是否完成
- 工程验收结果是否已记录
- UX 证据是否就绪
- 修复闭环和最终交付是否完成
安装、校验、回滚和发布 smoke 属于 的分发控制面,不属于本 skill 的默认完成路径。
hiui-workflow只有当用户明确要求处理分发控制面时,才应转到入口目录对应的脚本和文档,而不是在普通页面任务中默认触发。
The completion judgment of this skill itself still follows the page delivery workflow:
- Whether requirement confirmation is completed
- Whether page generation input is confirmed
- Whether page planning and implementation are completed
- Whether engineering acceptance results are recorded
- Whether UX evidence is ready
- Whether repair closure and final delivery are completed
Installation, verification, rollback, and release smoke testing belong to the distribution control plane of , and are not part of the default completion path of this skill.
hiui-workflowOnly when the user explicitly requests to handle the distribution control plane should they be directed to the corresponding scripts and documents in the entry directory, instead of triggering them by default in ordinary page tasks.
Maintainer Notes
Maintainer Notes
维护本 skill 时,始终保持以下口径:
- = 运行时工作流编排 skill
hiui-page-workflow - = 公开安装入口
hiui-workflow - 、
hiui-refine、hiui-design= 独立下游 skillux-walkthrough
若文档、脚本说明或对外回复中再次把 描述成安装入口,视为职责边界回退,应修正。
hiui-page-workflowWhen maintaining this skill, always maintain the following statements:
- = Runtime workflow orchestration skill
hiui-page-workflow - = Public installation entry
hiui-workflow - ,
hiui-refine,hiui-design= Independent downstream skillsux-walkthrough
If is described as an installation entry again in documents, script descriptions, or external replies, it is considered a regression of responsibility boundaries and should be corrected.
hiui-page-workflow