hiui-design
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseHiUI 典型页 Skill
HiUI Typical Page Skill
Positioning
Positioning
本 skill 是 HiUI React 页面工程的标准生成协议与交付治理控制面。 继续是唯一顶层执行入口; 是其内部的正向生成子协议;交付完成态仍由 、、 与 决定。主叙事是“先按 recipe 正确生成,再由验收确认”,而不是“先生成一版,再靠验收纠偏”。
page-task-plan.v1generationRecipepreflight-report.v1hiui-page-governance-report.v1acceptanceProfilefinalReportContract标准典型页命中 时,默认走 :优先消费 planner、scaffold 与 slot contract,不再手工展开大段治理文档;复杂页、漂移页和正式验收场景才升级到完整规则链路。
page-component + slot-fillminimal-doc fast pathlegacy-host-compatibleproject-certified carrier first -> page-component semantics -> explicit fallbackmanaged-translationruntime-bridged-page-componentpage-componentheaderPageHeaderextra60px对外沟通时要把两件事拆开说明:legacy 宿主主树不能被当成 generic 直挂运行时,不等于 legacy 项目不能走普通典型页组件主链。只要 planner 已给出 ,就必须沿该主链执行,不得把“不能 ad hoc direct shell import”误读成“只能 reference/fallback”。
@hiui-design/typical-page-shellspage-component + runtime bridge + slot fillThis skill is the standard generation protocol and delivery governance control plane for HiUI React page engineering. remains the only top-level execution entry; is its internal forward generation sub-protocol; the final delivery state is still determined by , , and . The core narrative is "Generate correctly according to the recipe first, then confirm via acceptance" rather than "Generate a version first, then correct via acceptance".
page-task-plan.v1generationRecipepreflight-report.v1hiui-page-governance-report.v1acceptanceProfilefinalReportContractWhen standard typical pages hit , they default to the : prioritize consuming planner, scaffold and slot contract, instead of manually expanding lengthy governance documents; only complex pages, drifted pages and formal acceptance scenarios upgrade to the complete rule chain.
page-component + slot-fillminimal-doc fast pathThe main path for is unified as . When the host undertaking fact is established, priority should be given to consuming project-certified carriers or certified page components, and is only retained as an explicit fallback. is just a bridged semantic naming of in legacy, and does not introduce a parallel generation family; when hitting , only carrier certification, page contract and preflight can jointly prove that the owner of stretch, right-docked and rhythm does not drift, then the main chain is valid.
legacy-host-compatibleproject-certified carrier first -> page-component semantics -> explicit fallbackmanaged-translationruntime-bridged-page-componentpage-componentheaderPageHeaderextra60pxWhen communicating externally, two things should be explained separately: the legacy host main tree cannot be directly mounted as a generic at runtime, which does not mean that legacy projects cannot follow the normal typical page component main chain. As long as the planner has given , it must be executed along this main chain, and the "cannot ad hoc direct shell import" should not be misread as "only reference/fallback".
@hiui-design/typical-page-shellspage-component + runtime bridge + slot fillCore Object Model
Core Object Model
- 是唯一执行计划与事实出口;AI 不手工拼
page-task-plan.v1、mode、pageType、pageUnits、startFrom、requiredDocs或关键命令链。requiredActions - 作为
generationRecipe的增量子对象引入,不单独创建平行顶层 contract。page-task-plan.v1 - 只描述装配顺序、资产映射、槽位边界、禁止动作与轻量一致性检查;不重复存储可由
generationRecipe、pageComponent、registry 或既有 contract 派生出的事实。baseMoldId - 与
targetDeliverySemantics必须分层输出:前者回答“计划成立后应沿哪条受管交付主链落地”,后者回答“当前这一步允许执行什么”。legacy blocked 时,前者仍可保留currentExecutionState目标语义,但后者必须只暴露page-component + runtime bridge + slot fill。ResolveBlockingFacts - 、
editableSlots、lockedRegions、pageComponent优先保持“引用或派生”,不复制进 planner。baseMoldId - 只作为 legacy
runtimeBridgeProfile路径的附加解析对象存在;它通过page-component描述运行时桥接策略,不重定义rules/runtime-bridged-component-matrix.json、pageComponent、baseMoldId或业务槽位事实。lockedRegions - project 级 、project-scoped
host pack与其认证结果属于运行时 / 资产事实,默认由计划通过page carrier、facts、assetResolution等字段引用;不要把这些事实再平铺复制进每个页面合同。pageComponent - carrier-critical layout facts,尤其 的 stretch owner、actions docking 与 vertical rhythm owner,属于 contract + certification + preflight 共同消费的机器事实;不得退化成只存在于说明文档里的软建议。
header - 、
acceptanceProfile、preflight-report.v1、hiui-page-governance-report.v1继续保留,不降级、不移除。finalReportContract - 是默认唯一补读来源;其最小结构固定为
requiredDocs、path、readMode。先读reason,readMode=required/reference只在命中对应场景时补读。conditional是默认唯一执行来源;没有结构化动作时,优先使用兼容命令字段,不自行扩展 gate。requiredActions
对象模型与字段分级:
docs/generation/explainers/core-object-model.md- is the only execution plan and fact export; AI does not manually assemble
page-task-plan.v1,mode,pageType,pageUnits,startFrom,requiredDocsor key command chains.requiredActions - is introduced as an incremental sub-object of
generationRecipe, and no parallel top-level contract is created separately.page-task-plan.v1 - only describes assembly order, asset mapping, slot boundaries, forbidden actions and lightweight consistency checks; it does not repeatedly store facts that can be derived from
generationRecipe,pageComponent, registry or existing contracts.baseMoldId - and
targetDeliverySemanticsmust be output in layers: the former answers "Which managed delivery main chain should be followed after the plan is established", and the latter answers "What actions are allowed in this current step". When legacy is blocked, the former can still retain the target semantics ofcurrentExecutionState, but the latter must only exposepage-component + runtime bridge + slot fill.ResolveBlockingFacts - ,
editableSlots,lockedRegions,pageComponentprefer to remain "reference or derived", and are not copied into the planner.baseMoldId - only exists as an additional parsing object for the legacy
runtimeBridgeProfilepath; it describes the runtime bridging strategy throughpage-component, and does not redefinerules/runtime-bridged-component-matrix.json,pageComponent,baseMoldIdor business slot facts.lockedRegions - Project-level , project-scoped
host packand their certification results belong to runtime/asset facts, which are referenced by the plan through fields such aspage carrier,facts,assetResolutionby default; do not flatten and copy these facts into each page contract again.pageComponent - Carrier-critical layout facts, especially the stretch owner, actions docking and vertical rhythm owner of , are machine facts jointly consumed by contract + certification + preflight; they must not degenerate into soft suggestions that only exist in documentation.
header - ,
acceptanceProfile,preflight-report.v1,hiui-page-governance-report.v1are retained without degradation or removal.finalReportContract - is the default only supplementary reading source; its minimum structure is fixed as
requiredDocs,path,readMode. Readreasonfirst, andreadMode=required/referenceare only supplemented when the corresponding scenario is hit.conditionalis the default only execution source; when there are no structured actions, priority is given to using compatible command fields instead of expanding gates by yourself.requiredActions
Object model and field classification:
docs/generation/explainers/core-object-model.mdStandard Generation Protocol
Standard Generation Protocol
Standard Generation Protocol- 从什么骨架起步。
- 关键 region 的装配顺序是什么。
- 哪些区域允许业务填充。
- 每完成一个关键步骤后做什么 。
inlineChecks
generationRecipe.requiredstartingPointassemblyOrderrequiredAssetsforbiddenMoves
generationRecipe.optionalslotFillPolicyregionOwnershipinlineChecks
第一批 recipe 只覆盖高频页型:
table-pageanalytics-pageedit/detail-page
标准生成协议补读:
docs/generation/explainers/standard-generation-protocol.mdStandard Generation Protocol- What skeleton to start from.
- What is the assembly order of key regions.
- Which regions allow business filling.
- What to perform after completing each key step.
inlineChecks
generationRecipe.requiredstartingPointassemblyOrderrequiredAssetsforbiddenMoves
generationRecipe.optionalslotFillPolicyregionOwnershipinlineChecks
The first batch of recipes only covers high-frequency page types:
table-pageanalytics-pageedit/detail-page
Supplementary reading for standard generation protocol:
docs/generation/explainers/standard-generation-protocol.mdGuardrails
Guardrails
- 本 skill 只处理 HiUI React 页面工程任务;需求细化、端到端流程编排、Figma 写入 / 设计稿生成、通用 React 重构必须交给对应 skill 或普通代码流程。
- 页面生成、重写、大改、页型迁移和旧系统 / 截图转译必须先取得 ;没有机器计划时不得手工拼结论、命令链或完成态。
page-task-plan.v1 - /
blockingIssues非空时必须 fail closed,只补事实;不得生成页面、写合同、跑 preflight 或输出完成态。blockingReasons - 资产新增、补齐和更新只能走 shipped public contract;/
add-asset必须 dry-run,未 shipped 的 write / force / asset type 不得执行。update-asset - 未经机器计划明确授权或维护者明确要求,不得执行 deploy、upload、publish、sync、global sync、Feishu / bitable 后台写入、release archive 生成或历史输出覆盖。
- 涉及外部服务、后台 agent、launch agent、守护进程或用户配置写入的动作,执行前必须同时验证目标范围、授权来源和 side effect 边界;缺任一条件时必须拒绝执行。
- failed、hard profile governance failed、source snapshot 缺失 / 低置信度、
preflight缺 provenance 时,最终回复必须是 blocked / failed。acceptance contract - 开源版不得采集 usage data,必须按 呈现
PRIVACY.md、not_applicable或skipped。unavailable
- This skill only handles HiUI React page engineering tasks; requirement refinement, end-to-end process orchestration, Figma writing/design draft generation, and general React refactoring must be handed over to the corresponding skill or ordinary code process.
- Page generation, rewriting, major modification, page type migration and old system/screenshot translation must first obtain ; without a machine plan, conclusions, command chains or final states cannot be manually assembled.
page-task-plan.v1 - When /
blockingIssuesare not empty, it must fail closed and only supplement facts; page generation, contract writing, preflight running or final state output are not allowed.blockingReasons - Asset addition, supplementation and update can only be done through shipped public contracts; /
add-assetmust be dry-run, and unshipped write / force / asset type cannot be executed.update-asset - Without explicit authorization from the machine plan or explicit requirements from maintainers, deploy, upload, publish, sync, global sync, Feishu / bitable background writing, release archive generation or historical output coverage cannot be executed.
- For actions involving external services, background agents, launch agents, daemons or user configuration writing, the target scope, authorization source and side effect boundary must be verified simultaneously before execution; if any condition is missing, execution must be refused.
- When fails, hard profile governance fails, source snapshot is missing/low confidence, or
preflightlacks provenance, the final response must be blocked / failed.acceptance contract - The open-source version must not collect usage data, and must present ,
not_applicableorskippedin accordance withunavailable.PRIVACY.md
Generation Gates
Generation Gates
- 生成前门禁:项目根、机器计划、能力画像、mode lock、pre-plan facts。
- 生成协议门禁:page-component 可用性、route ownership、slot 边界、shell / adapter 证明、analytics contract、业务内容边界、受控扩展。
- 普通典型页的硬门禁真相统一收口到
legacy-host-compatible:baseline 固定为 4 个硬门禁,命中rules/legacy-host-hard-gates.json时再追加header条件门禁,因此当前常见典型页通常会落到 5 个有效硬门禁。header-layout-proof、styleBoundary、portalBoundary仍按风险触发;但runtimeSmoke的 stretch / right-dock / rhythm owner 不再只是样式建议,缺少结构化证明时必须阻断主链路。header - 下若 planner 已证明
legacy-host-compatibleready 且page-component,默认执行语义就是runtimeAdapterProof.status=available。缺少 legacy 主树 direct shell import 前提,只能阻止 ad hoc standard-shell mount,不能作为擅自降级到兼容手拼页、reference 默认翻译页或自由 fallback 的理由。page-component + runtime bridge + slot fill - 前两层门禁属于“如何正确生成”的组成部分,不再和交付阻断口吻混写。
- 级
required字段缺失时,不得假设或手工脑补;只能 blocked, 或按计划明确给出的 fallback 执行。generationRecipe - 无法解析、
startingPoint不可用、或requiredAssets不完整时, 不允许自由退回空白页手写。assemblyOrder - 只有当计划明确给出 、
managed-fallback或host-archetype为合法 fallback 时,才允许降级生成。reference-or-scaffold - 字段缺失不自动阻断,但不得伪造填充;缺失时按页型默认策略或现有规则执行。
optional
生成门禁细节:
docs/generation/explainers/generation-gates.md- Pre-generation gates: project root, machine plan, capability profile, mode lock, pre-plan facts.
- Generation protocol gates: page-component availability, route ownership, slot boundaries, shell / adapter proof, analytics contract, business content boundaries, controlled extension.
- The hard gate truths of ordinary typical pages are unified in
legacy-host-compatible: the baseline is fixed as 4 hard gates, and when hittingrules/legacy-host-hard-gates.json, the conditional gate ofheaderis added, so currently common typical pages usually fall into 5 effective hard gates.header-layout-proof,styleBoundary,portalBoundaryare still triggered according to risks; but the stretch / right-dock / rhythm owner ofruntimeSmokeis no longer just a style suggestion, and the main chain must be blocked when structured proof is missing.header - Under , if the planner has proven that
legacy-host-compatibleis ready andpage-component, the default execution semantics isruntimeAdapterProof.status=available. The lack of the premise of legacy main tree direct shell import can only prevent ad hoc standard-shell mount, and cannot be used as a reason to unilaterally degrade to compatible manually assembled pages, reference default translation pages or free fallback.page-component + runtime bridge + slot fill - The first two layers of gates are part of "how to generate correctly", and are no longer mixed with delivery blocking tone.
- When level
requiredfields are missing, assumptions or manual supplementation are not allowed; it can only be blocked, or executed according to the fallback explicitly given by the plan.generationRecipe - When cannot be parsed,
startingPointare unavailable, orrequiredAssetsis incomplete, free fallback to blank page handwriting is not allowed.assemblyOrder - Only when the plan explicitly gives ,
managed-fallbackorhost-archetypeas legal fallbacks, downgraded generation is allowed.reference-or-scaffold - Missing fields do not automatically block, but forgery and filling are not allowed; when missing, execute according to the default strategy of the page type or existing rules.
optional
Details of generation gates:
docs/generation/explainers/generation-gates.mdDelivery Gates
Delivery Gates
- 与
preflight-report.v1继续是交付确认层核心判断对象。hiui-page-governance-report.v1 - 决定验收范围;
acceptanceProfile是验收等级,不是生成链路。formal acceptance - 继续保留,用于完整报告与下游兼容。
finalReportContract - 交付门禁只负责“是否允许宣告完成”,不再主导生成叙事。
- 若某类问题连续多次在 阶段暴露,必须优先回灌到
DeliveryConfirmation或 generation gates,而不是持续追加新的验收描述。generationRecipe
交付门禁细节:
docs/generation/explainers/delivery-gates.md- and
preflight-report.v1remain the core judgment objects of the delivery confirmation layer.hiui-page-governance-report.v1 - determines the acceptance scope;
acceptanceProfileis the acceptance level, not the generation chain.formal acceptance - is retained for complete reports and downstream compatibility.
finalReportContract - Delivery gates are only responsible for "whether to allow declaring completion", and no longer dominate the generation narrative.
- If a certain type of problem is exposed continuously in the stage, it must be prioritized to be fed back to
DeliveryConfirmationor generation gates, instead of continuously adding new acceptance descriptions.generationRecipe
Details of delivery gates:
docs/generation/explainers/delivery-gates.mdRuntime Protocol
Runtime Protocol
- 运行时协议的唯一真相是 ;受管页面治理协议的唯一真相是
rules/runtime-contract.md。rules/page-governance.md - 是 legacy
rules/runtime-bridged-component-matrix.json桥接语义的唯一真相;它只声明 bridge profile、runtime shell 来源与薄桥层职责,不复制 mold / slot / ownership 事实。page-component - 是 legacy 普通典型页硬门禁编排的唯一机器真相;
rules/legacy-host-hard-gates.json、生成门禁说明和 planner 只引用它,不再各自手写门禁数量。SKILL.md - 基础项目事实(mode、capabilities、route ownership、i18n、governance availability)与基础资产事实(certified page component、mold、adapter catalog)应由计划内部消费并通过 、
facts、assetResolution、projectMode等字段暴露。targetPage.routeOwnership - 对已接入项目,接入阶段写入的 属于 project 级 runtime input fact。
.local-context/hiui-design/outputs/project-integration-state.json应优先复用它与PlanTask, 直接进入页面规划;只有该状态缺失、损坏或与当前事实冲突时,才回退到 host profile / mode detection 诊断。project-mode.json - 只有在接入阶段已经验证过 project-certified carriers 的
project-integration-state.json.integrationReady=true、componentSource与componentShell都能解析到真实项目源码时才成立;缺任一项时,接入必须保持componentSupportSources,页面生成阶段只允许暴露阻断原因,不得把缺失 carrier 问题延后到 业务页实现期才发现。integrationReady=false - 对 ,
legacy-host-compatible的定义本身就包含项目级 required rollout 已完成: 默认先覆盖integrationReady=true、table-basic、table-stat、tree-table、tree-split、drawer-form、drawer-detail、full-page-edit这些full-page-detail页型;carrier-first-required与feedback-status可作为 deferred batch 后补。缺少 required batch 的 project-certified carrier 时,integration state 必须显式输出data-visualization、requiredLegacyPageTypes、deferredLegacyPageTypes、certifiedLegacyPageTypes与missingRequiredLegacyPageTypes,并把当前项目视为 legacy 接入未完成,而不是“已接入但页面阶段再补 rollout”。legacyRolloutCoverageStatus=blocked - 默认只回答“项目是否已完成 hiui-design 接入”和“legacy 宿主桥接是否已具备项目级承接事实”。对 legacy,这个完成态已经内含 required carrier batch ready;
integrationReady/rules-only下标准典型页组件是否可用,属于 planner 消费的资产事实与页型支持事实,不应被收口为通用项目接入失败。host-integration - project-scoped host pack / carrier facts 也属于 runtime input facts。对 legacy 项目,应优先 在项目接入 / capabilities 阶段一次认证,再由页面生成阶段复用,不要在每个页面重复解释宿主边界。
- Agent 只在 plan 缺失 / 冲突 / 排障 / 维护时显式读取 capabilities、mode lock、 认证文件或 catalog。
- 只是 runtime input facts contract,不是 execution plan; 它只承载 legacy 宿主边界、bridge / adapter 事实与 provenance。
host-qualification-facts.v1 - 只记录“当前源码快照上的浏览器级证据”,不负责宣告页面完成;
typical-page:runtime-smoke/preflight只把该证据与当前源码快照对齐并识别是否已过期; 只有doctor可以把交付状态翻转为typical-page:finalize-page。finalized
- The only truth of the runtime protocol is ; the only truth of the managed page governance protocol is
rules/runtime-contract.md.rules/page-governance.md - is the only truth of the legacy
rules/runtime-bridged-component-matrix.jsonbridging semantics; it only declares bridge profile, runtime shell source and thin bridge layer responsibilities, and does not copy mold / slot / ownership facts.page-component - is the only machine truth of the hard gate orchestration for legacy ordinary typical pages;
rules/legacy-host-hard-gates.json, generation gate descriptions and planners only reference it, and no longer write the number of gates separately.SKILL.md - Basic project facts (mode, capabilities, route ownership, i18n, governance availability) and basic asset facts (certified page component, mold, adapter catalog) should be consumed internally by the plan and exposed through fields such as ,
facts,assetResolution,projectMode.targetPage.routeOwnership - For connected projects, written during the connection phase belongs to the project-level runtime input fact.
.local-context/hiui-design/outputs/project-integration-state.jsonshould prioritize reusing it andPlanTaskto directly enter page planning; only when this state is missing, damaged or conflicts with current facts, it falls back to host profile / mode detection diagnosis.project-mode.json - is only established when
project-integration-state.json.integrationReady=true,componentSourceandcomponentShellof project-certified carriers have been verified to be resolved to real project source code during the connection phase; if any item is missing, the connection must remaincomponentSupportSources, and only blocking reasons can be exposed during page generation phase, and the missing carrier problem must not be delayed until the business page implementation phase to be discovered.integrationReady=false - For , the definition of
legacy-host-compatibleitself includes the completion of project-level required rollout: it defaults to coveringintegrationReady=true,table-basic,table-stat,tree-table,tree-split,drawer-form,drawer-detail,full-page-editthesefull-page-detailpage types;carrier-first-requiredandfeedback-statuscan be supplemented later as deferred batch. When project-certified carriers of required batch are missing, the integration state must explicitly outputdata-visualization,requiredLegacyPageTypes,deferredLegacyPageTypes,certifiedLegacyPageTypesandmissingRequiredLegacyPageTypes, and regard the current project as incomplete legacy connection, rather than "connected but supplement rollout in page phase".legacyRolloutCoverageStatus=blocked - only answers "whether the project has completed hiui-design connection" and "whether legacy host bridging has project-level undertaking facts" by default. For legacy, this final state already includes required carrier batch ready; whether standard typical page components are available under
integrationReady/rules-onlybelongs to asset facts and page type support facts consumed by the planner, and should not be closed as a general project connection failure.host-integration - Project-scoped host pack / carrier facts also belong to runtime input facts. For legacy projects, they should be certified once in the project connection / capabilities phase first, then reused in the page generation phase, instead of repeatedly explaining host boundaries in each page.
- Agent only explicitly reads capabilities, mode lock, certification files or catalog when the plan is missing / conflicting / troubleshooting / maintaining.
- is only a runtime input facts contract, not an execution plan; it only carries legacy host boundaries, bridge / adapter facts and provenance.
host-qualification-facts.v1 - only records "browser-level evidence on the current source code snapshot", and is not responsible for declaring page completion;
typical-page:runtime-smoke/preflightonly aligns this evidence with the current source code snapshot and identifies whether it has expired; onlydoctorcan flip the delivery state totypical-page:finalize-page.finalized
Task Lifecycle
Task Lifecycle
文档叙事层统一为:
LocateProjectRoot -> PlanTask -> ResolveBlockingFacts -> BuildGenerationRecipe -> GenerateByRecipe -> InlineConformanceChecks -> DeliveryConfirmation -> OutputDeliverySummary- :默认先消费项目级 integration facts,再补 capabilities / route / asset-resolution;不要把“确认仓库结构 / 确认是否已接入 hiui-design”当成每次页面任务的可见前置步骤。planner 默认还要把生成期与交付期动作拆成
PlanTask、generationInputs、inlineChecks,避免把重验收口径前移成生成指导。deliveryChecks - 输出层必须同时暴露
PlanTask与targetDeliverySemantics:前者描述目标交付主链,后者描述当前允许动作、阻断相位与 blocker 优先级。currentExecutionState、requiredCommands与requiredActions必须跟canStartImplementation一致,不得再让 blocked 计划对外看起来像可以直接开始页面生成。currentExecutionState - 对 legacy 普通典型页的首要职责之一,是把 “禁止 legacy 主树 ad hoc 直挂 standard shell” 与 “允许 page-component + runtime bridge + slot fill 主链” 同时暴露清楚;不得把 direct shell import 不成立,回退表达成通用 page-component 不可用。
PlanTask - 若项目级 integration facts 已存在但 ,
integrationReady=false必须 fail closed, 直接回显接入阻断原因;不要再尝试把页面生成、起手 scaffold 或页面级 preflight 当成接入 / legacy bridge 完整性的补救路径。页型级PlanTask资产是否 ready,继续由 planner 的page-component/assetResolution独立判断,而不是反写成通用 integration debt。projectTypicalPageSupport - 当 的原因来自 legacy required rollout 未完成时,
integrationReady=false默认应把PlanTask放在bootstrap-target-project队首;这表示当前项目的 legacy 接入 / bootstrap 还未完成,而不是“已接入项目在页面阶段追加一个 rollout 步骤”。若同时命中 route ownership blocker,再在其后追加 route 修复动作,不得跳过项目级 carrier rollout 直接进入页面实现。ResolveBlockingFacts - :把
BuildGenerationRecipe转化为标准装配协议。generationStrategy - :生成行为必须遵循
GenerateByRecipe、assemblyOrder、requiredAssets;不允许自由发明页壳、region owner、slot 顺序。forbiddenMoves - :关键装配步骤后的轻量一致性检查,不把重验收前移。
InlineConformanceChecks - :末端确认层,内部继续承接
DeliveryConfirmation、WriteContract、Preflight、PreviewReady、FormalAcceptance。开源版不承担 usage telemetry / stats closeout,最终回复只收口页面交付与质量验证状态。RuntimeGovernance - 这是叙事改名,不是立即的外部接口改名;公共脚本、报告对象和字段至少保留一个迁移周期 alias。
详细生命周期仍以 为唯一真相。
rules/page-task-lifecycle.mdThe document narrative layer is unified as:
LocateProjectRoot -> PlanTask -> ResolveBlockingFacts -> BuildGenerationRecipe -> GenerateByRecipe -> InlineConformanceChecks -> DeliveryConfirmation -> OutputDeliverySummary- : By default, first consume project-level integration facts, then supplement capabilities / route / asset-resolution; do not treat "confirming warehouse structure / confirming whether hiui-design has been connected" as a visible pre-step for each page task. The planner also defaults to splitting generation and delivery actions into
PlanTask,generationInputs,inlineChecksto avoid moving heavy acceptance caliber forward as generation guidance.deliveryChecks - The output layer of must expose both
PlanTaskandtargetDeliverySemantics: the former describes the target delivery main chain, and the latter describes currently allowed actions, blocking phase and blocker priority.currentExecutionState,requiredCommandsandrequiredActionsmust be consistent withcanStartImplementation, and blocked plans must not appear to be directly startable for page generation.currentExecutionState - One of the primary responsibilities of for legacy ordinary typical pages is to clearly expose both "forbid legacy main tree ad hoc direct mount of standard shell" and "allow page-component + runtime bridge + slot fill main chain"; the failure of direct shell import must not be regressively expressed as general page-component unavailable.
PlanTask - If project-level integration facts exist but ,
integrationReady=falsemust fail closed and directly display the connection blocking reason; do not attempt to use page generation, initial scaffold or page-level preflight as a remedy for connection / legacy bridge integrity. Whether page-typePlanTaskassets are ready is still independently judged by the planner'spage-component/assetResolution, rather than being rewritten as general integration debt.projectTypicalPageSupport - When the reason for comes from incomplete legacy required rollout,
integrationReady=falseshould default to placingPlanTaskat the top ofbootstrap-target-project; this indicates that the legacy connection / bootstrap of the current project has not been completed, rather than "adding a rollout step in the page phase for a connected project". If route ownership blocker is hit at the same time, add route repair action after it, and do not skip project-level carrier rollout directly into page implementation.ResolveBlockingFacts - : Convert
BuildGenerationRecipeinto a standard assembly protocol.generationStrategy - : Generation behavior must follow
GenerateByRecipe,assemblyOrder,requiredAssets; free invention of page shells, region owners, slot orders is not allowed.forbiddenMoves - : Lightweight consistency checks after key assembly steps, without moving heavy acceptance forward.
InlineConformanceChecks - : End confirmation layer, which internally continues to undertake
DeliveryConfirmation,WriteContract,Preflight,PreviewReady,FormalAcceptance. The open-source version does not undertake usage telemetry / stats closeout, and the final response only focuses on page delivery and quality verification status.RuntimeGovernance - This is a narrative rename, not an immediate external interface rename; public scripts, report objects and fields retain at least one migration cycle alias.
Detailed lifecycle still takes as the only truth.
rules/page-task-lifecycle.mdFirst Turn Output
First Turn Output
页面任务首轮回复默认优先展示生成信息,而不是先铺验收字段。默认优先字段:
generationStrategygenerationRecipegenerationInputsinlineChecksprimaryGenerationAssetassemblyOrderrequiredAssetsextensionPolicyrequiredActions
复杂或严格场景再展开:
deliveryChecksacceptanceLevelacceptanceProfilefinalReportContract
若命中 或 ,首轮还必须直接暴露 、、、、、 与 ;这些属于生成输入事实,不是交付后才补的检查备注。
non-typical-overlaysingle-page-compositelayoutStrategylayoutArchetypenonTypicalScopemandatoryComponentscompositionGuardrailsstrategyEvidenceownershipPlan若命中不规范原型截图、旧系统截图 / URL / 源码,首轮按
输出 ,只解释
与必要的 状态。
docs/generation/ai-kickoff-template.mdkickoffType=pre-plan-factsvisual-translation-brief.v1host-qualification-facts.v1The first-round response of page tasks prioritizes displaying generation information by default, rather than laying out acceptance fields first. Default priority fields:
generationStrategygenerationRecipegenerationInputsinlineChecksprimaryGenerationAssetassemblyOrderrequiredAssetsextensionPolicyrequiredActions
Expand in complex or strict scenarios:
deliveryChecksacceptanceLevelacceptanceProfilefinalReportContract
If or is hit, the first round must also directly expose , , , , , and ; these belong to generation input facts, not inspection notes supplemented after delivery.
non-typical-overlaysingle-page-compositelayoutStrategylayoutArchetypenonTypicalScopemandatoryComponentscompositionGuardrailsstrategyEvidenceownershipPlanIf unstandard prototype screenshots, old system screenshots / URLs / source code are hit, output in the first round according to , and only explain the status of and necessary .
kickoffType=pre-plan-factsdocs/generation/ai-kickoff-template.mdvisual-translation-brief.v1host-qualification-facts.v1Truth Index
Truth Index
- 机器计划入口、成功信号和失败信号:
scripts/README.md - 快路径执行入口与补读顺序:
rules/QUICK-START.md - 公开 CLI 契约:
scripts/public-cli-contracts.json - 运行时协议:
rules/runtime-contract.md - 页面任务生命周期:
rules/page-task-lifecycle.md - 失败恢复矩阵:
rules/failure-matrix.md - 生成约束:
rules/generation-rules.md - 数据可视化主次/样式机器策略:、
rules/chart-semantic-policy.jsonrules/data-visualization-layout-policy.json - 页面组件与模具注册表:、
rules/page-component-registry.jsonrules/page-mold-registry.json - runtime bridge profiles:
rules/runtime-bridged-component-matrix.json - legacy hard gates:
rules/legacy-host-hard-gates.json - runtime 交付策略:
rules/runtime-delivery-policy.json - adapter 注册表:
rules/adapter-registry.json - contract 约束与摘要:
rules/contract-regions.md - 页面治理与 source snapshot / acceptance contract:
rules/page-governance.md - 验收清单:
rules/validation-checklist.md - 前向验证与成功指标:
docs/validation/generation-recipe-forward-tests.md - 页面组件策略与认证:、
docs/generation/page-level-components.mddocs/generation/component-certification.md - explainers(解释层,不是 source of truth):
docs/generation/explainers/README.md - 页头几何与宿主 baseline:
docs/generation/figma-reference.md - 旧宿主转译:
docs/generation/legacy-host-compatibility.md - 视觉 / 旧系统 pre-plan facts:
docs/generation/visual-to-hiui-translation.md - 非典型页面:
docs/generation/non-typical-pages.md - 图表与数据可视化:、
docs/generation/figma-page-rules.mddocs/generation/figma-pages/data-visualization.md - usage stats:
PRIVACY.md
默认只读计划里的 ;先消费 ,再按 命中情况补读 / 项。不要为选择模具或解释页型而整包遍历 、、、。
requiredDocsreadMode=requiredreasonreferenceconditionaldocs/rules/templates/manifests/- Machine plan entry, success signals and failure signals:
scripts/README.md - Fast path execution entry and supplementary reading order:
rules/QUICK-START.md - Public CLI contracts:
scripts/public-cli-contracts.json - Runtime protocol:
rules/runtime-contract.md - Page task lifecycle:
rules/page-task-lifecycle.md - Failure recovery matrix:
rules/failure-matrix.md - Generation constraints:
rules/generation-rules.md - Machine strategies for data visualization priority/style: ,
rules/chart-semantic-policy.jsonrules/data-visualization-layout-policy.json - Page component and mold registry: ,
rules/page-component-registry.jsonrules/page-mold-registry.json - Runtime bridge profiles:
rules/runtime-bridged-component-matrix.json - Legacy hard gates:
rules/legacy-host-hard-gates.json - Runtime delivery strategy:
rules/runtime-delivery-policy.json - Adapter registry:
rules/adapter-registry.json - Contract constraints and summary:
rules/contract-regions.md - Page governance and source snapshot / acceptance contract:
rules/page-governance.md - Acceptance checklist:
rules/validation-checklist.md - Forward validation and success metrics:
docs/validation/generation-recipe-forward-tests.md - Page component strategy and certification: ,
docs/generation/page-level-components.mddocs/generation/component-certification.md - Explainers (explanation layer, not source of truth):
docs/generation/explainers/README.md - Header geometry and host baseline:
docs/generation/figma-reference.md - Old host translation:
docs/generation/legacy-host-compatibility.md - Visual / old system pre-plan facts:
docs/generation/visual-to-hiui-translation.md - Atypical pages:
docs/generation/non-typical-pages.md - Charts and data visualization: ,
docs/generation/figma-page-rules.mddocs/generation/figma-pages/data-visualization.md - Usage stats:
PRIVACY.md
By default, only read in the plan; consume first, then supplement / items according to the hit situation of . Do not traverse , , , as a whole to select molds or explain page types.
requiredDocsreadMode=requiredreferenceconditionalreasondocs/rules/templates/manifests/Final Report
Final Report
- 最终回复默认基于 输出轻量交付摘要。
deliverySummaryProfile - 复杂 / 高风险场景、严格验收、legacy 迁移、真非典型、复杂数据可视化、/ smoke 失败时,再进入
preflight/finalReportContract。final-page-report.v1 - 应优先复用 managed page contract / workflow 已有事实来判断页面是否已生成、是否 stale、是否曾完成 formal finalize;不要再要求上层重复手填同一组状态。
final-page-report.v1 - 最终报告默认阅读顺序是:页面如何生成 -> 使用了哪些主资产与槽位 -> 哪些区域继承 / 哪些区域业务填充 -> 当前交付确认状态。
- 状态字段必须完整保留,但不再占据主阅读中心。
- 若无法运行 ,也必须呈现页面状态、preflight 状态、 formal 验收状态、usage stats 状态、已执行动作、变更文件、验证命令与剩余风险。
typical-page:render-final-report
- The final response outputs a lightweight delivery summary based on by default.
deliverySummaryProfile - Enter /
finalReportContractonly in complex / high-risk scenarios, strict acceptance, legacy migration, true atypical, complex data visualization,final-page-report.v1/ smoke failure situations.preflight - should prioritize reusing existing facts of managed page contract / workflow to judge whether the page has been generated, whether it is stale, and whether it has completed formal finalize; do not require the upper layer to repeatedly fill in the same set of states manually.
final-page-report.v1 - The default reading order of the final report is: How the page is generated -> Which main assets and slots are used -> Which regions are inherited / which regions are filled by business -> Current delivery confirmation status.
- Status fields must be completely retained, but no longer occupy the main reading center.
- If cannot be run, the page status, preflight status, formal acceptance status, usage stats status, executed actions, changed files, verification commands and remaining risks must still be presented.
typical-page:render-final-report