create-yss-spec 2.1.15 → 2.2.0

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 (187) hide show
  1. package/README.md +6 -2
  2. package/package.json +1 -1
  3. package/src/cli.js +276 -15
  4. package/template/.agents/skills/cross-repo-implementation-routing/SKILL.md +2 -2
  5. package/template/.agents/skills/implementation-repo-onboarding/SKILL.md +5 -5
  6. package/template/.agents/skills/llm-wiki/SKILL.md +1 -1
  7. package/template/.agents/skills/llm-wiki/references/discover.md +1 -0
  8. package/template/.agents/skills/yss-ddd-scaffold-generator/SKILL.md +1 -1
  9. package/template/.agents/skills/yss-ddd-scaffold-generator/scripts/generate_scaffold.mjs +30 -3
  10. package/template/.agents/skills/yss-ddd-scaffold-generator/scripts/scaffold-generator.test.mjs +52 -0
  11. package/template/.agents/skills/yss-frontend-scaffold-generator/SKILL.md +1 -1
  12. package/template/.agents/skills/yss-product-lifecycle/references/matt-yss-adapter.md +1 -1
  13. package/template/.agents/skills/yss-product-lifecycle/references/orchestration-contract.yaml +24 -0
  14. package/template/.agents/skills/yss-product-lifecycle/references/orchestration.md +2 -0
  15. package/template/.agents/skills/yss-product-lifecycle/references/state-model.md +1 -1
  16. package/template/.agents/skills/yss-router/SKILL.md +1 -1
  17. package/template/.agents/skills/yss-router/references/router-contract.yaml +20 -0
  18. package/template/.agents/skills/yss-router/references/slice-implementation-contract.md +1 -1
  19. package/template/.claude/skills/cross-repo-implementation-routing/SKILL.md +2 -2
  20. package/template/.claude/skills/implementation-repo-onboarding/SKILL.md +5 -5
  21. package/template/.claude/skills/llm-wiki/SKILL.md +1 -1
  22. package/template/.claude/skills/llm-wiki/references/discover.md +1 -0
  23. package/template/.claude/skills/yss-ddd-scaffold-generator/SKILL.md +1 -1
  24. package/template/.claude/skills/yss-ddd-scaffold-generator/scripts/generate_scaffold.mjs +30 -3
  25. package/template/.claude/skills/yss-ddd-scaffold-generator/scripts/scaffold-generator.test.mjs +52 -0
  26. package/template/.claude/skills/yss-frontend-scaffold-generator/SKILL.md +1 -1
  27. package/template/.claude/skills/yss-product-lifecycle/references/matt-yss-adapter.md +1 -1
  28. package/template/.claude/skills/yss-product-lifecycle/references/orchestration-contract.yaml +24 -0
  29. package/template/.claude/skills/yss-product-lifecycle/references/orchestration.md +2 -0
  30. package/template/.claude/skills/yss-product-lifecycle/references/state-model.md +1 -1
  31. package/template/.claude/skills/yss-router/SKILL.md +1 -1
  32. package/template/.claude/skills/yss-router/references/router-contract.yaml +20 -0
  33. package/template/.claude/skills/yss-router/references/slice-implementation-contract.md +1 -1
  34. package/template/.codex/skills/cross-repo-implementation-routing/SKILL.md +2 -2
  35. package/template/.codex/skills/implementation-repo-onboarding/SKILL.md +5 -5
  36. package/template/.codex/skills/llm-wiki/SKILL.md +1 -1
  37. package/template/.codex/skills/llm-wiki/references/discover.md +1 -0
  38. package/template/.codex/skills/yss-ddd-scaffold-generator/SKILL.md +1 -1
  39. package/template/.codex/skills/yss-ddd-scaffold-generator/scripts/generate_scaffold.mjs +30 -3
  40. package/template/.codex/skills/yss-ddd-scaffold-generator/scripts/scaffold-generator.test.mjs +52 -0
  41. package/template/.codex/skills/yss-frontend-scaffold-generator/SKILL.md +1 -1
  42. package/template/.codex/skills/yss-product-lifecycle/references/matt-yss-adapter.md +1 -1
  43. package/template/.codex/skills/yss-product-lifecycle/references/orchestration-contract.yaml +24 -0
  44. package/template/.codex/skills/yss-product-lifecycle/references/orchestration.md +2 -0
  45. package/template/.codex/skills/yss-product-lifecycle/references/state-model.md +1 -1
  46. package/template/.codex/skills/yss-router/SKILL.md +1 -1
  47. package/template/.codex/skills/yss-router/references/router-contract.yaml +20 -0
  48. package/template/.codex/skills/yss-router/references/slice-implementation-contract.md +1 -1
  49. package/template/.cursor/skills/cross-repo-implementation-routing/SKILL.md +2 -2
  50. package/template/.cursor/skills/implementation-repo-onboarding/SKILL.md +5 -5
  51. package/template/.cursor/skills/llm-wiki/SKILL.md +1 -1
  52. package/template/.cursor/skills/llm-wiki/references/discover.md +1 -0
  53. package/template/.cursor/skills/yss-ddd-scaffold-generator/SKILL.md +1 -1
  54. package/template/.cursor/skills/yss-ddd-scaffold-generator/scripts/generate_scaffold.mjs +30 -3
  55. package/template/.cursor/skills/yss-ddd-scaffold-generator/scripts/scaffold-generator.test.mjs +52 -0
  56. package/template/.cursor/skills/yss-frontend-scaffold-generator/SKILL.md +1 -1
  57. package/template/.cursor/skills/yss-product-lifecycle/references/matt-yss-adapter.md +1 -1
  58. package/template/.cursor/skills/yss-product-lifecycle/references/orchestration-contract.yaml +24 -0
  59. package/template/.cursor/skills/yss-product-lifecycle/references/orchestration.md +2 -0
  60. package/template/.cursor/skills/yss-product-lifecycle/references/state-model.md +1 -1
  61. package/template/.cursor/skills/yss-router/SKILL.md +1 -1
  62. package/template/.cursor/skills/yss-router/references/router-contract.yaml +20 -0
  63. package/template/.cursor/skills/yss-router/references/slice-implementation-contract.md +1 -1
  64. package/template/.hermes/skills/cross-repo-implementation-routing/SKILL.md +2 -2
  65. package/template/.hermes/skills/implementation-repo-onboarding/SKILL.md +5 -5
  66. package/template/.hermes/skills/llm-wiki/SKILL.md +1 -1
  67. package/template/.hermes/skills/llm-wiki/references/discover.md +1 -0
  68. package/template/.hermes/skills/yss-ddd-scaffold-generator/SKILL.md +1 -1
  69. package/template/.hermes/skills/yss-ddd-scaffold-generator/scripts/generate_scaffold.mjs +30 -3
  70. package/template/.hermes/skills/yss-ddd-scaffold-generator/scripts/scaffold-generator.test.mjs +52 -0
  71. package/template/.hermes/skills/yss-frontend-scaffold-generator/SKILL.md +1 -1
  72. package/template/.hermes/skills/yss-product-lifecycle/references/matt-yss-adapter.md +1 -1
  73. package/template/.hermes/skills/yss-product-lifecycle/references/orchestration-contract.yaml +24 -0
  74. package/template/.hermes/skills/yss-product-lifecycle/references/orchestration.md +2 -0
  75. package/template/.hermes/skills/yss-product-lifecycle/references/state-model.md +1 -1
  76. package/template/.hermes/skills/yss-router/SKILL.md +1 -1
  77. package/template/.hermes/skills/yss-router/references/router-contract.yaml +20 -0
  78. package/template/.hermes/skills/yss-router/references/slice-implementation-contract.md +1 -1
  79. package/template/.pi/skills/cross-repo-implementation-routing/SKILL.md +2 -2
  80. package/template/.pi/skills/implementation-repo-onboarding/SKILL.md +5 -5
  81. package/template/.pi/skills/llm-wiki/SKILL.md +1 -1
  82. package/template/.pi/skills/llm-wiki/references/discover.md +1 -0
  83. package/template/.pi/skills/yss-ddd-scaffold-generator/SKILL.md +1 -1
  84. package/template/.pi/skills/yss-ddd-scaffold-generator/scripts/generate_scaffold.mjs +30 -3
  85. package/template/.pi/skills/yss-ddd-scaffold-generator/scripts/scaffold-generator.test.mjs +52 -0
  86. package/template/.pi/skills/yss-frontend-scaffold-generator/SKILL.md +1 -1
  87. package/template/.pi/skills/yss-product-lifecycle/references/matt-yss-adapter.md +1 -1
  88. package/template/.pi/skills/yss-product-lifecycle/references/orchestration-contract.yaml +24 -0
  89. package/template/.pi/skills/yss-product-lifecycle/references/orchestration.md +2 -0
  90. package/template/.pi/skills/yss-product-lifecycle/references/state-model.md +1 -1
  91. package/template/.pi/skills/yss-router/SKILL.md +1 -1
  92. package/template/.pi/skills/yss-router/references/router-contract.yaml +20 -0
  93. package/template/.pi/skills/yss-router/references/slice-implementation-contract.md +1 -1
  94. package/template/.qoder/skills/cross-repo-implementation-routing/SKILL.md +2 -2
  95. package/template/.qoder/skills/implementation-repo-onboarding/SKILL.md +5 -5
  96. package/template/.qoder/skills/llm-wiki/SKILL.md +1 -1
  97. package/template/.qoder/skills/llm-wiki/references/discover.md +1 -0
  98. package/template/.qoder/skills/yss-ddd-scaffold-generator/SKILL.md +1 -1
  99. package/template/.qoder/skills/yss-ddd-scaffold-generator/scripts/generate_scaffold.mjs +30 -3
  100. package/template/.qoder/skills/yss-ddd-scaffold-generator/scripts/scaffold-generator.test.mjs +52 -0
  101. package/template/.qoder/skills/yss-frontend-scaffold-generator/SKILL.md +1 -1
  102. package/template/.qoder/skills/yss-product-lifecycle/references/matt-yss-adapter.md +1 -1
  103. package/template/.qoder/skills/yss-product-lifecycle/references/orchestration-contract.yaml +24 -0
  104. package/template/.qoder/skills/yss-product-lifecycle/references/orchestration.md +2 -0
  105. package/template/.qoder/skills/yss-product-lifecycle/references/state-model.md +1 -1
  106. package/template/.qoder/skills/yss-router/SKILL.md +1 -1
  107. package/template/.qoder/skills/yss-router/references/router-contract.yaml +20 -0
  108. package/template/.qoder/skills/yss-router/references/slice-implementation-contract.md +1 -1
  109. package/template/.trae/skills/cross-repo-implementation-routing/SKILL.md +2 -2
  110. package/template/.trae/skills/implementation-repo-onboarding/SKILL.md +5 -5
  111. package/template/.trae/skills/llm-wiki/SKILL.md +1 -1
  112. package/template/.trae/skills/llm-wiki/references/discover.md +1 -0
  113. package/template/.trae/skills/yss-ddd-scaffold-generator/SKILL.md +1 -1
  114. package/template/.trae/skills/yss-ddd-scaffold-generator/scripts/generate_scaffold.mjs +30 -3
  115. package/template/.trae/skills/yss-ddd-scaffold-generator/scripts/scaffold-generator.test.mjs +52 -0
  116. package/template/.trae/skills/yss-frontend-scaffold-generator/SKILL.md +1 -1
  117. package/template/.trae/skills/yss-product-lifecycle/references/matt-yss-adapter.md +1 -1
  118. package/template/.trae/skills/yss-product-lifecycle/references/orchestration-contract.yaml +24 -0
  119. package/template/.trae/skills/yss-product-lifecycle/references/orchestration.md +2 -0
  120. package/template/.trae/skills/yss-product-lifecycle/references/state-model.md +1 -1
  121. package/template/.trae/skills/yss-router/SKILL.md +1 -1
  122. package/template/.trae/skills/yss-router/references/router-contract.yaml +20 -0
  123. package/template/.trae/skills/yss-router/references/slice-implementation-contract.md +1 -1
  124. package/template/AGENTS.md +5 -5
  125. package/template/CONTEXT.md +3 -2
  126. package/template/docs/process/implementation-repo-integration.md +24 -2
  127. package/template/docs/templates/cross-repo-slice-template.md +15 -0
  128. package/template/docs/templates/implementation-repo-registry-template.md +8 -3
  129. package/template/docs/templates/implementation-routing-template.md +3 -3
  130. 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 +2 -2
  131. package/template/scripts/lib/git-submodule-fixtures.mjs +58 -0
  132. package/template/scripts/lib/repository-scope-policy.mjs +456 -0
  133. package/template/scripts/lib/scenario-checks.mjs +11 -1
  134. package/template/scripts/repository-scope-policy +16 -0
  135. package/template/scripts/verify-repository-scope-scenarios +239 -0
  136. package/template/scripts/verify-scaffold-generator-scenarios +54 -0
  137. package/template/scripts/verify-template +3 -2
  138. package/template/skills-lock.json +7 -7
  139. package/template.manifest.json +6 -5
  140. package/template.snapshot.json +4 -4
  141. package/template/.cursor/environment.json +0 -5
  142. package/template/.github/workflows/template-node-tooling.yml +0 -61
  143. package/template/wiki/.wiki-manifest.json +0 -390
  144. package/template/wiki/raw/AGENTS.md +0 -122
  145. package/template/wiki/raw/CONTEXT.md +0 -80
  146. package/template/wiki/raw/README.md +0 -130
  147. package/template/wiki/raw/adr-0002-repository-mode.md +0 -3
  148. package/template/wiki/raw/create-yss-spec-repository-mode-contract.md +0 -95
  149. package/template/wiki/raw/harness-process-tailoring.md +0 -64
  150. package/template/wiki/raw/implementation-repo-integration.md +0 -62
  151. package/template/wiki/raw/issue-tracker.md +0 -135
  152. package/template/wiki/raw/lifecycle-registry.yaml +0 -369
  153. package/template/wiki/raw/maintenance-intensity.yaml +0 -25
  154. package/template/wiki/raw/skills-lock-names.md +0 -93
  155. package/template/wiki/raw/skills-maintenance.md +0 -90
  156. package/template/wiki/raw/spec-template.md +0 -102
  157. package/template/wiki/raw/triage-labels.md +0 -15
  158. package/template/wiki/raw/vertical-slice-ticket-template.md +0 -132
  159. package/template/wiki/raw/yss-project.yaml +0 -2
  160. package/template/wiki/raw/yss-skill-registry.yaml +0 -510
  161. package/template/wiki/wiki/Agent/345/205/245/345/217/243/350/247/204/345/210/231.md +0 -21
  162. package/template/wiki/wiki/CLAUDE.md +0 -28
  163. package/template/wiki/wiki/Fresh/351/252/214/350/257/201/344/270/216/347/213/254/347/253/213/345/256/241/346/237/245.md +0 -19
  164. package/template/wiki/wiki/LLM Wiki.md +0 -30
  165. package/template/wiki/wiki/Matt/346/212/200/350/203/275/344/275/223/347/263/273.md +0 -21
  166. package/template/wiki/wiki/OpenAPI/345/245/221/347/272/246.md +0 -20
  167. package/template/wiki/wiki/SpecDelta.md +0 -19
  168. package/template/wiki/wiki/Spec/345/237/272/347/272/277.md +0 -22
  169. package/template/wiki/wiki/Ticket/344/270/216/346/265/201/347/250/213/347/212/266/346/200/201.md +0 -21
  170. package/template/wiki/wiki/YSS/345/267/245/347/250/213/346/212/200/350/203/275/344/275/223/347/263/273.md +0 -23
  171. package/template/wiki/wiki/YSS/350/267/257/347/224/261/344/270/216/345/220/210/345/220/214/347/274/226/350/257/221.md +0 -20
  172. package/template/wiki/wiki/concept-table.md +0 -9
  173. package/template/wiki/wiki/index.md +0 -41
  174. package/template/wiki/wiki/log.md +0 -51
  175. package/template/wiki/wiki//344/272/247/345/223/201/347/240/224/345/217/221/347/224/237/345/221/275/345/221/250/346/234/237.md +0 -20
  176. package/template/wiki/wiki//344/272/247/345/223/201/350/256/276/350/256/241/345/275/261/345/223/215/344/270/216/345/216/237/345/236/213.md +0 -19
  177. package/template/wiki/wiki//344/273/223/345/272/223/350/272/253/344/273/275/344/270/216/350/267/257/347/224/261.md +0 -20
  178. package/template/wiki/wiki//345/210/207/347/211/207/345/256/236/347/216/260/345/220/210/345/220/214.md +0 -21
  179. package/template/wiki/wiki//345/236/202/347/233/264/345/210/207/347/211/207Ticket.md +0 -23
  180. package/template/wiki/wiki//345/244/215/347/233/230/344/270/216/346/235/203/345/250/201/350/265/204/344/272/247/344/277/256/350/256/242.md +0 -20
  181. package/template/wiki/wiki//345/256/236/347/216/260/344/273/223/345/272/223/344/270/216/350/267/250/344/273/223/345/272/223/345/245/221/347/272/246.md +0 -22
  182. package/template/wiki/wiki//345/275/261/345/223/215/351/235/242/345/210/206/350/257/212/344/270/216/346/265/201/347/250/213/350/243/201/345/211/252.md +0 -20
  183. package/template/wiki/wiki//346/212/200/350/203/275/346/212/225/345/275/261/344/270/216/351/224/201/345/256/232.md +0 -23
  184. package/template/wiki/wiki//346/235/241/344/273/266/345/274/272/345/210/266/351/227/250/347/246/201.md +0 -18
  185. package/template/wiki/wiki//346/250/241/346/235/277/345/217/221/345/270/203/351/227/250/347/246/201/344/270/216/351/252/214/350/257/201.md +0 -22
  186. package/template/wiki/wiki//346/250/241/346/235/277/346/200/273/350/247/210.md +0 -20
  187. package/template/wiki/wiki//346/250/241/346/235/277/347/273/264/346/212/244/346/265/201/347/250/213.md +0 -19
@@ -1,15 +0,0 @@
1
- # Triage 标签
2
-
3
- 本文定义 Agent 分诊时使用的五种标准角色,以及它们在当前 Ticket tracker 中对应的标签。
4
-
5
- | 标准角色 | Tracker 标签 | 含义 |
6
- | --- | --- | --- |
7
- | `needs-triage` | `needs-triage` | 等待维护者评估 Ticket |
8
- | `needs-info` | `needs-info` | 等待报告者补充信息 |
9
- | `ready-for-agent` | `ready-for-agent` | 必要门禁已通过、阻塞边已清除,可由 Agent 直接实现的垂直切片 Ticket |
10
- | `ready-for-human` | `ready-for-human` | Spec、设计、契约草案或其他资产需要人工审查、判断或特权访问 |
11
- | `wontfix` | `wontfix` | 不会处理 |
12
-
13
- 当 skill 提及某个标准角色时,使用表中对应的 Tracker 标签。
14
-
15
- Local Markdown 主 tracker 不调用远程标签:在 Ticket 文件顶部使用同名 `Status:` 值记录标准角色。Wayfinder 的 `claimed` / `resolved` 仅是临时工作状态,不属于本表五态;进入交付 Ticket 前必须转换为标准 `Status:`。
@@ -1,132 +0,0 @@
1
- ---
2
- status: ready-for-human
3
- ---
4
-
5
- # 垂直切片 Ticket:<标题>
6
-
7
- Status: ready-for-human
8
-
9
- ## 父级
10
-
11
- <Spec:`docs/.scratch/<feature>/spec.md`;功能父 Ticket:`docs/.scratch/<feature>/parent-ticket.md` 或远程 Issue URL>
12
-
13
- ## 要构建什么
14
-
15
- 描述本 Ticket 要交付的窄而完整的端到端行为。它必须贯穿所有受影响层,是可独立验证的垂直切片,不能只是某一层的横向任务。
16
-
17
- ## 覆盖的用户故事
18
-
19
- - <用户故事 ID 或文本>
20
-
21
- ## OpenAPI 影响
22
-
23
- - [ ] 无
24
- - [ ] 基于冻结 OpenAPI:`docs/.scratch/<feature>/api/<feature>.yaml`
25
-
26
- 受影响端点:
27
-
28
- | 方法 | 路径 | 变更 |
29
- |---|---|---|
30
- | | | |
31
-
32
- ## 验收标准
33
-
34
- - [ ] 标准 1
35
- - [ ] 标准 2
36
- - [ ] 标准 3
37
-
38
- ## 测试 Seam
39
-
40
- - 主要公共接口:
41
- - 必需测试:
42
- - [ ] 行为 / 领域测试
43
- - [ ] API / 契约测试
44
- - [ ] UI / 组件测试
45
- - [ ] E2E 测试
46
-
47
- ## Slice Implementation Contract
48
-
49
- | 字段 | 内容 |
50
- |---|---|
51
- | contract_id | |
52
- | contract_version | |
53
- | contract_ref | |
54
- | Router 状态 | draft / blocked / ready-for-lifecycle-review |
55
- | 生命周期批准状态 | pending / approved / rejected |
56
- | Build Architecture Checklist | |
57
-
58
- > Router 不得自行将合同批准或将本 Ticket 推进为 `ready-for-agent`。只有生命周期编排器核验并持久化当前版本合同、清除阻塞边后,才能推进状态。
59
-
60
- ### 工作单元
61
-
62
- | work_unit_id | 验收行为 / 目标 | primary_skill | supporting_skills | tdd_mode | allowed_write_paths | expected_evidence | verification_commands | Execution Result 引用 | 状态 |
63
- |---|---|---|---|---|---|---|---|---|---|
64
- | | | | | behavior-tdd / controlled-generation | | | | | pending / running / blocked / completed / stale |
65
-
66
- `controlled-generation` 仅允许机械脚手架、样板、冻结客户端或配置,并记录 exception reason、生成器输入和生成后行为测试;业务规则、状态机、事务、权限、错误映射、复杂查询和用户可见交互必须使用 `behavior-tdd`。只有需求明确包含权限业务行为时才把它写入工作单元,不另设安全 / 权限姿态。
67
-
68
- ## YSS 技能与后端实现合同
69
-
70
- > 涉及后端时必须填写;不涉及时写明 `not-applicable`。不得只写“符合 YSS”。
71
-
72
- | 影响面 | 必需 skill | 需要 / 不需要的理由 | 预期证据 |
73
- |---|---|---|---|
74
- | Domain / 领域行为 | `yss-domain` | | |
75
- | Application / 用例编排 | `yss-application` | | |
76
- | Infrastructure / Repository | `yss-repository` / `yss-mybatis` | | |
77
- | Web Adapter / DTO | `yss-web-controller` / `yss-dto` | | |
78
- | POJO / 对象转换 | `lombok` / `mapstruct` | | |
79
- | Java 规范 | `alibaba-java-code-style` | | |
80
-
81
- ### 后端阻断规则
82
-
83
- - [ ] 未填写 `Backend Slice Implementation Contract` 时不得写后端业务代码。
84
- - [ ] `CMD` / `Query` / `VO` / `SingleResult` / `MultiResult` / `PageResult` 按 `yss-dto` 定义或复用;不私自新建 / 混用响应包装。
85
- - [ ] Controller 不用内部类或非约定包临时承载主要 DTO / VO;写操作参数继承 `CommandDTO`,读操作参数继承 `QueryDTO` 或 `PageQuery`,分页查询优先继承 `PageQuery`。
86
- - [ ] Controller 不手工分页主要业务集合,不穿透 Repository / Mapper / PO。
87
- - [ ] Application 只做用例编排、事务边界和跨聚合协调,核心领域规则放入 Domain。
88
- - [ ] 需要持久化的切片必须补 PO / Repository / Convertor / GatewayImpl;临时 `InMemory*Gateway` 必须标记 `seam-deferred`。
89
- - [ ] POJO 样板代码默认使用 Lombok;成片手写 getter/setter、constructor、builder、logger 必须说明例外原因、测试证据和 review 结论。
90
- - [ ] MapStruct / Convertor 强制优先;`BeanUtils.copyProperties`、反射式通用拷贝或重复手写 mapping 必须说明例外原因、测试证据和 review 结论。
91
-
92
- ## 阻塞关系
93
-
94
- - 无,可立即开始
95
-
96
- ## 重路由状态
97
-
98
- | 字段 | 内容 |
99
- |---|---|
100
- | reroute_status | current / incremental-review / full-reroute-required / lifecycle-return / stale |
101
- | trigger | 新 API/schema / 状态机 / 数据模型 / 写路径 / 仓库 / skill / seam / 风险 / 交付顺序 / other |
102
- | affected_work_units | |
103
- | new_impacts | |
104
- | stale_contract_version | |
105
- | return_stage | Router / Architecture Re-check / 产品设计 / OpenAPI Draft-Review-Freeze / 系统或数据架构 / other |
106
- | recovery_conditions | |
107
-
108
- 出现 `drift`、`violation` 或非空 `new_impacts` 时暂停受影响工作单元,不得先完成代码再补合同;更新合同版本并通过生命周期审查后才能恢复。
109
-
110
- ## 状态
111
-
112
- `ready-for-agent`
113
-
114
- > 仅当阻塞关系为“无”且必要门禁已通过时填写 `ready-for-agent`;否则写明被哪个 Ticket 阻塞。
115
-
116
- ## AI / 人工审查点
117
-
118
- - [ ] 无高风险变更或需人工确认项
119
- - [ ] 原生 SQL:记录验证证据
120
- - [ ] 公共基础库 API:记录验证证据
121
-
122
- ## 完成定义
123
-
124
- - [ ] 如有需要,已基于冻结 OpenAPI Spec 拆分切片
125
- - [ ] 实现完成
126
- - [ ] 已新增测试且测试通过
127
- - [ ] 已移除调试 / 原型代码
128
- - [ ] 已回勾 `Backend Slice Implementation Contract` 和 `Build Architecture Checklist`
129
- - [ ] 已回勾当前 `contract_id` / `contract_version`、全部工作单元和对应 `YSS Skill Execution Result`
130
- - [ ] 实际 changed files 均在合同允许路径内,预期证据齐全,验证结果包含执行时间
131
- - [ ] `new_impacts`、`drift`、`violation` 和重路由状态均有明确结论,合同未处于 `stale`
132
- - [ ] 如领域或架构决策变化,已更新 `CONTEXT.md` / ADR;新增业务术语含 PascalCase `英文标识`,代码与契约字段能追溯到该词干
@@ -1,2 +0,0 @@
1
- schema_version: 1
2
- repository_mode: template-source
@@ -1,510 +0,0 @@
1
- schema_version: 1
2
- registry_id: yss.skill-routing
3
- status: shadow
4
- description: >-
5
- 技能分层、别名、默认可发现性和 Agent 运行时入口的 shadow 路由注册表。
6
- 本文件不替代 skills-lock.json 的来源、hash 与投影完整性职责;Router 与生命周期编排器在 status=shadow 时不得消费本表做运行时裁剪。
7
- canonical_content_root: .agents/skills
8
- runtime_policy:
9
- consumed_by_router: false
10
- consumed_by_lifecycle: false
11
- discovery_enforced: false
12
- agent_runtime_roots:
13
- claude: .claude/skills
14
- codex: .codex/skills
15
- cursor: .cursor/skills
16
- hermes: .hermes/skills
17
- pi: .pi/skills
18
- qoder: .qoder/skills
19
- trae: .trae/skills
20
- skills:
21
- - id: alibaba-java-code-style
22
- layer: specialist
23
- maturity: supported
24
- instance_default_discoverable: false
25
- aliases: []
26
- impacts: [backend]
27
- - id: ask-matt
28
- layer: compatibility
29
- maturity: supported
30
- instance_default_discoverable: true
31
- aliases: []
32
- impacts: [lifecycle]
33
- - id: code-review
34
- layer: core
35
- maturity: supported
36
- instance_default_discoverable: true
37
- aliases: []
38
- impacts: [quality]
39
- - id: codebase-design
40
- layer: core
41
- maturity: supported
42
- instance_default_discoverable: true
43
- aliases: []
44
- impacts: [quality]
45
- - id: competitive-intelligence
46
- layer: core
47
- maturity: supported
48
- instance_default_discoverable: true
49
- aliases: []
50
- impacts: [discovery]
51
- - id: cross-repo-implementation-routing
52
- layer: specialist
53
- maturity: supported
54
- instance_default_discoverable: false
55
- aliases: []
56
- impacts: [lifecycle]
57
- - id: diagnosing-bugs
58
- layer: core
59
- maturity: supported
60
- instance_default_discoverable: true
61
- aliases: []
62
- impacts: [quality]
63
- - id: dispatching-parallel-agents
64
- layer: maintainer-only
65
- maturity: supported
66
- instance_default_discoverable: false
67
- aliases: []
68
- impacts: [lifecycle]
69
- - id: domain-modeling
70
- layer: core
71
- maturity: supported
72
- instance_default_discoverable: true
73
- aliases: []
74
- impacts: [discovery]
75
- - id: grill-me
76
- layer: compatibility
77
- maturity: supported
78
- instance_default_discoverable: true
79
- aliases: []
80
- impacts: [discovery]
81
- - id: grill-with-docs
82
- layer: compatibility
83
- maturity: supported
84
- instance_default_discoverable: true
85
- aliases: []
86
- impacts: [discovery]
87
- - id: grilling
88
- layer: core
89
- maturity: supported
90
- instance_default_discoverable: true
91
- aliases: []
92
- impacts: [discovery]
93
- - id: handoff
94
- layer: core
95
- maturity: supported
96
- instance_default_discoverable: true
97
- aliases: []
98
- impacts: [lifecycle]
99
- - id: high-fidelity-html-prototype
100
- layer: compatibility
101
- maturity: deprecated
102
- instance_default_discoverable: false
103
- aliases: []
104
- impacts: [prototype]
105
- replaced_by: yss-prototype-stage
106
- - id: implement
107
- layer: compatibility
108
- maturity: supported
109
- instance_default_discoverable: true
110
- aliases: []
111
- impacts: [lifecycle]
112
- - id: implementation-repo-onboarding
113
- layer: core
114
- maturity: supported
115
- instance_default_discoverable: true
116
- aliases: []
117
- impacts: [lifecycle]
118
- - id: improve-codebase-architecture
119
- layer: compatibility
120
- maturity: supported
121
- instance_default_discoverable: true
122
- aliases: []
123
- impacts: [quality]
124
- - id: llm-wiki
125
- layer: core
126
- maturity: verified
127
- instance_default_discoverable: true
128
- aliases: []
129
- impacts: [quality]
130
- - id: lombok
131
- layer: specialist
132
- maturity: supported
133
- instance_default_discoverable: false
134
- aliases: []
135
- impacts: [backend]
136
- - id: loop-me
137
- layer: maintainer-only
138
- maturity: supported
139
- instance_default_discoverable: false
140
- aliases: []
141
- impacts: [setup]
142
- - id: maintaining-skills
143
- layer: core
144
- maturity: supported
145
- instance_default_discoverable: true
146
- aliases: []
147
- impacts: [template-maintenance]
148
- - id: mapstruct
149
- layer: specialist
150
- maturity: supported
151
- instance_default_discoverable: false
152
- aliases: []
153
- impacts: [backend]
154
- - id: migrate-to-shoehorn
155
- layer: maintainer-only
156
- maturity: supported
157
- instance_default_discoverable: false
158
- aliases: []
159
- impacts: [setup]
160
- - id: prototype
161
- layer: maintainer-only
162
- maturity: supported
163
- instance_default_discoverable: false
164
- aliases: []
165
- impacts: [prototype]
166
- - id: prototype-review
167
- layer: core
168
- maturity: supported
169
- instance_default_discoverable: true
170
- aliases: []
171
- impacts: [prototype]
172
- - id: research
173
- layer: core
174
- maturity: supported
175
- instance_default_discoverable: true
176
- aliases: []
177
- impacts: [discovery]
178
- - id: resolving-merge-conflicts
179
- layer: core
180
- maturity: supported
181
- instance_default_discoverable: true
182
- aliases: []
183
- impacts: [quality]
184
- - id: scaffold-exercises
185
- layer: maintainer-only
186
- maturity: supported
187
- instance_default_discoverable: false
188
- aliases: []
189
- impacts: [setup]
190
- - id: setup-matt-pocock-skills
191
- layer: compatibility
192
- maturity: supported
193
- instance_default_discoverable: true
194
- aliases: []
195
- impacts: [setup]
196
- - id: setup-pre-commit
197
- layer: maintainer-only
198
- maturity: supported
199
- instance_default_discoverable: false
200
- aliases: []
201
- impacts: [setup]
202
- - id: setup-ts-deep-modules
203
- layer: maintainer-only
204
- maturity: supported
205
- instance_default_discoverable: false
206
- aliases: []
207
- impacts: [setup]
208
- - id: tdd
209
- layer: core
210
- maturity: supported
211
- instance_default_discoverable: true
212
- aliases: []
213
- impacts: [quality]
214
- - id: teach
215
- layer: maintainer-only
216
- maturity: supported
217
- instance_default_discoverable: false
218
- aliases: []
219
- impacts: [writing]
220
- - id: to-questionnaire
221
- layer: maintainer-only
222
- maturity: supported
223
- instance_default_discoverable: false
224
- aliases: []
225
- impacts: [discovery]
226
- - id: to-spec
227
- layer: compatibility
228
- maturity: supported
229
- instance_default_discoverable: true
230
- aliases: []
231
- impacts: [lifecycle]
232
- - id: to-tickets
233
- layer: compatibility
234
- maturity: supported
235
- instance_default_discoverable: true
236
- aliases: []
237
- impacts: [lifecycle]
238
- - id: triage
239
- layer: compatibility
240
- maturity: supported
241
- instance_default_discoverable: true
242
- aliases: []
243
- impacts: [lifecycle]
244
- - id: using-git-worktrees
245
- layer: maintainer-only
246
- maturity: supported
247
- instance_default_discoverable: false
248
- aliases: []
249
- impacts: [setup]
250
- - id: wait-what
251
- layer: maintainer-only
252
- maturity: supported
253
- instance_default_discoverable: false
254
- aliases: []
255
- impacts: [setup]
256
- - id: wayfinder
257
- layer: maintainer-only
258
- maturity: supported
259
- instance_default_discoverable: false
260
- aliases: []
261
- impacts: [lifecycle]
262
- - id: writing-beats
263
- layer: maintainer-only
264
- maturity: supported
265
- instance_default_discoverable: false
266
- aliases: []
267
- impacts: [writing]
268
- - id: writing-for-agents
269
- layer: maintainer-only
270
- maturity: supported
271
- instance_default_discoverable: false
272
- aliases: []
273
- impacts: [writing]
274
- - id: writing-fragments
275
- layer: maintainer-only
276
- maturity: supported
277
- instance_default_discoverable: false
278
- aliases: []
279
- impacts: [writing]
280
- - id: writing-shape
281
- layer: maintainer-only
282
- maturity: supported
283
- instance_default_discoverable: false
284
- aliases: []
285
- impacts: [writing]
286
- - id: yss-antd-design
287
- layer: specialist
288
- maturity: supported
289
- instance_default_discoverable: false
290
- aliases: []
291
- impacts: [prototype]
292
- - id: yss-api-integration
293
- layer: specialist
294
- maturity: supported
295
- instance_default_discoverable: false
296
- aliases: [api-integration]
297
- impacts: [frontend, api]
298
- - id: yss-audit-log
299
- layer: specialist
300
- maturity: supported
301
- instance_default_discoverable: false
302
- aliases: []
303
- impacts: [backend]
304
- - id: yss-application
305
- layer: specialist
306
- maturity: supported
307
- instance_default_discoverable: false
308
- aliases: []
309
- impacts: [backend]
310
- - id: yss-cache
311
- layer: specialist
312
- maturity: supported
313
- instance_default_discoverable: false
314
- aliases: []
315
- impacts: [backend]
316
- - id: yss-components
317
- layer: specialist
318
- maturity: supported
319
- instance_default_discoverable: false
320
- aliases: []
321
- impacts: [frontend]
322
- - id: yss-ddd-scaffold-generator
323
- layer: specialist
324
- maturity: supported
325
- instance_default_discoverable: false
326
- aliases: []
327
- impacts: [backend]
328
- - id: yss-design-system
329
- layer: core
330
- maturity: supported
331
- instance_default_discoverable: true
332
- aliases: []
333
- impacts: [prototype, frontend]
334
- - id: yss-distributed-id
335
- layer: specialist
336
- maturity: supported
337
- instance_default_discoverable: false
338
- aliases: []
339
- impacts: [backend]
340
- - id: yss-domain
341
- layer: specialist
342
- maturity: supported
343
- instance_default_discoverable: false
344
- aliases: []
345
- impacts: [backend]
346
- - id: yss-dto
347
- layer: specialist
348
- maturity: supported
349
- instance_default_discoverable: false
350
- aliases: []
351
- impacts: [backend, api]
352
- - id: yss-excel-mvc
353
- layer: specialist
354
- maturity: supported
355
- instance_default_discoverable: false
356
- aliases: []
357
- impacts: [backend]
358
- - id: yss-exception
359
- layer: specialist
360
- maturity: supported
361
- instance_default_discoverable: false
362
- aliases: []
363
- impacts: [backend]
364
- - id: yss-formily
365
- layer: specialist
366
- maturity: supported
367
- instance_default_discoverable: false
368
- aliases: []
369
- impacts: [frontend]
370
- - id: yss-formily-schema-generator
371
- layer: specialist
372
- maturity: supported
373
- instance_default_discoverable: false
374
- aliases: []
375
- impacts: [frontend]
376
- - id: yss-frontend-scaffold-generator
377
- layer: specialist
378
- maturity: supported
379
- instance_default_discoverable: false
380
- aliases: []
381
- impacts: [frontend]
382
- - id: yss-hook
383
- layer: specialist
384
- maturity: supported
385
- instance_default_discoverable: false
386
- aliases: []
387
- impacts: [frontend]
388
- - id: yss-microapp-commit
389
- layer: maintainer-only
390
- maturity: supported
391
- instance_default_discoverable: false
392
- aliases: [microapp-commit]
393
- impacts: [frontend]
394
- - id: yss-mybatis
395
- layer: specialist
396
- maturity: supported
397
- instance_default_discoverable: false
398
- aliases: []
399
- impacts: [backend]
400
- - id: yss-openapi-draft-review
401
- layer: core
402
- maturity: supported
403
- instance_default_discoverable: true
404
- aliases: []
405
- impacts: [api]
406
- - id: yss-openapi-governance
407
- layer: core
408
- maturity: supported
409
- instance_default_discoverable: true
410
- aliases: []
411
- impacts: [api]
412
- - id: yss-page-module-development
413
- layer: specialist
414
- maturity: supported
415
- instance_default_discoverable: false
416
- aliases: []
417
- impacts: [frontend]
418
- - id: yss-product-lifecycle
419
- layer: core
420
- maturity: supported
421
- instance_default_discoverable: true
422
- aliases: []
423
- impacts: [lifecycle]
424
- - id: yss-prototype-stage
425
- layer: core
426
- maturity: supported
427
- instance_default_discoverable: true
428
- aliases: []
429
- impacts: [prototype]
430
- - id: yss-repository
431
- layer: specialist
432
- maturity: supported
433
- instance_default_discoverable: false
434
- aliases: []
435
- impacts: [backend]
436
- - id: yss-resilience4j
437
- layer: specialist
438
- maturity: supported
439
- instance_default_discoverable: false
440
- aliases: []
441
- impacts: [backend]
442
- - id: yss-router
443
- layer: core
444
- maturity: supported
445
- instance_default_discoverable: true
446
- aliases: []
447
- impacts: [lifecycle, backend, frontend]
448
- - id: yss-security-algorithm
449
- layer: specialist
450
- maturity: supported
451
- instance_default_discoverable: false
452
- aliases: []
453
- impacts: [backend]
454
- - id: yss-source-index
455
- layer: maintainer-only
456
- maturity: supported
457
- instance_default_discoverable: false
458
- aliases: []
459
- impacts: [template-maintenance]
460
- - id: yss-ui
461
- layer: specialist
462
- maturity: supported
463
- instance_default_discoverable: false
464
- aliases: []
465
- impacts: [frontend]
466
- - id: yss-up-springboot3
467
- layer: specialist
468
- maturity: supported
469
- instance_default_discoverable: false
470
- aliases: []
471
- impacts: [backend]
472
- - id: yss-use-table-height
473
- layer: specialist
474
- maturity: supported
475
- instance_default_discoverable: false
476
- aliases: []
477
- impacts: [frontend]
478
- - id: yss-use-tree-height
479
- layer: specialist
480
- maturity: supported
481
- instance_default_discoverable: false
482
- aliases: []
483
- impacts: [frontend]
484
- - id: yss-userinfo
485
- layer: specialist
486
- maturity: supported
487
- instance_default_discoverable: false
488
- aliases: []
489
- impacts: [backend]
490
- - id: yss-validation
491
- layer: specialist
492
- maturity: supported
493
- instance_default_discoverable: false
494
- aliases: []
495
- impacts: [backend]
496
- - id: yss-web-controller
497
- layer: specialist
498
- maturity: supported
499
- instance_default_discoverable: false
500
- aliases: []
501
- impacts: [backend, api]
502
- platform_skills:
503
- - id: data-analytics
504
- root: .codex/skills
505
- layer: maintainer-only
506
- instance_default_discoverable: false
507
- - id: product-design
508
- root: .codex/skills
509
- layer: specialist
510
- instance_default_discoverable: false
@@ -1,21 +0,0 @@
1
- # Agent入口规则
2
-
3
- `AGENTS.md` 只保存 Agent 必须首先遵守的仓库身份路由、硬门禁和禁止事项。每个任务开始时先读根目录 `yss-project.yaml`:`template-source` 走模板维护,`project-instance` 按产品研发生命周期分诊;文件缺失或模式非法时停止路由并做迁移检查,不根据目录、Git 远程或占位符猜测身份。细则见 [[仓库身份与路由]]。
4
-
5
- 单一事实来源不得在说明文档里重复定义:领域与流程词汇以 `CONTEXT.md` 为准;Agent 入口以 `AGENTS.md` 为准;主阶段、门禁、产物、工作单元、证据和稳定 ID 以 `docs/process/lifecycle-registry.yaml` 为准(`docs/process/lifecycle-artifact-map.md` 只是派生阅读视图);影响面触发与 `not-applicable` 以 `docs/process/harness-process-tailoring.md` 为准(见 [[影响面分诊与流程裁剪]]);技能清单、来源、版本、哈希和投影目标以 `skills-lock.json` 为准。`docs/agents/yss-skill-registry.yaml` 当前 `status: shadow`,不作为 Router / 生命周期运行时入口。
6
-
7
- 落地文档正文统一使用简体中文;英文专有名词、路径、schema、命令与协议 metadata 保持原样。业务术语必须已有 PascalCase `英文标识`;代码类型 / 字段与契约 property 使用该词干按 `CONTEXT.md` 文首规则变形;改中文术语或英文标识都先回写 `CONTEXT.md`。新流程统一使用 Spec、Ticket、`to-spec`、`to-tickets`。功能父 Ticket 汇总阶段证据;Spec 初稿、产品设计、原型、OpenAPI Draft 和待冻结资产使用 `ready-for-human`;只有通过必要门禁、阻塞边已清除并具备直接实现条件的垂直切片 Ticket 才能使用 `ready-for-agent`(见 [[Ticket与流程状态]])。
8
-
9
- 进入实现前先读 `docs/process/implementation-repo-integration.md` 并登记实现仓库,再由 `yss-router` 编译最小 skill 集合与当前实现合同(见 [[YSS路由与合同编译]])。当前仓库默认是研发管理仓库,运行时代码优先在独立实现仓库;只有用户明确选择时才用 `apps/backend/<project>/` 或 `apps/frontend/<project>/`。`app/backend/`、`app/frontend/` 禁止作为工程输出(见 [[实现仓库与跨仓库契约]])。前端测试、type-check 与构建优先 `pnpm`;后端校验、测试与编译优先项目根 `./mvnw`;不要默认 `npm` / `yarn` 或裸 `mvn`。根目录 `CLAUDE.md` 只引用 `AGENTS.md`,不是第二套入口规则。
10
-
11
- 专项任务必须走指定入口:技术事实、标准、第三方 API 或框架行为影响决策时用 `research` 或等价一手资料记录;竞品与市场口碑用 `competitive-intelligence`;UI 设计、原型、组件或主题先 `yss-design-system` 再 `yss-prototype-stage`;Bug 先 `diagnosing-bugs` 再 `tdd`;冲突用 `resolving-merge-conflicts`;架构治理用 `improve-codebase-architecture` / `codebase-design`;跨线程、跨仓库或上下文过长用 `handoff`。本地知识库 init / refresh / rebuild,或要把研究结果落成持久 wiki,必须使用 `llm-wiki`(落成持久 wiki 用 `ingest`;已映射 live 源变了用 `refresh`;见 [[LLM Wiki]])。一次性一手资料笔记走 `research`,持久 wiki 走 `llm-wiki` 的 `ingest`,不把 ingest 理解成替代权威源。
12
-
13
- 实现者不能承担命中的独立审查;任何「完成 / 可合并 / 可发布」结论必须基于 fresh verification,不接受「之前跑过」或实现者自述(见 [[Fresh验证与独立审查]])。业务行为默认按 `tdd` 使用已确认的公开 seam 逐切片实现;YSS 专项规范见 [[YSS工程技能体系]],通用工程流程见 [[Matt技能体系]]。
14
-
15
- ## 来源
16
-
17
- - `AGENTS.md`
18
- - `CONTEXT.md`
19
- - `yss-project.yaml`
20
- - `docs/adr/0002-yss-project-repository-mode.md`
21
- - `README.md`