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.
Files changed (191) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  3. package/template/.agents/skills/maintaining-skills/SKILL.md +1 -1
  4. package/template/.agents/skills/yss-antd-design/references/evidence.md +4 -0
  5. package/template/.agents/skills/yss-design-system/SKILL.md +3 -1
  6. package/template/.agents/skills/yss-page-module-development/SKILL.md +1 -1
  7. package/template/.agents/skills/yss-product-lifecycle/SKILL.md +3 -1
  8. package/template/.agents/skills/yss-product-lifecycle/references/matt-yss-adapter.md +2 -2
  9. package/template/.agents/skills/yss-product-lifecycle/references/orchestration-contract.yaml +46 -1
  10. package/template/.agents/skills/yss-product-lifecycle/references/orchestration.md +6 -0
  11. package/template/.agents/skills/yss-prototype-stage/SKILL.md +11 -6
  12. package/template/.agents/skills/yss-prototype-stage/references/product-design-adapter.md +54 -0
  13. package/template/.agents/skills/yss-prototype-stage/scripts/prototype-contract.mjs +207 -0
  14. package/template/.agents/skills/yss-prototype-stage/tests/run-scenarios.mjs +154 -0
  15. package/template/.agents/skills/yss-router/references/boundaries.md +1 -1
  16. package/template/.agents/skills/yss-router/references/router-contract.yaml +30 -3
  17. package/template/.agents/skills/yss-router/references/slice-implementation-contract.md +14 -0
  18. package/template/.agents/skills/yss-router/references/yss-skill-execution-result.md +5 -0
  19. package/template/.agents/skills/yss-ui/references/antdv-compatibility.md +1 -1
  20. package/template/.claude/skills/maintaining-skills/SKILL.md +1 -1
  21. package/template/.claude/skills/yss-antd-design/references/evidence.md +4 -0
  22. package/template/.claude/skills/yss-design-system/SKILL.md +3 -1
  23. package/template/.claude/skills/yss-page-module-development/SKILL.md +1 -1
  24. package/template/.claude/skills/yss-product-lifecycle/SKILL.md +3 -1
  25. package/template/.claude/skills/yss-product-lifecycle/references/matt-yss-adapter.md +2 -2
  26. package/template/.claude/skills/yss-product-lifecycle/references/orchestration-contract.yaml +46 -1
  27. package/template/.claude/skills/yss-product-lifecycle/references/orchestration.md +6 -0
  28. package/template/.claude/skills/yss-prototype-stage/SKILL.md +11 -6
  29. package/template/.claude/skills/yss-prototype-stage/references/product-design-adapter.md +54 -0
  30. package/template/.claude/skills/yss-prototype-stage/scripts/prototype-contract.mjs +207 -0
  31. package/template/.claude/skills/yss-prototype-stage/tests/run-scenarios.mjs +154 -0
  32. package/template/.claude/skills/yss-router/references/boundaries.md +1 -1
  33. package/template/.claude/skills/yss-router/references/router-contract.yaml +30 -3
  34. package/template/.claude/skills/yss-router/references/slice-implementation-contract.md +14 -0
  35. package/template/.claude/skills/yss-router/references/yss-skill-execution-result.md +5 -0
  36. package/template/.claude/skills/yss-ui/references/antdv-compatibility.md +1 -1
  37. package/template/.codex/skills/maintaining-skills/SKILL.md +1 -1
  38. package/template/.codex/skills/yss-antd-design/references/evidence.md +4 -0
  39. package/template/.codex/skills/yss-design-system/SKILL.md +3 -1
  40. package/template/.codex/skills/yss-page-module-development/SKILL.md +1 -1
  41. package/template/.codex/skills/yss-product-lifecycle/SKILL.md +3 -1
  42. package/template/.codex/skills/yss-product-lifecycle/references/matt-yss-adapter.md +2 -2
  43. package/template/.codex/skills/yss-product-lifecycle/references/orchestration-contract.yaml +46 -1
  44. package/template/.codex/skills/yss-product-lifecycle/references/orchestration.md +6 -0
  45. package/template/.codex/skills/yss-prototype-stage/SKILL.md +11 -6
  46. package/template/.codex/skills/yss-prototype-stage/references/product-design-adapter.md +54 -0
  47. package/template/.codex/skills/yss-prototype-stage/scripts/prototype-contract.mjs +207 -0
  48. package/template/.codex/skills/yss-prototype-stage/tests/run-scenarios.mjs +154 -0
  49. package/template/.codex/skills/yss-router/references/boundaries.md +1 -1
  50. package/template/.codex/skills/yss-router/references/router-contract.yaml +30 -3
  51. package/template/.codex/skills/yss-router/references/slice-implementation-contract.md +14 -0
  52. package/template/.codex/skills/yss-router/references/yss-skill-execution-result.md +5 -0
  53. package/template/.codex/skills/yss-ui/references/antdv-compatibility.md +1 -1
  54. package/template/.cursor/skills/maintaining-skills/SKILL.md +1 -1
  55. package/template/.cursor/skills/yss-antd-design/references/evidence.md +4 -0
  56. package/template/.cursor/skills/yss-design-system/SKILL.md +3 -1
  57. package/template/.cursor/skills/yss-page-module-development/SKILL.md +1 -1
  58. package/template/.cursor/skills/yss-product-lifecycle/SKILL.md +3 -1
  59. package/template/.cursor/skills/yss-product-lifecycle/references/matt-yss-adapter.md +2 -2
  60. package/template/.cursor/skills/yss-product-lifecycle/references/orchestration-contract.yaml +46 -1
  61. package/template/.cursor/skills/yss-product-lifecycle/references/orchestration.md +6 -0
  62. package/template/.cursor/skills/yss-prototype-stage/SKILL.md +11 -6
  63. package/template/.cursor/skills/yss-prototype-stage/references/product-design-adapter.md +54 -0
  64. package/template/.cursor/skills/yss-prototype-stage/scripts/prototype-contract.mjs +207 -0
  65. package/template/.cursor/skills/yss-prototype-stage/tests/run-scenarios.mjs +154 -0
  66. package/template/.cursor/skills/yss-router/references/boundaries.md +1 -1
  67. package/template/.cursor/skills/yss-router/references/router-contract.yaml +30 -3
  68. package/template/.cursor/skills/yss-router/references/slice-implementation-contract.md +14 -0
  69. package/template/.cursor/skills/yss-router/references/yss-skill-execution-result.md +5 -0
  70. package/template/.cursor/skills/yss-ui/references/antdv-compatibility.md +1 -1
  71. package/template/.hermes/skills/maintaining-skills/SKILL.md +1 -1
  72. package/template/.hermes/skills/yss-antd-design/references/evidence.md +4 -0
  73. package/template/.hermes/skills/yss-design-system/SKILL.md +3 -1
  74. package/template/.hermes/skills/yss-page-module-development/SKILL.md +1 -1
  75. package/template/.hermes/skills/yss-product-lifecycle/SKILL.md +3 -1
  76. package/template/.hermes/skills/yss-product-lifecycle/references/matt-yss-adapter.md +2 -2
  77. package/template/.hermes/skills/yss-product-lifecycle/references/orchestration-contract.yaml +46 -1
  78. package/template/.hermes/skills/yss-product-lifecycle/references/orchestration.md +6 -0
  79. package/template/.hermes/skills/yss-prototype-stage/SKILL.md +11 -6
  80. package/template/.hermes/skills/yss-prototype-stage/references/product-design-adapter.md +54 -0
  81. package/template/.hermes/skills/yss-prototype-stage/scripts/prototype-contract.mjs +207 -0
  82. package/template/.hermes/skills/yss-prototype-stage/tests/run-scenarios.mjs +154 -0
  83. package/template/.hermes/skills/yss-router/references/boundaries.md +1 -1
  84. package/template/.hermes/skills/yss-router/references/router-contract.yaml +30 -3
  85. package/template/.hermes/skills/yss-router/references/slice-implementation-contract.md +14 -0
  86. package/template/.hermes/skills/yss-router/references/yss-skill-execution-result.md +5 -0
  87. package/template/.hermes/skills/yss-ui/references/antdv-compatibility.md +1 -1
  88. package/template/.pi/skills/maintaining-skills/SKILL.md +1 -1
  89. package/template/.pi/skills/yss-antd-design/references/evidence.md +4 -0
  90. package/template/.pi/skills/yss-design-system/SKILL.md +3 -1
  91. package/template/.pi/skills/yss-page-module-development/SKILL.md +1 -1
  92. package/template/.pi/skills/yss-product-lifecycle/SKILL.md +3 -1
  93. package/template/.pi/skills/yss-product-lifecycle/references/matt-yss-adapter.md +2 -2
  94. package/template/.pi/skills/yss-product-lifecycle/references/orchestration-contract.yaml +46 -1
  95. package/template/.pi/skills/yss-product-lifecycle/references/orchestration.md +6 -0
  96. package/template/.pi/skills/yss-prototype-stage/SKILL.md +11 -6
  97. package/template/.pi/skills/yss-prototype-stage/references/product-design-adapter.md +54 -0
  98. package/template/.pi/skills/yss-prototype-stage/scripts/prototype-contract.mjs +207 -0
  99. package/template/.pi/skills/yss-prototype-stage/tests/run-scenarios.mjs +154 -0
  100. package/template/.pi/skills/yss-router/references/boundaries.md +1 -1
  101. package/template/.pi/skills/yss-router/references/router-contract.yaml +30 -3
  102. package/template/.pi/skills/yss-router/references/slice-implementation-contract.md +14 -0
  103. package/template/.pi/skills/yss-router/references/yss-skill-execution-result.md +5 -0
  104. package/template/.pi/skills/yss-ui/references/antdv-compatibility.md +1 -1
  105. package/template/.qoder/skills/maintaining-skills/SKILL.md +1 -1
  106. package/template/.qoder/skills/yss-antd-design/references/evidence.md +4 -0
  107. package/template/.qoder/skills/yss-design-system/SKILL.md +3 -1
  108. package/template/.qoder/skills/yss-page-module-development/SKILL.md +1 -1
  109. package/template/.qoder/skills/yss-product-lifecycle/SKILL.md +3 -1
  110. package/template/.qoder/skills/yss-product-lifecycle/references/matt-yss-adapter.md +2 -2
  111. package/template/.qoder/skills/yss-product-lifecycle/references/orchestration-contract.yaml +46 -1
  112. package/template/.qoder/skills/yss-product-lifecycle/references/orchestration.md +6 -0
  113. package/template/.qoder/skills/yss-prototype-stage/SKILL.md +11 -6
  114. package/template/.qoder/skills/yss-prototype-stage/references/product-design-adapter.md +54 -0
  115. package/template/.qoder/skills/yss-prototype-stage/scripts/prototype-contract.mjs +207 -0
  116. package/template/.qoder/skills/yss-prototype-stage/tests/run-scenarios.mjs +154 -0
  117. package/template/.qoder/skills/yss-router/references/boundaries.md +1 -1
  118. package/template/.qoder/skills/yss-router/references/router-contract.yaml +30 -3
  119. package/template/.qoder/skills/yss-router/references/slice-implementation-contract.md +14 -0
  120. package/template/.qoder/skills/yss-router/references/yss-skill-execution-result.md +5 -0
  121. package/template/.qoder/skills/yss-ui/references/antdv-compatibility.md +1 -1
  122. package/template/.trae/skills/maintaining-skills/SKILL.md +1 -1
  123. package/template/.trae/skills/yss-antd-design/references/evidence.md +4 -0
  124. package/template/.trae/skills/yss-design-system/SKILL.md +3 -1
  125. package/template/.trae/skills/yss-page-module-development/SKILL.md +1 -1
  126. package/template/.trae/skills/yss-product-lifecycle/SKILL.md +3 -1
  127. package/template/.trae/skills/yss-product-lifecycle/references/matt-yss-adapter.md +2 -2
  128. package/template/.trae/skills/yss-product-lifecycle/references/orchestration-contract.yaml +46 -1
  129. package/template/.trae/skills/yss-product-lifecycle/references/orchestration.md +6 -0
  130. package/template/.trae/skills/yss-prototype-stage/SKILL.md +11 -6
  131. package/template/.trae/skills/yss-prototype-stage/references/product-design-adapter.md +54 -0
  132. package/template/.trae/skills/yss-prototype-stage/scripts/prototype-contract.mjs +207 -0
  133. package/template/.trae/skills/yss-prototype-stage/tests/run-scenarios.mjs +154 -0
  134. package/template/.trae/skills/yss-router/references/boundaries.md +1 -1
  135. package/template/.trae/skills/yss-router/references/router-contract.yaml +30 -3
  136. package/template/.trae/skills/yss-router/references/slice-implementation-contract.md +14 -0
  137. package/template/.trae/skills/yss-router/references/yss-skill-execution-result.md +5 -0
  138. package/template/.trae/skills/yss-ui/references/antdv-compatibility.md +1 -1
  139. package/template/AGENTS.md +5 -4
  140. package/template/CONTEXT.md +2 -2
  141. package/template/DESIGN.md +203 -0
  142. package/template/README.md +10 -11
  143. package/template/__yss_dotfile__.gitignore +1 -0
  144. package/template/docs/agents/digital-human-roles.md +1 -1
  145. package/template/docs/agents/digital-human-roles.yaml +17 -21
  146. package/template/docs/agents/skills-maintenance.md +2 -2
  147. package/template/docs/agents/yss-plugin-dependency-contract.md +45 -0
  148. package/template/docs/agents/yss-skill-registry.yaml +30 -1
  149. package/template/docs/api/templates/openapi-draft-review-checklist.md +2 -2
  150. package/template/docs/architecture/templates/engineering-baseline-review-template.md +19 -0
  151. package/template/docs/design/README.md +14 -3
  152. package/template/docs/design/design-system-sync.yaml +12 -0
  153. package/template/docs/design/design.md +69 -10
  154. package/template/docs/design/preview-dark.html +15 -0
  155. package/template/docs/design/preview.html +20 -0
  156. package/template/docs/design/templates/interaction-spec-template.md +2 -2
  157. package/template/docs/design/templates/prototype-confirmation-template.md +1 -1
  158. package/template/docs/design/templates/prototype-evidence-template.yaml +52 -10
  159. package/template/docs/design/tokens/.design-md-projection.json +13 -0
  160. package/template/docs/discovery/reports/agent-governance-options.md +71 -0
  161. package/template/docs/process/harness-process-tailoring.md +12 -5
  162. package/template/docs/process/lifecycle-registry-baseline.json +1 -1
  163. package/template/docs/process/lifecycle-registry.yaml +1 -1
  164. package/template/docs/process/template-engineering-overview.md +2 -2
  165. package/template/docs/process/template-verification-profiles.yaml +15 -1
  166. package/template/docs/process/templates/maintenance-checkpoint-template.yaml +3 -12
  167. package/template/docs/templates/build-architecture-checklist-template.md +2 -0
  168. package/template/docs/templates/implementation-routing-template.md +23 -0
  169. package/template/docs/templates/requirement-freeze-template.md +1 -1
  170. 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
  171. package/template/docs/user-guide//347/224/250/346/210/267/346/211/213/345/206/214.md +1014 -0
  172. 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
  173. package/template/scripts/lib/digital-human-roles.mjs +0 -1
  174. package/template/scripts/lib/maintenance-intensity.mjs +24 -10
  175. package/template/scripts/lib/skill-governance.mjs +19 -0
  176. package/template/scripts/lib/skill-registry.mjs +70 -0
  177. package/template/scripts/node-verify-lifecycle-registry.mjs +1 -1
  178. package/template/scripts/verify-digital-human-roles-scenarios +1 -1
  179. package/template/scripts/verify-template-verification-scenarios +5 -0
  180. package/template/scripts/verify-yss-prototype-contract-scenarios +2 -0
  181. package/template/skills-lock.json +8 -8
  182. package/template.manifest.json +1 -0
  183. package/template.snapshot.json +5 -5
  184. 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
  185. 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
  186. 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
  187. 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
  188. 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
  189. 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
  190. 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
  191. 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,117 +0,0 @@
1
- # `create-yss-spec` 外部 CLI 实践指南
2
-
3
- 本文面向需要基于 YSS Spec Project Template 初始化、接管已有项目或持续同步研发管理资产的使用者。CLI 源码、测试和发布由独立项目 [iloveZzz/create-yss-spec](https://github.com/iloveZzz/create-yss-spec) 维护;本模板仓库只记录使用方法和跨仓库契约。
4
-
5
- ## 适用范围
6
-
7
- `create-yss-spec` 用于生成或补齐包含 Spec、架构、OpenAPI、Ticket 和 Agent 协作基线的模板实例仓库。它不负责生成前后端运行时工程,也不会代替你创建远程 Git 仓库、CI 或 Ticket Board。
8
-
9
- “最新模板”指用户执行的 `npx create-yss-spec@latest` 所携带的最新已发布快照。CLI 运行时不会直接拉取模板仓库;每个实例 metadata 都记录绑定的 `templateCommit`,便于审计、升级和回滚。
10
-
11
- ## 空目录初始化
12
-
13
- 推荐使用 npm create 入口:
14
-
15
- ```bash
16
- npm create yss-spec@latest
17
- ```
18
-
19
- 也可直接通过 npx 执行:
20
-
21
- ```bash
22
- npx create-yss-spec@latest \
23
- --project-name "项目名称" \
24
- --business-domain "业务领域" \
25
- --target-dir "./project" \
26
- --git-init
27
- ```
28
-
29
- 初始化会把模板源身份转换为 `repository_mode: project-instance`,并写入 metadata schema v2。`--dry-run` 只预览,不创建目录、不删除文件。
30
-
31
- ## 接管已有项目
32
-
33
- 在已有项目根目录执行 `attach`,只补齐 manifest 声明的研发管理资产,包括根规则文档、`docs/`、skills、投影、校验脚本和 metadata。前后端运行时代码、业务目录、用户文件和 `.git` 原样保留。
34
-
35
- 先预演:
36
-
37
- ```bash
38
- npx create-yss-spec@latest attach \
39
- --target-dir . \
40
- --project-name "项目名称" \
41
- --business-domain "业务领域" \
42
- --dry-run
43
- ```
44
-
45
- 确认计划后写入:
46
-
47
- ```bash
48
- npx create-yss-spec@latest attach \
49
- --target-dir . \
50
- --project-name "项目名称" \
51
- --business-domain "业务领域" \
52
- --apply [--force]
53
- ```
54
-
55
- 约束:
56
-
57
- - `--dry-run` 与 `--apply` 互斥,且必须显式选择其中一个。
58
- - 已有 `.yss-template.json` 时拒绝重复接管,请使用 `sync`。
59
- - 合法 `template-source` 会转换为 `project-instance`;合法 `project-instance` 保留并校验;身份文件字段、schema 或 mode 非法时阻断。
60
- - 受管路径计划分为 `missing`、`matched`、`conflict`、`unsafe`。`--force` 只允许覆盖 conflict,不能绕过 unsafe、迁移冲突或无法归属的扁平 Ticket。
61
- - 覆盖前会在目标目录外创建临时备份;验证失败自动回滚,metadata 不更新。成功后备份默认保留,并输出恢复路径和清理命令。
62
- - Git worktree 有脏改动时允许继续,但会强提醒;CLI 不自动 stash 或提交。
63
-
64
- ## 持续同步模板
65
-
66
- 已初始化或已 attach 的项目根目录存在 `.yss-template.json` 后,可以先预演:
67
-
68
- ```bash
69
- npx create-yss-spec@latest sync \
70
- --target-dir . \
71
- --dry-run
72
- ```
73
-
74
- 确认后执行:
75
-
76
- ```bash
77
- npx create-yss-spec@latest sync \
78
- --target-dir . [--force]
79
- ```
80
-
81
- 普通同步会新增缺失文件,更新 baseline 未被本地修改的文件,并报告冲突。`sync --force` 会先备份,再覆盖所有受管 conflict;模板删除的文件默认只报告不删除,模板无关文件始终不覆盖。旧路径只有在固定迁移计划安全完成时才移动或删除。
82
-
83
- 同步结束会重新运行:
84
-
85
- ```bash
86
- scripts/sync-skills --check
87
- scripts/update-skill-lock --check
88
- scripts/verify-template
89
- ```
90
-
91
- 任一门禁失败都会回滚本轮文件变更,并保留旧 metadata 版本。
92
-
93
- ## 生成后检查
94
-
95
- 初始化、attach 或 sync 后,至少完成以下检查:
96
-
97
- 1. 运行 `git status --short`,确认实际变更范围。
98
- 2. 检查 `AGENTS.md`、`CONTEXT.md`、`README.md`、`yss-project.yaml` 和 `docs/`。
99
- 3. 确认 `.yss-template.json` 的 `templateCommit` 为 40 位 commit,并核对 `managedFilesManifestVersion`。
100
- 4. 确认 `.qoder/skills`、其他 skills projection 和 `skills-lock.json` 门禁通过。
101
- 5. 人工处理冲突和只报告未删除的文件,确认无误后再创建 Git checkpoint。
102
-
103
- ## 问题定位边界
104
-
105
- - CLI 安装、参数解析、初始化、attach、同步、npm 发布或 CLI 测试问题:在 [create-yss-spec 独立仓库](https://github.com/iloveZzz/create-yss-spec) 追踪。
106
- - 模板内容、流程文档、Agent skills 或 `scripts/verify-template` 问题:在本模板仓库追踪。
107
-
108
- ## 发布与验证
109
-
110
- 模板修复并通过 fresh verification 后,CLI 发布前必须绑定确定模板 commit:
111
-
112
- ```bash
113
- YSS_SPEC_TEMPLATE_REF=<pinned-commit> npm test
114
- YSS_SPEC_TEMPLATE_REF=<pinned-commit> npm pack --dry-run
115
- ```
116
-
117
- 发布顺序为:模板修复与验证 → CLI 绑定 commit 并完成跨仓库测试 → 独立审查 → 发布 CLI `2.1.6`。任一仓库未通过共同验证时,不声明整体可发布。