create-yss-spec 2.2.7 → 2.2.9
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/README.md +1 -1
- package/package.json +1 -1
- package/template/.agents/skills/maintaining-skills/SKILL.md +1 -1
- package/template/.agents/skills/yss-antd-design/references/evidence.md +4 -0
- package/template/.agents/skills/yss-design-system/SKILL.md +3 -1
- package/template/.agents/skills/yss-page-module-development/SKILL.md +1 -1
- package/template/.agents/skills/yss-product-lifecycle/SKILL.md +3 -1
- package/template/.agents/skills/yss-product-lifecycle/references/matt-yss-adapter.md +2 -2
- package/template/.agents/skills/yss-product-lifecycle/references/orchestration-contract.yaml +46 -1
- package/template/.agents/skills/yss-product-lifecycle/references/orchestration.md +6 -0
- package/template/.agents/skills/yss-prototype-stage/SKILL.md +11 -6
- package/template/.agents/skills/yss-prototype-stage/references/product-design-adapter.md +54 -0
- package/template/.agents/skills/yss-prototype-stage/scripts/prototype-contract.mjs +207 -0
- package/template/.agents/skills/yss-prototype-stage/tests/run-scenarios.mjs +154 -0
- package/template/.agents/skills/yss-router/references/boundaries.md +1 -1
- package/template/.agents/skills/yss-router/references/router-contract.yaml +30 -3
- package/template/.agents/skills/yss-router/references/slice-implementation-contract.md +14 -0
- package/template/.agents/skills/yss-router/references/yss-skill-execution-result.md +5 -0
- package/template/.agents/skills/yss-ui/references/antdv-compatibility.md +1 -1
- package/template/.claude/skills/maintaining-skills/SKILL.md +1 -1
- package/template/.claude/skills/yss-antd-design/references/evidence.md +4 -0
- package/template/.claude/skills/yss-design-system/SKILL.md +3 -1
- package/template/.claude/skills/yss-page-module-development/SKILL.md +1 -1
- package/template/.claude/skills/yss-product-lifecycle/SKILL.md +3 -1
- package/template/.claude/skills/yss-product-lifecycle/references/matt-yss-adapter.md +2 -2
- package/template/.claude/skills/yss-product-lifecycle/references/orchestration-contract.yaml +46 -1
- package/template/.claude/skills/yss-product-lifecycle/references/orchestration.md +6 -0
- package/template/.claude/skills/yss-prototype-stage/SKILL.md +11 -6
- package/template/.claude/skills/yss-prototype-stage/references/product-design-adapter.md +54 -0
- package/template/.claude/skills/yss-prototype-stage/scripts/prototype-contract.mjs +207 -0
- package/template/.claude/skills/yss-prototype-stage/tests/run-scenarios.mjs +154 -0
- package/template/.claude/skills/yss-router/references/boundaries.md +1 -1
- package/template/.claude/skills/yss-router/references/router-contract.yaml +30 -3
- package/template/.claude/skills/yss-router/references/slice-implementation-contract.md +14 -0
- package/template/.claude/skills/yss-router/references/yss-skill-execution-result.md +5 -0
- package/template/.claude/skills/yss-ui/references/antdv-compatibility.md +1 -1
- package/template/.codex/skills/maintaining-skills/SKILL.md +1 -1
- package/template/.codex/skills/yss-antd-design/references/evidence.md +4 -0
- package/template/.codex/skills/yss-design-system/SKILL.md +3 -1
- package/template/.codex/skills/yss-page-module-development/SKILL.md +1 -1
- package/template/.codex/skills/yss-product-lifecycle/SKILL.md +3 -1
- package/template/.codex/skills/yss-product-lifecycle/references/matt-yss-adapter.md +2 -2
- package/template/.codex/skills/yss-product-lifecycle/references/orchestration-contract.yaml +46 -1
- package/template/.codex/skills/yss-product-lifecycle/references/orchestration.md +6 -0
- package/template/.codex/skills/yss-prototype-stage/SKILL.md +11 -6
- package/template/.codex/skills/yss-prototype-stage/references/product-design-adapter.md +54 -0
- package/template/.codex/skills/yss-prototype-stage/scripts/prototype-contract.mjs +207 -0
- package/template/.codex/skills/yss-prototype-stage/tests/run-scenarios.mjs +154 -0
- package/template/.codex/skills/yss-router/references/boundaries.md +1 -1
- package/template/.codex/skills/yss-router/references/router-contract.yaml +30 -3
- package/template/.codex/skills/yss-router/references/slice-implementation-contract.md +14 -0
- package/template/.codex/skills/yss-router/references/yss-skill-execution-result.md +5 -0
- package/template/.codex/skills/yss-ui/references/antdv-compatibility.md +1 -1
- package/template/.cursor/skills/maintaining-skills/SKILL.md +1 -1
- package/template/.cursor/skills/yss-antd-design/references/evidence.md +4 -0
- package/template/.cursor/skills/yss-design-system/SKILL.md +3 -1
- package/template/.cursor/skills/yss-page-module-development/SKILL.md +1 -1
- package/template/.cursor/skills/yss-product-lifecycle/SKILL.md +3 -1
- package/template/.cursor/skills/yss-product-lifecycle/references/matt-yss-adapter.md +2 -2
- package/template/.cursor/skills/yss-product-lifecycle/references/orchestration-contract.yaml +46 -1
- package/template/.cursor/skills/yss-product-lifecycle/references/orchestration.md +6 -0
- package/template/.cursor/skills/yss-prototype-stage/SKILL.md +11 -6
- package/template/.cursor/skills/yss-prototype-stage/references/product-design-adapter.md +54 -0
- package/template/.cursor/skills/yss-prototype-stage/scripts/prototype-contract.mjs +207 -0
- package/template/.cursor/skills/yss-prototype-stage/tests/run-scenarios.mjs +154 -0
- package/template/.cursor/skills/yss-router/references/boundaries.md +1 -1
- package/template/.cursor/skills/yss-router/references/router-contract.yaml +30 -3
- package/template/.cursor/skills/yss-router/references/slice-implementation-contract.md +14 -0
- package/template/.cursor/skills/yss-router/references/yss-skill-execution-result.md +5 -0
- package/template/.cursor/skills/yss-ui/references/antdv-compatibility.md +1 -1
- package/template/.hermes/skills/maintaining-skills/SKILL.md +1 -1
- package/template/.hermes/skills/yss-antd-design/references/evidence.md +4 -0
- package/template/.hermes/skills/yss-design-system/SKILL.md +3 -1
- package/template/.hermes/skills/yss-page-module-development/SKILL.md +1 -1
- package/template/.hermes/skills/yss-product-lifecycle/SKILL.md +3 -1
- package/template/.hermes/skills/yss-product-lifecycle/references/matt-yss-adapter.md +2 -2
- package/template/.hermes/skills/yss-product-lifecycle/references/orchestration-contract.yaml +46 -1
- package/template/.hermes/skills/yss-product-lifecycle/references/orchestration.md +6 -0
- package/template/.hermes/skills/yss-prototype-stage/SKILL.md +11 -6
- package/template/.hermes/skills/yss-prototype-stage/references/product-design-adapter.md +54 -0
- package/template/.hermes/skills/yss-prototype-stage/scripts/prototype-contract.mjs +207 -0
- package/template/.hermes/skills/yss-prototype-stage/tests/run-scenarios.mjs +154 -0
- package/template/.hermes/skills/yss-router/references/boundaries.md +1 -1
- package/template/.hermes/skills/yss-router/references/router-contract.yaml +30 -3
- package/template/.hermes/skills/yss-router/references/slice-implementation-contract.md +14 -0
- package/template/.hermes/skills/yss-router/references/yss-skill-execution-result.md +5 -0
- package/template/.hermes/skills/yss-ui/references/antdv-compatibility.md +1 -1
- package/template/.pi/skills/maintaining-skills/SKILL.md +1 -1
- package/template/.pi/skills/yss-antd-design/references/evidence.md +4 -0
- package/template/.pi/skills/yss-design-system/SKILL.md +3 -1
- package/template/.pi/skills/yss-page-module-development/SKILL.md +1 -1
- package/template/.pi/skills/yss-product-lifecycle/SKILL.md +3 -1
- package/template/.pi/skills/yss-product-lifecycle/references/matt-yss-adapter.md +2 -2
- package/template/.pi/skills/yss-product-lifecycle/references/orchestration-contract.yaml +46 -1
- package/template/.pi/skills/yss-product-lifecycle/references/orchestration.md +6 -0
- package/template/.pi/skills/yss-prototype-stage/SKILL.md +11 -6
- package/template/.pi/skills/yss-prototype-stage/references/product-design-adapter.md +54 -0
- package/template/.pi/skills/yss-prototype-stage/scripts/prototype-contract.mjs +207 -0
- package/template/.pi/skills/yss-prototype-stage/tests/run-scenarios.mjs +154 -0
- package/template/.pi/skills/yss-router/references/boundaries.md +1 -1
- package/template/.pi/skills/yss-router/references/router-contract.yaml +30 -3
- package/template/.pi/skills/yss-router/references/slice-implementation-contract.md +14 -0
- package/template/.pi/skills/yss-router/references/yss-skill-execution-result.md +5 -0
- package/template/.pi/skills/yss-ui/references/antdv-compatibility.md +1 -1
- package/template/.qoder/skills/maintaining-skills/SKILL.md +1 -1
- package/template/.qoder/skills/yss-antd-design/references/evidence.md +4 -0
- package/template/.qoder/skills/yss-design-system/SKILL.md +3 -1
- package/template/.qoder/skills/yss-page-module-development/SKILL.md +1 -1
- package/template/.qoder/skills/yss-product-lifecycle/SKILL.md +3 -1
- package/template/.qoder/skills/yss-product-lifecycle/references/matt-yss-adapter.md +2 -2
- package/template/.qoder/skills/yss-product-lifecycle/references/orchestration-contract.yaml +46 -1
- package/template/.qoder/skills/yss-product-lifecycle/references/orchestration.md +6 -0
- package/template/.qoder/skills/yss-prototype-stage/SKILL.md +11 -6
- package/template/.qoder/skills/yss-prototype-stage/references/product-design-adapter.md +54 -0
- package/template/.qoder/skills/yss-prototype-stage/scripts/prototype-contract.mjs +207 -0
- package/template/.qoder/skills/yss-prototype-stage/tests/run-scenarios.mjs +154 -0
- package/template/.qoder/skills/yss-router/references/boundaries.md +1 -1
- package/template/.qoder/skills/yss-router/references/router-contract.yaml +30 -3
- package/template/.qoder/skills/yss-router/references/slice-implementation-contract.md +14 -0
- package/template/.qoder/skills/yss-router/references/yss-skill-execution-result.md +5 -0
- package/template/.qoder/skills/yss-ui/references/antdv-compatibility.md +1 -1
- package/template/.trae/skills/maintaining-skills/SKILL.md +1 -1
- package/template/.trae/skills/yss-antd-design/references/evidence.md +4 -0
- package/template/.trae/skills/yss-design-system/SKILL.md +3 -1
- package/template/.trae/skills/yss-page-module-development/SKILL.md +1 -1
- package/template/.trae/skills/yss-product-lifecycle/SKILL.md +3 -1
- package/template/.trae/skills/yss-product-lifecycle/references/matt-yss-adapter.md +2 -2
- package/template/.trae/skills/yss-product-lifecycle/references/orchestration-contract.yaml +46 -1
- package/template/.trae/skills/yss-product-lifecycle/references/orchestration.md +6 -0
- package/template/.trae/skills/yss-prototype-stage/SKILL.md +11 -6
- package/template/.trae/skills/yss-prototype-stage/references/product-design-adapter.md +54 -0
- package/template/.trae/skills/yss-prototype-stage/scripts/prototype-contract.mjs +207 -0
- package/template/.trae/skills/yss-prototype-stage/tests/run-scenarios.mjs +154 -0
- package/template/.trae/skills/yss-router/references/boundaries.md +1 -1
- package/template/.trae/skills/yss-router/references/router-contract.yaml +30 -3
- package/template/.trae/skills/yss-router/references/slice-implementation-contract.md +14 -0
- package/template/.trae/skills/yss-router/references/yss-skill-execution-result.md +5 -0
- package/template/.trae/skills/yss-ui/references/antdv-compatibility.md +1 -1
- package/template/AGENTS.md +5 -4
- package/template/CONTEXT.md +2 -2
- package/template/DESIGN.md +203 -0
- package/template/README.md +10 -11
- package/template/__yss_dotfile__.gitignore +1 -0
- package/template/docs/agents/digital-human-roles.md +1 -1
- package/template/docs/agents/digital-human-roles.yaml +17 -21
- package/template/docs/agents/skills-maintenance.md +2 -2
- package/template/docs/agents/yss-plugin-dependency-contract.md +45 -0
- package/template/docs/agents/yss-skill-registry.yaml +30 -1
- package/template/docs/api/templates/openapi-draft-review-checklist.md +2 -2
- package/template/docs/architecture/templates/engineering-baseline-review-template.md +19 -0
- package/template/docs/design/README.md +14 -3
- package/template/docs/design/design-system-sync.yaml +12 -0
- package/template/docs/design/design.md +69 -10
- package/template/docs/design/preview-dark.html +15 -0
- package/template/docs/design/preview.html +20 -0
- package/template/docs/design/templates/interaction-spec-template.md +2 -2
- package/template/docs/design/templates/prototype-confirmation-template.md +1 -1
- package/template/docs/design/templates/prototype-evidence-template.yaml +52 -10
- package/template/docs/design/tokens/.design-md-projection.json +13 -0
- package/template/docs/discovery/reports/agent-governance-options.md +71 -0
- package/template/docs/process/harness-process-tailoring.md +12 -5
- package/template/docs/process/lifecycle-registry-baseline.json +1 -1
- package/template/docs/process/lifecycle-registry.yaml +1 -1
- package/template/docs/process/template-engineering-overview.md +2 -2
- package/template/docs/process/template-verification-profiles.yaml +15 -1
- package/template/docs/process/templates/maintenance-checkpoint-template.yaml +3 -12
- package/template/docs/templates/build-architecture-checklist-template.md +2 -0
- package/template/docs/templates/implementation-routing-template.md +23 -0
- package/template/docs/templates/requirement-freeze-template.md +1 -1
- package/template/docs/user-guide//346/210/230/346/234/257/350/256/276/350/256/241/345/255/220/351/241/271/347/233/256/347/224/250/346/210/267/346/211/213/345/206/214.md +218 -0
- package/template/docs/user-guide//347/224/250/346/210/267/346/211/213/345/206/214.md +1014 -0
- package/template/docs/user-guide//347/224/250/346/210/267/346/211/213/345/206/214/347/264/242/345/274/225.md +15 -25
- package/template/scripts/lib/digital-human-roles.mjs +0 -1
- package/template/scripts/lib/maintenance-intensity.mjs +24 -10
- package/template/scripts/lib/skill-governance.mjs +19 -0
- package/template/scripts/lib/skill-registry.mjs +70 -0
- package/template/scripts/node-verify-lifecycle-registry.mjs +1 -1
- package/template/scripts/verify-digital-human-roles-scenarios +1 -1
- package/template/scripts/verify-template-verification-scenarios +5 -0
- package/template/scripts/verify-yss-prototype-contract-scenarios +2 -0
- package/template/skills-lock.json +8 -8
- package/template.manifest.json +1 -0
- package/template.snapshot.json +5 -5
- package/template/docs/user-guide/templates//347/224/250/346/210/267/346/211/213/345/206/214/346/250/241/346/235/277.md +0 -53
- package/template/docs/user-guide//344/272/247/345/223/201/347/224/237/345/221/275/345/221/250/346/234/237/345/267/245/344/275/234/346/265/201.md +0 -223
- package/template/docs/user-guide//344/272/247/345/223/201/347/240/224/345/217/221/345/205/250/347/224/237/345/221/275/345/221/250/346/234/237/346/234/200/344/275/263/345/256/236/350/267/265.md +0 -1115
- package/template/docs/user-guide//345/244/226/351/203/250/345/221/275/344/273/244/350/241/214/345/267/245/345/205/267/345/256/236/350/267/265/346/214/207/345/215/227.md +0 -117
- package/template/docs/user-guide//347/224/237/345/221/275/345/221/250/346/234/237/346/234/200/344/275/263/345/256/236/350/267/265.md +0 -584
- package/template/docs/user-guide//350/247/204/346/240/274/344/270/216/344/273/273/345/212/241/350/277/201/347/247/273/346/214/207/345/215/227.md +0 -44
- package/template/docs/user-guide//351/234/200/346/261/202/346/276/204/346/270/205/346/214/207/345/215/227.md +0 -230
- package/template/docs/user-guide//351/234/200/346/261/202/346/276/204/346/270/205/346/234/200/344/275/263/345/256/236/350/267/265.md +0 -275
|
@@ -1,223 +0,0 @@
|
|
|
1
|
-
# 产品全生命周期使用手册
|
|
2
|
-
|
|
3
|
-
本文面向一个人同时承担产品、全栈开发、设计和实施工作的场景。目标是说明:当你用这个模板新建一个工程时,如何把想法、需求、API、设计、开发、验证、发布、实施和复盘串成一条可持续的轻量流程。
|
|
4
|
-
|
|
5
|
-
本模板现在默认使用 Matt Pocock Engineering Skills + YSS + OpenAPI:
|
|
6
|
-
|
|
7
|
-
- Matt skills 负责澄清、Spec、Ticket 拆分、实现、TDD、诊断、审查和架构治理。
|
|
8
|
-
- YSS skills 负责 DDD、UI、OpenAPI、Repository、Controller、DTO、组件和编码规范。
|
|
9
|
-
- OpenAPI 3.1 负责前后端契约,Draft 仅用于评审,Freeze 后才作为实现输入。
|
|
10
|
-
- OpenSpec-style Spec Delta 只在中高风险行为变化时记录行为差异、验收场景和测试映射,不恢复 OpenSpec 工具链。
|
|
11
|
-
|
|
12
|
-
## 1. 这套模板的定位
|
|
13
|
-
|
|
14
|
-
这个模板不是运行时框架,而是产品和研发过程的工作台。
|
|
15
|
-
|
|
16
|
-
它负责保存四类资产:
|
|
17
|
-
|
|
18
|
-
| 资产 | 位置 | 用途 |
|
|
19
|
-
| ------ | ----------------------------------------------------------- | ----------------------------------------------------------- |
|
|
20
|
-
| 领域语言 | `CONTEXT.md` | 统一产品、开发、设计、实施和 AI 的业务词汇与英文标识词干 |
|
|
21
|
-
| 需求与验收 | `docs/.scratch/<feature>/spec.md` | 保存 Spec、用户故事、验收条件和边界规则 |
|
|
22
|
-
| API 契约 | `docs/.scratch/<feature>/api/` | 用 OpenAPI 3.1 约束前后端协作 |
|
|
23
|
-
| 行为差异 | `docs/.scratch/<feature>/spec-delta/` | 用轻量 Spec Delta 记录中高风险变化的 ADDED / MODIFIED / REMOVED 行为和测试映射 |
|
|
24
|
-
| 架构资产 | `docs/.scratch/<feature>/architecture/`、`docs/adr/` | 保存业务架构、功能架构、系统总体架构、数据架构和关键 ADR |
|
|
25
|
-
| 交付过程 | `docs/.scratch/<feature>/parent-ticket.md`、`issues/`、`gates/`、`verification/` | 跟踪垂直切片、实现路由、验证记录和审查结论 |
|
|
26
|
-
|
|
27
|
-
推荐把真实工程代码放在独立实现仓库(`external-repository`)。本仓库默认作为 Harness / 研发管理仓库,保存产品、契约和过程资产。如果用户明确选择把代码放入本仓库,使用同源 `harness-apps`;如果要把独立前后端仓挂进本仓工作树且保留各自 Git 历史,使用 `git-submodule`:
|
|
28
|
-
|
|
29
|
-
```text
|
|
30
|
-
apps/
|
|
31
|
-
├── backend/<project>/
|
|
32
|
-
└── frontend/<project>/
|
|
33
|
-
docs/releases/
|
|
34
|
-
docs/implementation/
|
|
35
|
-
```
|
|
36
|
-
|
|
37
|
-
`apps/backend/` 和 `apps/frontend/` 只能作为项目容器,不能直接生成工程;`app/backend/`、`app/frontend/` 及其子路径禁止使用。`git-submodule` 挂载点仍是上述具体项目目录,但是 gitlink,不能登记成 `harness-apps`。不得由 Agent 自行新建任意顶层业务代码目录。实现仓库接入和跨仓库切片绑定见 `docs/process/implementation-repo-integration.md`。
|
|
38
|
-
|
|
39
|
-
## 2. 工具分工
|
|
40
|
-
|
|
41
|
-
| 工具 | 负责什么 | 你应该什么时候用 |
|
|
42
|
-
|---|---|---|
|
|
43
|
-
| `yss-product-lifecycle` | 判断生命周期阶段、缺失资产、最近可信阶段和最小 skill 集合 | 不确定当前应补 Spec、设计、OpenAPI、架构、Ticket 还是实现时 |
|
|
44
|
-
| `competitive-intelligence` | 竞品、替代方案、定价、定位、用户口碑和市场事实研究 | 进入 Discovery / Spec 前需要外部事实支撑时 |
|
|
45
|
-
| Matt Engineering Skills | 澄清、Spec、Ticket、实现、TDD、诊断、审查、架构治理 | 大部分通用工程流程 |
|
|
46
|
-
| YSS skills | DDD、UI、OpenAPI、Repository、Controller、DTO、组件规范 | 进入具体前后端实现或专项审查时 |
|
|
47
|
-
| OpenAPI 3.1 | 前后端 API 契约 | 任何接口路径、schema、错误、分页、并发,或需求明确的认证 / 授权语义变化时 |
|
|
48
|
-
| OpenSpec-style Spec Delta | 行为差异、验收场景和测试映射 | API、状态机、数据模型、跨端、新模块或高风险行为变化时;明确的认证 / 授权行为按其实际影响记录 |
|
|
49
|
-
| Ticket tracker | 状态同步和切片追踪 | 人工暂停、handoff、进入实现、合并、发布,以及验证失败或阻塞更新时 |
|
|
50
|
-
|
|
51
|
-
一句话:
|
|
52
|
-
|
|
53
|
-
```text
|
|
54
|
-
Spec 管用户价值,OpenAPI 管接口契约,Spec Delta 管行为差异,Ticket 管交付切片,YSS 管工程规范,Matt skills 管工作方法。
|
|
55
|
-
```
|
|
56
|
-
|
|
57
|
-
## 3. 新建工程的初始化流程
|
|
58
|
-
|
|
59
|
-
### Step 1: 填写产品身份
|
|
60
|
-
|
|
61
|
-
先把模板从“通用模板”改成“你的产品工程”。
|
|
62
|
-
|
|
63
|
-
建议更新:
|
|
64
|
-
|
|
65
|
-
```text
|
|
66
|
-
README.md
|
|
67
|
-
AGENTS.md
|
|
68
|
-
CONTEXT.md
|
|
69
|
-
```
|
|
70
|
-
|
|
71
|
-
最少要写清楚:
|
|
72
|
-
|
|
73
|
-
- 产品名称,例如“数据中台模型管理”。
|
|
74
|
-
- 主要用户,例如数据建模人员、实施顾问、平台管理员。
|
|
75
|
-
- 核心业务对象,例如模型、字段、版本、发布、血缘、数据源。
|
|
76
|
-
- 技术边界,例如是否包含数据同步、指标管理、权限审批、数据质量。
|
|
77
|
-
|
|
78
|
-
### Step 2: 建立领域词汇
|
|
79
|
-
|
|
80
|
-
在 `CONTEXT.md` 的 `## 业务术语` 中只放稳定业务语言,并填写 PascalCase `英文标识`。不放实现细节、类全名或表名。格式以根目录 `CONTEXT.md` 为准。
|
|
81
|
-
|
|
82
|
-
示例(仅用户指南;不要把虚构行写入模板源 `## 业务术语`):
|
|
83
|
-
|
|
84
|
-
| 术语 | 含义 | 英文标识 | 避免 / 备注 |
|
|
85
|
-
|---|---|---|---|
|
|
86
|
-
| 模型 | 对业务数据结构的抽象定义 | Model | 不等同于数据库表;Table |
|
|
87
|
-
| 字段 | 模型中的属性定义 | Field | SchemaColumn |
|
|
88
|
-
| 草稿版本 | 可编辑但未发布的模型版本 | DraftVersion | 不能被生产服务引用 |
|
|
89
|
-
| 发布版本 | 已冻结的可引用版本 | PublishedVersion | 上线、提交;Release、OnlineVersion |
|
|
90
|
-
| 模型校验 | 发布前对字段、命名、关系和约束的检查 | ModelValidation | 失败时需要字段级错误 |
|
|
91
|
-
|
|
92
|
-
这一步会直接影响后续 AI 生成 Spec、API、代码和测试的质量。可用 `domain-modeling` 持续维护领域语言和 ADR。
|
|
93
|
-
|
|
94
|
-
### Step 3: 确认实现仓库和产物目录
|
|
95
|
-
|
|
96
|
-
当前仓库默认作为研发管理仓库,前后端源码默认保留在独立实现仓库。每个需求进入实现前,必须记录后端 / 前端实现仓库、分支、MR / PR、CI、测试命令和验证证据。
|
|
97
|
-
|
|
98
|
-
发布和实施产物保存在:
|
|
99
|
-
|
|
100
|
-
```text
|
|
101
|
-
docs/releases/
|
|
102
|
-
docs/implementation/
|
|
103
|
-
```
|
|
104
|
-
|
|
105
|
-
## 4. 生命周期主流程
|
|
106
|
-
|
|
107
|
-
日常按主阶段推进。条件门禁只用于裁决命中的影响面;产物、工作单元和证据不是门禁的同义词,不要求每个需求逐项跑完。阶段、产物、模板和必需 / 条件必需规则的权威索引见:
|
|
108
|
-
|
|
109
|
-
```text
|
|
110
|
-
docs/process/lifecycle-registry.yaml
|
|
111
|
-
```
|
|
112
|
-
|
|
113
|
-
推荐主线:
|
|
114
|
-
|
|
115
|
-
```text
|
|
116
|
-
1. 入口分诊
|
|
117
|
-
2. 机会与 Discovery
|
|
118
|
-
3. 业务 / Spec / 功能架构
|
|
119
|
-
4. 产品设计与需求冻结
|
|
120
|
-
5. 系统 / 数据架构与工程契约设计审查
|
|
121
|
-
6. 契约冻结与 Ticket 正式化
|
|
122
|
-
7. 垂直切片与 TDD 实现
|
|
123
|
-
8. 验证发布与复盘
|
|
124
|
-
```
|
|
125
|
-
|
|
126
|
-
常见入口:
|
|
127
|
-
|
|
128
|
-
- 只有一个模糊想法:先机会探索,再用 `grill-with-docs` 收敛用户、痛点、MVP、非目标和成功标准。
|
|
129
|
-
- 已有行业、竞品或用户材料:先用 `competitive-intelligence` 做 Discovery 事实整理,再生成 Spec。
|
|
130
|
-
- 明确 Bug 或小调整:不走完整机会探索环,直接用 `diagnosing-bugs` 或最小改动加验证。
|
|
131
|
-
- 已有功能的小需求变更:先做影响面评估,选择最近可信阶段,只更新受影响资产和下游门禁。
|
|
132
|
-
- 新模块、API 或跨端改动:必须按生命周期注册表的主阶段推进;有 UI 时必须经过产品设计、原型评审和需求冻结;有 API 时必须完成 API 影响分析 / 契约草案、必要的 Spec Delta、工程基线、系统 / 数据架构、Design Review、OpenAPI Freeze,再进入 `to-tickets`、垂直切片和 TDD。
|
|
133
|
-
|
|
134
|
-
## 5. `yss-product-lifecycle` 使用入口
|
|
135
|
-
|
|
136
|
-
当你不知道当前应该补 Discovery、Spec、OpenAPI、工程基线、垂直切片还是 YSS 实现技能时,先使用 `yss-product-lifecycle`。
|
|
137
|
-
|
|
138
|
-
它的职责是阶段判断和路由,不替代 Matt skills、`yss-router` 或具体 YSS 专项技能。
|
|
139
|
-
|
|
140
|
-
推荐使用场景:
|
|
141
|
-
|
|
142
|
-
- 新产品、新模块或跨端/API 改动:先判断生命周期阶段和缺失资产。
|
|
143
|
-
- 小需求变更或迭代:判断现有 Spec、产品总体设计、交互设计、OpenAPI、架构、垂直切片中哪一层最早受影响。
|
|
144
|
-
- 已有 Spec 或设计材料:检查是否可以进入产品总体设计、API 影响分析 / 契约草案、工程基线、Ticket 或垂直切片。
|
|
145
|
-
- 实现前:确认 Spec、OpenAPI Freeze、工程基线、设计审查和垂直切片是否齐备。
|
|
146
|
-
|
|
147
|
-
推荐提示词:
|
|
148
|
-
|
|
149
|
-
```text
|
|
150
|
-
使用 yss-product-lifecycle,检查当前需求处于哪个生命周期阶段,
|
|
151
|
-
列出已有资产、缺失资产、是否阻塞,以及下一步应该调用的最小 skill 集合。
|
|
152
|
-
```
|
|
153
|
-
|
|
154
|
-
## 6. 从需求到实现的标准链路
|
|
155
|
-
|
|
156
|
-
### 6.1 澄清需求
|
|
157
|
-
|
|
158
|
-
使用 `grill-with-docs`,把想法问到可以进入 Spec:
|
|
159
|
-
|
|
160
|
-
```text
|
|
161
|
-
使用 grill-with-docs,围绕“<功能名>”澄清用户、痛点、MVP、非目标、成功标准、边界条件和人工审查点。
|
|
162
|
-
请同步检查 CONTEXT.md 中是否需要补充领域术语,必要时提出 ADR 候选。
|
|
163
|
-
```
|
|
164
|
-
|
|
165
|
-
### 6.2 生成 Spec
|
|
166
|
-
|
|
167
|
-
已有足够上下文后使用 `to-spec`:
|
|
168
|
-
|
|
169
|
-
```text
|
|
170
|
-
使用 to-spec,把当前讨论整理为 Spec。
|
|
171
|
-
正文使用中文,包含用户故事、验收标准、非目标范围、OpenAPI 影响、测试决策、AI/人工审查点和风险 / 回滚约束。
|
|
172
|
-
```
|
|
173
|
-
|
|
174
|
-
### 6.3 设计产品和契约
|
|
175
|
-
|
|
176
|
-
有 UI 时先走设计系统、`product-design:index` 路由的产品设计、低保真原型评审、Ant Design v6 高保真 HTML 原型、AntD CLI 校验证据和用户确认记录。涉及 API 时,先生成 review-only OpenAPI Draft:
|
|
177
|
-
|
|
178
|
-
```text
|
|
179
|
-
基于 Spec 和产品设计,生成 OpenAPI 3.1 Draft。
|
|
180
|
-
Draft 仅用于评审,不得作为实现或生成客户端的稳定契约。
|
|
181
|
-
请检查 YSS response wrappers、错误结构、分页、并发和契约测试 seam。只有 Spec 明确改变认证或授权行为时,才把对应 `401` / `403`、资源过滤和错误语义作为普通 API 行为审查。
|
|
182
|
-
如涉及 API、权限、状态机、数据模型、跨端、新模块或高风险行为变化,请同步生成 OpenSpec-style Spec Delta,记录 ADDED / MODIFIED / REMOVED、验收场景和测试映射。
|
|
183
|
-
```
|
|
184
|
-
|
|
185
|
-
Draft 经工程基线、系统 / 数据架构和 Design Review 通过后,记录 OpenAPI Freeze。
|
|
186
|
-
|
|
187
|
-
### 6.4 拆分垂直切片
|
|
188
|
-
|
|
189
|
-
OpenAPI Freeze 或无 API 影响记录完成后使用 `to-tickets`:
|
|
190
|
-
|
|
191
|
-
```text
|
|
192
|
-
使用 to-tickets,基于 Spec、OpenAPI Freeze 和架构设计,把功能拆成可独立验证的垂直切片 Ticket。
|
|
193
|
-
每个 Ticket 必须包含用户价值、验收标准、测试命令、依赖、回滚点、YSS skill routing,以及需要人工确认的事项(如适用)。
|
|
194
|
-
```
|
|
195
|
-
|
|
196
|
-
### 6.5 实现与审查
|
|
197
|
-
|
|
198
|
-
实现前先用 `yss-router` 选最小 YSS skill 集合。业务行为默认用 `tdd`,Bug 默认从 `diagnosing-bugs` 开始,完成后用 `code-review` 或独立 review 检查。
|
|
199
|
-
|
|
200
|
-
```text
|
|
201
|
-
使用 yss-router 为 <slice> 选择最小 YSS skill 集合。
|
|
202
|
-
然后使用 implement / tdd 完成该垂直切片。
|
|
203
|
-
请记录 RED / GREEN 证据、验证命令、架构清单回勾和人审点。
|
|
204
|
-
```
|
|
205
|
-
|
|
206
|
-
## 7. OpenAPI 契约规则
|
|
207
|
-
|
|
208
|
-
- Draft 阶段允许调整接口,但不能被当成稳定实现契约。
|
|
209
|
-
- Freeze 后的契约变更必须回到 API 影响分析、架构 / 数据设计和 Design Review,不能边写代码边悄悄改接口。
|
|
210
|
-
- OpenAPI 不得只基于 Spec 反推:必须结合产品总体设计 / 功能架构;有 UI 时还必须结合页面 / 原型 / 交互说明、状态矩阵、低保真原型评审、Ant Design v6 高保真 HTML 原型、AntD CLI 校验证据和用户确认记录。
|
|
211
|
-
- OpenAPI Freeze 后进入 `to-tickets`,再进入前后端实现和契约测试。
|
|
212
|
-
|
|
213
|
-
## 8. 验证、发布和复盘
|
|
214
|
-
|
|
215
|
-
任何“完成 / 可合并 / 可发布”结论必须有 fresh verification 证据。最少记录:
|
|
216
|
-
|
|
217
|
-
- 运行的命令。
|
|
218
|
-
- 运行时间或当前提交。
|
|
219
|
-
- 结果摘要。
|
|
220
|
-
- 失败项或未覆盖风险。
|
|
221
|
-
- 是否存在高风险变更、人工确认项或回滚约束。
|
|
222
|
-
|
|
223
|
-
发布前补齐发布说明、实施步骤和回滚方案。发生架构返工、重要 review finding、verify 返工或人工确认延期时,必须写复盘,并把流程修订回写到 `AGENTS.md`、生命周期文档、ADR 或模板中。
|