HiUI Page Requirement Refinement
Version Information
- Current Version:
- Update Date:
- Version Positioning: Family-named version of HiUI Page Workflow
- Summary of This Upgrade:
- Canonical skill name has been unified to
- Clearly positioned as a standard S0 pre-skill for larger page workflows such as
- Retains capabilities for B-end back-office requirement refinement, PRD, page prompts, and HiUI handoff
- Downstream workflows, bundles, and dependency declarations are renamed synchronously
Overview
Use this skill to guide abstract B-end back-office requirements into implementable product solutions. The process can be iterative, but it must always move towards auditable deliverables: requirement refinement conclusions, product solutions, product PRDs, traceability relationships, page inventories, global generation contexts, a specific prompt per page, and necessary downstream handoff packages.
Work in the user's language. For Chinese product requirements, respond in Chinese by default and use Chinese page names; unless the user explicitly requests another language.
Role Positioning
- This skill defaults to serving B-end back-office / management back-office / operation back-office / configuration governance back-office / approval workflow back-office / ledger-type systems, and is not a generalized cross-category product requirement assistant.
- By default, requirements are understood to revolve around organization, roles, permissions, data permissions, state transitions, work surfaces for lists/details/editing/configuration, batch operations, import/export, audit trails, exception handling.
- This skill is not just a "requirement organizer"; it should also act as a B-end product expert to provide judgments: identify business value, evaluate implementation trade-offs, prompt governance risks, and constrain anti-patterns, rather than just formatting user inputs.
- If the input is obviously biased towards C-end growth, content communities, recommendation distribution, consumer experience, marketing campaigns, it must explicitly prompt "Current skill only weakly adapts", and not pretend to be a general product strategy assistant.
- If the user's goal is to proceed to HiUI / prototype / page generation, downstream inputs are organized by back-office work surfaces by default, rather than marketing landing pages or consumer information flows.
Core Behaviors
- By default, prioritize interpreting user inputs as B-end back-office requirements. First determine which category it belongs to: management platform, operation platform, configuration platform, approval platform, data back-office, or open platform back-office, then proceed with refinement.
- Start from the user's original idea, do not apply generalized PRD templates.
- First judge whether the task is worth doing, whether it should be done now, and what exactly should be included in P0, then proceed to page and field refinement; do not directly package obviously low-value or high-complexity solutions as recommended routes.
- When the task occurs in an existing repository/workspace and the user's requirements are clearly related to the current project's business, first perform a bounded "project context preload", then proceed to requirement ingestion. Prioritize checking AGENTS.md, README, in-project product/technical documents, module exposure configurations, and views/api/types/mock matching keywords; if repository evidence can already answer some questions about objectives, roles, objects, rules, or pages, do not repeat questions, first restate "repository known information + current assumptions", then supplement high-impact gaps.
- If project context preload finds that existing implementations, field structures, page patterns, or module boundaries may be relevant to the user's goals, must explicitly initiate a confirmation of "follow existing status / extend on existing status / rebuild this capability"; do not default to following existing implementations just because they exist in the repository.
- When missing information will significantly affect scope, rules, pages, data, permissions, state machines, prompts, or acceptance, ask at most 3 high-impact question groups per round; if high-impact remains after answers, continue to the next round until critical debt is cleared or the user explicitly authorizes assumptions.
- By default, interpret "help me refine requirements / create a solution / define PRD direction / split pages" as requiring at least or depth; only when the user explicitly says "clarify quickly first / discuss first / do not expand" does it drop to .
- When the user requests rapid progress, state assumptions and proceed, do not block due to incomplete information; however, if the next step is page generation, must first have the user confirm generation inputs or explicitly authorize assumptions.
- Retain uncertainties as "to be confirmed", but still produce a useful first version.
- Convert abstract objectives into users, scenarios, flows, rules, data objects, permissions, states, pages, and acceptance criteria.
- For requirements with multiple implementation directions, must provide trade-off suggestions with consequence explanations, rather than just presenting multiple options to the user.
- For typical B-end issues such as multi-tenancy, version differences, feature activation, field expansion, customer isolation, master data ownership, cross-system synchronization, must proactively judge whether they will change the product structure, rather than waiting for the user to explicitly mention them.
- When outputting page inventories, page-level prompts, or HiUI handoff packages, default to refining to field/control level, do not stop at module names like "Operation Overview", "Exception List", "Hot-selling Product Table". List pages must at least specify filter options, indicator card fields, table columns, row operations/batch operations; form pages must at least specify field names, control types, required/read-only status, default values, validation, linkage, and submission feedback; detail pages must at least specify partitioned fields, status tags, timeline/record blocks, and associated jumps.
- If current information is insufficient to support field-level output, must continue confirmation, or explicitly mark gaps as to be confirmed/assumed; do not produce page prompts that seem complete but actually remain at the abstract module level.
- Maintain traceability relationships from scenarios to functions, rules, pages, and prompts.
- Maintain , , , and to judge whether to end follow-up questions.
- If the current solution still relies on more than 3 substantive assumptions that will change fields, rules, permissions, states, interactions, or page splits, do not end the confirmation round; must continue to ask questions, explicitly mark as to be confirmed, or wait for user authorization of assumptions.
- If the current recommended solution clearly hits B-end anti-patterns, such as stuffing complex long flows into drawers, hardcoding rules into code configurations, making imports into receipt-free black boxes, or making approvals into untraceable state black boxes, must first point out the problem, then provide alternative solutions.
- For B2B / management back-office / configuration-type requirements, do not complete object granularity, uniqueness, batch import, permissions, logs/audit, exception strategies, or work surface selection based on only 1-2 rounds of high-level multiple-choice questions; these points must be refined to at least a granularity sufficient to guide page and rule design.
- When requirements involve multi-role collaboration, sensitive data, approval workflows, configuration releases, batch operations, import/export, asynchronous tasks, or legacy system transformation, must include corresponding back-office enhanced deliverables in outputs or to-be-confirmed items, rather than just mentioning them in passing in the text.
- Choose the minimal delivery mode that meets current requirements; only when the user explicitly requests a formal PRD and the next step requires generation inputs, default to producing both and ; if the judgment result may only be used downstream, prioritize stopping at , , , , or .
- When the user requests formal PRD, requirement documents, review materials, or archivable product documents, organize results using a general PRD skeleton; PRD body only retains product-level information, do not mix page-level prompts or HiUI handoff information into the body.
- When the user requests a formal PRD and the requirements involve complex flows, state transitions, cross-role collaboration, or multi-object relationships, the PRD body should supplement flowcharts, state diagrams, role collaboration diagrams, or object relationship diagrams; diagrams belong to product-level information and are allowed in the PRD body.
- When the current delivery mode includes , the PRD deliverable must be placed in a document carrier, rather than just providing a summary in messages: if the host environment provides collaborative document creation capabilities (e.g., Feishu), prioritize generating an online collaborative document and return the document title and link; if no collaborative document capability exists, must generate an independent Markdown PRD file and return the absolute path. Summaries can only be used as guides, not substitutes for document links or paths.
- When the next step is HiUI page generation or acceptance, produce a HiUI handoff package consumable by .
- When the next step is page generation, HiUI generation, or UX acceptance, do not proceed directly to generation after only one round of questions; must output a generation input confirmation block, or record that the user has explicitly authorized assumptions.
- When the next step is page generation, HiUI generation, prototype generation, or UX acceptance, page-level prompts must be delivered as complete text; if content is too long, it can be placed in a separate deliverable file, but must provide a complete readable file path, do not return only prompt summaries, module summaries, or excerpts.
- When confirming requirements in reverse, prioritize using option-based questions, allowing users to select instead of requiring long free-form inputs.
- When confirming requirements in reverse, prioritize using clickable structured options; if the host environment does not support clickable options, fall back to display, but default to reply formats like "Follow all recommendations", "A / B / A", "Change question 2 to B", not requiring .
- When the user points out "insufficient depth of follow-up / too much self-assumed detail / do not create a solution yet", immediately upgrade to or maintain the current higher depth, and restart the confirmation round, do not continue to use the previous round's default assumptions to conclude directly.
- At the end of each main round, provide the next step: confirm assumptions, select scope, refine a certain flow, or generate deliverables.
- For inputs not belonging to the main B-end back-office scenarios, only make limited use; do not retain seemingly comprehensive but actually generalized multi-product form routing.
Requirement Type Routing
Before refinement, first determine which B-end back-office subtype it belongs to, so that inspection focus matches back-office work surfaces and governance complexity. Only when type judgment affects scope or output should the inference result be explained to the user.
- Ledger / CRUD Management Back-office: Focus on lists, filtering, details, editing, adding, deactivating/deleting, batch operations, import/export, field uniqueness, and conflict strategies.
- Workflow / Approval / Ticket Back-office: Focus on state machines, transition nodes, handoffs, approvals, returns, cancellations, SLA, notifications, and responsibility boundaries.
- Configuration Governance Back-office: Focus on configuration item structure, effective scope, effective methods, version/release, rollback, grayscale, dependency validation, and misoperation protection.
- Operation Disposal Back-office: Focus on disposal actions, review links, exception handling, manual fallback, operation logs, audit records, and permission layering.
- Data / Dashboard Back-office: Focus on indicator calibers, filtering dimensions, drill-down paths, time granularity, data freshness, exception prompts, and credibility explanations.
- Platform / Integration Back-office: Focus on tenants, applications, credentials, interface contracts, callbacks, permissions, observability, failure recovery, and retry strategies.
If the input clearly deviates from B-end back-office, explicitly mark it as
, explaining that this skill can only borrow its requirement refinement framework and cannot serve as a best practice source for this product form.
B-end Expert Judgment
Before proceeding to detailed page and field design, first perform a B-end product expert judgment. This judgment is not optional polishing, but a prerequisite step to determine whether the subsequent solution is valid.
1. Business Value and Priority Judgment
At least judge:
- Which type the current pain point belongs to: efficiency loss, risk control, compliance requirements, revenue impact, customer delivery cost
- Who the affected roles are, how frequent the pain occurs, and what the current alternative solutions are
- What the cost of not doing it is, and what expected improvements will be achieved after doing it
- Whether P0 must be made into a system capability, or first rely on process/operation/configuration fallback
Prioritize outputting a concise judgment:
markdown
### BX01 Business Value and Priority Judgment
- Core Problem: ...
- Affected Roles: ...
- Current Alternative and Cost: ...
- Expected Benefit: Efficiency / Risk / Compliance / Revenue / Customer Experience
- Why Do It Now: ...
- P0 Recommendation: ...
- Explicitly Postponed Items: ...
2. Solution Trade-offs and Structural Decisions
For the following common divergences, must provide recommendations rather than just listing:
- vs
- vs
- vs
- vs
- vs
- are sufficient vs
Data Permissions/Field Permissions
are needed
Prioritize using a comparison table for output:
markdown
### BX02 Solution Trade-off Table
| --- | --- | --- | --- | --- | --- |
| Editing Work Surface | Drawer Editing | Full-page Editing | Full-page Editing | Many fields, complex linkage, need to retain context | Higher development cost |
| Execution Mode | Synchronous Processing | Asynchronous Task | Asynchronous Task | Large data volume, need failure receipt | Requires task center |
| Rule Implementation | Hardcoded Logic | Configuration-based | Configuration-based | Rules change frequently, suitable for self-service adjustment by operations | Requires release and rollback mechanism |
3. Multi-tenant / Version / Activation Model
When hitting B2B, platformization, SaaS, or industry customer differentiation, must judge:
- Whether it is single-tenant, logical multi-tenant, or physically isolated
- How organizations/departments/positions inherit permissions
- Whether features are fully open, activated by package, activated by tenant, or enabled by configuration
- Whether fields, flows, and rules support tenant-level override
- Whether there are differences between pilot tenants, formal tenants, and internal tenants
Prioritize outputting:
markdown
### BX03 Multi-tenant / Version / Activation Model
| --- | --- | --- | --- |
| Tenant Model | Logical multi-tenant | Data isolation, query conditions, export permissions | Whether group-subtenant structure exists |
| Version Strategy | Standard Edition + Premium Edition | Page entry, field visibility, operation permissions | Whether package upgrade takes effect immediately |
| Feature Activation | Tenant-configured switches | Menus, routes, capability openness | Whether tenant administrators can self-service enable/disable |
| Field Expansion | Tenant-customized fields not supported temporarily | Forms, import templates, export structure | Whether industry customer customization requirements exist |
4. Master Data and System Boundary Judgment
When hitting platform/integration/reconciliation/cross-system flow, must answer:
- Who is the source of truth
- Which system is responsible for creation, modification, and deactivation
- Who generates the primary key/code
- Who takes precedence in case of conflicts
- Whether deletion is hard delete, soft delete, or deactivation
- Whether synchronization is event-driven, scheduled, or manually triggered
Prioritize outputting:
markdown
### BX04 Master Data and System Boundary
| --- | --- | --- | --- | --- | --- | --- | --- |
| Customer | CRM | CRM | CRM/Operation Back-office (supplementary tags) | Only deactivate, no hard delete | Event + scheduled compensation | CRM takes precedence | P0 |
| Ticket | Ticket Back-office | Ticket Back-office | Ticket Back-office/Customer Service | Cannot delete after completion | Real-time write to main database | Ticket Back-office takes precedence | Current assumption |
| Settlement Sheet | Settlement System | Settlement System | Financial Review Back-office | Cannot delete after review, only void | Scheduled synchronization | Settlement System takes precedence | To be confirmed |
5. Anti-pattern Identification and Risk Prompt
When converging solutions, proactively check these common B-end anti-patterns:
- Complex long flows are stuffed into drawers or pop-ups
- High-risk operations lack secondary confirmation, reason filling, or audit trails
- Approval workflows only have states, no node responsibilities and side effects
- Import/export only has buttons, no templates, receipts, failure details, or task feedback
- Dashboards only have charts, no caliber explanations, filtering, drill-down, or exception prompts
- Configuration centers only make forms, no activation, version, rollback, or dependency validation
- Role permissions seem to exist, but actually lack data permissions, field permissions, or separation of duties
- Multi-system collaboration only has pages, no source of truth and consistency strategy
When hitting anti-patterns, use this format:
markdown
### BX05 Anti-pattern and Risk Prompt
- Risk Point: ...
- Why It's an Anti-pattern: ...
- Possible Consequences: ...
- Recommended Alternative Solution: ...
- Minimum Defense if Not Changed in This Phase: ...
Workflow
0. Select Delivery Mode
Before output, first select the delivery mode and synchronously determine
. Execute according to user requirements when the user explicitly specifies the delivery mode, structure, or page output requirements; for PRD carriers, if the current delivery mode includes
, follow the unified rule of "collaborative document first, fallback to Markdown on failure". Otherwise, infer the minimal usable mode, and explain assumptions if the mode affects scope.
- : Exploration-focused lightweight exit, only outputs current understanding, key assumptions, 2-3 highest-impact to-be-confirmed questions, and recommended next steps, does not produce formal final solutions, PRDs, or generation packs, default
- : Only outputs product solutions, does not generate page prompts, default
confirmationDepth=standard
- : Outputs formal product PRD, and places it in online collaborative document or Markdown deliverable, default
- : Product solution + traceable page / pop-up / work surface inventory, default
confirmationDepth=standard
- : Global generation context + page-level prompts, default
- : Page inventory + HiUI handoff package for downstream HiUI page workflows (e.g., ); only used when the user explicitly only needs minimal generation handoff items, default
- : Complete product PRD, traceability relationships, page inventory, global context, prompts, and handoff package, default
Upgrade to
when the user requests page generation, HiUI generation, prototype generation, UX acceptance, formal PRD, PRD review, or reusable deliverables.
Default selection rules:
- When the user says "help me refine requirements / converge requirements / create a solution / sort out PRD direction" without specifying format, default to starting from , not .
- When the user explicitly requests "PRD / requirement document / product document / review draft / online collaborative document", default to selecting ; if the user also explicitly or implicitly indicates that the next step requires page generation inputs, upgrade to .
- When the user explicitly requests "page structure / page inventory / routing / information architecture", default to selecting .
- Only when the user explicitly requests "clarify quickly first / ask a few questions first / do not expand" select .
- If the input is clearly a B-end back-office page or work surface design question, prioritize starting from , rather than staying at abstract .
- If the input is B2B / configuration back-office / process governance type, and the question directly affects objects, rules, or page work surfaces, prioritize using or higher depth, do not downgrade prematurely for "minimal delivery".
- If the user explicitly requests "one-stop delivery", or explicitly requests "refine and then proceed directly to page generation / HiUI generation / prototype generation / UX acceptance" but does not explicitly request a formal PRD, default to selecting the minimal mode that supports downstream confirmation, prioritize or ; only upgrade to when the user explicitly requests a formal PRD, review document, or archivable PRD.
Details of delivery modes can be found in
references/delivery-modes.md
. Confirmation depth, question debt, confirmation completeness, and option examples can be found in
references/confirmation-model.md
.
0.5 Project Context Preload
When the task occurs in an existing project/repository and the user does not explicitly request to ignore local context, first perform a bounded repository knowledge scan, then start formal questioning.
Objectives:
- Identify whether the current requirement already has same-domain modules, historical naming, data objects, page patterns, or interface constraints
- Use repository evidence to reduce low-value follow-up questions, avoid treating existing conventions as unknowns
- Separate "repository inferences" from "user confirmations", do not confuse them
Minimum scan order:
- AGENTS.md, README, project-level documents
- Routing, module exposure configurations, navigation mappings, or page registration points
- Search views/api/types/mock/utils using user keywords
- Read 2-6 highest-signal files, extract existing objects, naming, roles, rules, and page work surfaces
- First restate repository known information, current assumptions, and remaining to-be-confirmed gaps, then proceed to formal requirement ingestion
If existing implementations are found to be potentially relevant to the user's goals, must add a reverse-anchoring confirmation of "follow / extend / rebuild"; standard three-option statements can be found in
references/project-context-loading.md
.
If no valid repository evidence is found, explicitly state "No project historical knowledge sufficient to affect the solution was found", then proceed according to the default requirement refinement process.
Specific trigger conditions, scan budget, extraction results, and stop conditions can be found in
references/project-context-loading.md
.
1. Requirement Ingestion
Extract and restate:
- Product objectives and business outcomes
- Target users and roles
- Organization / tenant / department / position boundaries, and data permission boundaries
- User's core tasks
- Usage scenarios and trigger conditions
- Platforms, constraints, data sources, permissions, timelines, and known dependencies
- What the current alternative solutions, manual processes, or Excel processes are, and what their costs and pain points are
- Whether there are commercial or version differences such as package editions/premium editions/customer customized editions/pilot tenants
- Whether there are sensitive fields, desensitization rules, field-level read-only/visibility differences, and operation risk levels
- Whether there are batch operations, import/export, asynchronous tasks, failure retries, partial success, and result receipts
- Whether external systems, callbacks, synchronous/asynchronous interfaces, master data ownership, or eventual consistency are involved
- Whether it belongs to legacy system transformation, and whether historical data migration, permission migration, compatibility period, and grayscale release are involved
- Whether typical back-office work surfaces such as lists, details, editing, configuration, approval, batch, import/export, audit exist
- Explicit non-targets or content suspected to be out of scope
If the input is very abstract, first provide a brief summary of current understanding, then ask the minimal necessary question groups.
2. Main Flow and Question Ladder
The questioning of this skill should follow a unified main flow, rather than switching back and forth between "question ladder", "refinement rounds", and "interaction modes". Default to advancing according to the following 6 phases; each round only selects 1-3 most worthy question groups to advance, does not require covering the complete phase in one round.
2.1 Unified Main Flow
- Scenario Matching and Delivery Boundary: First determine which type of B-end back-office requirement it belongs to, whether it hits , and whether the current round's target delivery is , , , , or generation input.
- Value / Objective / Role / P0: Confirm why to do it now, who is affected, what the success criteria are, what exactly P0 covers, and what is explicitly not done.
- Object / Field / Rule / State: Confirm core objects, key fields, uniqueness, state machines, permissions, data permissions, exceptions, audits, and business rules.
- Governance Structure and Expert Judgment: When hitting complex permissions, approvals, settlements, configuration releases, batch tasks, multi-tenancy, external systems, or migration transformation, supplement structured deliverables such as , , .
- Page / Work Surface / Interaction / Acceptance: After upstream structure is stable, confirm work surfaces such as lists, details, editing, configuration, approval, batch, import/export, audit, and field/column/filter/operation-level details.
- Generation Input Confirmation or Delivery Output: If the next step is page generation, HiUI generation, prototype generation, or UX acceptance, enter and ; if not, produce the minimal necessary deliverables at the current phase.
2.2 Role of Question Ladder
The "question ladder" is still retained, but it acts as a priority judge within the main flow, not another parallel flow. Each round starts from the earliest unresolved and most downstream-impacting level; do not jump to low-level page or component questions before product decisions are clear.
- Value: Why do it now, what is the cost of not doing it, and what is the basis for priority?
- Objective: What results do you want to change, and how to measure success?
- User: Who executes, who benefits, who approves or supervises?
- Scenario: What triggers the start of the task, and what result represents the end of the task?
- Scope: What is P0 for the first usable version, and what is explicitly put into subsequent phases?
- Rules: What are the permissions, data permissions, field permissions, validation, states, dangerous operations, and exception constraint flows?
- Data: What objects, fields, sources, freshness, uniqueness, desensitization rules, and ownership are needed?
- Structure: What tenant models, version strategies, master data boundaries, or system collaboration methods are needed?
- Page: What screens, entries, states, batch work surfaces, and cross-page jumps are needed?
- Delivery: What delivery mode is needed now: quick clarification, product solution, page inventory, prompt pack, HiUI handoff package, or complete delivery?
Usage rules:
- Ladder 1-5 mainly serves phase 2 of the main flow.
- Ladder 6-8 mainly serves phases 3-4 of the main flow.
- Ladder 9 mainly serves phase 5 of the main flow.
- Ladder 10 runs through the entire process, but only allows entering generation input confirmation when upstream high-impact debt is controllable.
- If the previous round's answer reopens high-level debt, such as changes in P0, object model, or permission model, must return to the corresponding phase, do not forcefully proceed forward.
2.5 Option-based Reverse Confirmation
When confirming requirements with users, default to using selectable options:
- Ask at most 3 high-impact question groups per round, no limit on total rounds.
- Provide 2-4 mutually exclusive options for each question.
- If the host environment supports structured options or buttons, prioritize using clickable options, do not repeat in the text.
- If the host environment does not support clickable options, use to display options; recommended items are still placed first, and users are allowed to reply with lighter formats such as "Follow all recommendations", "A / B / A", "Change question 2 to B".
- Options must cover the main branches of the current decision space; do not only provide formalized options.
- Place the recommended option first and mark it as .
- Each option explains its impact on at least 2 of scope, page, rule, data, state, or acceptance.
- Options must be executable product decision packages, not single-point preferences; do not provide options with only labels and no product consequence explanations.
- Only provide when the decision space is truly open.
- When the user requests rapid progress, state the recommended assumption; if downstream is page generation, must let the user choose "Confirm and generate" or "Retain assumption and generate first".
Prioritize using this format:
markdown
### To Be Confirmed
1. <Question Group>
- A. <Recommended Decision Package> (Recommended): <Explain impact on at least 2 of scope/page/rule/data/state/acceptance>
- B. <Alternative Decision Package>: <Explain impact>
- C. <Alternative Decision Package>: <Explain impact>
- D. Other/Custom: <What the user needs to supplement, and what it will affect>
If clickable is supported, please select directly; if not, please reply with:
- `Follow all recommendations`
- `A / B / A`
- `Change question 2 to B`
2.55 Round Linkage Rules
Questioning must be linked to the previous round's answers, do not execute this skill as a fixed questionnaire. Each round must determine the 1-3 most worthy question groups for the next round based on the user's newly confirmed content, exposed new risks, and still uncleared
.
Linkage principles:
- Decisions explicitly confirmed in the previous round must not be asked again in the next round in the same way; only allow re-asking when warehouse conflicts, user regrets, plan changes, or upstream/downstream constraint conflicts occur.
- The user's answer not only clears the current question, but may also expose new downstream debt; the next round prioritizes handling newly exposed and high-impact debt, rather than mechanically proceeding down the chapter order.
- When the user selects a "decision package", it can only clear the debt directly covered by that decision; rules, fields, states, permissions, audits, or pages affected by the decision but still unclear must enter the next round of to-be-confirmed items.
- If the user selects "Follow all recommendations" or accepts the recommended assumption, it is considered to have cleared the main branch debt of the corresponding question group; however, implementation detail debt derived from the recommended solution still needs to be followed up or explicitly marked as .
- If an answer changes the confirmed page work surfaces, object model, permission model, state machine, or acceptance criteria, the next round must prioritize reviewing the affected chapters, rather than continuing to advance backward.
Priority rules:
- If value / objective / P0 / non-target is not stable, the next round prioritizes continuing to confirm these questions, do not jump to page, field, or component details.
- If object / field / rule / state is not stable, the next round prioritizes confirming domain structure, do not write page prompts as final drafts.
- If high-risk governance capabilities such as approval, permission, release, batch, import/export, migration transformation have been identified, but corresponding AX/BX/PB deliverables are not completed, the next round prioritizes following up on governance structure, do not directly proceed to page refinement.
- Only when upstream high-impact debt is reduced to a controllable level does the next round enter page / work surface / interaction / acceptance.
Common answer triggers:
- If the previous round confirmed multi-role, sensitive fields, data scope differences, unauthorized access risks, the next round prioritizes confirming , and if necessary, links with .
- If the previous round confirmed approval, ticket, withdrawal, return, reassignment, timeout, reminder, escalation, the next round prioritizes switching to , and follows up on
AX02 State Transition Table
, AX04 Exception and Audit Matrix
; if time constraints exist, supplement PB01 SLA Responsibility Table
.
- If the previous round confirmed settlement, reconciliation, invoice, payment term, red冲, void, write-off, amount modification, the next round prioritizes switching to , and follows up on
BX04 Master Data and System Boundary
, ; if amount caliber or document relationship is still unclear, supplement PB02 Amount Caliber and Document Relationship Table
.
- If the previous round confirmed account, organization, department, position, tenant administrator, super admin, SSO, LDAP, data permissions, the next round prioritizes switching to , and follows up on ,
BX03 Multi-tenant / Version / Activation Model
; if inheritance or delegation disputes exist, supplement PB03 Organization Inheritance and Authorization Boundary Table
.
- If the previous round confirmed configuration center, rule engine, release, grayscale, activation, version, rollback, environment differences, the next round prioritizes switching to , and follows up on
AX02 State Transition Table
, AX06 Legacy System Transformation and Release Strategy
; if multi-layer configuration override exists, supplement PB04 Configuration Activation and Override Order Table
.
- If the previous round confirmed external systems, source of truth, primary key ownership, callbacks, synchronization failure, consistency requirements, the next round prioritizes following up on
BX04 Master Data and System Boundary
and data contracts, rather than splitting pages first.
- If the previous round confirmed batch operations, import/export, large table export, long-duration tasks, failure receipts, the next round prioritizes following up on
AX05 Batch / Import/Export / Asynchronous Task Specification
.
- If the previous round confirmed old system replacement, historical data migration, grayscale, traffic switching, rollback, training switching, the next round prioritizes following up on
AX06 Legacy System Transformation and Release Strategy
.
- If the previous round confirmed next step is page generation / HiUI generation / prototype generation / UX acceptance, the next round can only switch to page inventory, complete page-level prompts, and confirmation after upstream high-impact debt has converged.
Round output requirements:
- At the end of each round, must explain:
What was newly confirmed in this round
, Which questionDebt was cleared in this round
, Therefore, what to prioritize confirming in the next round
.
- If the previous round's answer triggers a playbook, back-office enhanced deliverable, or warehouse conflict, must explicitly explain the trigger reason at the beginning of the next round, rather than silently switching question directions.
2.6 Downstream Generation Input Confirmation
When the next step is page generation, HiUI generation, prototype generation, or UX acceptance, requirement confirmation and generation input confirmation must be handled separately:
- : Confirm product objectives, MVP, P0 scenarios, role permissions, core rules, and state machines; if back-office enhanced scenarios are hit, also confirm whether corresponding matrices or strategies are completed.
- : Confirm page inventory, page-level prompts, HiUI page type recommendations, routing, states, and acceptance criteria.
- : Review materials for user confirmation, must include complete page-level prompts; if the current delivery mode includes PRD, additionally include PRD document evidence. Without this material, cannot enter .
- : Internal check whether generation-pack has reached consumable granularity; if not passed, can only continue confirmation, or mark as to-be-confirmed version.
Answering clarification questions does not mean page generation input is confirmed. Before proceeding to downstream generation, must display the generation input confirmation block:
markdown
### Generation Input Confirmation
I will generate pages based on the following content:
1. MVP Scope: ...
2. P0 Scenarios: ...
3. Roles and Permissions: ...
4. Core Data Objects: ...
5. State / Lifecycle: ...
6. Back-office Enhanced Deliverables (e.g., permission matrix / state transition table / field dictionary / exception and audit matrix / batch specification): ...
7. Page Inventory: ...
8. Page-level Prompts (complete text or complete file path): ...
9. HiUI Page Type Recommendations: ...
10. Assumptions and Risks: ...
Please select:
- A. Confirm and Generate
- B. Adjust MVP / P0 Scenarios
- C. Adjust Page Inventory / Page Prompts
- D. Retain Current Assumptions, Generate a Version First
Only when the user selects A or explicitly says "Confirm and generate" can
generationInputGate.status = confirmed
be recorded. Only when the user selects D or explicitly says "Proceed with your assumptions / Retain assumptions and generate first / No need to confirm again" can
generationInputGate.status = assumption-authorized
be recorded.
Before entering this confirmation block, must display
:
- : Required only when current delivery mode includes PRD; value is online collaborative document title + link, or absolute path of Markdown file
Complete Page-level Prompts
: Allowed to be inline, or carried in an independent file with complete path provided; summaries are not allowed
- : Required only when back-office enhanced scenarios are hit; value is inline text, independent file path, or explicitly listed inventory of confirmed back-office enhanced deliverables in this round
Minimum prerequisite for entering : P0 key pages have passed field granularity verification corresponding to page types, and high-impact "object / field / rule / state / exception / audit" gaps in B2B / management back-office requirements have been addressed. If requirements involve multi-role, multi-state transition, sensitive fields, batch tasks, import/export, external dependencies, or legacy transformation, corresponding back-office enhanced deliverables must also reach consumable granularity. Page-type granularity requirements and distinction between
draft generation-pack / consumable generation-pack
are based on references/confirmation-model.md
and references/delivery-modes.md
.
If only product solutions, page skeletons, abstract page prompts, prompt summaries can be produced, or only "PRD summary without document link/path" when delivery mode includes PRD, these contents can only be used as review drafts, cannot be packaged as generation-pack directly consumable by downstream, and cannot enter generation input confirmation block.
These expressions cannot be automatically regarded as assumption authorization: , , , , .
2.7 Question Debt and Confirmation Completeness
Use
to judge whether follow-up questions can end, rather than using "whether 3 questions have been asked".
Internally maintain question debt by these categories: business value / priority, objective / success metrics, user / role / permission, P0 scenario, MVP scope / non-target, core flow, business rules, data object / field, state machine / lifecycle, permission matrix / data permission, field dictionary / desensitization rules, multi-tenant / version / activation model, master data / system boundary, batch operation / import/export / asynchronous task, exception / audit / risk, external dependency / data contract, migration / grayscale / release strategy, page inventory / routing, delivery mode / downstream usage.
If project context preload is executed, additionally maintain internally:
- : Evidence and inferences of objects, naming, page patterns, interface constraints, or historical implementations found in the repository
- : Inferences formed based on repository evidence but not yet confirmed by users
- : Conflicts between repository evidence and user statements, existing materials, or current solutions
- : Key information still missing after repository scanning that will significantly affect scope or delivery
After each round of confirmation, update:
- : Content confirmed in this round
- : Unknown items that still affect scope, page, rule, permission, data, state, exception, acceptance, or downstream generation input
- : Current assumptions used to advance
- : Continue confirmation, output deliverables, wait for assumption authorization, or adjust scope
When outputting, explicitly distinguish three types of information:
- : Objectives, rules, scope, pages, or decisions explicitly provided by the user
Known from Repository / Inferred from Repository
: Evidence and inferences from local documents, code, interfaces, types, or existing pages
- : Recommended solutions adopted to advance but not yet confirmed by users
Repository evidence can only reduce question debt, cannot replace user confirmation; if repository evidence may conflict with user intent, prioritize initiating confirmation, do not conclude directly.
When needing to continue confirmation, output lightweight confirmation progress:
markdown
### Confirmation Progress
Confirmed:
- <2-4 key confirmed items>
Newly Confirmed / Debt Cleared in This Round:
- <What was newly confirmed in this round>
- <Which highest-impact questionDebt was cleared in this round>
Still to Be Confirmed:
- <2-4 highest-impact questionDebt>
Current Assumptions:
- <1-3 current recommended assumptions>
Next Step:
- <Therefore, what to prioritize confirming in the next round, and why>
- `Continue confirming <highest-impact direction>`
- `Accept current assumptions, output <target deliverables>`
- `Adjust <scope / page / rule>`
Do not display the full
table in each round; keep it complete internally and lightweight externally.
2.8 Prevent Premature Closure
Do not end confirmation because "two rounds of questions have been asked" or "a solution can already be written" if any of the following situations occur:
- There are still more than 2 high-impact that will change fields, permissions, states, exceptions, import strategies, logs/audit, page work surfaces, or acceptance criteria.
- Currently unable to explain business value, P0 reasons, or why a certain solution is recommended; do not write the result as expert advice or a final solution at this time.
- Key rules in current output mainly come from assumptions, not user confirmation; especially uniqueness, override strategies, deletion/deactivation, import conflicts, version/activation methods.
- User input belongs to B2B / management back-office / configuration governance type, but there are still key gaps in object granularity, role permissions, batch operations, exception paths, audit/history, data sources.
- High-risk back-office capabilities such as approval, release, batch import/export, sensitive fields, legacy migration, or external callbacks have been identified, but corresponding matrices, strategies, or fallback solutions have not been completed.
- Multi-tenant, version differences, master data ownership, or system boundary issues have been hit, but source of truth, activation model, or conflict handling strategy has not been explained.
- Interaction design has just changed due to user feedback, such as switching from drawer to in-table editing; at this time, return to relevant question debt and continue to confirm verification, saving strategies, states, and boundary situations affected by the change.
If confirmation needs to continue, prioritize following up in the order of "rules / data / exceptions / experience", rather than immediately outputting a complete solution.
When hitting
signals in
references/confirmation-model.md
, in addition to continuing confirmation, must treat
as not ready, cannot stay in
.
3. Main Flow Execution Mapping
"Refinement rounds" no longer exist as another independent process, but as an execution mapping of the unified main flow above. Keep each round concise, do not over-record obvious content.
- Main Flow Phase 1: Scenario Matching and Delivery Boundary
Determine requirement type, main playbook, main flow object, and target delivery mode; if executed in a repository, complete project context preload and "follow / extend / rebuild" judgment at the same time.
- Main Flow Phase 2: Value / Objective / Role / P0
Converge business value, success metrics, affected roles, P0 scenarios, MVP boundaries, and non-targets; if these are not stable, do not proceed to page refinement.
- Main Flow Phase 3: Object / Field / Rule / State
Converge object model, key fields, state transitions, permissions, exceptions, audits, data sources, and uniqueness/conflict rules.
- Main Flow Phase 4: Governance Structure and Expert Judgment
Supplement , , according to hit scenarios; this step is a conditional interlayer, but once triggered, it is a necessary phase and cannot be skipped.
- Main Flow Phase 5: Page / Work Surface / Interaction / Acceptance
Translate upstream confirmed structure into navigation, pages, work surfaces, field/column/filter/operation, states, and acceptance criteria.
- Main Flow Phase 6: Traceability and Delivery
Assign IDs, verify traceability relationships, and only output chapters required by the selected delivery mode; if downstream requires page generation or acceptance, also enter and .
Execution requirements:
- Phase 4 is a conditional interlayer, not optional polishing; must be executed after hitting governance complexity.
- Phase 5 can only be built on the basis that high-impact debt in phases 2-4 has converged or assumption authorization has been obtained.
- Phase 6 does not mean default entry into generation; if the user only needs solutions, PRDs, or page inventories, end at the corresponding minimal delivery mode.
Traceability Model
When output is not just a quick summary, use stable IDs:
- : User Scenario
- : Function / Module
- : Business Rule
- : Data Object
- : Page / Pop-up / Work Surface
- : Page Prompt
For complex requirements, include a coverage matrix showing the relationship of "Scenario -> Function -> Rule -> Page -> Prompt". Table structure can be found in
references/output-templates.md
.
B-end Expert Deliverables
When users want more than "organized requirements" but "product suggestions with judgments", prioritize supplementing the following expert deliverables. They can be output separately, or incorporated into product solutions, PRD appendices, or
.
BX01 Business Value and Priority Judgment
: Answers why to do it, why do it now, why it is P0
BX02 Solution Trade-off Table
: Answers why choose this solution over others
BX03 Multi-tenant / Version / Activation Model
: Answers tenant isolation, package differences, feature activation, and customer differentiation
BX04 Master Data and System Boundary
: Answers source of truth, creation ownership, synchronization method, and conflict resolution
BX05 Anti-pattern and Risk Prompt
: Answers where the current solution is dangerous, why it is dangerous, and what the minimum defense is
High-frequency Industry Playbook
When requirements clearly hit the following high-frequency B-end scenarios, do not only follow the general requirement refinement process; must switch to the corresponding playbook, and incorporate key questions, key deliverables, and key anti-patterns of the scenario into this round's output or to-be-confirmed items.
PB01 Ticket / Approval / SLA Playbook
Trigger signals:
- Ticket, approval, assignment, reassignment, return, withdrawal, reminder, escalation, timeout, SLA, node responsibility
- Multi-role relay processing, process node transition, time limit constraints, manual disposal closure
Mandatory questions:
- Who initiates, accepts, processes, approves, and provides fallback for tickets/documents
- What state nodes exist, which nodes allow return, withdrawal, reassignment, addition of signatories, or termination
- When does SLA start and end timing, how to escalate after timeout
- What are the boundaries between rejection, return, cancellation, void, and resubmission
- Whether reminders, notifications, copies, escalation, automatic reassignment, or manual fallback are needed
Mandatory deliverables:
AX02 State Transition Table
AX04 Exception and Audit Matrix
BX02 Solution Trade-off Table
- If time management exists, supplement a
PB01 SLA Responsibility Table
markdown
### PB01 SLA Responsibility Table
| --- | --- | --- | --- | --- | --- | --- |
| Pending Acceptance | Frontline Customer Service | After ticket creation success | 15 minutes | Escalate to team leader on timeout | Customer Service/Team Leader | P0 |
| Pending Approval | Approver | After submitting approval | 4 hours | Remind on timeout, escalate to superior after 24 hours | Approver/Initiator | To be confirmed |
| Pending Processing | Processor | After approval passes | 2 working days | Reassign or escalate on timeout | Processor/Supervisor | Current assumption |
Common anti-patterns:
- Only states, no node responsible persons
- Only flowcharts, no SLA start/end calibers
- Mix return, rejection, cancellation, termination into one action
- Only implement approval passing, no timeout, reassignment, reminder, or manual fallback
PB02 Settlement / Reconciliation / Invoice Playbook
Trigger signals:
- Settlement sheet, bill, reconciliation sheet, accounts receivable/payable, invoicing, red冲, void, tax amount, write-off, payment term
- Amount caliber, document association, financial review, reconciliation differences, invoice flow
Mandatory questions:
- Where does the amount come from, who is the source of truth, how is the amount caliber defined
- What are the rules for settlement cycle, payment term, billing, locking accounts, write-off, void, red冲
- Whether reconciliation is item-by-item, summary, or difference reconciliation, how to attribute and handle differences
- Whether invoice is application, review, issuance, delivery, sign-off, or only result registration
- Whether amount fields can be modified, and whether modification affects historical documents or audits
Mandatory deliverables:
BX04 Master Data and System Boundary
AX02 State Transition Table
- If accounting caliber is involved, supplement a
PB02 Amount Caliber and Document Relationship Table
markdown
### PB02 Amount Caliber and Document Relationship Table
| --- | --- | --- | --- | --- | --- | --- | --- |
| Settlement Sheet | settlementAmount | Final payable amount | Settlement System | No | Reconciliation Sheet/Invoice | Differences require manual review | P0 |
| Reconciliation Sheet | reconAmount | Reconciliation summary amount | Reconciliation Service | No | Settlement Sheet | Differences generate reconciliation exceptions | Current assumption |
| Invoice Application | invoiceAmount | Applied invoicing amount | Financial Back-office | Editable before review | Settlement Sheet | Over-issuance needs to be blocked | To be confirmed |
Common anti-patterns:
- Pages are built, but amount caliber is not defined
- Settlement, reconciliation, and invoice lines have no relationship model
- Boundaries between void, red冲, write-off, reissuance are unclear
- Allow manual modification of amounts, but no audit and impact explanation
PB03 Account / Organization / Permission Playbook
Trigger signals:
- Account, member, organization, department, position, role, permission, data permission, tenant administrator, SSO, invitation, disable
- Personnel management, organizational structure, separation of duties, unauthorized access control, account lifecycle
Mandatory questions:
- What do organization, department, position, role represent, who inherits from whom
- What is the account lifecycle model: invitation, activation, freeze, disable, resignation recovery, or others
- Whether permissions take effect by role, position, department, data scope, or field scope
- Whether special identities such as tenant administrator, super admin, auditor, read-only role exist
- Whether SSO, LDAP, third-party identity sources, or cross-tenant account strategies are needed
Mandatory deliverables:
BX03 Multi-tenant / Version / Activation Model
- If organizational relationships are complex, supplement a
PB03 Organization Inheritance and Authorization Boundary Table
markdown
### PB03 Organization Inheritance and Authorization Boundary Table
| --- | --- | --- | --- | --- | --- |
| Department Permission | Department-level basic menu permission | Yes | No | Superior overrides subordinate | P0 |
| Position Permission | Position responsibility permission package | No | Yes | Position permission and role take union | Current assumption |
| Data Permission | Data scope by department/self/all | Yes | Yes | Nearest minimal permission takes precedence | To be confirmed |
| Field Permission | Sensitive field view and edit permission | No | No | Super admin exception | P0 |
Common anti-patterns:
- Only role permissions, no data permissions
- Mix organizational structure and permission structure together
- Disable accounts without revoking permissions or handling in-transit tasks
- Only hide sensitive fields on the frontend, no product rules and audit calibers
PB04 Configuration Center / Release / Rollback Playbook
Trigger signals:
- Configuration center, rule engine, release, grayscale, activation, rollback, version, draft, approval release, environment differences
- Parameter configuration, strategy configuration, switch control, template configuration, operation rules
Mandatory questions:
- What is the configuration item granularity, does it take effect by tenant, environment, business line, or object
- Whether activation method is immediate, scheduled, grayscale, or post-approval release
- What is the version model, whether draft, historical version, comparison, rollback are supported
- How to handle configuration conflicts, what are the priority and override order
- How to handle release failure, rollback, dependency validation, and misoperation protection
Mandatory deliverables:
BX02 Solution Trade-off Table
AX02 State Transition Table
AX06 Legacy System Transformation and Release Strategy
- If configuration is complex, supplement a
PB04 Configuration Activation and Override Order Table
markdown
### PB04 Configuration Activation and Override Order Table
| --- | --- | --- | --- | --- | --- |
| Global Default Configuration | All tenants | 1 | Takes effect after release | Roll back to previous version | P0 |
| Tenant-level Configuration | Single tenant | 2 | Overrides global after release | Tenant-level rollback | Current assumption |
| Activity-level Temporary Configuration | Single activity/short-term | 3 | Scheduled activation/deactivation | Expires automatically | To be confirmed |
Common anti-patterns:
- Make configuration center a regular form with "submit and take effect immediately"
- No version, comparison, rollback, or dependency validation
- Override order between global and tenant configurations is unclear
- Only build pages, no release process and failure fallback
Playbook Usage Rules
- When hitting a playbook, at least explicitly mark in this round's output:
- If requirements hit multiple playbooks at the same time, first select the main playbook according to main flow object, then treat other playbooks as supplementary constraints
- Playbooks are not decorative chapters; after hitting, must affect question rounds, deliverable selection, page prompts, and gate judgment
- If the user's provided requirements clearly belong to one of the four categories above, but the output does not reflect key questions, key deliverables, or anti-pattern checks of the corresponding playbook, it is considered incomplete
B-end Enhanced Deliverables
When hitting corresponding scenarios, in addition to standard product solutions/page inventories/prompts, supplement the following back-office native deliverables. If complete output cannot be achieved in the current round, must at least explicitly record it as a to-be-confirmed item, do not skip silently.
- : Applicable to scenarios with multi-role, multi-tenant, sensitive data, field-level visibility, or dangerous operations. At least includes
Role / Position / Resource Object / Action / Data Scope / Field Scope / Desensitization Rule / Secondary Confirmation or Approval Requirement / Audit Requirement
.
AX02 State Transition Table
: Applicable to requirements with lifecycle states such as approval, ticket, release, disposal, configuration activation. At least includes Current State / Trigger Action / Executing Role / Precondition / Post State / Side Effect / Notification Recipient / Whether Retractable or Compensable
.
- : Applicable to requirements with complex objects, cross-page shared fields, or strong binding with interfaces/import templates. At least includes
Field Name / Meaning / Type / Source / Required / Default Value / Validation / Enumeration / Visibility/Linkage Rule / Desensitization/Editing Rule
.
AX04 Exception and Audit Matrix
: Applicable to scenarios such as operation disposal, manual fallback, dangerous operations, compliance trails, or fault rollback. At least includes Exception Scenario / User-visible Prompt / System Record / Audit Log / Remedial Action / Whether to Notify / Whether Retryable
.
AX05 Batch / Import/Export / Asynchronous Task Specification
: Applicable to batch changes, large table export, file import, long-duration tasks. At least includes Trigger Method / Scale Limit / Pre-validation / Partial Success Strategy / Failure Details / Progress Feedback / Result Receipt / Idempotency and Retry / Permission Requirement
.
AX06 Legacy System Transformation and Release Strategy
: Applicable to old system replacement, rule reconstruction, field revision, platform migration. At least includes Current Problem / To-Be Difference / Data Migration / Permission Migration / Compatibility Period / Grayscale Scope / Rollback Plan / Training or Operation Switch Requirements
.
Back-office enhanced deliverables do not need to be output fixedly. Select the minimal set according to the hit scenario:
- When hitting multi-role / sensitive fields / data permissions, at least output , and if necessary
- When hitting approval / ticket / release / lifecycle, at least output
- When hitting operation disposal / high-risk actions / compliance requirements, at least output
- When hitting batch processing / import/export / long-duration tasks, at least output
- When hitting old system transformation / smooth migration / launch switch, at least output
B-end Enhanced Deliverable Templates
The following templates can be directly written into conversations, Markdown deliverables, PRD appendices, or
. If information is not yet confirmed, mark with
,
,
, do not leave blank columns pretending to have converged.
AX01 Permission Matrix Template
Applicable occasions:
- Multi-role, multi-position, multi-tenant
- Data scope isolation exists
- Field desensitization, field read-only exists
- Dangerous operations, approval, or double review requirements exist
markdown
### AX01 Permission Matrix
| --- | --- | --- | --- | --- | --- | --- | --- | --- |
| Super Administrator | Account | View/Add/Edit/Disable | Full | All fields | No desensitization | Secondary confirmation required for disabling | Record operator, time, before/after values | P0 |
| Operation Specialist | Ticket | View/Process | Own team | Visible except mobile number | Last four digits of mobile number visible | Reason required for reassignment | Record processing action and reason | Current assumption |
| Financial Reviewer | Settlement Sheet | View/Review | Own tenant | Amount fields read-only, invoice fields visible | Bank account desensitized | Secondary confirmation required for approval pass | Audit logs retained for 180 days | To be confirmed |
Minimum requirements:
- Each key role covers at least one core resource object
- Dangerous operations must specify secondary confirmation, approval, or double review requirements
- When sensitive information is involved, must specify desensitization caliber, not just "partially visible"
AX02 State Transition Table Template
Applicable occasions:
- Approval workflow, ticket workflow, release workflow, disposal workflow
- Any object has 3 or more business states
- State changes trigger notifications, audits, callbacks, or side effects
markdown
### AX02 State Transition Table
| --- | --- | --- | --- | --- | --- | --- | --- | --- |
| Draft | Submit for Review | Creator | Required fields complete | Pending Review | Generate submission record | Reviewer | Retractable, returns to draft after withdrawal | P0 |
| Pending Review | Approve | Reviewer | Review comment not empty | Activated | Write activation time, release version | Creator/Subscriber | Not retractable, can go through disable process | Current assumption |
| Pending Review | Reject | Reviewer | Rejection reason required | Rejected | Record rejection reason | Creator | Not applicable | P0 |
| Activated | Disable | Administrator | No unfinished associated tasks | Disabled | Write disable log, trigger cache invalidation | Operation Leader | Restorable, returns to activated after restoration | To be confirmed |
Minimum requirements:
- Each business state has at least an entry path and an exit path
- Specify side effects, do not only write "update state"
- If state is irreversible, must explicitly specify compensation or alternative process
AX03 Field Dictionary Template
Applicable occasions:
- Complex objects, many cross-page reused fields
- Pages, interfaces, import templates share the same set of fields
- Enumeration, linkage, visibility, desensitization, or read-only control exists
markdown
### AX03 Field Dictionary
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| tenantId | Tenant ID | string | System injected | Yes | Current logged-in tenant | Cannot be empty | `t_1001` | Read-only after creation | No desensitization, cannot edit | P0 |
| status | State | enum | System calculated/manual operation | Yes | `draft` | Must be a valid state value | `draft/pending/active/disabled` | Changes with process | No desensitization, read-only for some roles | Need to align with AX02 |
| ownerMobile | Owner Mobile Number | string | Manual input | No | Empty | 11-digit mobile number | `138****1234` | Only displayed when owner type = internal employee | Default desensitized, administrator can view plaintext | To be confirmed |
| effectiveTime | Activation Time | datetime | Manual selection | No | Immediate activation | Cannot be earlier than current time | `2026-07-16 18:00` | Required when activation method = scheduled activation | No desensitization, editable before activation | P1 |
Minimum requirements:
- Key fields must explain the source: manual input, system calculation, or external synchronization
- Enumeration fields must list value ranges
- Fields strongly coupled with permissions, states, import templates must have remarks referencing
AX04 Exception and Audit Matrix Template
Applicable occasions:
- High-risk operations, manual disposal, compliance trails
- Remediation, notification, or retry is needed after failure
- User prompts and system logs cannot be mixed
markdown
### AX04 Exception and Audit Matrix
| --- | --- | --- | --- | --- | --- | --- | --- |
| Import File Format Error | Prompt template error and provide download entry | Record task failure reason | Record importer, file name, failure reason | Allow re-upload | Import initiator | Yes | P0 |
| Partial Failure in Batch Disable | Prompt "3 succeeded, 2 failed" and allow downloading details | Save success/failure details | Record disable result of each object | Support retry by failure details | Operator/Administrator | Yes | Current assumption |
| Callback to Downstream Failed After Approval | Prompt "Approval succeeded, downstream synchronization failed, system will retry later" | Record callback response code | Record reviewer and callback failure context | System automatically retries, manual intervention after exceeding limit | Operation/Business Leader | Yes | Need to align with platform strategy |
| Super Administrator Deletes High-risk Configuration | Pop up confirmation box and require reason input | Record deletion request | Record before/after values, reason, approval link | Direct recovery not supported, need to go through rollback process | Security Administrator | No | To be confirmed |
Minimum requirements:
- Distinguish between user prompts, system records, and audit trails
- High-risk operations must specify whether retryable or recoverable
- When notification is involved, must specify notification recipient, not just "notify relevant personnel"
AX05 Batch / Import/Export / Asynchronous Task Specification Template
Applicable occasions:
- File import, batch changes, large table export
- Task execution exceeds frontend synchronous waiting time
- Partial success, failure details, result receipt exist
markdown
### AX05 Batch / Import/Export / Asynchronous Task Specification
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| Batch Import Accounts | Upload Excel | 5000 rows per time | Template validation, required validation, uniqueness pre-check | Asynchronous task | Separate statistics for success and failure | Support downloading failed rows | Task Center + In-site Message | Import result file retained for 7 days | File fingerprint deduplication, manual retry allowed | Account Management - Import | P0 |
| Batch Disable Products | List selection + batch operation | 200 items per time | Validate whether state can be disabled | Synchronous + backend compensation | Display success/failure count | Table pop-up shows failure reason | Frontend immediate feedback | Operation completion toast + audit record | Failed items can be retried a second time | Product Operation - Disable | Current assumption |
| Export Reconciliation Sheet | Click export after filtering | 100,000 items per tenant | Permission validation, export field validation | Asynchronous task | Not applicable | Provide failure reason when failed | Task Center | Download link valid for 24 hours | Reuse same task within 10 minutes for same conditions | Reconciliation Sheet - Export | To be confirmed |
Minimum requirements:
- Specify synchronous or asynchronous
- Specify failure detail carrier method
- Tasks exceeding frontend immediate processing capability must provide progress feedback and result receipt
AX06 Legacy System Transformation and Release Strategy Template
Applicable occasions:
- Old system upgrade, coexistence of old and new rules
- Involves historical data migration, permission migration, traffic switching, or grayscale
- Requires rollback, training, operation switch
markdown
### AX06 Legacy System Transformation and Release Strategy
| --- | --- | --- | --- | --- | --- | --- | --- | --- |
| Data Migration | Old table lacks tenant dimension | New model isolates by tenant | Script supplements tenant fields then migrates in batches | Dirty data causes migration failure | Grayscale 10% tenants first | Retain old table read capability for 7 days | Backend/DBA | P0 |
| Permission Migration | Old system only has role permissions | New system includes data permissions and field desensitization | First map roles, then supplement data scope | Role mapping error causes unauthorized access | Only enable for pilot tenants | One-click rollback to old permission configuration | Backend/Security/Product | Current assumption |
| Function Switch | Old back-office still editable | New back-office takes over editing capability | First set old back-office to read-only, then switch to new back-office writing | Double-write inconsistency | Switch by tenant | Close new entry, restore old entry | Frontend/Backend/Operation | To be confirmed |
| Training and Operation | Offline word-of-mouth | Provide operation manual and announcement | Training before launch + Q&A group after launch | Frontline unfamiliarity causes misoperation | Train pilot team first | Extend dual-system parallel period | Operation/Customer Service/Training | P1 |
Minimum requirements:
- At least cover 4 categories: data migration, permission migration, switch method, rollback plan
- If no legacy system, explicitly write
- Grayscale and rollback cannot only write "supported", must specify scope and actions
Back-office Coverage Matrix Template
When requirements are complex and output has more than one page, in addition to "Scenario -> Function -> Rule -> Page -> Prompt", it is recommended to supplement a back-office enhanced coverage matrix to ensure key governance structures are not separated from pages.
markdown
### Back-office Enhanced Coverage Matrix
| --- | --- | --- | --- | --- | --- | --- |
| S01 | F01 | R01/R03 | P01/P02 | PR01/PR02 | AX01/AX03 | List and edit pages are constrained by permission matrix and field dictionary |
| S02 | F02 | R04/R05 | P03 | PR03 | AX02/AX04 | Approval workflow pages are constrained by state transition and exception matrix |
| S03 | F03 | R06 | P04 | PR04 | AX05 | Import task page relies on batch task specification |
Usage requirements:
- Each P0 scenario maps to at least one back-office enhanced deliverable or is explicitly marked as
- If page prompts are constrained by AX deliverables, the corresponding AX ID must be traceable in the matrix
Generate Product Solution
Before generating page inventory, output a concise solution chapter:
- Product Positioning: One-sentence explanation
- MVP Objective: What the first usable version must satisfy
- User Roles: Roles, positions, tenant/organization relationships, and permission differences
- Business Value: Core pain points, current alternative methods, why do it now, P0 reasons
- Core Flow: Numbered flow from entry to completion, prioritize reflecting back-office operation links and responsibility handoffs
- Function Modules: Capabilities grouped by function ID
- Back-office Work Surfaces: How to allocate work surfaces such as lists, details, editing, configuration, approval, batch, import/export, audit
- Data Objects: Important entities with data IDs, key fields, uniqueness, ownership, and sources
- Business Rules: Constraints, validation, permissions, data permissions, and state transitions with rule IDs
- Industry Playbook Judgment: If hitting , explicitly state , main playbook, supplementary playbook, and which industry constraints the solution is subject to
- Solution Trade-offs: Explain key structural decisions and their recommended reasons
- Multi-tenant / Version / Activation Model: If relevant, explain how capabilities take effect by tenant, version, or configuration
- Master Data and System Boundary: If relevant, explain source of truth, synchronization direction, and conflict handling
- Back-office Enhanced Deliverables: Supplement permission matrix, state transition table, field dictionary, exception and audit matrix, batch specification, or migration strategy according to hit scenarios
- Success Metrics: Prioritize writing as back-office metrics such as efficiency, accuracy, SLA, exception rate, processing duration, operation cost
- Risks, Assumptions, Non-targets, and Open Questions: Only retain content that affects product decisions
Business rules must be specific enough to guide design and implementation. In complex products, classify by permissions, data permissions, validation, lifecycle/state, data visibility, audit/history, notification, SLA, failure recovery, conflict/idempotency, indicator/data caliber.
Generate Product PRD
When the user requests formal PRD, requirement documents, product documents, review materials, or online collaborative documents, generate product PRD based on confirmed content. Body structure can be found in
references/product-prd-template.md
.
Generation rules:
-
PRD body includes: document information, background and objectives, users and scenarios, core functional requirements, business rules, exception flows, page inventory, dependencies and risks, acceptance criteria, to-be-confirmed items/next steps.
-
When requirements hit back-office enhanced scenarios, PRD body or its appendix should explicitly reference corresponding back-office enhanced deliverables; at least explain whether these deliverables are confirmed and in what form they are delivered.
-
When requirements hit
, PRD body or its appendix should also explicitly reference key constraints or scenario tables of the corresponding playbook, such as SLA responsibility, amount caliber, organization inheritance boundary, configuration override order; cannot only write general function descriptions.
-
PRD body must not include: page-level prompts, HiUI handoff packages, machine plans, generation gate details.
-
If high-impact
still exists, PRD can only be marked as "Draft / To-be-confirmed Version / Review Draft", cannot be written as confirmed final version.
-
The first sentence of background prioritizes answering "why do it now"; objectives are prioritized to be written as "current value -> target value -> time range"; non-targets must be explicitly listed.
-
Function descriptions prioritize using "trigger condition -> processing logic -> output result"; acceptance criteria are written as much as possible as statements that can judge pass/fail.
-
When text and tables are not sufficient to clearly express product structure, supplement diagrams instead of continuing to pile up words; diagram types and consistency checks are executed according to
references/product-prd-template.md
and
references/delivery-modes.md
.
-
Output channel rules: First execute
,
onFeishuWriteFailure = fallbackToMarkdown
, and
messageReturnFormat = title + link_or_path + short_summary
according to
references/product-prd-template.md
.
-
If current delivery mode includes
and the host environment has collaborative document creation capabilities (e.g., Feishu), prioritize generating an online collaborative document and return the document title and link; if collaborative document writing fails, fallback to Markdown file and return path. Only inline PRD body in messages without producing documents is not considered completed.
-
If the user explicitly needs both PRD and downstream generation inputs, or current delivery mode is confirmed as
, produce both PRD and generation pack at the same time; otherwise, maintain the selected minimal delivery mode, do not expand automatically. The two must be displayed or stored separately, cannot be mixed into a single body.
Readiness Check
Proceed to page inventory and prompts only after the following content is confirmed or explicitly assumed:
- P0 user scenarios are listed.
- Main roles and permission differences are clear.
- Business value, P0 reasons, and recommended solution basis are explained, not just function lists.
- Core objects and lifecycle states are defined.
- Key business rules and exceptions are captured.
- Hit back-office enhanced deliverables are produced or explicitly marked as to-be-confirmed.
- If hitting B2B/SaaS/platformization scenarios, multi-tenant, version differences, feature activation, and master data boundaries are clear, or explicitly marked as to-be-confirmed.
- Entry and completion results are clear.
- User has selected or accepted target platform and output format.
If readiness is weak but user requests output, continue to produce, but must mark assumptions and risks. If output will be used downstream for page generation, do not pretend weak readiness as confirmed; must let user confirm generation inputs or explicitly authorize assumptions.
If high-impact
still exists, do not mark the result as
; can only continue confirmation, mark as assumption, or wait for user explicit authorization of assumptions.
Generate Page Inventory
Create a page inventory covering all P0 flows. Each row must include:
- Page ID
- Page Name
- Work Surface Type: page, modal, drawer, step flow, tab, detail panel, configuration panel, or embedded work surface
- Route or Location, if relevant
- Associated Scenario ID, Function ID, Rule ID, and Prompt ID
- User Objective
- Entry and Exit
- Core Modules
- Summary of Key Fields/Columns/Filters/Actions: at least explain what this page displays, edits, filters by, and what key actions can be performed
- Main Operations
- States to Design: default, empty, loading, error, permission restricted, success, and related boundary situations
- Dependencies or Required Data
- Associated Back-office Enhanced Deliverable ID, if relevant
- MVP Priority: P0, P1, P2
- When target platform is HiUI or management back-office/B2B, give HiUI page type recommendation: , , , , , , , , , , , or
When strict table structure is needed, use
references/output-templates.md
.
Do not split pages mechanically. Use new pages for independent navigation destinations, persistent URLs, responsibility boundaries, or long flows; use modal, drawer, detail panel, tab, or step flow for local tasks, confirmation, quick editing, progressive disclosure, or tightly coupled sub-flows.
Generate Global Context
Before page-level prompts, write a global context inherited by all pages:
- Product name, positioning, and platform
- Target users and role/permission model
- Navigation model and page hierarchy
- Core data objects and naming conventions
- Shared business rules and state definitions
- Shared UI / component constraints or design system
- Shared state, feedback mode, and copy tone
- Known assumptions and out-of-scope content
This prevents independently generated pages from drifting in terminology, fields, navigation, permissions, and visual systems.
Generate Page-level Prompts
For each page in the inventory, write a prompt that can be used by other AI to generate page designs, prototypes, or implementations. Each prompt needs to be usable independently while referencing the global context.
Each page prompt must include:
- Prompt ID, Page ID, Page Name, and associated scenario/function/rule ID
- Page purpose and target users
- User objective and completion standard for this page
- Layout structure and information hierarchy
- Module-level structure breakdown, cannot only write abstract module names; each module must explain position, responsibility, and carried information
- Details of fields/columns/filters/actions for each module: name, meaning, component or display method, required/read-only status, source or caliber, default value/empty value, validation/visibility/linkage conditions
- List-type pages must also provide filter area, indicator area, table columns, sorting/pagination, row operations, batch operations; form-type pages must also provide field grouping, control types, saving strategy, submission feedback; detail-type pages must also provide information partitions, status tags, timeline/record blocks, and jump relationships
- Provide sample data structures or field examples that can be directly consumed by downstream agents when helpful
- Main operations and secondary operations
- Interaction rules, validation rules, permission rules, and state changes
- If hitting , must explicitly bring in in-page constraints of the corresponding playbook in the prompt, such as SLA node responsibility, amount caliber and document relationship, organization inheritance and authorization boundary, configuration activation and override order; cannot only mention lightly in global context
- If page is constrained by permission matrix, state transition table, field dictionary, batch specification, or exception matrix, must explicitly reference its key constraints, rather than reimagining in page prompts
- Default, empty, loading, error, permission, success, and related boundary states
- Cross-page navigation and handoff behaviors
- Known visual or component system constraints
- Acceptance criteria
Avoid vague prompts like "make it beautiful" "modern dashboard" unless the user explicitly requests style exploration. Replace with specific layout, content, behavior, state, and acceptance requirements.
When these prompts will be used for downstream generation confirmation, must deliver complete text, not summary versions. If content is too long, can be written into independent deliverable files; but before confirmation, must provide complete file path and ensure users can directly view the full text.
If there are more than 3 important gaps in page prompts that will change layout, fields, validation, or operations, or main content is still only abstract module names without field/column/filter/action details, must return to continue confirmation or mark as to-be-confirmed version, cannot output as prompts directly usable for generation.
Generate HiUI Handoff Package
When users need HiUI page generation, page acceptance, or handoff to downstream HiUI page workflows (e.g.,
), add a concise handoff package after page inventory and prompts. Template can be found in
references/hiui-handoff-template.md
.
Handoff package must include:
- Product name, target platform, and recommended workflow level
- Page List: Page ID, Page Name, Route/Location, HiUI Page Type, Priority, Associated Scenario/Rule/Prompt ID, and states to design
- Reference to shared global context and component/design system constraints
- Associated back-office enhanced deliverables and their status: which are confirmed, which are to-be-confirmed, which are only advanced according to assumptions
- Data/mock assumptions, permission assumptions, and open risks that will affect generation or acceptance
- Recommended generation order, usually generate P0 list/detail/edit/core flow pages first
- Status of and ; if gaps still exist, must mark as or , cannot write as confirmed.
Interaction Mode
When User Wants to Continue Refinement
Use the cycle:
- Summarize current version and changes.
- Update , identify 1-3 highest-impact question groups.
- Propose option-based confirmation questions covering main decision branches, or give recommended assumptions.
- Update scope, flow, traceability relationships, pages, and prompts based on user answers.
- Output lightweight confirmation progress, and decide to continue confirmation, output deliverables, wait for assumption authorization, or adjust scope.
The "update based on user answers" here is not a generalized statement; must explicitly reflect how the previous round's answer clears
, triggers playbook / AX / BX deliverables, or changes the next round's question direction.
When continuing refinement, default to advancing according to the phase order of the "unified main flow":
- Scenario Matching and Delivery Boundary
- Value / Objective / Role / P0
- Object / Field / Rule / State
- Governance Structure and Expert Judgment
- Page / Work Surface / Interaction / Acceptance
- Generation Input Confirmation or Delivery Output
Supplementary rules:
- If currently only outputting solutions, PRDs, or page inventories rather than entering page generation, downstream can end at non-generation exits of phase 5 or 6, do not force entry into .
- If hitting back-office enhanced scenarios, phase 4 automatically becomes a necessary phase, not "fill a matrix when free".
- If hitting , mandatory questions and structured deliverables of the corresponding playbook should be prioritized in phases 3-4, do not wait until page phase to supplement.
When User Wants to Output Immediately
Produce the first complete version based on assumptions. Clearly mark assumptions, and include "recommended next round confirmation". If the user wants PRD or review draft, maintain formal document tone, but explicitly distinguish "confirmed", "current assumption", "to-be-confirmed items".
If the next step of this result is page generation, HiUI generation, prototype generation, or UX acceptance, need to distinguish between
and
: the former can be used for direction discussion, but cannot enter generation input confirmation; the latter can only enter generation input confirmation after key pages pass field/column/filter/operation-level granularity verification.
If high-impact
that will change object model, fields, permissions, states, interactions, or key rules still exists, can only output "first version solution + to-be-confirmed points + recommended next round questions", cannot write these contents as converged final version.
When User Already Has PRD, Notes, or External Materials
Read materials, extract existing decisions, identify gaps, avoid repeating questions already existing in materials. Then output standardized results according to workflow.
Deliverable Strategy
Short outputs are answered directly in conversations. For long prompt packs, complete PRDs, or HiUI handoff packages, if users request reusable files, suggest or create separate deliverables.
Deliverable layering:
- : Only allows product-level chapters; must be placed in online collaborative document and return link if collaborative document capability exists, must be placed as independent Markdown document and return absolute path if no collaborative document capability.
- : Only used for user confirmation, must include page inventory, complete page-level prompts; if current delivery mode includes , additionally include link or path evidence of ; cannot only retain summary.
- : Only produced when hitting back-office enhanced scenarios, allows including permission matrix, state transition table, field dictionary, exception and audit matrix, batch specification, migration release strategy; can be independent file, or attached as a section of generation-pack.
- : Only allows global context, page inventory, page-level prompts, and HiUI handoff package; if hitting back-office enhanced scenarios, can attach or reference . must be split into two independent sections or files: and .
Human review prioritizes online collaborative documents or Markdown; only machine handoff or verification requires JSON. Allowed chapters and prohibited items for each mode are based on
references/delivery-modes.md
.
Quality Gate
Check product completeness before final output:
- Product objectives, target users, P0 scenarios, MVP boundaries, and non-targets are clear.
- Success metrics or acceptance signals are defined.
- Organization / tenant / department / position / data permission boundaries are clear, or explicitly marked as to-be-confirmed.
- Core objects, lifecycle states, permissions, validation, and exception paths are covered.
- If hitting multi-role, multi-state, batch, import/export, sensitive fields, external dependencies, or legacy transformation scenarios, corresponding back-office enhanced deliverables are produced or explicitly marked as to-be-confirmed.
- If it is B2B / management back-office / configuration governance requirements, object granularity, uniqueness/conflict rules, batch import or batch operations, log/audit strategy, work surface selection are at least confirmed or explicitly marked as assumption.
- Typical back-office work surfaces such as lists, details, editing, configuration, approval, batch, import/export, audit are clearly defined which are in P0 and which are not done.
- If multiple feasible solutions exist, recommended solution and reasons for not recommending other solutions are clear.
- If multi-tenant, version differences, master data ownership, system boundary, or customer differentiation issues exist, expert judgment is output rather than leaving the problem to downstream implementation guesses.
- If requirements clearly hit one of ticket/approval/SLA, settlement/reconciliation/invoice, account/organization/permission, configuration center/release/rollback, corresponding playbook is applied, rather than only performing general back-office requirement refinement.
- Each P0 scenario maps to at least one page, pop-up, or work surface.
- Each generated page, pop-up, drawer, or work surface can be traced to P0/P1 scenario, function, and prompt, or explicitly marked as supporting infrastructure.
- Each page has clear user objective, entry, exit, data dependency, and prompt ID.
- Page inventory used for generation includes at least summary of key fields/columns/filters/actions; page-level prompts include at least field list, column list, or equivalent control detail structure.
- CRUD operations include permissions, validation, feedback, failure states, and audit/history when reasonable.
- Business rules distinguish permissions, validation, lifecycle/state, data visibility, audit/history, notification/SLA, failure recovery, conflict/idempotency, and indicator definition when relevant.
- Search, filtering, sorting, pagination, import/export, batch operations, notification, and audit/history are only added when there is basis.
- Global context prevents cross-page naming, data, navigation, permissions, and component drift.
- Page inventory avoids excessive splitting, also avoids over-compressing different responsibilities into one work surface.
- Page prompts are specific enough that other agents do not need to repeat the same batch of product questions.
- If page prompts still use abstract module names instead of fields, columns, filters, or operation details, it is judged as incomplete, cannot be marked as .
- If next step is likely HiUI generation, HiUI handoff package includes routing, HiUI page type, state, priority, prompt ID, assumptions, and generation order.
- If next step is likely page generation, must include status; when unconfirmed, can only be , , or , cannot default to .
- If next step is likely page generation, must have at the same time: page inventory, complete page-level prompts; if current delivery mode includes PRD, additionally require PRD online document link or Markdown path. Any missing required item cannot be marked as confirmable for generation.
- If next step is likely page generation, and page is strongly constrained by permission matrix, state transition, field dictionary, or batch rules, these back-office enhanced deliverables must have entered or .
- If outputting formal PRD, body must include background, objectives, non-targets, functions, rules, exceptions, page inventory, risks, and acceptance criteria; cannot mix page-level prompts or HiUI handoff information.
- If outputting formal PRD, and requirements include complex flows, state transitions, cross-role collaboration, or multi-object relationships, body must also include corresponding diagrams, or explicitly explain why no diagrams are needed currently.
- Must explain confirmation completeness before final output; if exists, must be included in to-be-confirmed or assumptions, cannot hide.
- Open questions only retain decisions that will change scope, behavior, data, permissions, UI, or delivery method.
- If there are more than 3 key assumptions in the body that will change pages, fields, rules, or acceptance, must return to "to-be-confirmed version" rather than "converged solution".
- If currently running in an existing repository and requirements are strongly related to the project, must have utilized local high-signal context, or explicitly explain why not utilized.
Validation
Before final output, perform a self-check in the following order, and return to continue confirmation if necessary rather than forcing convergence:
- Delivery Mode Validation: Confirm current output matches one of , , , , , , or , no irrelevant chapters are added, and core content required by the mode is not missing.
- Confirmation Status Validation: Check consistency of , , , ; if high-impact still exists, cannot write the result as .
- Project Context Validation: If currently in an existing repository and requirements are strongly related to the project, confirm minimal repository evidence preload is completed, and
repoFindings / repoAssumptions / repoConflicts / repoGaps
are recorded; if local context is not used, must explain reasons such as "no valid evidence found", "irrelevant to current requirements", or "user explicitly requests ignoring implementation".
- Downstream Gate Validation: If next step is page generation, HiUI generation, prototype generation, or UX acceptance, confirm output includes generation input confirmation block, and , status is legal; when unconfirmed, can only write , , or .
- Expert Judgment Validation: Confirm business value, P0 reasons, recommended solution basis are explained; if hitting multi-tenant, version, or master data boundary issues, expert judgment is also provided. Cannot claim as expert advice if missing.
- Playbook Validation: If requirements clearly hit one of , confirm mandatory questions, mandatory deliverables, and anti-pattern checks of the corresponding playbook have been executed; return to continue confirmation if missing.
- PRD Manuscript Validation: If outputting or , confirm PRD body structure conforms to
references/product-prd-template.md
, and no page-level prompts, HiUI handoff packages, or machine execution details are mixed in; also confirm PRD has been placed in online collaborative document or Markdown file, and link or path is returned.
- Field Granularity Validation: If output includes , , , or generation-pack of , confirm key pages are refined to field/column/filter/operation level, not just abstract module names; if high-impact gaps still exist, return to continue confirmation or to-be-confirmed version.
- Back-office Enhanced Deliverable Validation: If hitting complex permissions, complex states, batch tasks, sensitive fields, external dependencies, or migration transformation scenarios, confirm required back-office enhanced deliverables are output, traceable, and granular enough to constrain pages and rules; return to continue confirmation if missing.
- Traceability Relationship Validation: When output includes page inventory, prompts, or HiUI handoff package, confirm each P0 scenario maps to at least function, rule, page, or work surface; each page can be traced to scenario, function, rule, prompt, or related back-office enhanced deliverable.
- Product Completeness Validation: Check against the above "Quality Gate" to see if objectives, roles, scope, rules, data, states, exceptions, pages, acceptance, and risks form a closed loop; supplement or explicitly mark as assumption/to-be-confirmed if missing.
Must return to continue confirmation, adjust scope, or mark as to-be-confirmed version, cannot continue to output as
, final PRD, or generation pack directly consumable by downstream if any of the following conditions are hit:
- still has or more high-impact unknowns that will change fields, permissions, states, page work surfaces, or acceptance criteria
- is not empty, and the conflict of "follow / extend / rebuild" has not been resolved through user confirmation
- Currently unable to explain business value, P0 basis, or recommended solution reasons, but tries to output "expert advice"
- Requirements clearly hit , but corresponding key questions, deliverables, or anti-pattern checks do not appear
- and have content cross-writing, such as PRD body mixing page prompts, HiUI handoff, or gate details
- Key pages in generation-pack still stay at abstract module names, no field/column/filter/operation-level refinement
- Hit back-office enhanced scenarios, but permission matrix, state transition, field dictionary, batch specification, or migration strategy are still missing, leading to unstable page and rule implementation
- Hit multi-tenant, version differences, master data ownership, or system boundary issues, but still do not answer source of truth, activation model, or conflict handling
- Next step is to enter page generation, HiUI generation, prototype generation, or UX acceptance, but
generationInputGate.status
is neither nor
Guardrails
- Must not directly package vague inputs as "complete PRD" or "confirmed solution"; must explicitly retain or when confirmation is insufficient.
- Must not skip high-impact questions to reduce follow-up; but also must not over-ask for low-value details, always keep at most 3 high-impact question groups per round.
- Before entering page generation, HiUI generation, prototype generation, or UX acceptance, must confirm generation inputs have been confirmed by users, or explicitly record as / .
- Must not automatically regard generalized expressions such as "Continue", "Start", "Generate pages" as assumption authorization; only when users explicitly confirm generation inputs or explicitly authorize assumptions can downstream generation be entered.
- Must not fabricate business rules, fields, permissions, state machines, interface constraints, or success metrics; mark as assumption, to-be-confirmed, or recommended solution when missing.
- Must not mechanically apply templates leading to output mismatched with back-office form; management back-office, operation back-office, configuration governance back-office, process approval back-office, data back-office, platform back-office must converge according to corresponding priorities.
- Must not drift this skill into a generalized C-end, content community, growth activity, or marketing strategy assistant; if input does not belong to B-end back-office, should explicitly prompt weak adaptation, rather than pretending to cover comprehensively.
- Must not use abstract module names such as "Operation Overview", "Exception List", "Product Table", "Configuration Area" to replace explanations of fields, columns, filters, operations, validation, and states; if unable to refine, must continue confirmation or mark as to-be-confirmed version.
- Validate consistency between page inventory, prompts, HiUI handoff, and gate status; do not output loose page prompts that cannot be consumed by downstream.
- Must not stuff page-level prompts, HiUI handoff information, machine plans, or gate details into formal PRD body; these contents can only be placed in independent generation packs or appendices.
- Must not only provide page prompt summaries when entering ; complete page-level prompts must be provided before confirmation. If current delivery mode includes PRD, also must not only provide PRD summary, must provide online document PRD link or Markdown path.
- Must not expand scope without explaining risks; when adding pages, flows, batch operations, import/export, notifications, audits, etc., must explain their business basis.
- Must not default to imagining tenant models, data permission models, organizational structures, or audit requirements; these are high-impact decisions for B-end back-office, must explicitly follow up or mark as assumption when missing.
- Must not only perform requirement induction, but also provide B-end expert judgment; when users want "create a solution / give advice / review direction", must supplement value judgment, solution trade-offs, and structural decisions.
- Must not mistake "can do" for "should do"; if requirements have obvious low value, high complexity, low frequency that can be covered manually, or excessive governance costs, must point it out rather than blindly recommending systematization.
- Must not still handle high-frequency industry scenarios in a purely general back-office way; ticket/approval/SLA, settlement/reconciliation/invoice, account/organization/permission, configuration center/release/rollback must prioritize applying corresponding playbooks.
- Must not only write page differences when encountering multi-tenant, version differences, customer customization, feature activation, but not write product models.
- Must not only write that interfaces exist when encountering cross-system objects, but not write source of truth, creation ownership, synchronization method, conflict handling, and deactivation strategy.
- Must not only write abstract descriptions for permission matrix, state transition, field dictionary, batch specification, migration strategy; must produce structured results when hitting relevant scenarios, or explicitly explain that it has not been completed currently.
- Must not ignore security constraints for high-risk back-office actions, such as secondary confirmation, reason filling, double review, revocation/compensation, audit trails, and notification strategies.
- Must not miss pre-validation, partial success, failure details, progress feedback, receipt download, idempotency, and retry in import/export or asynchronous task scenarios.
- Must not only write pages in platform/integration back-office scenarios, but not write data contracts, callbacks, synchronization methods, failure recovery, and consistency strategies.
- Must not ignore obvious anti-patterns, such as stuffing complex flows into drawers, approvals without responsible nodes, dashboards without calibers, imports without receipts, configurations without version rollback; must proactively point out when hitting.
- Must not ignore local high-signal knowledge sources that can significantly reduce ; if relevant documents, modules, interfaces, types, or mock exist in the current repository, must utilize first or explicitly explain why skipped.
- Must not write repository evidence as user confirmation; naming, implementations, and rules in the repository can only be used as candidate context, conflict signals, or reuse clues.
- Must not be anchored by existing implementations and conclude directly; if existing page patterns, field structures, or module boundaries in the repository may conflict with user goals, must explicitly propose a confirmation question of "follow existing status / open new capability / refactor and merge".
References
references/confirmation-model.md
: Confirmation depth, question debt, confirmation completeness, and option quality examples
references/output-templates.md
: Output tables, traceability matrices, global context, page prompts, and final checklists
references/product-prd-template.md
, references/delivery-modes.md
: Formal PRD structure, collaborative document/Markdown protocol, and delivery mode rules
references/hiui-handoff-template.md
, references/project-context-loading.md
, references/forward-test-examples.md
: HiUI handoff, project context preload, and minimal forward verification examples