create-yss-spec 1.1.0 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/package.json +1 -1
  2. package/template/.agents/skills/high-fidelity-html-prototype/SKILL.md +102 -0
  3. package/template/.codex/skills/high-fidelity-html-prototype/SKILL.md +102 -0
  4. package/template/.codex/skills/high-fidelity-html-prototype/agents/openai.yaml +5 -0
  5. package/template/.codex/skills/product-design-prototype/SKILL.md +2 -4
  6. package/template/.codex/skills/prototype-review/SKILL.md +7 -7
  7. package/template/.codex/skills/yss-design-system/SKILL.md +4 -2
  8. package/template/.codex/skills/yss-product-lifecycle/SKILL.md +10 -7
  9. package/template/.codex/skills/yss-product-lifecycle/references/artifact-checklist.md +1 -0
  10. package/template/.codex/skills/yss-product-lifecycle/references/stage-routing.md +1 -1
  11. package/template/.codex/skills/yss-ui/SKILL.md +4 -10
  12. package/template/.codex/skills/yss-ui/references/quick-recipes.md +1 -1
  13. package/template/AGENTS.md +9 -3
  14. package/template/CONTEXT.md +1 -0
  15. package/template/docs/api/templates/openapi-draft-review-checklist.md +3 -1
  16. package/template/docs/design/README.md +7 -4
  17. package/template/docs/design/prototypes/.gitkeep +1 -0
  18. package/template/docs/design/templates/interaction-spec-template.md +5 -3
  19. package/template/docs/design/templates/product-overview-design-template.md +34 -5
  20. package/template/docs/design/templates/prototype-review-checklist.md +3 -3
  21. package/template/docs/process/harness-executive-blueprint.md +5 -1
  22. package/template/docs/process/harness-process-tailoring.md +3 -3
  23. package/template/docs/process/harness-work-unit-map.md +1 -1
  24. package/template/docs/process/lifecycle-artifact-map.md +6 -5
  25. package/template/docs/templates/requirement-freeze-template.md +4 -3
  26. package/template/docs/user-guide/product-lifecycle-workflow.md +2 -2
  27. package/template/docs/user-guide/product-rd-lifecycle-best-practices.md +44 -19
  28. package/template.manifest.json +5 -0
  29. package/template/.codex/skills/component-story-prototype/SKILL.md +0 -55
  30. package/template/.codex/skills/component-story-prototype/agents/openai.yaml +0 -4
  31. package/template/.codex/skills/mock-api-prototype/SKILL.md +0 -48
  32. package/template/.codex/skills/mock-api-prototype/agents/openai.yaml +0 -4
  33. package/template/docs/discovery/yss-spec-cli-template-sync-discovery.md +0 -265
  34. package/template/docs/requirements/issues/yss-spec-cli-template-sync-slice-01-main-path.md +0 -69
  35. package/template/docs/requirements/issues/yss-spec-cli-template-sync-slice-02-safety-controls.md +0 -69
  36. package/template/docs/requirements/issues/yss-spec-cli-template-sync-slice-03-delivery-verification.md +0 -69
  37. package/template/docs/requirements/yss-spec-cli-template-sync-prd.md +0 -109
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-yss-spec",
3
- "version": "1.1.0",
3
+ "version": "1.1.2",
4
4
  "description": "Initialize a YSS spec project template repository",
5
5
  "files": [
6
6
  "bin",
@@ -0,0 +1,102 @@
1
+ ---
2
+ name: high-fidelity-html-prototype
3
+ description: Use after low-fidelity prototype review is approved and before PRD calibration, requirement freeze, OpenAPI Draft, or UI implementation when a user-facing YSS feature needs a high-fidelity interactive HTML prototype using Ant Design v6.
4
+ ---
5
+
6
+ # High Fidelity HTML Prototype
7
+
8
+ Use this skill only after `prototype-review` approves the low-fidelity prototype / interaction design. It turns reviewed product design into a high-fidelity, browser-runnable HTML artifact for business, UX, frontend, and API review.
9
+
10
+ ## Required Inputs
11
+
12
+ - PRD baseline: `docs/requirements/<feature>-prd.md`.
13
+ - Product overview design / functional architecture: `docs/design/<feature>-product-overview-design.md`.
14
+ - Interaction spec: `docs/design/<feature>-interaction-spec.md`.
15
+ - State matrix: `docs/design/<feature>-state-matrix.md`.
16
+ - Approved low-fidelity prototype review: `docs/design/<feature>-prototype-review.md` or equivalent issue comment.
17
+ - Project design system: `docs/design/design.md` and `docs/design/tokens/*`.
18
+
19
+ If low-fidelity `prototype-review` is blocked or missing, stop and return to `product-design-prototype` / `prototype-review`.
20
+
21
+ ## Ant Design Official Agent Baseline
22
+
23
+ Use the official Ant Design agent guidance as the implementation baseline:
24
+
25
+ - Read or reference `https://ant.design/docs/react/for-agents` when the task starts.
26
+ - Use `@ant-design/cli` before choosing unfamiliar components, props, tokens, or migration-sensitive APIs.
27
+ - Prefer direct CLI subcommands because `--help` may fail in some Node environments while subcommands still work.
28
+
29
+ Recommended commands:
30
+
31
+ ```bash
32
+ npm view antd version
33
+ npm view @ant-design/cli version
34
+ npx -y @ant-design/cli@6.5.0 info Button
35
+ npx -y @ant-design/cli@6.5.0 token Button
36
+ npx -y @ant-design/cli@6.5.0 demo Select basic
37
+ npx -y @ant-design/cli@6.5.0 changelog 5.0.0 6.5.0 Table
38
+ ```
39
+
40
+ Use the latest verified v6.x version instead of `6.5.0` when npm reports a newer v6 release. Record the exact version and any queried components in the output.
41
+
42
+ ## Core Rules
43
+
44
+ - Output is HTML: `docs/design/prototypes/<feature>/index.html`.
45
+ - The prototype must use Ant Design v6. Before generating or updating code, verify the current v6 package with `npm view antd version` and `npm view @ant-design/cli version`. If the latest version is not v6.x, pin the newest available v6.x version and record the choice.
46
+ - Use React >= 18, `antd@6.x`, and `@ant-design/icons@6.x` for interactive prototypes.
47
+ - Prefer Ant Design components and tokens over hand-built controls: `Layout`, `Menu`, `Breadcrumb`, `Button`, `Input`, `Select`, `Table`, `Form`, `Tabs`, `Steps`, `Drawer`, `Modal`, `Alert`, `Tooltip`, `Tag`, `Badge`, `DatePicker`, `Upload`, `Pagination`, `Empty`, `Spin`, `Result`.
48
+ - Do not create extra data-service or fixture artifacts. Use embedded sample data inside the HTML/JS for visual and interaction demonstration only.
49
+ - Mark the file clearly as `PROTOTYPE ONLY - NOT PRODUCTION CODE`.
50
+ - Do not treat the HTML prototype as a stable frontend implementation, generated-client contract, or OpenAPI source of truth. It informs PRD calibration and OpenAPI Draft.
51
+
52
+ ## Interaction Coverage
53
+
54
+ The HTML prototype must cover, or explicitly mark not applicable:
55
+
56
+ - Primary page navigation and page-to-page return path.
57
+ - Main task completion flow.
58
+ - Search / filter / sort / pagination behavior.
59
+ - Form input, validation, submit, cancel, dirty-form leave prompt.
60
+ - Drawer / modal / confirmation interactions.
61
+ - loading, empty, error, readonly, disabled, no-permission, conflict, success states.
62
+ - Permission behavior: hidden vs disabled vs rejected action.
63
+ - Field-level and page-level error placement.
64
+ - Responsive behavior for at least desktop, tablet, and narrow mobile viewport.
65
+
66
+ ## Verification
67
+
68
+ Run a local browser verification before calling the artifact ready:
69
+
70
+ - Open `docs/design/prototypes/<feature>/index.html` or run the dev server if the prototype needs one.
71
+ - Check that the page renders nonblank.
72
+ - Exercise the main flow and at least one failure / permission / conflict state.
73
+ - Check at least one desktop and one mobile viewport.
74
+ - Record verification evidence in the response or in the related review / issue.
75
+
76
+ ## Output Contract
77
+
78
+ ```markdown
79
+ ### 当前阶段
80
+ High-fidelity HTML prototype
81
+
82
+ ### 输入资产
83
+ - <PRD / product overview / interaction spec / state matrix / prototype review>
84
+
85
+ ### 高保真产物
86
+ - `docs/design/prototypes/<feature>/index.html`
87
+
88
+ ### Ant Design v6 依据
89
+ - <antd version, @ant-design/cli version, official docs checked, CLI component/token/demo queries>
90
+
91
+ ### 覆盖范围
92
+ - <pages, flows, states, permissions, data dependencies>
93
+
94
+ ### 验证证据
95
+ - <render command or file open path, viewport checks, interaction checks>
96
+
97
+ ### 是否可进入 PRD 校准 / API 影响分析
98
+ - <yes/no; list blocking gaps>
99
+
100
+ ### 下一步
101
+ - <PRD calibration / return to high-fidelity prototype / return to product-design-prototype>
102
+ ```
@@ -0,0 +1,102 @@
1
+ ---
2
+ name: high-fidelity-html-prototype
3
+ description: Use after low-fidelity prototype review is approved and before PRD calibration, requirement freeze, OpenAPI Draft, or UI implementation when a user-facing YSS feature needs a high-fidelity interactive HTML prototype using Ant Design v6.
4
+ ---
5
+
6
+ # High Fidelity HTML Prototype
7
+
8
+ Use this skill only after `prototype-review` approves the low-fidelity prototype / interaction design. It turns reviewed product design into a high-fidelity, browser-runnable HTML artifact for business, UX, frontend, and API review.
9
+
10
+ ## Required Inputs
11
+
12
+ - PRD baseline: `docs/requirements/<feature>-prd.md`.
13
+ - Product overview design / functional architecture: `docs/design/<feature>-product-overview-design.md`.
14
+ - Interaction spec: `docs/design/<feature>-interaction-spec.md`.
15
+ - State matrix: `docs/design/<feature>-state-matrix.md`.
16
+ - Approved low-fidelity prototype review: `docs/design/<feature>-prototype-review.md` or equivalent issue comment.
17
+ - Project design system: `docs/design/design.md` and `docs/design/tokens/*`.
18
+
19
+ If low-fidelity `prototype-review` is blocked or missing, stop and return to `product-design-prototype` / `prototype-review`.
20
+
21
+ ## Ant Design Official Agent Baseline
22
+
23
+ Use the official Ant Design agent guidance as the implementation baseline:
24
+
25
+ - Read or reference `https://ant.design/docs/react/for-agents` when the task starts.
26
+ - Use `@ant-design/cli` before choosing unfamiliar components, props, tokens, or migration-sensitive APIs.
27
+ - Prefer direct CLI subcommands because `--help` may fail in some Node environments while subcommands still work.
28
+
29
+ Recommended commands:
30
+
31
+ ```bash
32
+ npm view antd version
33
+ npm view @ant-design/cli version
34
+ npx -y @ant-design/cli@6.5.0 info Button
35
+ npx -y @ant-design/cli@6.5.0 token Button
36
+ npx -y @ant-design/cli@6.5.0 demo Select basic
37
+ npx -y @ant-design/cli@6.5.0 changelog 5.0.0 6.5.0 Table
38
+ ```
39
+
40
+ Use the latest verified v6.x version instead of `6.5.0` when npm reports a newer v6 release. Record the exact version and any queried components in the output.
41
+
42
+ ## Core Rules
43
+
44
+ - Output is HTML: `docs/design/prototypes/<feature>/index.html`.
45
+ - The prototype must use Ant Design v6. Before generating or updating code, verify the current v6 package with `npm view antd version` and `npm view @ant-design/cli version`. If the latest version is not v6.x, pin the newest available v6.x version and record the choice.
46
+ - Use React >= 18, `antd@6.x`, and `@ant-design/icons@6.x` for interactive prototypes.
47
+ - Prefer Ant Design components and tokens over hand-built controls: `Layout`, `Menu`, `Breadcrumb`, `Button`, `Input`, `Select`, `Table`, `Form`, `Tabs`, `Steps`, `Drawer`, `Modal`, `Alert`, `Tooltip`, `Tag`, `Badge`, `DatePicker`, `Upload`, `Pagination`, `Empty`, `Spin`, `Result`.
48
+ - Do not create extra data-service or fixture artifacts. Use embedded sample data inside the HTML/JS for visual and interaction demonstration only.
49
+ - Mark the file clearly as `PROTOTYPE ONLY - NOT PRODUCTION CODE`.
50
+ - Do not treat the HTML prototype as a stable frontend implementation, generated-client contract, or OpenAPI source of truth. It informs PRD calibration and OpenAPI Draft.
51
+
52
+ ## Interaction Coverage
53
+
54
+ The HTML prototype must cover, or explicitly mark not applicable:
55
+
56
+ - Primary page navigation and page-to-page return path.
57
+ - Main task completion flow.
58
+ - Search / filter / sort / pagination behavior.
59
+ - Form input, validation, submit, cancel, dirty-form leave prompt.
60
+ - Drawer / modal / confirmation interactions.
61
+ - loading, empty, error, readonly, disabled, no-permission, conflict, success states.
62
+ - Permission behavior: hidden vs disabled vs rejected action.
63
+ - Field-level and page-level error placement.
64
+ - Responsive behavior for at least desktop, tablet, and narrow mobile viewport.
65
+
66
+ ## Verification
67
+
68
+ Run a local browser verification before calling the artifact ready:
69
+
70
+ - Open `docs/design/prototypes/<feature>/index.html` or run the dev server if the prototype needs one.
71
+ - Check that the page renders nonblank.
72
+ - Exercise the main flow and at least one failure / permission / conflict state.
73
+ - Check at least one desktop and one mobile viewport.
74
+ - Record verification evidence in the response or in the related review / issue.
75
+
76
+ ## Output Contract
77
+
78
+ ```markdown
79
+ ### 当前阶段
80
+ High-fidelity HTML prototype
81
+
82
+ ### 输入资产
83
+ - <PRD / product overview / interaction spec / state matrix / prototype review>
84
+
85
+ ### 高保真产物
86
+ - `docs/design/prototypes/<feature>/index.html`
87
+
88
+ ### Ant Design v6 依据
89
+ - <antd version, @ant-design/cli version, official docs checked, CLI component/token/demo queries>
90
+
91
+ ### 覆盖范围
92
+ - <pages, flows, states, permissions, data dependencies>
93
+
94
+ ### 验证证据
95
+ - <render command or file open path, viewport checks, interaction checks>
96
+
97
+ ### 是否可进入 PRD 校准 / API 影响分析
98
+ - <yes/no; list blocking gaps>
99
+
100
+ ### 下一步
101
+ - <PRD calibration / return to high-fidelity prototype / return to product-design-prototype>
102
+ ```
@@ -0,0 +1,5 @@
1
+ version: 1
2
+ interface:
3
+ display_name: "High Fidelity HTML Prototype"
4
+ short_description: "Ant Design v6 interactive HTML prototype gate"
5
+ default_prompt: "Use $high-fidelity-html-prototype to create an Ant Design v6 high-fidelity interactive HTML prototype after low-fidelity prototype review."
@@ -25,7 +25,7 @@ If no PRD baseline exists, route back to `yss-product-lifecycle` / `grill-with-d
25
25
  5. Write the OpenAPI implication list: fields, filters, actions, errors, permissions, pagination, optimistic/concurrency states, and audit/version data.
26
26
  6. For every primary page action, add an action-to-contract row: page/component, action label, `actionKey`, endpoint or explicit non-goal, request fields, response shape, permission behavior, state transition, idempotency/concurrency rule, and error codes.
27
27
  7. For every P0 requirement containing verbs such as manage, maintain, configure, create, update, archive, retry, cancel, publish, export, or create draft, confirm the interaction spec either names the API implication or records that the capability is intentionally out of scope.
28
- 8. Hand off to `prototype-review`. Do not freeze/calibrate the PRD or enter OpenAPI Draft for UI work until prototype review has no blocking findings.
28
+ 8. Hand off to `prototype-review`. After low-fidelity review is approved, hand off to `high-fidelity-html-prototype`. Do not freeze/calibrate the PRD or enter OpenAPI Draft for UI work until the Ant Design v6 high-fidelity HTML prototype exists and has no blocking findings.
29
29
 
30
30
  ## Tool Routing
31
31
 
@@ -33,8 +33,6 @@ If no PRD baseline exists, route back to `yss-product-lifecycle` / `grill-with-d
33
33
  |---|---|
34
34
  | Low-fidelity page or flow sketch | `wireframe-prototype` |
35
35
  | Figma work or existing Figma file | `figma` / `figma-use` |
36
- | Engineering state prototype | `component-story-prototype` |
37
- | API not frozen but interactions need data | `mock-api-prototype` |
38
36
  | YSS implementation constraints | `yss-router`, then `yss-ui`, `yss-formily`, `yss-page-module-development` as needed |
39
37
 
40
38
  ## Output Contract
@@ -67,7 +65,7 @@ Product design / prototype / interaction design
67
65
  - <yes/no; include whether PRD calibration is needed first>
68
66
 
69
67
  ### 下一步
70
- - <prototype-review or routing back to PRD/design>
68
+ - <prototype-review / high-fidelity-html-prototype / routing back to PRD/design>
71
69
  ```
72
70
 
73
71
  ## Data Modeling Example
@@ -1,11 +1,11 @@
1
1
  ---
2
2
  name: prototype-review
3
- description: Use when reviewing UI design, wireframes, prototype links, interaction specs, or state matrices before PRD calibration, OpenAPI Draft, vertical slicing, or implementation.
3
+ description: Use when reviewing low-fidelity UI design, wireframes, prototype links, interaction specs, or state matrices before high-fidelity HTML prototype work, PRD calibration, OpenAPI Draft, vertical slicing, or implementation.
4
4
  ---
5
5
 
6
6
  # Prototype Review
7
7
 
8
- Use this skill as the gate between product design/prototype work and PRD calibration / OpenAPI Draft. The review is fail-closed: if the design cannot drive calibrated requirements, API, frontend acceptance, and slices, send it back to product design.
8
+ Use this skill as the low-fidelity gate between product design/prototype work and high-fidelity HTML prototype work. The review is fail-closed: if the design cannot drive calibrated requirements, API, frontend acceptance, and slices, send it back to product design.
9
9
 
10
10
  ## Required Inputs
11
11
 
@@ -27,13 +27,13 @@ Use this skill as the gate between product design/prototype work and PRD calibra
27
27
  | Action contract coverage | Every primary page action has an `actionKey`, endpoint or explicit non-goal, permission behavior, state transition, idempotency/concurrency rule, and error codes |
28
28
  | P0 contract coverage | Every P0 requirement with manage/maintain/configure/create/update/archive/retry/cancel/publish/export/create-draft semantics is mapped to an API implication or an explicit non-goal |
29
29
  | Rule/source coverage | Validation, approval, coverage, and publish gates state where rules come from, who can configure them, whether they are fixed, and how blocker/warning decisions are represented |
30
- | Frontend acceptance | A frontend engineer can tell which components, stories, mock data, and E2E paths are needed |
30
+ | Frontend acceptance | A frontend engineer can tell which components, visible states, data dependencies, and E2E paths are needed |
31
31
 
32
32
  ## Decision Rules
33
33
 
34
- - If a feature has UI impact and lacks page map, user flow, prototype/wireframe, or state matrix, block PRD calibration and OpenAPI Draft.
34
+ - If a feature has UI impact and lacks page map, user flow, prototype/wireframe, or state matrix, block high-fidelity HTML prototype work, PRD calibration, and OpenAPI Draft.
35
35
  - If the prototype hides business rules behind generic text such as "校验失败", require field-level errors and recovery behavior.
36
- - If a page shows a user action but the OpenAPI implication list lacks endpoint/non-goal mapping, block PRD calibration or OpenAPI Draft.
36
+ - If a page shows a user action but the OpenAPI implication list lacks endpoint/non-goal mapping, block high-fidelity HTML prototype work, PRD calibration, or OpenAPI Draft.
37
37
  - If PRD P0 scope says a user can manage or configure an object but the design only shows read-only data, block until the write path or scope downgrade is explicit.
38
38
  - If a state is intentionally out of scope, record why and who owns the decision.
39
39
  - If implementation dependencies are unclear, route to `yss-router` only after the prototype passes this review.
@@ -57,10 +57,10 @@ Use this skill as the gate between product design/prototype work and PRD calibra
57
57
  - <requirements gaps, acceptance criteria updates, non-goals, pending decisions>
58
58
 
59
59
  ### Frontend Prototype Readiness
60
- - <storybook/histoire stories, mock data, component states>
60
+ - <component states, data dependencies, frontend acceptance notes>
61
61
 
62
62
  ### Next Action
63
- - <PRD calibration / OpenAPI Draft / return to product-design-prototype / component-story-prototype / mock-api-prototype>
63
+ - <high-fidelity-html-prototype / return to product-design-prototype>
64
64
  ```
65
65
 
66
66
  Use `docs/design/templates/prototype-review-checklist.md` when writing a persistent review artifact.
@@ -70,12 +70,14 @@ description: YSS 产品设计系统与 Ant Design 企业级 UI 风格基线。
70
70
  | 场景 | 配合技能 |
71
71
  | --- | --- |
72
72
  | PRD 后做页面 / 原型 / 交互说明 | `product-design-prototype` |
73
- | 原型进入 PRD 校准 / OpenAPI Draft 前评审 | `prototype-review` |
73
+ | 低保真原型进入高保真前评审 | `prototype-review` |
74
+ | 低保真评审通过后的高保真 HTML 原型 | `high-fidelity-html-prototype` |
74
75
  | 低保真线框或流程图 | `wireframe-prototype` / `excalidraw-diagram-generator` |
75
76
  | 前端页面实现 | `yss-ui` / `yss-page-module-development` |
76
77
  | 表单 schema | `yss-formily` |
77
78
  | YTable / YTree / 高度自适应 | `yss-components` / `yss-use-table-height` / `yss-use-tree-height` |
78
- | API / Mock 联调 | `api-integration` / `mock-api-prototype` |
79
+ | Ant Design v6 组件 / token / demo 查询 | 官方 `@ant-design/cli` / `https://ant.design/docs/react/for-agents` |
80
+ | API 契约 / 接入 | `api-integration` / `yss-openapi` |
79
81
 
80
82
  ## 更新设计系统
81
83
 
@@ -63,7 +63,7 @@ Architecture artifacts are produced progressively. Do not try to finish every ar
63
63
  | Artifact | Lifecycle timing | Primary question | Typical outputs | Diagram support |
64
64
  |---|---|---|---|---|
65
65
  | Business architecture | Opportunity exploration / Discovery / product definition | Who gets value, in which workflow, and where the product boundary sits | user journey, value stream, role/ecosystem model, capability map | journey map, swimlane, capability map |
66
- | Product overview design / Functional architecture | PRD baseline / product design / PRD calibration | Which product capabilities, user flows, modules, pages, APIs, and data impacts support the MVP boundary | product overview, module map, feature list, priority, dependencies, state flow, open questions, PRD gaps | feature/module map, dependency graph, user flow, page map |
66
+ | Product overview design / Functional architecture | PRD baseline / product design / PRD calibration | Which product capabilities, user flows, modules, pages, low-fidelity prototypes, APIs, and data impacts support the MVP boundary | product overview, module map, feature list, priority, dependencies, low-fidelity wireframe, state flow, open questions, PRD gaps | feature/module map, dependency graph, user flow, page map, low-fidelity wireframe |
67
67
  | System overview design / System architecture | Engineering baseline / architecture review | How the product is built, deployed, integrated, operated, and safely evolved | C4/container view, service boundary, integration, deployment, NFR decisions, rollout/rollback decisions | system architecture, sequence, deployment, DFD |
68
68
  | Data architecture | Detailed design before persistence and repository work | How domain data, metadata, versions, lineage, and queries are modeled and stored | conceptual/logical/physical model, meta-model, versioning strategy, lineage/query/index strategy | ER, class, lineage graph, DFD |
69
69
 
@@ -90,7 +90,9 @@ Use `excalidraw-diagram-generator` when diagrams will make boundaries, flows, da
90
90
  - service boundary, state machine, integration, NFR, rollout, or rollback -> system / data architecture, engineering contract, and Design Review downstream gates;
91
91
  - persistence, metadata, versioning, lineage, query, or index -> system / data architecture, engineering contract, and Design Review downstream gates.
92
92
  4. Check whether required upstream artifacts exist.
93
- - Before formal vertical slicing, verify PRD, OpenAPI Freeze or no-API-impact record, architecture review as needed, and a clear issue destination.
93
+ - Before PRD calibration, product design, API impact analysis, OpenAPI Draft, requirement freeze, or formal vertical slicing, verify PRD baseline and product overview design / functional architecture exist. If the task does not enter the PRD lifecycle, record the not-applicable reason in the impact assessment.
94
+ - For UI work, before PRD calibration, API impact analysis, OpenAPI Draft, or requirement freeze, verify low-fidelity `prototype-review` is approved and `docs/design/prototypes/<feature>/index.html` exists as an Ant Design v6 high-fidelity HTML prototype.
95
+ - Before formal vertical slicing, verify PRD, product overview design / functional architecture, OpenAPI Freeze or no-API-impact record, architecture review as needed, and a clear issue destination.
94
96
  - For medium/high-risk API, permission, state-machine, data-model, cross-client, new-module, or safety-sensitive changes, verify an OpenSpec-style Spec Delta exists or record why it is not needed.
95
97
  - Before frontend/backend implementation, verify vertical slice scope, implementation repo/location, whether the impacted frontend/backend runtime projects already exist and are reusable, YSS skill routing, Build Architecture Checklist, test command, and review strategy.
96
98
  5. Output the next action:
@@ -139,10 +141,11 @@ Default routing:
139
141
 
140
142
  | Intent | Next skill / workflow |
141
143
  |---|---|
142
- | Start a new business product/module | intake -> opportunity and Discovery -> `competitive-intelligence` when market / competitor facts are needed -> `grill-with-docs` -> `to-prd` -> business / PRD / functional architecture -> product design and requirement freeze when UI exists |
144
+ | Start a new business product/module | intake -> opportunity and Discovery -> `competitive-intelligence` when market / competitor facts are needed -> `grill-with-docs` -> `to-prd` -> product overview design / functional architecture -> product design and requirement freeze when UI exists |
143
145
  | Analyze competitors, substitute workflows, pricing, positioning, or market facts | `competitive-intelligence`; then feed stable findings into `grill-with-docs` and `to-prd` |
144
- | Design UI flow after PRD baseline | `product-design-prototype`; add `wireframe-prototype`, `component-story-prototype`, or `mock-api-prototype` only when needed |
145
- | Review prototype before PRD calibration | `prototype-review` |
146
+ | Design UI flow after PRD baseline | Verify product overview design / functional architecture first, then use `product-design-prototype`; add `wireframe-prototype` only when a low-fidelity page or flow sketch is needed |
147
+ | Review low-fidelity prototype before high-fidelity design | `prototype-review` |
148
+ | Build high-fidelity interactive HTML prototype | `high-fidelity-html-prototype` with Ant Design v6 after low-fidelity prototype review is approved |
146
149
  | Review contract draft / OpenAPI Draft inside architecture/design review | `yss-openapi-draft-review` |
147
150
  | Record behavior deltas for medium/high-risk changes | OpenSpec-style Spec Delta at `docs/specs/<feature>-spec-delta.md` using `docs/templates/spec-delta-template.md` |
148
151
  | Clarify architecture artifact timing or gaps | this skill plus `docs/process/lifecycle-artifact-map.md` and `references/artifact-checklist.md` |
@@ -202,10 +205,10 @@ When the user explicitly asks for a full delivery plan, include stage-by-stage t
202
205
 
203
206
  - Do not skip opportunity exploration for new product/module work; use `competitive-intelligence` when market/competitor facts are needed, or record why it is not needed.
204
207
  - Do not treat Discovery outputs as frozen downstream design. Discovery can provide product capability guidance and downstream impact signals, but PRD, functional architecture, OpenAPI, system architecture, and data architecture still require their own gates.
205
- - Do not start implementation before PRD is calibrated, required architecture artifacts are explicit, product design / prototype / interaction design exists and passes `prototype-review` when UI exists, OpenAPI Freeze decision, engineering baseline, design review, and vertical slice are clear.
208
+ - Do not start implementation before PRD is calibrated, product overview design / functional architecture exists, required architecture artifacts are explicit, product design / prototype / interaction design exists, low-fidelity `prototype-review` passes, high-fidelity Ant Design v6 HTML prototype exists when UI exists, OpenAPI Freeze decision, engineering baseline, design review, and vertical slice are clear.
206
209
  - Do not start implementation before deciding whether the impacted frontend/backend runtime projects already exist and can be reused. Missing or conflicting runtime projects must route back to implementation routing and scaffold initialization first.
207
210
  - Do not skip business architecture for new products unless the product boundary, users, ecosystem, and value stream are already captured elsewhere.
208
- - Do not skip functional architecture before PRD calibration when module boundaries, MVP priority, or cross-module dependencies are still unclear.
211
+ - Do not skip product overview design / functional architecture after PRD baseline. It is a required artifact before PRD calibration, product design / prototype / interaction design, API impact analysis, OpenAPI Draft, requirement freeze, or implementation. Only tasks that do not enter the PRD lifecycle may record a not-applicable reason in the impact assessment.
209
212
  - Do not skip system architecture when services, deployment, integrations, performance, security, reliability, or operations are affected.
210
213
  - Do not skip data architecture before persistence / repository work. For data modeling, metadata, versioning, or lineage products, treat it as mandatory before Design Review and OpenAPI Freeze.
211
214
  - Do not let Excalidraw diagrams invent requirements or architecture decisions; diagrams must point back to source artifacts and any findings must be written back to PRD, OpenAPI, ADR, or issues.
@@ -14,6 +14,7 @@ Use this checklist to decide whether the current request can move forward or mus
14
14
  | Functional architecture | `docs/architecture/<feature>-functional-architecture.md` or PRD/design section | Product capabilities, module boundaries, priority, dependencies, and MVP scope are clear |
15
15
  | Product overview design | `docs/design/<feature>-product-overview-design.md` | Pages, flows, states, permissions, API candidates, and PRD gaps are clear |
16
16
  | Prototype / interaction review | `docs/design/<feature>-prototype-review.md` or issue comment | UI paths, empty/error/loading states, permission states, and API backflow list are reviewed |
17
+ | High-fidelity HTML prototype | `docs/design/prototypes/<feature>/index.html` | Ant Design v6 interactive HTML prototype exists after low-fidelity review and before PRD calibration / API Draft |
17
18
  | API impact / OpenAPI Draft | `docs/api/specs/<feature>.yaml`, issue note, or API impact record | Request/response, wrappers, errors, pagination, permissions, concurrency, and contract test seams are reviewable |
18
19
  | OpenAPI Freeze | `docs/api/<feature>-openapi-freeze.md` or issue comment | Draft has been reviewed and marked stable for frontend/backend implementation |
19
20
  | Engineering baseline | `docs/architecture/<feature>-engineering-baseline-review.md` | YSS DDD module boundary, dependency direction, DTO/VO/CMD/Query conventions, and scaffold constraints are reviewed |
@@ -9,7 +9,7 @@ Use this reference after reading current repo context. It maps request shape to
9
9
  | 1. Intake / lifecycle triage | 新需求、继续需求、Bug、小调整、流程不清、缺失资产判断 | User request, `CONTEXT.md`, docs, issues, git state | stage decision, nearest trustworthy artifact, minimal skill list | route to earliest impacted stage |
10
10
  | 2. Opportunity and Discovery | 模糊想法、竞品/市场输入、用户痛点尚不清楚 | discovery docs, market/user facts, stakeholder notes | user, pain, why now, MVP, non-goals, success criteria, downstream impact | `competitive-intelligence` when market / competitor facts are needed, then `grill-with-docs` / PRD |
11
11
  | 3. Business / PRD / functional architecture | 需要明确用户故事、验收标准、功能边界、模块依赖 | discovery, `CONTEXT.md`, ADRs, existing PRD | PRD, business architecture, functional architecture, PRD review notes | product design or contract design |
12
- | 4. Product design and requirement freeze | 有 UI、页面、交互、状态矩阵、权限状态、空/错/加载态 | PRD, design system, existing UI, component docs | product overview design, interaction spec, state matrix, prototype review, requirement freeze | contract and architecture review |
12
+ | 4. Product design and requirement freeze | 有 UI、页面、交互、状态矩阵、权限状态、空/错/加载态、高保真体验 | PRD, design system, existing UI, component docs | product overview design, interaction spec, state matrix, prototype review, Ant Design v6 high-fidelity HTML prototype, requirement freeze | contract and architecture review |
13
13
  | 5. System / data architecture, engineering contract, and Design Review | 接口、DTO、错误结构、后端新服务、新模块、DDD 分层、服务边界、部署、集成、状态机、权限、NFR、持久化、元模型、版本、血缘 | calibrated requirements, design inputs, API impact decision, engineering impact decision | API impact record; contract sketch or reviewable OpenAPI Draft marked draft-for-review; OpenAPI Draft Review; engineering baseline review; system overview; data architecture when required; ADR candidates; Design Review result | contract freeze and Issue formalization |
14
14
  | 6. Contract freeze and Issue formalization | OpenAPI Freeze、无 API 影响记录、正式拆分垂直切片 | Design Review approval, contract draft / OpenAPI Draft, PRD/design/architecture artifacts | OpenAPI Freeze or no API impact record; GitHub/GitLab/local vertical slice Issues | vertical slices and TDD implementation |
15
15
  | 7. Vertical slices and TDD implementation | issue、切片、实现、review、清理简化 | frozen contract / no API impact, approved slice, implementation repo/location | implementation routing, YSS skill routing, tests, review, verification evidence | verification, release, and retrospective |
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: "yss-ui"
3
- description: "YSS UI 页面开发组件技能。涉及 YTable、YTree、YssFormily、useTableHeight、useTreeHeight、页面布局、Hook 抽离、API/Mock 联调、路由菜单约定时必须使用。组件技能可以参考 yss-components 与 yss-hooks 技能规范。"
3
+ description: "YSS UI 页面开发组件技能。涉及 YTable、YTree、YssFormily、useTableHeight、useTreeHeight、页面布局、Hook 抽离、API 契约接入、路由菜单约定时必须使用。组件技能可以参考 yss-components 与 yss-hooks 技能规范。"
4
4
  ---
5
5
 
6
6
  # YSS UI 页面与 Hook 一体化标准
@@ -197,19 +197,13 @@ const { loading, run: runPage } = useRequest(pageApi, {
197
197
  - 翻页仅更新 `page/pageSize`,保留筛选项
198
198
  - 导出、刷新等动作复用 `currentParams`
199
199
 
200
- ## 11. API 与 Mock 联调标准
201
-
202
- API 层:
200
+ ## 11. API 契约接入标准
203
201
 
204
202
  - 接口写在 `packages/src/api/*`
205
203
  - 复用 `mutator.ts`
206
204
  - 避免重复拼接 `/api`
207
-
208
- Mock 层:
209
-
210
- - 路由放 `packages/mock/api.ts`
211
- - 支持筛选和分页切片
212
- - 返回结构统一:`{ code, message, data: { list, total, page, pageSize } }`
205
+ - 请求 / 响应字段以冻结后的 OpenAPI 或明确的契约草案为准
206
+ - 未冻结契约不得作为稳定生成客户端或实现依据
213
207
 
214
208
  ## 12. 路由菜单标准
215
209
 
@@ -152,7 +152,7 @@ const nodeColumns = reactive<YTableColumn[]>([
152
152
 
153
153
  ---
154
154
 
155
- ## 模板 4:列表请求 + Mock 联调
155
+ ## 模板 4:列表请求 + API 接入
156
156
 
157
157
  ```ts
158
158
  const fetchData = async () => {
@@ -67,6 +67,10 @@ yss-product-lifecycle
67
67
  -> competitive-intelligence (需要竞品 / 市场事实时)
68
68
  -> grill-with-docs
69
69
  -> to-prd
70
+ -> product overview design / functional architecture
71
+ -> product-design-prototype
72
+ -> prototype-review
73
+ -> high-fidelity-html-prototype
70
74
  -> OpenAPI Draft
71
75
  -> OpenSpec-style Spec Delta (中高风险行为变化时)
72
76
  -> OpenAPI Freeze
@@ -126,9 +130,10 @@ Matt skills 与 YSS skills 产物正文默认使用中文,包括澄清记录
126
130
  - 任务开始前必须先参考 `docs/process/harness-process-tailoring.md` 判断小改动 / 中等变更 / 新模块或高风险变更;裁剪只能减少不相关产物,不能裁剪安全人审、Issue 追踪、Git checkpoint 和 fresh verification。
127
131
  - 新功能或较大改动必须先用 `grill-with-docs` 澄清需求,再用 `to-prd` 形成 PRD,并在 PRD、实施计划或 Issue 中引用澄清记录。
128
132
  - PRD 基线阶段必须同步明确功能架构:功能域、模块边界、优先级、MVP / 非目标范围和模块依赖;不清晰时不得进入 PRD 校准。
133
+ - 只要进入 PRD 初稿 / 需求基线流程,产品总体设计 / 功能架构就是必要产物,默认路径为 `docs/design/<feature>-product-overview-design.md`,且必须包含低保真原型 / 页面草图。不得直接从 PRD 初稿进入页面 / 原型 / 交互设计、OpenAPI Draft、PRD 校准、需求冻结或实现;不进入 PRD 生命周期的小文案、低风险 Bug 或局部配置变更,必须在影响面评估中说明不适用原因。
129
134
  - 涉及页面设计、原型评审、UI 实现、组件选型、主题 token、颜色排版间距或 Ant Design / YSS UI 风格一致性的任务,必须先用 `yss-design-system` 作为设计系统基线;详细规范引用 `docs/design/design-system.md`。
130
- - 有用户界面的功能在 PRD 初稿后必须先引用 `yss-design-system`,再用 `product-design-prototype` 产出页面、原型、交互状态、PRD 回填项和 OpenAPI 反推清单,并通过 `prototype-review` 后才能进入 PRD 校准 / 需求冻结和 UI 驱动的 OpenAPI Draft。
131
- - 任何 API 契约变更必须先在 `docs/api/specs/*.yaml` 形成 Draft;有 UI 的功能不得只基于 PRD 反推 OpenAPI,必须结合产品总体设计、页面/原型/交互说明、状态矩阵和 `prototype-review` 结论,经工程基线(如适用)、系统 / 数据架构和设计审查后 Freeze,再实现前后端和测试。
135
+ - 有用户界面的功能在 PRD 初稿和产品总体设计 / 功能架构后必须先引用 `yss-design-system`,再用 `product-design-prototype` 产出页面、原型、交互状态、PRD 回填项和 OpenAPI 反推清单;低保真 `prototype-review` 通过后,必须新增 `high-fidelity-html-prototype` 产物,默认路径为 `docs/design/prototypes/<feature>/index.html`,且必须使用 Ant Design v6,之后才能进入 PRD 校准 / 需求冻结和 UI 驱动的 OpenAPI Draft。
136
+ - 任何 API 契约变更必须先在 `docs/api/specs/*.yaml` 形成 Draft;OpenAPI 不得只基于 PRD 反推,必须结合产品总体设计 / 功能架构;有 UI 的功能还必须结合页面/原型/交互说明、状态矩阵、`prototype-review` 结论和 Ant Design v6 高保真 HTML 原型,经工程基线(如适用)、系统 / 数据架构和设计审查后 Freeze,再实现前后端和测试。
132
137
  - API、权限、状态机、数据模型、跨端、新模块或高风险行为变化,应在 Design Review / OpenAPI Freeze 前补充 OpenSpec-style Spec Delta,落点为 `docs/specs/<feature>-spec-delta.md`;小文案、局部样式、配置微调和低风险 Bug 默认不需要。Spec Delta 只记录行为差异、验收场景和测试映射,不恢复 OpenSpec CLI、额外变更目录或状态机。
133
138
  - OpenAPI Freeze 后进入 `to-issues`,将冻结范围拆成端到端垂直切片 Issue;不得要求额外状态机或变更目录作为交付前置。
134
139
  - 涉及服务边界、部署、集成、性能、安全、可靠性或运维的变更,必须在设计审查前产出系统总体架构或等价设计记录。
@@ -252,7 +257,8 @@ Web Adapter
252
257
  |------|----------|------|--------|
253
258
  | PRD Review | PRD 完成后 | Product / Domain Review Agent | 用户、痛点、非目标范围、验收标准或安全红线不清 |
254
259
  | Grilling Review | 新功能 / 较大改动 PRD 前、Architecture Review 前 | Product / Domain / Architecture Agent with `grill-with-docs` | 用户价值、边界、状态、反例、架构约束、验收标准或安全红线经不起质询 |
255
- | Prototype Review | 有 UI 的 PRD 初稿完成后、PRD 校准前 | Product Design / UX / Frontend / API Agent | 页面清单、原型/线框、用户流、状态矩阵、PRD 回填项、权限状态或 OpenAPI 反推清单不清 |
260
+ | Prototype Review | 有 UI 的 PRD 初稿完成后、高保真 HTML 原型前 | Product Design / UX / Frontend / API Agent | 页面清单、原型/线框、用户流、状态矩阵、PRD 回填项、权限状态或 OpenAPI 反推清单不清 |
261
+ | High-fidelity HTML Prototype Review | 低保真原型评审通过后、PRD 校准前 | Product Design / UX / Frontend Agent | Ant Design v6 高保真 HTML 原型缺失、主流程/关键状态/响应式/权限体验不可审查 |
256
262
  | API Review | OpenAPI Draft 后 | API + Frontend + Backend Agent | schema、错误结构、分页、权限、契约测试不可落地 |
257
263
  | Architecture Review | 系统/数据架构后 | Architecture Review Agent | 业务/功能/系统/数据架构、DDD 分层、模块依赖、ADR、状态流或回滚策略不清 |
258
264
  | Plan Review | 垂直切片生成后 | Planning / Test Agent | 切片横向拆层、缺测试命令、缺回滚点或范围过大 |
@@ -12,6 +12,7 @@
12
12
  | PRD | 产品需求文档,用于记录用户问题、解决方案、用户故事、关键决策和测试 seam。 | 除非作为既有参考,否则不要写入具体实现文件路径。 |
13
13
  | OpenAPI Draft | review-only 的 OpenAPI 3.1 契约草案。 | Freeze 前不得作为前后端稳定实现契约。 |
14
14
  | OpenAPI Freeze | 已通过评审、可作为前后端实现和契约测试输入的 OpenAPI 3.1 契约。 | Freeze 后变更必须回到 API 影响分析和设计审查。 |
15
+ | 高保真 HTML 原型 | 低保真原型评审通过后,用于在浏览器中审查真实视觉密度、交互状态和页面流的产品设计资产。 | 不等同于生产前端实现,也不替代 OpenAPI、PRD 校准或垂直切片。 |
15
16
  | 垂直切片(Vertical Slice) | 贯穿所有受影响层、可独立验证的窄功能路径。 | 优先使用垂直切片,避免只按层拆分的横向任务。 |
16
17
  | ADR | 架构决策记录,用于沉淀难以回滚、非显而易见且存在真实取舍的技术决策。 | 常规实现选择不要写 ADR。 |
17
18
  | Fresh Verification | 完成前重新执行的验证证据,包括测试命令、契约校验、关键路径检查或人工审查结论。 | 不等同于“之前跑过”或实现者自述。 |
@@ -16,6 +16,7 @@
16
16
  | 原型 / 线框图 | | |
17
17
  | 状态矩阵 | `docs/design/<feature>-state-matrix.md` | |
18
18
  | 原型评审结论 | `docs/design/<feature>-prototype-review.md` | |
19
+ | 高保真 HTML 原型 | `docs/design/prototypes/<feature>/index.html` | 有 UI 时必需;必须使用 Ant Design v6 |
19
20
  | YSS 工程基线 | `.codex/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-parent/SKILL.md` | |
20
21
 
21
22
  ## P0 追踪矩阵
@@ -31,7 +32,8 @@
31
32
  | Draft 成熟度 | 明确当前仅为 review-only;实现、生成 client、契约测试固化均等待 OpenAPI Freeze | | |
32
33
  | OpenAPI 语法 | YAML、`$ref`、path 参数、lint 通过 | | |
33
34
  | P0 覆盖 | 每个 P0 需求有 endpoint/schema/error/test 或明确非目标 | | |
34
- | 交互输入完整 | Draft 已同时依据 PRD、产品总体设计、交互说明、原型/线框、状态矩阵和 prototype-review;缺任一项需说明无 UI 影响或返回上游补齐 | | |
35
+ | 产品总体设计完整 | Draft 已依据 PRD 和产品总体设计 / 功能架构;缺产品总体设计时返回上游补齐 | | |
36
+ | 交互输入完整 | 有 UI 时,Draft 已同时依据交互说明、原型/线框、状态矩阵、prototype-review 和 Ant Design v6 高保真 HTML 原型;无 UI 时需说明页面 / 交互资产不适用原因 | | |
35
37
  | DDD 契约边界 | Endpoint/schema 归属的限界上下文清楚;术语与 `CONTEXT.md` 和功能架构一致;契约不直接暴露内部聚合、Repository 或持久化表结构 | | |
36
38
  | 页面动作覆盖 | 每个按钮 / 抽屉 / 弹窗动作有 endpoint/non-goal、`actionKey`、权限和错误码 | | |
37
39
  | 对象生命周期 | manage/maintain/configure/create/update/archive/retry/cancel/publish/export/create-draft 语义闭环 | | |
@@ -7,7 +7,9 @@
7
7
  - `docs/design/design.md`:从本地 `Product-Design-System` 引入并整理的 Ant Design 企业级设计系统说明,后续页面设计、交互说明、原型评审和前端实现默认引用该文件。
8
8
  - `docs/design/tokens/`:随仓库保存的主题、亮色 / 暗色 / 紧凑 token 和 CSS 变量快照,后续实现不得依赖本机 Downloads 目录。
9
9
 
10
- 进入 API 影响分析 / 契约草案前,有用户界面的功能建议先沉淀:
10
+ 进入 PRD 初稿 / 需求基线流程后,必须先沉淀产品总体设计 / 功能架构,再进入页面 / 原型 / 交互设计、PRD 校准、API 影响分析 / 契约草案或实现。产品总体设计文档必须包含低保真原型 / 页面草图,用于验证页面结构、关键操作和主流程。无 UI 的功能也需要产品总体设计 / 功能架构来说明功能域、业务对象、模块边界、API / 数据影响和不适用的页面状态;只有不进入 PRD 生命周期的小改动可在影响面评估中记录不适用原因。
11
+
12
+ 进入 API 影响分析 / 契约草案前,有用户界面的功能还必须沉淀:
11
13
 
12
14
  - 页面清单和信息架构。
13
15
  - 用户主路径和异常路径。
@@ -16,12 +18,13 @@
16
18
  - 表单、表格、弹窗、抽屉、步骤流等交互说明。
17
19
  - loading、empty、error、readonly、disabled、no-permission、conflict 等状态矩阵。
18
20
  - 页面字段、筛选条件、操作按钮和权限规则。
21
+ - 低保真原型评审通过后的 Ant Design v6 高保真可交互 HTML 原型,默认路径为 `docs/design/prototypes/<feature>/index.html`。
19
22
 
20
23
  这些资产用于反推 API 影响、契约草案、OpenAPI 请求 / 响应字段、错误结构、分页筛选、权限状态和前端验收标准。
21
24
 
22
25
  推荐模板:
23
26
 
24
- - `docs/design/templates/product-overview-design-template.md`:PRD 初稿之后、页面 / 原型 / 交互设计之前,用于团队评审产品总体设计、功能架构、页面/API/数据影响和 PRD 回填项;它是原型设计输入,不是交互说明本身。
27
+ - `docs/design/templates/product-overview-design-template.md`:PRD 初稿之后、页面 / 原型 / 交互设计之前,用于团队评审产品总体设计、功能架构、低保真原型、页面/API/数据影响和 PRD 回填项;它是后续交互设计输入,不替代详细交互说明。
25
28
  - `docs/design/templates/interaction-spec-template.md`:页面、流程、交互、PRD 回填项和 OpenAPI 反推清单。
26
29
  - `docs/design/templates/state-matrix-template.md`:loading、empty、error、readonly、no-permission、conflict 等状态。
27
30
  - `docs/design/templates/prototype-review-checklist.md`:进入 PRD 校准 / API 影响分析 / 契约草案前的原型评审门禁。
@@ -31,15 +34,15 @@
31
34
  - `yss-design-system`:项目设计系统与 Ant Design 企业级 UI 风格基线;页面设计、原型评审、UI 实现和主题 token 落地时默认先引用。
32
35
  - `product-design-prototype`:基于 PRD 初稿和产品总体设计 / 功能架构,产出页面 / 原型 / 交互设计资产。
33
36
  - `wireframe-prototype`:低保真线框、Excalidraw、Figma、Penpot、tldraw、Axure 等原型链接沉淀。
34
- - `component-story-prototype`:Storybook / Histoire 工程态状态原型。
35
- - `mock-api-prototype`:MSW / mock fixtures 支撑未冻结 API 前的交互验证。
36
37
  - `prototype-review`:原型阶段评审门禁;未通过则不要进入 PRD 校准 / API 影响分析 / 契约草案。
38
+ - `high-fidelity-html-prototype`:低保真原型评审通过后,基于官方 `@ant-design/cli` / Ant Design For Agents 指引生成 Ant Design v6 高保真可交互 HTML 原型;未产出前不要进入 PRD 校准 / API 影响分析 / 契约草案。
37
39
  - `excalidraw-diagram-generator`:根据已形成的 Discovery、PRD、OpenAPI Draft、Architecture 或 系统 / 数据架构设计 生成 `.excalidraw` 图;用于说明和审查,不替代文本规格。
38
40
 
39
41
  推荐目录:
40
42
 
41
43
  ```text
42
44
  docs/design/diagrams/
45
+ docs/design/prototypes/
43
46
  docs/architecture/diagrams/
44
47
  docs/discovery/diagrams/
45
48
  ```
@@ -1,15 +1,17 @@
1
1
  # <功能名称> 交互说明模板
2
2
 
3
- > 适用时机:PRD 初稿之后、PRD 校准 / API 影响分析 / 契约草案之前;仅用于有用户界面影响的功能。
3
+ > 适用时机:PRD 初稿和产品总体设计 / 功能架构完成之后,PRD 校准 / API 影响分析 / 契约草案之前;仅用于有用户界面影响的功能。
4
4
 
5
5
  ## 1. 输入资产
6
6
 
7
7
  | 资产 | 路径 / 链接 | 说明 |
8
8
  |---|---|---|
9
9
  | PRD 初稿 | `docs/requirements/<feature>-prd.md` | 原型评审后需要回填和校准 |
10
+ | 产品总体设计 / 功能架构 | `docs/design/<feature>-product-overview-design.md` | 必需;缺失时先返回产品总体设计阶段 |
10
11
  | 领域术语 | `CONTEXT.md` | 核心名词、状态和业务规则 |
11
12
  | Discovery | `docs/discovery/<feature>-discovery.md` | 可选 |
12
13
  | 原型 / 线框图 | `<链接或导出图片路径>` | Excalidraw / Figma / Penpot / tldraw / Axure / Markdown |
14
+ | 高保真 HTML 原型 | `docs/design/prototypes/<feature>/index.html` | 低保真原型评审通过后补齐;必须使用 Ant Design v6 |
13
15
  | 现有 API 草案 | `docs/api/specs/<feature>.yaml` | 可选;通常应先完成产品设计和 PRD 校准 |
14
16
 
15
17
  ## 2. 页面地图
@@ -99,9 +101,9 @@
99
101
  ## 8. 前端验收
100
102
 
101
103
  - loading、empty、error、no-permission、readonly、conflict、dirty-form 状态已展示,或明确不适用。
102
- - 每个表格列、筛选条件、表单字段、抽屉、弹窗和按钮都有数据来源或 mock fixture。
104
+ - 每个表格列、筛选条件、表单字段、抽屉、弹窗和按钮都有数据来源或契约反推说明。
103
105
  - 设计可以拆成独立可演示的垂直切片。
104
- - 如果需要工程态原型,已规划 Storybook / Histoire 或静态 fixture。
106
+ - 低保真原型评审通过后,高保真 HTML 原型使用 Ant Design v6 覆盖主流程、关键状态和响应式断点。
105
107
 
106
108
  ## 9. 决策与未决问题
107
109