create-yss-spec 2.1.4 → 2.1.5
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.
- package/package.json +1 -1
- package/template/.agents/skills/high-fidelity-html-prototype/SKILL.md +16 -12
- package/template/.agents/skills/product-design-prototype/SKILL.md +6 -2
- package/template/.agents/skills/prototype-review/SKILL.md +6 -2
- package/template/.agents/skills/wireframe-prototype/SKILL.md +5 -1
- package/template/.agents/skills/yss-design-system/SKILL.md +5 -4
- package/template/.agents/skills/yss-product-lifecycle/SKILL.md +2 -2
- package/template/.agents/skills/yss-product-lifecycle/references/orchestration-contract.yaml +2 -2
- package/template/.agents/skills/yss-prototype-stage/SKILL.md +40 -0
- package/template/.agents/skills/yss-router/references/router-contract.yaml +5 -2
- package/template/.agents/skills/yss-router/references/slice-implementation-contract.md +3 -0
- package/template/.claude/skills/high-fidelity-html-prototype/SKILL.md +16 -12
- package/template/.claude/skills/product-design-prototype/SKILL.md +6 -2
- package/template/.claude/skills/prototype-review/SKILL.md +6 -2
- package/template/.claude/skills/wireframe-prototype/SKILL.md +5 -1
- package/template/.claude/skills/yss-design-system/SKILL.md +5 -4
- package/template/.claude/skills/yss-product-lifecycle/SKILL.md +2 -2
- package/template/.claude/skills/yss-product-lifecycle/references/orchestration-contract.yaml +2 -2
- package/template/.claude/skills/yss-prototype-stage/SKILL.md +40 -0
- package/template/.claude/skills/yss-router/references/router-contract.yaml +5 -2
- package/template/.claude/skills/yss-router/references/slice-implementation-contract.md +3 -0
- package/template/.codex/skills/high-fidelity-html-prototype/SKILL.md +16 -12
- package/template/.codex/skills/product-design-prototype/SKILL.md +6 -2
- package/template/.codex/skills/prototype-review/SKILL.md +6 -2
- package/template/.codex/skills/wireframe-prototype/SKILL.md +5 -1
- package/template/.codex/skills/yss-design-system/SKILL.md +5 -4
- package/template/.codex/skills/yss-product-lifecycle/SKILL.md +2 -2
- package/template/.codex/skills/yss-product-lifecycle/references/orchestration-contract.yaml +2 -2
- package/template/.codex/skills/yss-prototype-stage/SKILL.md +40 -0
- package/template/.codex/skills/yss-router/references/router-contract.yaml +5 -2
- package/template/.codex/skills/yss-router/references/slice-implementation-contract.md +3 -0
- package/template/.hermes/skills/high-fidelity-html-prototype/SKILL.md +16 -12
- package/template/.hermes/skills/product-design-prototype/SKILL.md +6 -2
- package/template/.hermes/skills/prototype-review/SKILL.md +6 -2
- package/template/.hermes/skills/wireframe-prototype/SKILL.md +5 -1
- package/template/.hermes/skills/yss-design-system/SKILL.md +5 -4
- package/template/.hermes/skills/yss-product-lifecycle/SKILL.md +2 -2
- package/template/.hermes/skills/yss-product-lifecycle/references/orchestration-contract.yaml +2 -2
- package/template/.hermes/skills/yss-prototype-stage/SKILL.md +40 -0
- package/template/.hermes/skills/yss-router/references/router-contract.yaml +5 -2
- package/template/.hermes/skills/yss-router/references/slice-implementation-contract.md +3 -0
- package/template/.pi/skills/high-fidelity-html-prototype/SKILL.md +16 -12
- package/template/.pi/skills/product-design-prototype/SKILL.md +6 -2
- package/template/.pi/skills/prototype-review/SKILL.md +6 -2
- package/template/.pi/skills/wireframe-prototype/SKILL.md +5 -1
- package/template/.pi/skills/yss-design-system/SKILL.md +5 -4
- package/template/.pi/skills/yss-product-lifecycle/SKILL.md +2 -2
- package/template/.pi/skills/yss-product-lifecycle/references/orchestration-contract.yaml +2 -2
- package/template/.pi/skills/yss-prototype-stage/SKILL.md +40 -0
- package/template/.pi/skills/yss-router/references/router-contract.yaml +5 -2
- package/template/.pi/skills/yss-router/references/slice-implementation-contract.md +3 -0
- package/template/.qoder/skills/high-fidelity-html-prototype/SKILL.md +16 -12
- package/template/.qoder/skills/product-design-prototype/SKILL.md +6 -2
- package/template/.qoder/skills/prototype-review/SKILL.md +6 -2
- package/template/.qoder/skills/wireframe-prototype/SKILL.md +5 -1
- package/template/.qoder/skills/yss-design-system/SKILL.md +5 -4
- package/template/.qoder/skills/yss-product-lifecycle/SKILL.md +2 -2
- package/template/.qoder/skills/yss-product-lifecycle/references/orchestration-contract.yaml +2 -2
- package/template/.qoder/skills/yss-prototype-stage/SKILL.md +40 -0
- package/template/.qoder/skills/yss-router/references/router-contract.yaml +5 -2
- package/template/.qoder/skills/yss-router/references/slice-implementation-contract.md +3 -0
- package/template/.trae/skills/high-fidelity-html-prototype/SKILL.md +16 -12
- package/template/.trae/skills/product-design-prototype/SKILL.md +6 -2
- package/template/.trae/skills/prototype-review/SKILL.md +6 -2
- package/template/.trae/skills/wireframe-prototype/SKILL.md +5 -1
- package/template/.trae/skills/yss-design-system/SKILL.md +5 -4
- package/template/.trae/skills/yss-product-lifecycle/SKILL.md +2 -2
- package/template/.trae/skills/yss-product-lifecycle/references/orchestration-contract.yaml +2 -2
- package/template/.trae/skills/yss-prototype-stage/SKILL.md +40 -0
- package/template/.trae/skills/yss-router/references/router-contract.yaml +5 -2
- package/template/.trae/skills/yss-router/references/slice-implementation-contract.md +3 -0
- package/template/AGENTS.md +1 -1
- package/template/docs/adr/0001-product-design-prototype-entrypoint.md +1 -1
- package/template/docs/design/README.md +4 -2
- package/template/docs/design/design.md +4 -0
- package/template/docs/design/templates/interaction-spec-template.md +3 -3
- package/template/docs/design/templates/prototype-confirmation-template.md +9 -6
- package/template/docs/design/templates/prototype-evidence-template.yaml +46 -0
- package/template/docs/design/templates/prototype-review-checklist.md +4 -4
- package/template/docs/process/lifecycle-artifact-map.md +10 -1
- package/template/docs/process/lifecycle-registry-baseline.json +10 -1
- package/template/docs/process/lifecycle-registry.yaml +35 -1
- package/template/scripts/test-export-yss-skills.rb +7 -5
- package/template/scripts/verify-lifecycle-scenarios +80 -7
- package/template/scripts/verify-prototype-backend-scaffold-scenarios +26 -4
- package/template/scripts/verify-yss-router-scenarios +9 -0
- package/template/skills-lock.json +22 -7
- package/template/yss-public-skills.json +2 -0
- package/template.snapshot.json +4 -4
|
@@ -5,6 +5,10 @@ description: Use after low-fidelity prototype review is approved and before Spec
|
|
|
5
5
|
|
|
6
6
|
# High Fidelity HTML Prototype
|
|
7
7
|
|
|
8
|
+
## 兼容入口
|
|
9
|
+
|
|
10
|
+
本 skill 仅服务旧名称或既有链接;新的高保真产出遵循 `yss-prototype-stage`,在 Codex 由 `product-design:index` 路由。它不批准生命周期门禁或实现就绪状态。
|
|
11
|
+
|
|
8
12
|
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
13
|
|
|
10
14
|
## Required Inputs
|
|
@@ -16,33 +20,33 @@ Use this skill only after `prototype-review` approves the low-fidelity prototype
|
|
|
16
20
|
- Approved low-fidelity prototype review: `docs/.scratch/<feature>/design/<feature>-prototype-review.md` or equivalent issue comment.
|
|
17
21
|
- Project design system: `docs/design/design.md` and `docs/design/tokens/*`.
|
|
18
22
|
|
|
19
|
-
If low-fidelity `prototype-review` is blocked or missing, stop and return to `
|
|
23
|
+
If low-fidelity `prototype-review` is blocked or missing, stop and return to `yss-prototype-stage` / `prototype-review`.
|
|
20
24
|
|
|
21
25
|
## Ant Design Official Agent Baseline
|
|
22
26
|
|
|
23
|
-
Use the official Ant Design agent guidance as the
|
|
27
|
+
Use the official Ant Design agent guidance as the fact baseline through `yss-prototype-stage`:
|
|
24
28
|
|
|
25
29
|
- Read or reference `https://ant.design/docs/react/for-agents` when the task starts.
|
|
26
30
|
- Use `@ant-design/cli` before choosing unfamiliar components, props, tokens, or migration-sensitive APIs.
|
|
27
31
|
- Prefer direct CLI subcommands because `--help` may fail in some Node environments while subcommands still work.
|
|
28
32
|
|
|
29
|
-
|
|
33
|
+
Record the installed CLI version and the target AntD version in `prototype-evidence.yaml`. Use `--format json`; pass the recorded target version to version-sensitive queries:
|
|
30
34
|
|
|
31
35
|
```bash
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
antd design.md --format json
|
|
37
|
+
antd info Button --version <target_antd_version> --format json
|
|
38
|
+
antd token Button --version <target_antd_version> --format json
|
|
39
|
+
antd demo Select basic --version <target_antd_version> --format json
|
|
40
|
+
antd semantic Button --version <target_antd_version> --format json
|
|
41
|
+
antd lint <prototype-path> --format json
|
|
38
42
|
```
|
|
39
43
|
|
|
40
|
-
Use the
|
|
44
|
+
Use the project-selected version when one exists; otherwise record the CLI's actual default version before making version-sensitive decisions. Record every queried component in the evidence manifest.
|
|
41
45
|
|
|
42
46
|
## Core Rules
|
|
43
47
|
|
|
44
48
|
- Output is HTML: `docs/.scratch/<feature>/design/prototypes/index.html`.
|
|
45
|
-
- The prototype must use Ant Design v6.
|
|
49
|
+
- The prototype must use the approved Ant Design v6 target. Obtain component facts from the official `antd` CLI and record the exact CLI/target versions; do not infer version-sensitive APIs from memory.
|
|
46
50
|
- Use React >= 18, `antd@6.x`, and `@ant-design/icons@6.x` for interactive prototypes.
|
|
47
51
|
- 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
52
|
- Do not create extra data-service or fixture artifacts. Use embedded sample data inside the HTML/JS for visual and interaction demonstration only.
|
|
@@ -71,7 +75,7 @@ Run a local browser verification before calling the artifact ready:
|
|
|
71
75
|
- Check that the page renders nonblank.
|
|
72
76
|
- Exercise the main flow and at least one failure / permission / conflict state.
|
|
73
77
|
- Check at least one desktop and one mobile viewport.
|
|
74
|
-
- Record verification evidence in
|
|
78
|
+
- Record verification evidence in `docs/.scratch/<feature>/verification/prototype-evidence.yaml` and link it from the review and confirmation record.
|
|
75
79
|
|
|
76
80
|
## Output Contract
|
|
77
81
|
|
|
@@ -5,7 +5,11 @@ description: Use when a Spec baseline or user story has UI impact and needs page
|
|
|
5
5
|
|
|
6
6
|
# Product Design Prototype
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
## 兼容入口
|
|
9
|
+
|
|
10
|
+
本 skill 仅服务旧名称或既有链接;它不是新的原型主入口。进入后先加载 `yss-prototype-stage`,并在 Codex 使用 `product-design:index` 产出设计资产。生命周期门禁仍由 `yss-product-lifecycle` 裁决。
|
|
11
|
+
|
|
12
|
+
其余内容只描述可复用的交互说明检查项,不能替代统一合同中的 AntD CLI、浏览器验证或用户确认。
|
|
9
13
|
|
|
10
14
|
## Required Inputs
|
|
11
15
|
|
|
@@ -25,7 +29,7 @@ If no Spec baseline exists, route back to `yss-product-lifecycle` / `grill-with-
|
|
|
25
29
|
5. Write the OpenAPI implication list: fields, filters, actions, errors, permissions, pagination, optimistic/concurrency states, and audit/version data.
|
|
26
30
|
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
31
|
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`. After
|
|
32
|
+
8. Hand off to `prototype-review`. After approval, return to `yss-prototype-stage` for `product-design:index` 高保真产出、AntD CLI 与浏览器验证;未形成确认记录前不得冻结/校准 Spec 或进入 OpenAPI Draft。
|
|
29
33
|
9. 交互原型应标注 semantic token 角色、single primary action、interaction feedback 和不可逆操作确认;若页面使用 Ant Design,主题密度或暗色策略必须使用 theme algorithm,并在关键文本上复核 accessibility contrast。
|
|
30
34
|
|
|
31
35
|
## Tool Routing
|
|
@@ -5,7 +5,7 @@ description: Use when reviewing low-fidelity UI design, wireframes, prototype li
|
|
|
5
5
|
|
|
6
6
|
# Prototype Review
|
|
7
7
|
|
|
8
|
-
Use this skill as the low-fidelity
|
|
8
|
+
Use this skill as the independent low-fidelity review in `yss-prototype-stage`. The review is fail-closed: if the design cannot drive calibrated requirements, API, frontend acceptance, and slices, send it back to product design. `yss-product-lifecycle` alone records the resulting `gate.prototype-reviewed` decision.
|
|
9
9
|
|
|
10
10
|
## Trigger Boundary
|
|
11
11
|
|
|
@@ -17,6 +17,7 @@ Run this independent gate only when UI changes affect a primary user flow, navig
|
|
|
17
17
|
- `docs/.scratch/<feature>/design/<feature>-interaction-spec.md` or prototype link.
|
|
18
18
|
- State matrix, preferably based on `docs/design/templates/state-matrix-template.md`.
|
|
19
19
|
- Existing OpenAPI Draft only if the review is checking alignment; do not require OpenAPI before product design.
|
|
20
|
+
- `docs/.scratch/<feature>/verification/prototype-evidence.yaml` may be created as a pending evidence record, but CLI/browser validation belongs to the following high-fidelity verification gate.
|
|
20
21
|
|
|
21
22
|
## Review Gates
|
|
22
23
|
|
|
@@ -63,8 +64,11 @@ Run this independent gate only when UI changes affect a primary user flow, navig
|
|
|
63
64
|
### Frontend Prototype Readiness
|
|
64
65
|
- <component states, data dependencies, frontend acceptance notes>
|
|
65
66
|
|
|
67
|
+
### Lifecycle Evidence
|
|
68
|
+
- <persistent review path; blockers; `gate.prototype-reviewed` candidate result>
|
|
69
|
+
|
|
66
70
|
### Next Action
|
|
67
|
-
- <
|
|
71
|
+
- <yss-prototype-stage / return to product design>
|
|
68
72
|
```
|
|
69
73
|
|
|
70
74
|
Use `docs/design/templates/prototype-review-checklist.md` when writing a persistent review artifact.
|
|
@@ -5,6 +5,10 @@ description: Use when low-fidelity product screens, user flows, whiteboards, Exc
|
|
|
5
5
|
|
|
6
6
|
# Wireframe Prototype
|
|
7
7
|
|
|
8
|
+
## 兼容入口
|
|
9
|
+
|
|
10
|
+
本 skill 仅服务旧名称或既有链接;新的低保真产出遵循 `yss-prototype-stage`,在 Codex 由 `product-design:index` 路由。它不批准产品设计门禁。
|
|
11
|
+
|
|
8
12
|
Use this skill for low-fidelity product decisions. It favors fast, inspectable artifacts over polished visuals.
|
|
9
13
|
|
|
10
14
|
## Choose The Medium
|
|
@@ -49,4 +53,4 @@ Then link or paste this into `docs/.scratch/<feature>/design/<feature>-interacti
|
|
|
49
53
|
|
|
50
54
|
## Handoff
|
|
51
55
|
|
|
52
|
-
After the wireframe is captured, return to `
|
|
56
|
+
After the wireframe is captured, return to `yss-prototype-stage` to fill the interaction spec, state matrix, API implications, and then run `prototype-review`.
|
|
@@ -13,6 +13,7 @@ description: Use when YSS 产品设计系统与 Ant Design 企业级 UI 风格
|
|
|
13
13
|
- 项目 token 快照:`docs/design/tokens/theme.json`、`docs/design/tokens/tokens.default.json`、`docs/design/tokens/tokens.dark.json`、`docs/design/tokens/tokens.compact.json`、`docs/design/tokens/variables.css`、`docs/design/tokens/variables.dark.css`。
|
|
14
14
|
- 本技能执行清单:`references/design-system.md`,用于 Agent 执行和评审,不替代 `docs/design/design.md`。
|
|
15
15
|
- 历史输入包:`/Users/zhudaoming/Downloads/Product-Design-System`,只用于追溯首次引入来源,不作为后续工程依赖。
|
|
16
|
+
- 原型阶段合同:`yss-prototype-stage`,用于统一跨 Agent 的原型资产、AntD 事实和浏览器验证证据。
|
|
16
17
|
|
|
17
18
|
如果只需要快速判断,先读本文件。若要写 UI 规范、实现页面、评审设计或调整 token,必须读项目内 `docs/design/design.md`;若要执行评审或实现检查,再读 `references/design-system.md`。
|
|
18
19
|
|
|
@@ -21,7 +22,7 @@ description: Use when YSS 产品设计系统与 Ant Design 企业级 UI 风格
|
|
|
21
22
|
1. 先判断任务阶段:设计系统引入 / 产品设计 / 原型评审 / 前端实现 / UI 改造 / 主题 token 落地。
|
|
22
23
|
2. 读取已有资产:`docs/design/design.md`、相关 Spec、交互说明、状态矩阵、OpenAPI Draft、现有页面代码。
|
|
23
24
|
3. 按设计系统基线约束输出或修改产物:颜色、排版、间距、圆角、动效、组件、状态、响应式。
|
|
24
|
-
4.
|
|
25
|
+
4. 若是产品设计阶段,先使用 `yss-prototype-stage`;Codex 以 `product-design:index` 为主入口,其他 Agent 必须交付等价合同资产和证据。
|
|
25
26
|
5. 若是前端实现阶段,配合 `yss-ui`、`yss-components`、`yss-formily`、`yss-page-module-development`,但本技能负责风格与体验一致性门禁。
|
|
26
27
|
6. 若发现现有设计系统文档不足,先更新 `docs/design/design.md`,再让实现或评审引用该文档。
|
|
27
28
|
|
|
@@ -76,10 +77,10 @@ description: Use when YSS 产品设计系统与 Ant Design 企业级 UI 风格
|
|
|
76
77
|
|
|
77
78
|
| 场景 | 配合技能 |
|
|
78
79
|
| --- | --- |
|
|
79
|
-
| Spec 后做页面 / 原型 / 交互说明 | `product-design
|
|
80
|
+
| Spec 后做页面 / 原型 / 交互说明 | `yss-prototype-stage` → `product-design:index` |
|
|
80
81
|
| 低保真原型进入高保真前评审 | `prototype-review` |
|
|
81
|
-
| 低保真评审通过后的高保真 HTML 原型 | `high-fidelity-html-prototype` |
|
|
82
|
-
| 低保真线框或流程图 | `wireframe-prototype` / `excalidraw-diagram-generator` |
|
|
82
|
+
| 低保真评审通过后的高保真 HTML 原型 | `yss-prototype-stage`;`high-fidelity-html-prototype` 仅兼容入口 |
|
|
83
|
+
| 低保真线框或流程图 | `product-design:index` 或 `wireframe-prototype` 兼容入口 / `excalidraw-diagram-generator` |
|
|
83
84
|
| 前端页面实现 | `yss-ui` / `yss-page-module-development` |
|
|
84
85
|
| 表单 schema | `yss-formily` |
|
|
85
86
|
| YTable / YTree / 高度自适应 | `yss-components` / `yss-use-table-height` / `yss-use-tree-height` |
|
|
@@ -41,7 +41,7 @@ YSS 仓库以本 skill 为直接入口,不机械嵌套调用 `ask-matt`。`ask
|
|
|
41
41
|
- YSS active 调用 `to-tickets` 时,新建垂直切片统一写为 `ready-for-human`;只有本编排器复算完整 `ready-for-agent` 公式后才能提升,Matt 的通用默认标签不得提前覆盖生命周期状态。
|
|
42
42
|
- `orchestrate`/`resume` 连续执行安全工作单元,直到人工门禁、真实阻塞、新授权、实现/发布裁决或专项失败。
|
|
43
43
|
- 进入实现后继续主控,通过 `yss-router`、`implement`、`tdd` 和 YSS 专项 skills 执行;独立审查和 fresh verification 后才能作完成判断。只有工作单元真实触碰当前用户、审计、加密或明确的权限业务行为时,才增加 `yss-userinfo`、`yss-audit-log`、`yss-security-algorithm` 等专项依赖。
|
|
44
|
-
- 原型确认 →
|
|
44
|
+
- 原型确认 → 后端脚手架:命中产品设计影响时,先按 `yss-prototype-stage` 形成交互说明、独立 Prototype Review、高保真 HTML、AntD CLI 与浏览器验证、用户确认;只有 `gate.prototype-reviewed`、`gate.prototype-verified` 和 `gate.user-confirmation` 均满足时,才能进入下游。若 backend `scaffold_status=required`,随后先完成工程基线,由 `yss-router` 编译脚手架受控生成工作单元合同,经生命周期编排器批准并持久化后,才使用 `yss-ddd-scaffold-generator` 生成后端骨架;随后由 `yss-backend-scaffold-parent` 校验并重新进入 `yss-router`,不得先写业务代码。
|
|
45
45
|
- 所有后续生成的后端代码都必须消费生命周期批准、已持久化且版本当前的 Slice Implementation Contract,绑定最小 YSS skill 闭包、允许写路径、证据文件和 YSS Skill Execution Result;没有这些证据时必须阻断。
|
|
46
46
|
- Harness 内承载运行时代码时,项目路径策略固定为 `apps/backend/<project>/` 和 `apps/frontend/<project>/`;`apps/backend/`、`apps/frontend/` 仅是项目容器,`app/backend/`、`app/frontend/` 及其子路径禁止生成。外部实现仓库不强制使用该目录,但必须登记真实项目根路径并写入合同。
|
|
47
47
|
- Setup readiness 每个任务只评估一次并在本轮缓存;只有 tracker、主远端、真实标签或配置变化时重查。
|
|
@@ -54,7 +54,7 @@ YSS 仓库以本 skill 为直接入口,不机械嵌套调用 `ask-matt`。`ask
|
|
|
54
54
|
- 在 Matt 阶段边界(phase boundary)先按 `Continue → /clear → /handoff → subagent → /compact` 判断上下文动作;只在 checkpoint 记录可选 `phase_boundary` 证据,不新增生命周期状态。
|
|
55
55
|
- `to-questionnaire` 进入结构化 `external-input-required` 暂停;回答回流后必须重新分类影响面并更新权威资产,不能直接恢复下游实现。
|
|
56
56
|
- `wait-what` 只重新解释当前结论,不改变阶段、门禁、Ticket 或 `ready-for-agent` 状态;`wizard` 只处理人工才能完成的步骤,默认临时使用,秘密值不得进入持久化输出。
|
|
57
|
-
- Matt `prototype` 是保留在 `prototype/<name>` 分支的单文件可分享 HTML 主来源;YSS 高保真 HTML 原型仍必须经过 Prototype Review、AntD CLI
|
|
57
|
+
- Matt `prototype` 是保留在 `prototype/<name>` 分支的单文件可分享 HTML 主来源;YSS 高保真 HTML 原型仍必须经过 Prototype Review、AntD CLI、浏览器验证和用户确认,两者不得互相替代。
|
|
58
58
|
- Matt skill 返回结果必须先归一化为 `Matt Skill Result`;`drift`、`new_impacts`、`violation`、`stale_candidates`、缺失证据或不完整结果不得推进为 `completed`。
|
|
59
59
|
|
|
60
60
|
### 原型完成后的后端脚手架与代码生成边界
|
|
@@ -151,7 +151,7 @@ backend_scaffold:
|
|
|
151
151
|
scaffold_statuses: [existing, required, initialized]
|
|
152
152
|
required_status: required
|
|
153
153
|
sequence:
|
|
154
|
-
after: [prototype_confirmation, engineering_baseline]
|
|
154
|
+
after: [prototype_review, prototype_verification, antd_cli_verification, browser_verification, prototype_confirmation, engineering_baseline]
|
|
155
155
|
before_generator: [yss-router-scaffold-contract, lifecycle-approve-scaffold-contract]
|
|
156
156
|
before: [business_code_generation, implement]
|
|
157
157
|
generator_skill: yss-ddd-scaffold-generator
|
|
@@ -360,7 +360,7 @@ prototype_modes:
|
|
|
360
360
|
replaces_yss_high_fidelity: false
|
|
361
361
|
yss_high_fidelity:
|
|
362
362
|
asset: ant_design_v6_html
|
|
363
|
-
required: [prototype_mode, prototype_review, antd_cli_verification, user_confirmation]
|
|
363
|
+
required: [prototype_mode, prototype_review, antd_cli_verification, browser_verification, prototype_evidence, user_confirmation]
|
|
364
364
|
purpose: product_design_review
|
|
365
365
|
replaces_matt_logic: false
|
|
366
366
|
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: yss-prototype-stage
|
|
3
|
+
description: Use when a YSS feature has product-design impact on a primary flow, navigation, state, recovery, permission experience, or UI-driven API contract and needs prototype assets before implementation readiness.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# YSS Prototype Stage
|
|
7
|
+
|
|
8
|
+
把产品设计影响收敛为跨 Agent 一致的产物、证据和生命周期回流合同。它不替代 `yss-product-lifecycle` 的门禁裁决,也不把原型当作生产前端代码。
|
|
9
|
+
|
|
10
|
+
## 进入条件与主入口
|
|
11
|
+
|
|
12
|
+
- 先由 `yss-product-lifecycle` 判断产品设计影响;无行为变化的孤立视觉修复记录 `not-applicable`,不创建空资产。
|
|
13
|
+
- Codex 的产出主入口是 `product-design:index`;其他 Agent 使用等价的产品设计能力,但必须产出本技能规定的相同资产和证据。能力或证据不能等价时,暂停并回到人工确认。
|
|
14
|
+
- 旧 `product-design-prototype`、`wireframe-prototype`、`high-fidelity-html-prototype` 仅为兼容入口;从它们进入时立即回到本合同。
|
|
15
|
+
|
|
16
|
+
## 资产与门禁顺序
|
|
17
|
+
|
|
18
|
+
1. 以 Spec、产品总体设计和 `docs/design/design.md` 形成交互说明、低保真页面/流程与状态矩阵。
|
|
19
|
+
2. 用 `prototype-review` 形成独立评审结论;未通过不得生成高保真或进入需求冻结。
|
|
20
|
+
3. 通过 `product-design:index` 产出 `docs/.scratch/<feature>/design/prototypes/index.html`。
|
|
21
|
+
4. 写入 `docs/.scratch/<feature>/verification/prototype-evidence.yaml`,完成 AntD CLI 与浏览器验证。
|
|
22
|
+
5. 用户确认后,才可校准 Spec、分析 API 影响或进入 Router readiness。
|
|
23
|
+
|
|
24
|
+
## 设计与 AntD 依据
|
|
25
|
+
|
|
26
|
+
优先级固定为:官方 `design.md` 的上游默认 → `docs/design/design.md` 与项目 token 的 `project_design` 项目覆盖 → 当前功能的语义组件映射。不得用上游默认覆盖项目 token。
|
|
27
|
+
|
|
28
|
+
使用官方 `antd` skill / CLI 查询事实,始终用 `--format json`,并记录实际 `antd`、CLI 和目标组件版本。至少保存 `antd design.md`、已选组件的 `info`/`demo`/`token`/`semantic` 查询和 `antd lint` 结果;目标版本存在时,将同一 `<target_antd_version>` 传给版本敏感查询,禁止在模板中固化某个 CLI 或组件版本。
|
|
29
|
+
|
|
30
|
+
## 验证与回流
|
|
31
|
+
|
|
32
|
+
`browser_verification` 至少覆盖非空渲染、主流程、一个失败/权限/冲突状态、桌面与窄屏视口和控制台错误;优先使用 Browser 或可执行浏览器自动化,Computer Use 只作人工交互补充。把路径、命令、版本、视口、结果和阻塞项写入证据清单。
|
|
33
|
+
|
|
34
|
+
`gate.prototype-reviewed` 的证据是评审记录;`gate.prototype-verified` 的证据是 AntD CLI 与浏览器验证;`gate.user-confirmation` 的证据是确认记录。三者均不是实现授权。
|
|
35
|
+
|
|
36
|
+
## 常见错误
|
|
37
|
+
|
|
38
|
+
- 仅有截图或 HTML,却没有可复现的 CLI、浏览器和确认记录。
|
|
39
|
+
- 把 `product-design:index` 或某个旧技能当作生命周期批准者。
|
|
40
|
+
- 直接复制官方默认颜色、圆角或间距,忽略项目覆盖。
|
|
@@ -20,7 +20,7 @@ subcontract_statuses: [required, not-applicable]
|
|
|
20
20
|
|
|
21
21
|
readiness:
|
|
22
22
|
common: [spec, slice_ticket, architecture_review, build_architecture_checklist, implementation_repository, verification_commands]
|
|
23
|
-
ui_impact: [requirement_freeze, low_fidelity_review, high_fidelity_html, antd_cli_evidence, prototype_confirmation]
|
|
23
|
+
ui_impact: [requirement_freeze, low_fidelity_review, prototype_review, high_fidelity_html, prototype_verification, antd_cli_evidence, browser_verification_evidence, prototype_confirmation]
|
|
24
24
|
api_impact: [openapi_freeze]
|
|
25
25
|
no_api_impact: [no_api_impact_record]
|
|
26
26
|
data_impact: [data_architecture]
|
|
@@ -39,7 +39,7 @@ exclusive_flags:
|
|
|
39
39
|
|
|
40
40
|
slice_contract_required:
|
|
41
41
|
root: [schema_version, contract_id, contract_version, slice_id, status, lifecycle_refs, readiness, common, frontend, backend, contract, cross_repo, work_units]
|
|
42
|
-
lifecycle_refs: [spec, ticket, requirement_freeze, low_fidelity_review, high_fidelity_html, antd_cli_evidence, prototype_confirmation, openapi_freeze_or_no_impact, architecture_review, data_architecture, engineering_baseline, build_architecture_checklist, implementation_repository, frontend_repository, backend_repository, maven_wrapper]
|
|
42
|
+
lifecycle_refs: [spec, ticket, requirement_freeze, low_fidelity_review, prototype_review, high_fidelity_html, prototype_verification, antd_cli_evidence, browser_verification_evidence, prototype_confirmation, openapi_freeze_or_no_impact, architecture_review, data_architecture, engineering_baseline, build_architecture_checklist, implementation_repository, frontend_repository, backend_repository, maven_wrapper]
|
|
43
43
|
readiness: [blockers, stale_inputs, not_applicable]
|
|
44
44
|
common: [impacted_areas, implementation_path_policy, project_roots, required_skills, optional_skills, unavailable_skills, allowed_write_paths, forbidden_patterns, expected_evidence_files, verification_commands, human_review_points, full_reroute_triggers]
|
|
45
45
|
frontend: [status, required_skills, approved_prototype_ref, state_matrix_ref, allowed_write_paths, component_test_seams, e2e_paths]
|
|
@@ -55,8 +55,11 @@ lifecycle_ref_by_readiness:
|
|
|
55
55
|
implementation_repository: implementation_repository
|
|
56
56
|
requirement_freeze: requirement_freeze
|
|
57
57
|
low_fidelity_review: low_fidelity_review
|
|
58
|
+
prototype_review: prototype_review
|
|
58
59
|
high_fidelity_html: high_fidelity_html
|
|
60
|
+
prototype_verification: prototype_verification
|
|
59
61
|
antd_cli_evidence: antd_cli_evidence
|
|
62
|
+
browser_verification_evidence: browser_verification_evidence
|
|
60
63
|
prototype_confirmation: prototype_confirmation
|
|
61
64
|
openapi_freeze: openapi_freeze_or_no_impact
|
|
62
65
|
no_api_impact_record: openapi_freeze_or_no_impact
|
|
@@ -14,8 +14,11 @@ slice_contract:
|
|
|
14
14
|
ticket:
|
|
15
15
|
requirement_freeze:
|
|
16
16
|
low_fidelity_review:
|
|
17
|
+
prototype_review:
|
|
17
18
|
high_fidelity_html:
|
|
19
|
+
prototype_verification:
|
|
18
20
|
antd_cli_evidence:
|
|
21
|
+
browser_verification_evidence:
|
|
19
22
|
prototype_confirmation:
|
|
20
23
|
openapi_freeze_or_no_impact:
|
|
21
24
|
architecture_review:
|
package/template/AGENTS.md
CHANGED
|
@@ -104,7 +104,7 @@ README、用户指南和其他说明文档只引用或解释上述事实,不
|
|
|
104
104
|
|---|---|
|
|
105
105
|
| 技术事实、标准、第三方 API 或框架行为影响决策 | `research` 或等价的一手资料记录 |
|
|
106
106
|
| 竞品、市场或用户口碑事实 | `competitive-intelligence` |
|
|
107
|
-
| UI 设计、原型、组件或主题 | `yss-design-system`
|
|
107
|
+
| UI 设计、原型、组件或主题 | `yss-design-system` 后使用 `yss-prototype-stage`;Codex 再路由 `product-design:index`,其他 Agent 交付等价合同资产;产出前后用 `antd` CLI 记录 Ant Design v6 与浏览器验证事实 |
|
|
108
108
|
| Bug、测试失败或性能回退 | `diagnosing-bugs` 建立可复现反馈,再用 `tdd` |
|
|
109
109
|
| merge / rebase 冲突 | `resolving-merge-conflicts` |
|
|
110
110
|
| 架构治理、难测模块或深模块设计 | `improve-codebase-architecture` / `codebase-design` |
|
|
@@ -48,7 +48,7 @@ YSS Harness 需要把有 UI 功能的产品原型产出收敛到一个稳定入
|
|
|
48
48
|
## 相关
|
|
49
49
|
|
|
50
50
|
- `AGENTS.md`
|
|
51
|
-
- `docs/
|
|
51
|
+
- `docs/design/README.md`
|
|
52
52
|
- `docs/process/lifecycle-artifact-map.md`
|
|
53
53
|
- `docs/design/README.md`
|
|
54
54
|
- `docs/design/templates/prototype-confirmation-template.md`
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
设计系统基线:
|
|
6
6
|
|
|
7
|
-
- `docs/design/design.md`:从本地 `Product-Design-System` 引入并整理的 Ant Design
|
|
7
|
+
- `docs/design/design.md`:从本地 `Product-Design-System` 引入并整理的 Ant Design 企业级设计系统说明,后续页面设计、交互说明、原型评审和前端实现默认引用该文件;官方 `design.md` 是上游默认,项目 token 是项目覆盖,优先级以该文件为准。
|
|
8
8
|
- `docs/design/tokens/`:随仓库保存的主题、亮色 / 暗色 / 紧凑 token 和 CSS 变量快照,后续实现不得依赖本机 Downloads 目录。
|
|
9
9
|
|
|
10
10
|
产品原型产出默认以 `product-design:index` 为主入口。该 skill 只负责路由,实际按 Product Design plugin 规则进入 `$get-context`、`$ideate`、`$prototype`、`$image-to-code`、`$url-to-code`、`$share` 或 `$design-qa` 等 focused skill;YSS 生命周期仍负责校验低保真评审、高保真 HTML 原型、AntD CLI 校验证据、用户确认和 Spec / OpenAPI 回填。
|
|
@@ -31,11 +31,13 @@
|
|
|
31
31
|
- `docs/design/templates/state-matrix-template.md`:loading、empty、error、readonly、no-permission、conflict 等状态。
|
|
32
32
|
- `docs/design/templates/prototype-review-checklist.md`:进入 Spec 校准 / API 影响分析 / 契约草案前的原型评审门禁。
|
|
33
33
|
- `docs/design/templates/prototype-confirmation-template.md`:高保真 HTML 原型产出后的用户确认记录。
|
|
34
|
+
- `docs/design/templates/prototype-evidence-template.yaml`:原型阶段的 AntD CLI、浏览器验证、评审和确认的机器可读证据清单。
|
|
34
35
|
|
|
35
36
|
推荐技能:
|
|
36
37
|
|
|
37
38
|
- `yss-design-system`:项目设计系统与 Ant Design 企业级 UI 风格基线;页面设计、原型评审、UI 实现和主题 token 落地时默认先引用。
|
|
38
|
-
- `
|
|
39
|
+
- `yss-prototype-stage`:跨 Agent 的原型阶段合同,固定资产、证据、设计优先级与生命周期回流;Codex 的主路由为 `product-design:index`。
|
|
40
|
+
- `product-design:index`:Codex 产品原型产出的主路由;根据输入是否有 URL、截图、Figma、代码目标或视觉方向,进入 `$get-context`、`$ideate`、`$prototype`、`$image-to-code`、`$url-to-code`、`$share` 或 `$design-qa` 等 focused skill。
|
|
39
41
|
- Product Design focused skills:基于 Spec 初稿和产品总体设计 / 功能架构,产出低保真 / 高保真页面、原型、交互设计资产和可分享原型;高保真 HTML 原型默认由该路由链路产出。
|
|
40
42
|
- `antd`:Ant Design v6 组件、demo、token、semantic 和 design.md 查询工具;生成或修改高保真 HTML 原型前后必须留下 CLI 校验证据。
|
|
41
43
|
- `prototype-review`:原型阶段评审门禁;未通过则不要进入 Spec 校准 / API 影响分析 / 契约草案。
|
|
@@ -19,6 +19,10 @@
|
|
|
19
19
|
|
|
20
20
|
结论:这不是营销型视觉系统,而是面向中后台、数据密集、表单密集、流程密集产品的 Ant Design 风格企业级设计系统。项目内 UI 默认应以“清晰、确定、低装饰、可扫描、高一致性”为目标。
|
|
21
21
|
|
|
22
|
+
## 原型设计依据的优先级
|
|
23
|
+
|
|
24
|
+
原型使用 Ant Design 时,`https://ant.design/design.md` 与官方 `antd` CLI 提供的是**上游默认**和组件事实;项目的 `docs/design/design.md`、`docs/design/tokens/*` 是经过确认的**项目覆盖**。当前功能只能在这两层之下完成语义组件映射。若上游默认与项目 token 不同,以项目覆盖为准,并在 `prototype-evidence.yaml` 中记录差异;不得把上游默认直接写回项目实现。
|
|
25
|
+
|
|
22
26
|
## 设计原则
|
|
23
27
|
|
|
24
28
|
本项目采用该设计系统时,优先遵循四个原则:
|
|
@@ -10,10 +10,10 @@
|
|
|
10
10
|
| 产品总体设计 / 功能架构 | `docs/.scratch/<feature>/design/<feature>-product-overview-design.md` | 必需;缺失时先返回产品总体设计阶段 |
|
|
11
11
|
| 领域术语 | `CONTEXT.md` | 核心名词、状态和业务规则 |
|
|
12
12
|
| Discovery | `docs/.scratch/<feature>/discovery/<feature>-discovery.md` | 可选 |
|
|
13
|
-
| Product Design 路由 | `product-design:index -> <focused skill>` | 必需;记录 `$get-context`、`$ideate`、`$prototype`、`$image-to-code` 或 `$url-to-code` |
|
|
13
|
+
| 原型阶段合同 / Product Design 路由 | `yss-prototype-stage -> product-design:index -> <focused skill>` | 必需;记录 `$get-context`、`$ideate`、`$prototype`、`$image-to-code` 或 `$url-to-code` |
|
|
14
14
|
| 原型 / 线框图 | `<链接或导出图片路径>` | Excalidraw / Figma / Penpot / tldraw / Axure / Markdown |
|
|
15
15
|
| 高保真 HTML 原型 | `docs/.scratch/<feature>/design/prototypes/index.html` | 低保真原型评审通过后补齐;必须使用 Ant Design v6;可由系统 / Agent 自动产出;产出后必须获得用户确认 |
|
|
16
|
-
|
|
|
16
|
+
| 原型验证清单 | `docs/.scratch/<feature>/verification/prototype-evidence.yaml` | 记录实际 CLI / AntD 版本、CLI JSON 输出、浏览器验证和阻塞项 |
|
|
17
17
|
| 现有 API 草案 | `docs/.scratch/<feature>/api/<feature>.yaml` | 可选;通常应先完成产品设计和 Spec 校准 |
|
|
18
18
|
|
|
19
19
|
## 2. 页面地图
|
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
- 每个表格列、筛选条件、表单字段、抽屉、弹窗和按钮都有数据来源或契约反推说明。
|
|
107
107
|
- 设计可以拆成独立可演示的垂直切片。
|
|
108
108
|
- 低保真原型评审通过后,高保真 HTML 原型使用 Ant Design v6 覆盖主流程、关键状态和响应式断点。
|
|
109
|
-
- 原型产出前已使用 `antd` CLI 查询设计语言、组件 API、demo、token 和 semantic
|
|
109
|
+
- 原型产出前已使用 `antd` CLI 查询设计语言、组件 API、demo、token 和 semantic 信息;原型产出后已在 `prototype-evidence.yaml` 记录实际版本、CLI 与浏览器验证证据。
|
|
110
110
|
|
|
111
111
|
## 9. 决策与未决问题
|
|
112
112
|
|
|
@@ -13,21 +13,24 @@
|
|
|
13
13
|
| 状态矩阵 | `docs/.scratch/<feature>/design/<feature>-state-matrix.md` |
|
|
14
14
|
| 原型评审 | `docs/.scratch/<feature>/design/<feature>-prototype-review.md` |
|
|
15
15
|
| 高保真 HTML 原型 | `docs/.scratch/<feature>/design/prototypes/index.html` |
|
|
16
|
+
| 机器可读验证清单 | `docs/.scratch/<feature>/verification/prototype-evidence.yaml` |
|
|
16
17
|
| Product Design 路由 | `product-design:index -> <focused skill>` |
|
|
17
18
|
| 产出方式 | 系统 / Agent 自动产出 / 人工补充 |
|
|
18
|
-
| Ant Design
|
|
19
|
+
| Ant Design 目标版本 | `<实际项目选择的 v6 版本>` |
|
|
19
20
|
|
|
20
21
|
## 2. AntD CLI 校验证据
|
|
21
22
|
|
|
22
23
|
| 校验项 | 命令 / 记录路径 | 结论 |
|
|
23
24
|
|---|---|---|
|
|
24
|
-
| 设计语言 | `antd design.md --
|
|
25
|
-
| 组件 API | `antd info <Component> --version
|
|
26
|
-
| 组件 demo | `antd demo <Component> <demo> --version
|
|
27
|
-
| 组件 token | `antd token <Component> --version
|
|
28
|
-
| semantic | `antd semantic <Component> --version
|
|
25
|
+
| 设计语言 | `antd design.md --format json` | |
|
|
26
|
+
| 组件 API | `antd info <Component> --version <target_antd_version> --format json` | |
|
|
27
|
+
| 组件 demo | `antd demo <Component> <demo> --version <target_antd_version> --format json` | |
|
|
28
|
+
| 组件 token | `antd token <Component> --version <target_antd_version> --format json` | |
|
|
29
|
+
| semantic | `antd semantic <Component> --version <target_antd_version> --format json` | |
|
|
29
30
|
| lint / 替代校验 | `antd lint <prototype path> --format json` | |
|
|
30
31
|
|
|
32
|
+
CLI 实际版本、目标 AntD 版本、完整 JSON 输出与浏览器验证结论以 `prototype-evidence.yaml` 为准;不得用本文中的示例版本替代实际记录。
|
|
33
|
+
|
|
31
34
|
## 3. 用户确认
|
|
32
35
|
|
|
33
36
|
| 项目 | 内容 |
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# 复制到 docs/.scratch/<feature>/verification/prototype-evidence.yaml。
|
|
2
|
+
# 本文件是原型验证证据清单;命令输出、截图和审查记录可存为相邻文件并由路径引用。
|
|
3
|
+
schema_version: 1
|
|
4
|
+
feature: <feature>
|
|
5
|
+
prototype_ref: docs/.scratch/<feature>/design/prototypes/index.html
|
|
6
|
+
design_baseline:
|
|
7
|
+
project_design_ref: docs/design/design.md
|
|
8
|
+
project_token_refs: []
|
|
9
|
+
upstream_design_md_source: https://ant.design/design.md
|
|
10
|
+
upstream_design_md_record_ref: <path-to-json-output-or-summary>
|
|
11
|
+
project_override_reviewed: false
|
|
12
|
+
antd:
|
|
13
|
+
cli_command: antd
|
|
14
|
+
cli_version: <actual-cli-version>
|
|
15
|
+
target_antd_version: <project-selected-v6-version>
|
|
16
|
+
queries:
|
|
17
|
+
design_md: <path-to-json-output>
|
|
18
|
+
components:
|
|
19
|
+
- component: <Component>
|
|
20
|
+
info_ref: <path-to-json-output>
|
|
21
|
+
demo_ref: <path-to-json-output>
|
|
22
|
+
token_ref: <path-to-json-output>
|
|
23
|
+
semantic_ref: <path-to-json-output>
|
|
24
|
+
lint_ref: <path-to-json-output>
|
|
25
|
+
lint_passed: false
|
|
26
|
+
browser_verification:
|
|
27
|
+
executor: <browser-or-automation-name>
|
|
28
|
+
rendered_nonblank: false
|
|
29
|
+
prototype_digest: <sha256-or-version-ref>
|
|
30
|
+
viewports:
|
|
31
|
+
- name: desktop
|
|
32
|
+
size: <width>x<height>
|
|
33
|
+
result: pending
|
|
34
|
+
- name: narrow-mobile
|
|
35
|
+
size: <width>x<height>
|
|
36
|
+
result: pending
|
|
37
|
+
main_flow_result: pending
|
|
38
|
+
failure_permission_or_conflict_result: pending
|
|
39
|
+
console_error_ref: <path-to-console-output-or-none>
|
|
40
|
+
review:
|
|
41
|
+
prototype_review_ref: docs/.scratch/<feature>/design/<feature>-prototype-review.md
|
|
42
|
+
result: pending
|
|
43
|
+
user_confirmation:
|
|
44
|
+
confirmation_ref: docs/.scratch/<feature>/design/<feature>-prototype-confirmation.md
|
|
45
|
+
result: pending
|
|
46
|
+
blockers: []
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
| 交互说明 | `docs/.scratch/<feature>/design/<feature>-interaction-spec.md` | |
|
|
11
11
|
| 原型 / 线框图 | `<链接或导出图片路径>` | |
|
|
12
12
|
| 状态矩阵 | `docs/.scratch/<feature>/design/<feature>-state-matrix.md` | |
|
|
13
|
-
| Product Design 路由记录 | `product-design:index -> <focused skill>` | |
|
|
14
|
-
|
|
|
13
|
+
| 原型阶段合同 / Product Design 路由记录 | `yss-prototype-stage -> product-design:index -> <focused skill>` | |
|
|
14
|
+
| 原型验证清单 | `docs/.scratch/<feature>/verification/prototype-evidence.yaml` | 高保真完成后补齐 CLI 与浏览器验证 |
|
|
15
15
|
| 现有 API 草案 | `docs/.scratch/<feature>/api/<feature>.yaml` | 可选 |
|
|
16
16
|
|
|
17
17
|
## 门禁清单
|
|
@@ -26,8 +26,7 @@
|
|
|
26
26
|
| 权限行为能区分隐藏、禁用和调用后拒绝 | | |
|
|
27
27
|
| 校验错误能区分模型级和字段级展示位置 | | |
|
|
28
28
|
| 能从界面需求反推出 API 影响和契约草案 | | |
|
|
29
|
-
|
|
|
30
|
-
| 高保真 HTML 原型未使用旧原型技能作为主入口,已通过 `product-design:index` 路由产出或记录例外原因 | | |
|
|
29
|
+
| 高保真 HTML 原型已按 `yss-prototype-stage` 通过 `product-design:index` 路由产出,或记录等价 Agent 适配及例外原因 | | |
|
|
31
30
|
| 前端验收、组件状态和数据依赖已明确 | | |
|
|
32
31
|
| 风险 / 回滚约束和人工确认项已记录 | | |
|
|
33
32
|
|
|
@@ -58,6 +57,7 @@
|
|
|
58
57
|
|
|
59
58
|
```text
|
|
60
59
|
结论:通过 / 阻断
|
|
60
|
+
生命周期门禁:`gate.prototype-reviewed` 通过 / 不通过
|
|
61
61
|
阻断项:
|
|
62
62
|
-
|
|
63
63
|
非阻断建议:
|
|
@@ -28,7 +28,9 @@
|
|
|
28
28
|
|---|---|---|---|---|
|
|
29
29
|
| `gate.repository-identity-valid` | 仓库身份校验 | `stage.entry-triage` | 每次进入流程。 | `evidence.repository-identity-check` |
|
|
30
30
|
| `gate.spec-baseline-approved` | Spec 基线批准 | `stage.spec-architecture` | 新功能、行为变化或范围扩大进入 Spec 基线。 | `evidence.approval-record` |
|
|
31
|
-
| `gate.
|
|
31
|
+
| `gate.prototype-reviewed` | 原型评审 | `stage.product-design` | 命中产品设计影响,且低保真页面、流程、状态或 API 反推需要独立评审。 | `evidence.prototype-review-result` |
|
|
32
|
+
| `gate.prototype-verified` | 高保真原型验证 | `stage.product-design` | 需要高保真 HTML 原型进行视觉与交互校准。 | `evidence.antd-cli-validation`、`evidence.browser-prototype-verification` |
|
|
33
|
+
| `gate.user-confirmation` | 用户确认 | `stage.product-design` | 产品设计影响尚未被人工确认。 | `evidence.prototype-confirmation` |
|
|
32
34
|
| `gate.openapi-draft-reviewed` | OpenAPI Draft Review | `stage.system-data-engineering` | 有 API 影响且 Draft 已生成。 | `evidence.openapi-draft-review` |
|
|
33
35
|
| `gate.design-reviewed` | 设计审查 | `stage.system-data-engineering` | API 或架构影响。 | `evidence.design-review-result` |
|
|
34
36
|
| `gate.openapi-frozen` | OpenAPI Freeze | `stage.system-data-engineering` | API 进入实现。 | `evidence.approval-record` |
|
|
@@ -47,9 +49,12 @@
|
|
|
47
49
|
| `artifact.spec` | Spec | `stage.spec-architecture` | 新功能、行为变化或范围扩大。 |
|
|
48
50
|
| `artifact.product-overview` | 产品总体设计 | `stage.spec-architecture` | 进入 Spec 基线。 |
|
|
49
51
|
| `artifact.functional-architecture` | 功能架构 | `stage.spec-architecture` | 新模块或跨边界变化。 |
|
|
52
|
+
| `artifact.interaction-spec` | 交互说明 | `stage.product-design` | 命中产品设计影响。 |
|
|
50
53
|
| `artifact.low-fidelity-prototype` | 低保真原型 | `stage.product-design` | 命中产品设计影响。 |
|
|
51
54
|
| `artifact.state-matrix` | 状态矩阵 | `stage.product-design` | 存在状态流转、异常或恢复。 |
|
|
52
55
|
| `artifact.high-fidelity-html-prototype` | 高保真 HTML 原型 | `stage.product-design` | 需要视觉与交互校准。 |
|
|
56
|
+
| `artifact.prototype-review` | 原型评审记录 | `stage.product-design` | 命中 gate.prototype-reviewed。 |
|
|
57
|
+
| `artifact.prototype-confirmation` | 原型确认记录 | `stage.product-design` | 命中 gate.user-confirmation。 |
|
|
53
58
|
| `artifact.openapi-draft` | OpenAPI Draft | `stage.system-data-engineering` | 有 API 影响。 |
|
|
54
59
|
| `artifact.openapi-freeze-record` | OpenAPI Freeze 记录 | `stage.system-data-engineering` | API 进入实现。 |
|
|
55
60
|
| `artifact.data-architecture` | 数据架构 | `stage.system-data-engineering` | 数据模型、存储或一致性变化。 |
|
|
@@ -69,6 +74,10 @@
|
|
|
69
74
|
| `evidence.repository-identity-check` | 仓库身份校验结果 | yss-project.yaml 的合法性与 repository_mode 裁决。 |
|
|
70
75
|
| `evidence.approval-record` | 人工批准记录 | 对需要人工批准的 Spec、设计、契约或发布裁决的可追溯记录。 |
|
|
71
76
|
| `evidence.design-review-result` | 设计审查结果 | API、架构或产品设计审查意见及处理结果。 |
|
|
77
|
+
| `evidence.prototype-review-result` | 原型评审结果 | 低保真页面、流程、状态与 API 反推的独立评审结论和阻断项。 |
|
|
78
|
+
| `evidence.antd-cli-validation` | Ant Design CLI 校验证据 | 设计语言、组件、demo、token、semantic 与 lint 的实际 CLI/目标版本和可读输出引用。 |
|
|
79
|
+
| `evidence.browser-prototype-verification` | 浏览器原型验证证据 | 高保真原型的非空渲染、主流程、异常状态、视口和控制台验证记录。 |
|
|
80
|
+
| `evidence.prototype-confirmation` | 原型用户确认记录 | 高保真原型、验证清单和进入下游阶段范围的人工确认结论。 |
|
|
72
81
|
| `evidence.openapi-draft-review` | OpenAPI Draft 审查记录 | P0、错误、分页、幂等和契约测试审查记录。 |
|
|
73
82
|
| `evidence.contract-approval` | Slice 合同批准记录 | 生命周期编排器批准且已持久化的当前版本合同引用。 |
|
|
74
83
|
| `evidence.yss-skill-execution-result` | YSS Skill Execution Result | 专项 skill 的合同版本、写入、验证、延期 seam 与偏离证据。 |
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schema_version": 1,
|
|
3
3
|
"registry_id": "yss.lifecycle",
|
|
4
|
-
"semantic_sha256": "
|
|
4
|
+
"semantic_sha256": "6261529654dba3e3738aa950e42d6af5b5db1b3be4ac6c2e4dc86a395c49ec6f",
|
|
5
5
|
"published_ids": [
|
|
6
6
|
"artifact.architecture-review",
|
|
7
7
|
"artifact.data-architecture",
|
|
@@ -10,24 +10,31 @@
|
|
|
10
10
|
"artifact.functional-architecture",
|
|
11
11
|
"artifact.high-fidelity-html-prototype",
|
|
12
12
|
"artifact.impact-assessment",
|
|
13
|
+
"artifact.interaction-spec",
|
|
13
14
|
"artifact.low-fidelity-prototype",
|
|
14
15
|
"artifact.openapi-draft",
|
|
15
16
|
"artifact.openapi-freeze-record",
|
|
16
17
|
"artifact.parent-ticket",
|
|
17
18
|
"artifact.product-overview",
|
|
19
|
+
"artifact.prototype-confirmation",
|
|
20
|
+
"artifact.prototype-review",
|
|
18
21
|
"artifact.retrospective",
|
|
19
22
|
"artifact.slice-implementation-contract",
|
|
20
23
|
"artifact.spec",
|
|
21
24
|
"artifact.spec-delta",
|
|
22
25
|
"artifact.state-matrix",
|
|
23
26
|
"artifact.vertical-slice-ticket",
|
|
27
|
+
"evidence.antd-cli-validation",
|
|
24
28
|
"evidence.approval-record",
|
|
29
|
+
"evidence.browser-prototype-verification",
|
|
25
30
|
"evidence.checkpoint-and-rollback",
|
|
26
31
|
"evidence.contract-approval",
|
|
27
32
|
"evidence.design-review-result",
|
|
28
33
|
"evidence.fresh-verification",
|
|
29
34
|
"evidence.impact-assessment",
|
|
30
35
|
"evidence.openapi-draft-review",
|
|
36
|
+
"evidence.prototype-confirmation",
|
|
37
|
+
"evidence.prototype-review-result",
|
|
31
38
|
"evidence.repository-identity-check",
|
|
32
39
|
"evidence.yss-skill-execution-result",
|
|
33
40
|
"gate.architecture-reviewed",
|
|
@@ -35,6 +42,8 @@
|
|
|
35
42
|
"gate.engineering-baseline-accepted",
|
|
36
43
|
"gate.openapi-draft-reviewed",
|
|
37
44
|
"gate.openapi-frozen",
|
|
45
|
+
"gate.prototype-reviewed",
|
|
46
|
+
"gate.prototype-verified",
|
|
38
47
|
"gate.release-ready",
|
|
39
48
|
"gate.repository-identity-valid",
|
|
40
49
|
"gate.slice-contract-approved",
|