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
package/package.json
CHANGED
|
@@ -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
|
### 原型完成后的后端脚手架与代码生成边界
|
package/template/.agents/skills/yss-product-lifecycle/references/orchestration-contract.yaml
CHANGED
|
@@ -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:
|
|
@@ -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
|
### 原型完成后的后端脚手架与代码生成边界
|
package/template/.claude/skills/yss-product-lifecycle/references/orchestration-contract.yaml
CHANGED
|
@@ -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:
|