create-yss-spec 1.1.3 → 2.0.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 (574) hide show
  1. package/README.md +20 -2
  2. package/package.json +13 -2
  3. package/src/cli.js +367 -51
  4. package/template/.agents/skills/ask-matt/SKILL.md +8 -4
  5. package/template/.agents/skills/ask-matt/agents/openai.yaml +5 -0
  6. package/template/.agents/skills/code-review/SKILL.md +4 -4
  7. package/template/.agents/skills/code-review/agents/openai.yaml +3 -0
  8. package/template/.agents/skills/codebase-design/agents/openai.yaml +3 -0
  9. package/template/.agents/skills/competitive-intelligence/SKILL.md +5 -5
  10. package/template/.agents/skills/diagnosing-bugs/agents/openai.yaml +3 -0
  11. package/template/.agents/skills/domain-modeling/agents/openai.yaml +3 -0
  12. package/template/.agents/skills/excalidraw-diagram-generator/SKILL.md +4 -4
  13. package/template/.agents/skills/grill-me/SKILL.md +7 -0
  14. package/template/.agents/skills/grill-me/agents/openai.yaml +5 -0
  15. package/template/.agents/skills/grill-with-docs/agents/openai.yaml +5 -0
  16. package/template/.agents/skills/grilling/SKILL.md +12 -0
  17. package/template/.agents/skills/grilling/agents/openai.yaml +3 -0
  18. package/template/.agents/skills/handoff/SKILL.md +16 -0
  19. package/template/.agents/skills/handoff/agents/openai.yaml +5 -0
  20. package/template/.agents/skills/high-fidelity-html-prototype/SKILL.md +6 -6
  21. package/template/.agents/skills/high-fidelity-html-prototype/agents/openai.yaml +5 -0
  22. package/template/.agents/skills/implement/SKILL.md +2 -2
  23. package/template/.agents/skills/implement/agents/openai.yaml +5 -0
  24. package/template/.agents/skills/improve-codebase-architecture/SKILL.md +6 -1
  25. package/template/.agents/skills/improve-codebase-architecture/agents/openai.yaml +5 -0
  26. package/template/.agents/skills/lombok/SKILL.md +345 -0
  27. package/template/.agents/skills/mapstruct/SKILL.md +328 -0
  28. package/template/.agents/skills/prototype/LOGIC.md +3 -3
  29. package/template/.agents/skills/prototype/SKILL.md +2 -6
  30. package/template/.agents/skills/prototype/UI.md +4 -4
  31. package/template/.agents/skills/prototype/agents/openai.yaml +3 -0
  32. package/template/.agents/skills/research/agents/openai.yaml +3 -0
  33. package/template/.agents/skills/resolving-merge-conflicts/agents/openai.yaml +3 -0
  34. package/template/.agents/skills/setup-matt-pocock-skills/SKILL.md +21 -32
  35. package/template/.agents/skills/setup-matt-pocock-skills/agents/openai.yaml +5 -0
  36. package/template/.agents/skills/setup-matt-pocock-skills/issue-tracker-github.md +2 -2
  37. package/template/.agents/skills/setup-matt-pocock-skills/issue-tracker-gitlab.md +2 -2
  38. package/template/.agents/skills/setup-matt-pocock-skills/issue-tracker-local.md +6 -6
  39. package/template/.agents/skills/setup-matt-pocock-skills/triage-labels.md +2 -2
  40. package/template/.agents/skills/tdd/agents/openai.yaml +3 -0
  41. package/template/.agents/skills/teach/GLOSSARY-FORMAT.md +35 -0
  42. package/template/.agents/skills/teach/LEARNING-RECORD-FORMAT.md +46 -0
  43. package/template/.agents/skills/teach/MISSION-FORMAT.md +31 -0
  44. package/template/.agents/skills/teach/RESOURCES-FORMAT.md +32 -0
  45. package/template/.agents/skills/teach/SKILL.md +140 -0
  46. package/template/.agents/skills/teach/agents/openai.yaml +5 -0
  47. package/template/.agents/skills/to-spec/SKILL.md +58 -0
  48. package/template/.agents/skills/to-spec/agents/openai.yaml +5 -0
  49. package/template/.agents/skills/to-tickets/SKILL.md +62 -0
  50. package/template/.agents/skills/to-tickets/agents/openai.yaml +5 -0
  51. package/template/.agents/skills/triage/SKILL.md +4 -4
  52. package/template/.agents/skills/triage/agents/openai.yaml +5 -0
  53. package/template/.agents/skills/wayfinder/SKILL.md +128 -0
  54. package/template/.agents/skills/wayfinder/agents/openai.yaml +5 -0
  55. package/template/.agents/skills/web-design-engineer/SKILL.md +2 -2
  56. package/template/.agents/skills/writing-great-skills/GLOSSARY.md +201 -0
  57. package/template/.agents/skills/writing-great-skills/SKILL.md +83 -0
  58. package/template/.agents/skills/writing-great-skills/agents/openai.yaml +5 -0
  59. package/template/.agents/skills/yss-cache/SKILL.md +44 -0
  60. package/template/.agents/skills/yss-cache/agents/openai.yaml +5 -0
  61. package/template/.agents/skills/yss-cache/references/annotations.md +39 -0
  62. package/template/.agents/skills/yss-cache/references/architecture.md +25 -0
  63. package/template/.agents/skills/yss-cache/references/configuration.md +34 -0
  64. package/template/.agents/skills/yss-cache/references/redis-fallback.md +23 -0
  65. package/template/.agents/skills/yss-cache/references/redis-topology.md +62 -0
  66. package/template/.agents/skills/yss-cache/references/serialization.md +17 -0
  67. package/template/.agents/skills/yss-cache/references/source-index.md +64 -0
  68. package/template/.agents/skills/yss-cache/references/troubleshooting.md +33 -0
  69. package/template/.agents/skills/yss-cache/references/verification.md +34 -0
  70. package/template/.agents/skills/yss-cache/scripts/check-skill-freshness.sh +84 -0
  71. package/template/.agents/skills/yss-cache/scripts/inspect-cache-usage.sh +96 -0
  72. package/template/.agents/skills/yss-cache/scripts/verify-cache-component.sh +101 -0
  73. package/template/.claude/skills/ask-matt/SKILL.md +8 -4
  74. package/template/.claude/skills/ask-matt/agents/openai.yaml +5 -0
  75. package/template/.claude/skills/code-review/SKILL.md +4 -4
  76. package/template/.claude/skills/code-review/agents/openai.yaml +3 -0
  77. package/template/.claude/skills/codebase-design/agents/openai.yaml +3 -0
  78. package/template/.claude/skills/competitive-intelligence/SKILL.md +5 -5
  79. package/template/.claude/skills/diagnosing-bugs/agents/openai.yaml +3 -0
  80. package/template/.claude/skills/domain-modeling/agents/openai.yaml +3 -0
  81. package/template/.claude/skills/excalidraw-diagram-generator/SKILL.md +37 -16
  82. package/template/.claude/skills/excalidraw-diagram-generator/scripts/add-arrow.py +18 -18
  83. package/template/.claude/skills/excalidraw-diagram-generator/scripts/add-icon-to-diagram.py +46 -47
  84. package/template/.claude/skills/grill-me/SKILL.md +7 -0
  85. package/template/.claude/skills/grill-me/agents/openai.yaml +5 -0
  86. package/template/.claude/skills/grill-with-docs/agents/openai.yaml +5 -0
  87. package/template/.claude/skills/grilling/SKILL.md +12 -0
  88. package/template/.claude/skills/grilling/agents/openai.yaml +3 -0
  89. package/template/.claude/skills/handoff/SKILL.md +16 -0
  90. package/template/.claude/skills/handoff/agents/openai.yaml +5 -0
  91. package/template/.claude/skills/implement/SKILL.md +2 -2
  92. package/template/.claude/skills/implement/agents/openai.yaml +5 -0
  93. package/template/.claude/skills/improve-codebase-architecture/SKILL.md +6 -1
  94. package/template/.claude/skills/improve-codebase-architecture/agents/openai.yaml +5 -0
  95. package/template/.claude/skills/prototype/LOGIC.md +3 -3
  96. package/template/.claude/skills/prototype/SKILL.md +2 -6
  97. package/template/.claude/skills/prototype/UI.md +4 -4
  98. package/template/.claude/skills/prototype/agents/openai.yaml +3 -0
  99. package/template/.claude/skills/research/agents/openai.yaml +3 -0
  100. package/template/.claude/skills/resolving-merge-conflicts/agents/openai.yaml +3 -0
  101. package/template/.claude/skills/setup-matt-pocock-skills/SKILL.md +21 -32
  102. package/template/.claude/skills/setup-matt-pocock-skills/agents/openai.yaml +5 -0
  103. package/template/.claude/skills/setup-matt-pocock-skills/issue-tracker-github.md +2 -2
  104. package/template/.claude/skills/setup-matt-pocock-skills/issue-tracker-gitlab.md +2 -2
  105. package/template/.claude/skills/setup-matt-pocock-skills/issue-tracker-local.md +6 -6
  106. package/template/.claude/skills/setup-matt-pocock-skills/triage-labels.md +2 -2
  107. package/template/.claude/skills/tdd/agents/openai.yaml +3 -0
  108. package/template/.claude/skills/teach/GLOSSARY-FORMAT.md +35 -0
  109. package/template/.claude/skills/teach/LEARNING-RECORD-FORMAT.md +46 -0
  110. package/template/.claude/skills/teach/MISSION-FORMAT.md +31 -0
  111. package/template/.claude/skills/teach/RESOURCES-FORMAT.md +32 -0
  112. package/template/.claude/skills/teach/SKILL.md +140 -0
  113. package/template/.claude/skills/teach/agents/openai.yaml +5 -0
  114. package/template/.claude/skills/to-spec/SKILL.md +58 -0
  115. package/template/.claude/skills/to-spec/agents/openai.yaml +5 -0
  116. package/template/.claude/skills/to-tickets/SKILL.md +62 -0
  117. package/template/.claude/skills/to-tickets/agents/openai.yaml +5 -0
  118. package/template/.claude/skills/triage/SKILL.md +4 -4
  119. package/template/.claude/skills/triage/agents/openai.yaml +5 -0
  120. package/template/.claude/skills/wayfinder/SKILL.md +128 -0
  121. package/template/.claude/skills/wayfinder/agents/openai.yaml +5 -0
  122. package/template/.claude/skills/web-design-engineer/SKILL.md +2 -2
  123. package/template/.claude/skills/writing-great-skills/GLOSSARY.md +201 -0
  124. package/template/.claude/skills/writing-great-skills/SKILL.md +83 -0
  125. package/template/.claude/skills/writing-great-skills/agents/openai.yaml +5 -0
  126. package/template/.claude/skills/yss-cache/SKILL.md +44 -0
  127. package/template/.claude/skills/yss-cache/agents/openai.yaml +5 -0
  128. package/template/.claude/skills/yss-cache/references/annotations.md +39 -0
  129. package/template/.claude/skills/yss-cache/references/architecture.md +25 -0
  130. package/template/.claude/skills/yss-cache/references/configuration.md +34 -0
  131. package/template/.claude/skills/yss-cache/references/redis-fallback.md +23 -0
  132. package/template/.claude/skills/yss-cache/references/redis-topology.md +62 -0
  133. package/template/.claude/skills/yss-cache/references/serialization.md +17 -0
  134. package/template/.claude/skills/yss-cache/references/source-index.md +64 -0
  135. package/template/.claude/skills/yss-cache/references/troubleshooting.md +33 -0
  136. package/template/.claude/skills/yss-cache/references/verification.md +34 -0
  137. package/template/.claude/skills/yss-cache/scripts/check-skill-freshness.sh +84 -0
  138. package/template/.claude/skills/yss-cache/scripts/inspect-cache-usage.sh +96 -0
  139. package/template/.claude/skills/yss-cache/scripts/verify-cache-component.sh +101 -0
  140. package/template/.codex/config.toml +3 -0
  141. package/template/.codex/skills/ask-matt/SKILL.md +8 -4
  142. package/template/.codex/skills/ask-matt/agents/openai.yaml +5 -0
  143. package/template/.codex/skills/code-review/SKILL.md +4 -4
  144. package/template/.codex/skills/code-review/agents/openai.yaml +3 -0
  145. package/template/.codex/skills/code-review-process/references/automation-and-standards.md +1 -1
  146. package/template/.codex/skills/codebase-design/agents/openai.yaml +3 -0
  147. package/template/.codex/skills/competitive-intelligence/SKILL.md +5 -5
  148. package/template/.codex/skills/cross-repo-implementation-routing/SKILL.md +2 -2
  149. package/template/.codex/skills/diagnosing-bugs/agents/openai.yaml +3 -0
  150. package/template/.codex/skills/domain-modeling/agents/openai.yaml +3 -0
  151. package/template/.codex/skills/grill-with-docs/agents/openai.yaml +5 -0
  152. package/template/.codex/skills/handoff/SKILL.md +16 -0
  153. package/template/.codex/skills/handoff/agents/openai.yaml +5 -0
  154. package/template/.codex/skills/high-fidelity-html-prototype/SKILL.md +6 -6
  155. package/template/.codex/skills/implement/SKILL.md +2 -2
  156. package/template/.codex/skills/implement/agents/openai.yaml +5 -0
  157. package/template/.codex/skills/improve-codebase-architecture/SKILL.md +6 -1
  158. package/template/.codex/skills/improve-codebase-architecture/agents/openai.yaml +5 -0
  159. package/template/.codex/skills/product-design-prototype/SKILL.md +14 -10
  160. package/template/.codex/skills/product-design-prototype/agents/openai.yaml +1 -1
  161. package/template/.codex/skills/prototype/LOGIC.md +3 -3
  162. package/template/.codex/skills/prototype/SKILL.md +2 -6
  163. package/template/.codex/skills/prototype/UI.md +4 -4
  164. package/template/.codex/skills/prototype/agents/openai.yaml +3 -0
  165. package/template/.codex/skills/prototype-review/SKILL.md +6 -6
  166. package/template/.codex/skills/prototype-review/agents/openai.yaml +2 -2
  167. package/template/.codex/skills/research/agents/openai.yaml +3 -0
  168. package/template/.codex/skills/resolving-merge-conflicts/agents/openai.yaml +3 -0
  169. package/template/.codex/skills/setup-matt-pocock-skills/SKILL.md +21 -32
  170. package/template/.codex/skills/setup-matt-pocock-skills/agents/openai.yaml +5 -0
  171. package/template/.codex/skills/setup-matt-pocock-skills/issue-tracker-github.md +2 -2
  172. package/template/.codex/skills/setup-matt-pocock-skills/issue-tracker-gitlab.md +2 -2
  173. package/template/.codex/skills/setup-matt-pocock-skills/issue-tracker-local.md +6 -6
  174. package/template/.codex/skills/setup-matt-pocock-skills/triage-labels.md +2 -2
  175. package/template/.codex/skills/tdd/agents/openai.yaml +3 -0
  176. package/template/.codex/skills/to-spec/SKILL.md +58 -0
  177. package/template/.codex/skills/to-spec/agents/openai.yaml +5 -0
  178. package/template/.codex/skills/to-tickets/SKILL.md +62 -0
  179. package/template/.codex/skills/to-tickets/agents/openai.yaml +5 -0
  180. package/template/.codex/skills/triage/SKILL.md +4 -4
  181. package/template/.codex/skills/triage/agents/openai.yaml +5 -0
  182. package/template/.codex/skills/wayfinder/SKILL.md +128 -0
  183. package/template/.codex/skills/wayfinder/agents/openai.yaml +5 -0
  184. package/template/.codex/skills/writing-great-skills/GLOSSARY.md +201 -0
  185. package/template/.codex/skills/writing-great-skills/SKILL.md +83 -0
  186. package/template/.codex/skills/writing-great-skills/agents/openai.yaml +5 -0
  187. package/template/.codex/skills/yss-api-integration/SKILL.md +1 -1
  188. package/template/.codex/skills/yss-cache/SKILL.md +29 -58
  189. package/template/.codex/skills/yss-cache/agents/openai.yaml +2 -2
  190. package/template/.codex/skills/yss-cache/references/annotations.md +39 -0
  191. package/template/.codex/skills/yss-cache/references/architecture.md +25 -0
  192. package/template/.codex/skills/yss-cache/references/configuration.md +34 -0
  193. package/template/.codex/skills/yss-cache/references/redis-fallback.md +23 -0
  194. package/template/.codex/skills/yss-cache/references/redis-topology.md +62 -0
  195. package/template/.codex/skills/yss-cache/references/serialization.md +17 -0
  196. package/template/.codex/skills/yss-cache/references/source-index.md +1 -1
  197. package/template/.codex/skills/yss-cache/references/troubleshooting.md +33 -0
  198. package/template/.codex/skills/yss-cache/references/verification.md +34 -0
  199. package/template/.codex/skills/yss-cache/scripts/check-skill-freshness.sh +84 -0
  200. package/template/.codex/skills/yss-cache/scripts/inspect-cache-usage.sh +96 -0
  201. package/template/.codex/skills/yss-cache/scripts/verify-cache-component.sh +101 -0
  202. package/template/.codex/skills/yss-ddd-scaffold-generator/SKILL.md +1 -0
  203. package/template/.codex/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-parent/SKILL.md +2 -2
  204. package/template/.codex/skills/yss-design-system/SKILL.md +9 -2
  205. package/template/.codex/skills/yss-design-system/references/design-system.md +12 -0
  206. package/template/.codex/skills/yss-domain-modeling/SKILL.md +3 -3
  207. package/template/.codex/skills/yss-domain-modeling/agents/openai.yaml +1 -1
  208. package/template/.codex/skills/yss-domain-modeling/references/modeling-workflow.md +2 -2
  209. package/template/.codex/skills/yss-filerunner/SKILL.md +1 -1
  210. package/template/.codex/skills/yss-openapi/SKILL.md +35 -47
  211. package/template/.codex/skills/yss-openapi/img.png +0 -0
  212. package/template/.codex/skills/yss-openapi/img_1.png +0 -0
  213. package/template/.codex/skills/yss-openapi-draft-review/SKILL.md +3 -3
  214. package/template/.codex/skills/yss-openapi-governance/SKILL.md +4 -4
  215. package/template/.codex/skills/yss-product-lifecycle/SKILL.md +57 -34
  216. package/template/.codex/skills/yss-product-lifecycle/references/artifact-checklist.md +23 -21
  217. package/template/.codex/skills/yss-product-lifecycle/references/stage-routing.md +15 -15
  218. package/template/.codex/skills/yss-product-lifecycle/references/yss-skill-routing.md +13 -8
  219. package/template/.codex/skills/yss-repository/SKILL.md +11 -3
  220. package/template/.codex/skills/yss-router/SKILL.md +2 -3
  221. package/template/.codex/skills/yss-router/references/boundaries.md +0 -1
  222. package/template/.codex/skills/yss-source-index/references/source-map-config.md +0 -1
  223. package/template/.codex/skills/yss-source-index/scripts/refresh-yss-skill-index.py +0 -3
  224. package/template/.codex/skills/yss-web-controller/SKILL.md +9 -3
  225. package/template/.hermes/skills/ask-matt/SKILL.md +8 -4
  226. package/template/.hermes/skills/ask-matt/agents/openai.yaml +5 -0
  227. package/template/.hermes/skills/code-review/SKILL.md +4 -4
  228. package/template/.hermes/skills/code-review/agents/openai.yaml +3 -0
  229. package/template/.hermes/skills/codebase-design/agents/openai.yaml +3 -0
  230. package/template/.hermes/skills/competitive-intelligence/SKILL.md +5 -5
  231. package/template/.hermes/skills/diagnosing-bugs/agents/openai.yaml +3 -0
  232. package/template/.hermes/skills/domain-modeling/agents/openai.yaml +3 -0
  233. package/template/.hermes/skills/excalidraw-diagram-generator/SKILL.md +37 -16
  234. package/template/.hermes/skills/excalidraw-diagram-generator/scripts/add-arrow.py +18 -18
  235. package/template/.hermes/skills/excalidraw-diagram-generator/scripts/add-icon-to-diagram.py +46 -47
  236. package/template/.hermes/skills/grill-me/SKILL.md +7 -0
  237. package/template/.hermes/skills/grill-me/agents/openai.yaml +5 -0
  238. package/template/.hermes/skills/grill-with-docs/agents/openai.yaml +5 -0
  239. package/template/.hermes/skills/grilling/SKILL.md +12 -0
  240. package/template/.hermes/skills/grilling/agents/openai.yaml +3 -0
  241. package/template/.hermes/skills/handoff/SKILL.md +16 -0
  242. package/template/.hermes/skills/handoff/agents/openai.yaml +5 -0
  243. package/template/.hermes/skills/implement/SKILL.md +2 -2
  244. package/template/.hermes/skills/implement/agents/openai.yaml +5 -0
  245. package/template/.hermes/skills/improve-codebase-architecture/SKILL.md +6 -1
  246. package/template/.hermes/skills/improve-codebase-architecture/agents/openai.yaml +5 -0
  247. package/template/.hermes/skills/prototype/LOGIC.md +3 -3
  248. package/template/.hermes/skills/prototype/SKILL.md +2 -6
  249. package/template/.hermes/skills/prototype/UI.md +4 -4
  250. package/template/.hermes/skills/prototype/agents/openai.yaml +3 -0
  251. package/template/.hermes/skills/research/agents/openai.yaml +3 -0
  252. package/template/.hermes/skills/resolving-merge-conflicts/agents/openai.yaml +3 -0
  253. package/template/.hermes/skills/setup-matt-pocock-skills/SKILL.md +21 -32
  254. package/template/.hermes/skills/setup-matt-pocock-skills/agents/openai.yaml +5 -0
  255. package/template/.hermes/skills/setup-matt-pocock-skills/issue-tracker-github.md +2 -2
  256. package/template/.hermes/skills/setup-matt-pocock-skills/issue-tracker-gitlab.md +2 -2
  257. package/template/.hermes/skills/setup-matt-pocock-skills/issue-tracker-local.md +6 -6
  258. package/template/.hermes/skills/setup-matt-pocock-skills/triage-labels.md +2 -2
  259. package/template/.hermes/skills/tdd/agents/openai.yaml +3 -0
  260. package/template/.hermes/skills/teach/GLOSSARY-FORMAT.md +35 -0
  261. package/template/.hermes/skills/teach/LEARNING-RECORD-FORMAT.md +46 -0
  262. package/template/.hermes/skills/teach/MISSION-FORMAT.md +31 -0
  263. package/template/.hermes/skills/teach/RESOURCES-FORMAT.md +32 -0
  264. package/template/.hermes/skills/teach/SKILL.md +140 -0
  265. package/template/.hermes/skills/teach/agents/openai.yaml +5 -0
  266. package/template/.hermes/skills/to-spec/SKILL.md +58 -0
  267. package/template/.hermes/skills/to-spec/agents/openai.yaml +5 -0
  268. package/template/.hermes/skills/to-tickets/SKILL.md +62 -0
  269. package/template/.hermes/skills/to-tickets/agents/openai.yaml +5 -0
  270. package/template/.hermes/skills/triage/SKILL.md +4 -4
  271. package/template/.hermes/skills/triage/agents/openai.yaml +5 -0
  272. package/template/.hermes/skills/wayfinder/SKILL.md +128 -0
  273. package/template/.hermes/skills/wayfinder/agents/openai.yaml +5 -0
  274. package/template/.hermes/skills/web-design-engineer/SKILL.md +2 -2
  275. package/template/.hermes/skills/writing-great-skills/GLOSSARY.md +201 -0
  276. package/template/.hermes/skills/writing-great-skills/SKILL.md +83 -0
  277. package/template/.hermes/skills/writing-great-skills/agents/openai.yaml +5 -0
  278. package/template/.hermes/skills/yss-cache/SKILL.md +44 -0
  279. package/template/.hermes/skills/yss-cache/agents/openai.yaml +5 -0
  280. package/template/.hermes/skills/yss-cache/references/annotations.md +39 -0
  281. package/template/.hermes/skills/yss-cache/references/architecture.md +25 -0
  282. package/template/.hermes/skills/yss-cache/references/configuration.md +34 -0
  283. package/template/.hermes/skills/yss-cache/references/redis-fallback.md +23 -0
  284. package/template/.hermes/skills/yss-cache/references/redis-topology.md +62 -0
  285. package/template/.hermes/skills/yss-cache/references/serialization.md +17 -0
  286. package/template/.hermes/skills/yss-cache/references/source-index.md +64 -0
  287. package/template/.hermes/skills/yss-cache/references/troubleshooting.md +33 -0
  288. package/template/.hermes/skills/yss-cache/references/verification.md +34 -0
  289. package/template/.hermes/skills/yss-cache/scripts/check-skill-freshness.sh +84 -0
  290. package/template/.hermes/skills/yss-cache/scripts/inspect-cache-usage.sh +96 -0
  291. package/template/.hermes/skills/yss-cache/scripts/verify-cache-component.sh +101 -0
  292. package/template/.obsidian/app.json +3 -0
  293. package/template/.obsidian/appearance.json +5 -0
  294. package/template/.obsidian/community-plugins.json +4 -0
  295. package/template/.obsidian/core-plugins.json +33 -0
  296. package/template/.obsidian/graph.json +22 -0
  297. package/template/.obsidian/plugins/obsidian-excalidraw-plugin/data.json +1085 -0
  298. package/template/.obsidian/plugins/obsidian-excalidraw-plugin/main.js +30 -0
  299. package/template/.obsidian/plugins/obsidian-excalidraw-plugin/manifest.json +12 -0
  300. package/template/.obsidian/plugins/obsidian-excalidraw-plugin/styles.css +1 -0
  301. package/template/.obsidian/plugins/obsidian-git/main.js +415 -0
  302. package/template/.obsidian/plugins/obsidian-git/manifest.json +10 -0
  303. package/template/.obsidian/plugins/obsidian-git/styles.css +705 -0
  304. package/template/.obsidian/workspace.json +222 -0
  305. package/template/.pi/skills/ask-matt/SKILL.md +8 -4
  306. package/template/.pi/skills/ask-matt/agents/openai.yaml +5 -0
  307. package/template/.pi/skills/code-review/SKILL.md +4 -4
  308. package/template/.pi/skills/code-review/agents/openai.yaml +3 -0
  309. package/template/.pi/skills/codebase-design/agents/openai.yaml +3 -0
  310. package/template/.pi/skills/competitive-intelligence/SKILL.md +5 -5
  311. package/template/.pi/skills/diagnosing-bugs/agents/openai.yaml +3 -0
  312. package/template/.pi/skills/domain-modeling/agents/openai.yaml +3 -0
  313. package/template/.pi/skills/excalidraw-diagram-generator/SKILL.md +37 -16
  314. package/template/.pi/skills/excalidraw-diagram-generator/scripts/add-arrow.py +18 -18
  315. package/template/.pi/skills/excalidraw-diagram-generator/scripts/add-icon-to-diagram.py +46 -47
  316. package/template/.pi/skills/grill-me/SKILL.md +7 -0
  317. package/template/.pi/skills/grill-me/agents/openai.yaml +5 -0
  318. package/template/.pi/skills/grill-with-docs/agents/openai.yaml +5 -0
  319. package/template/.pi/skills/grilling/SKILL.md +12 -0
  320. package/template/.pi/skills/grilling/agents/openai.yaml +3 -0
  321. package/template/.pi/skills/handoff/SKILL.md +16 -0
  322. package/template/.pi/skills/handoff/agents/openai.yaml +5 -0
  323. package/template/.pi/skills/implement/SKILL.md +2 -2
  324. package/template/.pi/skills/implement/agents/openai.yaml +5 -0
  325. package/template/.pi/skills/improve-codebase-architecture/SKILL.md +6 -1
  326. package/template/.pi/skills/improve-codebase-architecture/agents/openai.yaml +5 -0
  327. package/template/.pi/skills/prototype/LOGIC.md +3 -3
  328. package/template/.pi/skills/prototype/SKILL.md +2 -6
  329. package/template/.pi/skills/prototype/UI.md +4 -4
  330. package/template/.pi/skills/prototype/agents/openai.yaml +3 -0
  331. package/template/.pi/skills/research/agents/openai.yaml +3 -0
  332. package/template/.pi/skills/resolving-merge-conflicts/agents/openai.yaml +3 -0
  333. package/template/.pi/skills/setup-matt-pocock-skills/SKILL.md +21 -32
  334. package/template/.pi/skills/setup-matt-pocock-skills/agents/openai.yaml +5 -0
  335. package/template/.pi/skills/setup-matt-pocock-skills/issue-tracker-github.md +2 -2
  336. package/template/.pi/skills/setup-matt-pocock-skills/issue-tracker-gitlab.md +2 -2
  337. package/template/.pi/skills/setup-matt-pocock-skills/issue-tracker-local.md +6 -6
  338. package/template/.pi/skills/setup-matt-pocock-skills/triage-labels.md +2 -2
  339. package/template/.pi/skills/tdd/agents/openai.yaml +3 -0
  340. package/template/.pi/skills/teach/GLOSSARY-FORMAT.md +35 -0
  341. package/template/.pi/skills/teach/LEARNING-RECORD-FORMAT.md +46 -0
  342. package/template/.pi/skills/teach/MISSION-FORMAT.md +31 -0
  343. package/template/.pi/skills/teach/RESOURCES-FORMAT.md +32 -0
  344. package/template/.pi/skills/teach/SKILL.md +140 -0
  345. package/template/.pi/skills/teach/agents/openai.yaml +5 -0
  346. package/template/.pi/skills/to-spec/SKILL.md +58 -0
  347. package/template/.pi/skills/to-spec/agents/openai.yaml +5 -0
  348. package/template/.pi/skills/to-tickets/SKILL.md +62 -0
  349. package/template/.pi/skills/to-tickets/agents/openai.yaml +5 -0
  350. package/template/.pi/skills/triage/SKILL.md +4 -4
  351. package/template/.pi/skills/triage/agents/openai.yaml +5 -0
  352. package/template/.pi/skills/wayfinder/SKILL.md +128 -0
  353. package/template/.pi/skills/wayfinder/agents/openai.yaml +5 -0
  354. package/template/.pi/skills/web-design-engineer/SKILL.md +2 -2
  355. package/template/.pi/skills/writing-great-skills/GLOSSARY.md +201 -0
  356. package/template/.pi/skills/writing-great-skills/SKILL.md +83 -0
  357. package/template/.pi/skills/writing-great-skills/agents/openai.yaml +5 -0
  358. package/template/.pi/skills/yss-cache/SKILL.md +44 -0
  359. package/template/.pi/skills/yss-cache/agents/openai.yaml +5 -0
  360. package/template/.pi/skills/yss-cache/references/annotations.md +39 -0
  361. package/template/.pi/skills/yss-cache/references/architecture.md +25 -0
  362. package/template/.pi/skills/yss-cache/references/configuration.md +34 -0
  363. package/template/.pi/skills/yss-cache/references/redis-fallback.md +23 -0
  364. package/template/.pi/skills/yss-cache/references/redis-topology.md +62 -0
  365. package/template/.pi/skills/yss-cache/references/serialization.md +17 -0
  366. package/template/.pi/skills/yss-cache/references/source-index.md +64 -0
  367. package/template/.pi/skills/yss-cache/references/troubleshooting.md +33 -0
  368. package/template/.pi/skills/yss-cache/references/verification.md +34 -0
  369. package/template/.pi/skills/yss-cache/scripts/check-skill-freshness.sh +84 -0
  370. package/template/.pi/skills/yss-cache/scripts/inspect-cache-usage.sh +96 -0
  371. package/template/.pi/skills/yss-cache/scripts/verify-cache-component.sh +101 -0
  372. package/template/.trae/skills/ask-matt/SKILL.md +8 -4
  373. package/template/.trae/skills/ask-matt/agents/openai.yaml +5 -0
  374. package/template/.trae/skills/code-review/SKILL.md +4 -4
  375. package/template/.trae/skills/code-review/agents/openai.yaml +3 -0
  376. package/template/.trae/skills/codebase-design/agents/openai.yaml +3 -0
  377. package/template/.trae/skills/competitive-intelligence/SKILL.md +5 -5
  378. package/template/.trae/skills/diagnosing-bugs/agents/openai.yaml +3 -0
  379. package/template/.trae/skills/domain-modeling/agents/openai.yaml +3 -0
  380. package/template/.trae/skills/excalidraw-diagram-generator/SKILL.md +37 -16
  381. package/template/.trae/skills/excalidraw-diagram-generator/scripts/add-arrow.py +18 -18
  382. package/template/.trae/skills/excalidraw-diagram-generator/scripts/add-icon-to-diagram.py +46 -47
  383. package/template/.trae/skills/grill-me/SKILL.md +7 -0
  384. package/template/.trae/skills/grill-me/agents/openai.yaml +5 -0
  385. package/template/.trae/skills/grill-with-docs/agents/openai.yaml +5 -0
  386. package/template/.trae/skills/grilling/SKILL.md +12 -0
  387. package/template/.trae/skills/grilling/agents/openai.yaml +3 -0
  388. package/template/.trae/skills/handoff/SKILL.md +16 -0
  389. package/template/.trae/skills/handoff/agents/openai.yaml +5 -0
  390. package/template/.trae/skills/implement/SKILL.md +2 -2
  391. package/template/.trae/skills/implement/agents/openai.yaml +5 -0
  392. package/template/.trae/skills/improve-codebase-architecture/SKILL.md +6 -1
  393. package/template/.trae/skills/improve-codebase-architecture/agents/openai.yaml +5 -0
  394. package/template/.trae/skills/prototype/LOGIC.md +3 -3
  395. package/template/.trae/skills/prototype/SKILL.md +2 -6
  396. package/template/.trae/skills/prototype/UI.md +4 -4
  397. package/template/.trae/skills/prototype/agents/openai.yaml +3 -0
  398. package/template/.trae/skills/research/agents/openai.yaml +3 -0
  399. package/template/.trae/skills/resolving-merge-conflicts/agents/openai.yaml +3 -0
  400. package/template/.trae/skills/setup-matt-pocock-skills/SKILL.md +21 -32
  401. package/template/.trae/skills/setup-matt-pocock-skills/agents/openai.yaml +5 -0
  402. package/template/.trae/skills/setup-matt-pocock-skills/issue-tracker-github.md +2 -2
  403. package/template/.trae/skills/setup-matt-pocock-skills/issue-tracker-gitlab.md +2 -2
  404. package/template/.trae/skills/setup-matt-pocock-skills/issue-tracker-local.md +6 -6
  405. package/template/.trae/skills/setup-matt-pocock-skills/triage-labels.md +2 -2
  406. package/template/.trae/skills/tdd/agents/openai.yaml +3 -0
  407. package/template/.trae/skills/teach/GLOSSARY-FORMAT.md +35 -0
  408. package/template/.trae/skills/teach/LEARNING-RECORD-FORMAT.md +46 -0
  409. package/template/.trae/skills/teach/MISSION-FORMAT.md +31 -0
  410. package/template/.trae/skills/teach/RESOURCES-FORMAT.md +32 -0
  411. package/template/.trae/skills/teach/SKILL.md +140 -0
  412. package/template/.trae/skills/teach/agents/openai.yaml +5 -0
  413. package/template/.trae/skills/to-spec/SKILL.md +58 -0
  414. package/template/.trae/skills/to-spec/agents/openai.yaml +5 -0
  415. package/template/.trae/skills/to-tickets/SKILL.md +62 -0
  416. package/template/.trae/skills/to-tickets/agents/openai.yaml +5 -0
  417. package/template/.trae/skills/triage/SKILL.md +4 -4
  418. package/template/.trae/skills/triage/agents/openai.yaml +5 -0
  419. package/template/.trae/skills/wayfinder/SKILL.md +128 -0
  420. package/template/.trae/skills/wayfinder/agents/openai.yaml +5 -0
  421. package/template/.trae/skills/web-design-engineer/SKILL.md +2 -2
  422. package/template/.trae/skills/writing-great-skills/GLOSSARY.md +201 -0
  423. package/template/.trae/skills/writing-great-skills/SKILL.md +83 -0
  424. package/template/.trae/skills/writing-great-skills/agents/openai.yaml +5 -0
  425. package/template/.trae/skills/yss-cache/SKILL.md +44 -0
  426. package/template/.trae/skills/yss-cache/agents/openai.yaml +5 -0
  427. package/template/.trae/skills/yss-cache/references/annotations.md +39 -0
  428. package/template/.trae/skills/yss-cache/references/architecture.md +25 -0
  429. package/template/.trae/skills/yss-cache/references/configuration.md +34 -0
  430. package/template/.trae/skills/yss-cache/references/redis-fallback.md +23 -0
  431. package/template/.trae/skills/yss-cache/references/redis-topology.md +62 -0
  432. package/template/.trae/skills/yss-cache/references/serialization.md +17 -0
  433. package/template/.trae/skills/yss-cache/references/source-index.md +64 -0
  434. package/template/.trae/skills/yss-cache/references/troubleshooting.md +33 -0
  435. package/template/.trae/skills/yss-cache/references/verification.md +34 -0
  436. package/template/.trae/skills/yss-cache/scripts/check-skill-freshness.sh +84 -0
  437. package/template/.trae/skills/yss-cache/scripts/inspect-cache-usage.sh +96 -0
  438. package/template/.trae/skills/yss-cache/scripts/verify-cache-component.sh +101 -0
  439. package/template/AGENTS.md +89 -250
  440. package/template/CONTEXT.md +24 -11
  441. package/template/README.md +31 -45
  442. package/template/docs/adr/{adr-product-design-prototype-entrypoint.md → 0001-product-design-prototype-entrypoint.md} +3 -3
  443. package/template/docs/adr/0002-yss-project-repository-mode.md +3 -0
  444. package/template/docs/agents/README.md +4 -5
  445. package/template/docs/agents/domain.md +13 -15
  446. package/template/docs/agents/gitlab-workflow-skills.md +5 -5
  447. package/template/docs/agents/issue-tracker.md +15 -14
  448. package/template/docs/agents/skills-maintenance.md +44 -109
  449. package/template/docs/agents/triage-labels.md +10 -12
  450. package/template/docs/api/templates/openapi-draft-review-checklist.md +4 -4
  451. package/template/docs/api/templates/openapi-freeze-record-template.md +5 -5
  452. package/template/docs/architecture/README.md +4 -4
  453. package/template/docs/architecture/templates/architecture-review-checklist.md +4 -4
  454. package/template/docs/architecture/templates/business-architecture-template.md +7 -7
  455. package/template/docs/architecture/templates/data-architecture-template.md +4 -4
  456. package/template/docs/architecture/templates/engineering-baseline-review-template.md +4 -3
  457. package/template/docs/architecture/templates/functional-architecture-template.md +7 -7
  458. package/template/docs/architecture/templates/system-overview-design-template.md +5 -6
  459. package/template/docs/architecture/templates/tech-design-template.md +2 -2
  460. package/template/docs/design/README.md +8 -8
  461. package/template/docs/design/design.md +10 -1
  462. package/template/docs/design/diagrams/README.md +1 -1
  463. package/template/docs/design/templates/interaction-spec-template.md +6 -6
  464. package/template/docs/design/templates/product-overview-design-template.md +8 -8
  465. package/template/docs/design/templates/prototype-confirmation-template.md +4 -4
  466. package/template/docs/design/templates/prototype-review-checklist.md +5 -5
  467. package/template/docs/design/templates/state-matrix-template.md +1 -1
  468. package/template/docs/discovery/IDEATION.md +2 -2
  469. package/template/docs/discovery/README.md +4 -4
  470. package/template/docs/discovery/templates/competitive-analysis-template.md +4 -4
  471. package/template/docs/discovery/templates/discovery-template.md +8 -8
  472. package/template/docs/implementation/create-yss-spec-repository-mode-contract.md +59 -0
  473. package/template/docs/process/MATT-POCOCK-ENGINEERING-SKILLS.md +49 -30
  474. package/template/docs/process/harness-automation-candidates.md +10 -13
  475. package/template/docs/process/harness-executive-blueprint.md +11 -11
  476. package/template/docs/process/harness-optimization-backlog.md +6 -6
  477. package/template/docs/process/harness-pilot-retro-metrics.md +8 -8
  478. package/template/docs/process/harness-pilot-selection.md +8 -8
  479. package/template/docs/process/harness-process-tailoring.md +35 -16
  480. package/template/docs/process/harness-work-unit-map.md +9 -9
  481. package/template/docs/process/implementation-repo-integration.md +25 -11
  482. package/template/docs/process/lifecycle-artifact-map.md +66 -40
  483. package/template/docs/process/product-prototype-workflow.md +10 -10
  484. package/template/docs/process/skill-governance.md +12 -4
  485. package/template/docs/process/subagent-collaboration-validation.md +53 -0
  486. package/template/docs/process/subagent-collaboration.md +111 -0
  487. package/template/docs/process/template-governance-grilling-record.md +38 -0
  488. package/template/docs/process/template-governance-skill-validation.md +44 -0
  489. package/template/docs/process/templates/stage-checkpoint-template.md +42 -7
  490. package/template/docs/releases/next-major-template-governance.md +32 -0
  491. package/template/docs/requirements/README.md +11 -11
  492. package/template/docs/{adr/template.md → templates/adr-template.md} +2 -2
  493. package/template/docs/templates/agent-brief-template.md +5 -5
  494. package/template/docs/templates/build-architecture-checklist-template.md +41 -11
  495. package/template/docs/templates/implementation-repo-registry-template.md +8 -3
  496. package/template/docs/templates/implementation-routing-template.md +85 -19
  497. package/template/docs/templates/requirement-freeze-template.md +8 -8
  498. package/template/docs/templates/review-report-template.md +50 -0
  499. package/template/docs/templates/spec-delta-template.md +5 -5
  500. package/template/docs/templates/{prd-template.md → spec-template.md} +19 -9
  501. package/template/docs/templates/subagent-task-package-template.md +93 -0
  502. package/template/docs/templates/verification-record-template.md +2 -2
  503. package/template/docs/templates/vertical-slice-ticket-template.md +88 -0
  504. package/template/docs/user-guide/README.md +2 -2
  505. package/template/docs/user-guide/create-yss-spec-cli-guide.md +27 -209
  506. package/template/docs/user-guide/excalidraw-diagram-generator-guide.md +8 -8
  507. package/template/docs/user-guide/grill-with-docs-best-practices.md +16 -16
  508. package/template/docs/user-guide/grill-with-docs-guide.md +19 -19
  509. package/template/docs/user-guide/lifecycle-best-practices.md +40 -40
  510. package/template/docs/user-guide/product-lifecycle-workflow.md +31 -31
  511. package/template/docs/user-guide/product-rd-lifecycle-best-practices.md +121 -121
  512. package/template/docs/user-guide/spec-ticket-migration-guide.md +35 -0
  513. package/template/scripts/sync-skills +126 -0
  514. package/template/scripts/update-skill-lock +202 -0
  515. package/template/scripts/verify-lifecycle-scenarios +136 -0
  516. package/template/scripts/verify-template +148 -155
  517. package/template/skills-lock.json +1068 -65
  518. package/template/yss-project.yaml +2 -0
  519. package/template.manifest.json +3 -16
  520. package/template/.agent/skills/ask-matt/SKILL.md +0 -74
  521. package/template/.agent/skills/code-review/SKILL.md +0 -89
  522. package/template/.agent/skills/codebase-design/DEEPENING.md +0 -37
  523. package/template/.agent/skills/codebase-design/DESIGN-IT-TWICE.md +0 -44
  524. package/template/.agent/skills/codebase-design/SKILL.md +0 -114
  525. package/template/.agent/skills/competitive-intelligence/SKILL.md +0 -94
  526. package/template/.agent/skills/diagnosing-bugs/SKILL.md +0 -134
  527. package/template/.agent/skills/diagnosing-bugs/scripts/hitl-loop.template.sh +0 -41
  528. package/template/.agent/skills/domain-modeling/ADR-FORMAT.md +0 -47
  529. package/template/.agent/skills/domain-modeling/CONTEXT-FORMAT.md +0 -60
  530. package/template/.agent/skills/domain-modeling/SKILL.md +0 -74
  531. package/template/.agent/skills/grill-with-docs/SKILL.md +0 -7
  532. package/template/.agent/skills/implement/SKILL.md +0 -15
  533. package/template/.agent/skills/improve-codebase-architecture/HTML-REPORT.md +0 -123
  534. package/template/.agent/skills/improve-codebase-architecture/SKILL.md +0 -66
  535. package/template/.agent/skills/prototype/LOGIC.md +0 -79
  536. package/template/.agent/skills/prototype/SKILL.md +0 -30
  537. package/template/.agent/skills/prototype/UI.md +0 -112
  538. package/template/.agent/skills/research/SKILL.md +0 -12
  539. package/template/.agent/skills/resolving-merge-conflicts/SKILL.md +0 -14
  540. package/template/.agent/skills/setup-matt-pocock-skills/SKILL.md +0 -127
  541. package/template/.agent/skills/setup-matt-pocock-skills/domain.md +0 -51
  542. package/template/.agent/skills/setup-matt-pocock-skills/issue-tracker-github.md +0 -45
  543. package/template/.agent/skills/setup-matt-pocock-skills/issue-tracker-gitlab.md +0 -46
  544. package/template/.agent/skills/setup-matt-pocock-skills/issue-tracker-local.md +0 -30
  545. package/template/.agent/skills/setup-matt-pocock-skills/triage-labels.md +0 -15
  546. package/template/.agent/skills/tdd/SKILL.md +0 -36
  547. package/template/.agent/skills/tdd/mocking.md +0 -59
  548. package/template/.agent/skills/tdd/tests.md +0 -77
  549. package/template/.agent/skills/to-issues/SKILL.md +0 -84
  550. package/template/.agent/skills/to-prd/SKILL.md +0 -75
  551. package/template/.agent/skills/triage/AGENT-BRIEF.md +0 -207
  552. package/template/.agent/skills/triage/OUT-OF-SCOPE.md +0 -105
  553. package/template/.agent/skills/triage/SKILL.md +0 -112
  554. package/template/.agents/skills/to-issues/SKILL.md +0 -84
  555. package/template/.agents/skills/to-prd/SKILL.md +0 -75
  556. package/template/.claude/skills/to-issues/SKILL.md +0 -84
  557. package/template/.claude/skills/to-prd/SKILL.md +0 -75
  558. package/template/.codex/skills/to-issues/SKILL.md +0 -84
  559. package/template/.codex/skills/to-prd/SKILL.md +0 -75
  560. package/template/.codex/skills/yss-anti-scheduler/SKILL.md +0 -53
  561. package/template/.codex/skills/yss-anti-scheduler/agents/openai.yaml +0 -4
  562. package/template/.codex/skills/yss-anti-scheduler/references/source-index.md +0 -157
  563. package/template/.codex/skills/yss-cache/assets/ClearCache.java +0 -34
  564. package/template/.codex/skills/yss-cache/assets/QueryCache.java +0 -36
  565. package/template/.codex/skills/yss-cache/assets/UpdateCache.java +0 -34
  566. package/template/.codex/skills/yss-cache/references/README.md +0 -5
  567. package/template/.hermes/skills/to-issues/SKILL.md +0 -84
  568. package/template/.hermes/skills/to-prd/SKILL.md +0 -75
  569. package/template/.pi/skills/to-issues/SKILL.md +0 -84
  570. package/template/.pi/skills/to-prd/SKILL.md +0 -75
  571. package/template/.trae/skills/to-issues/SKILL.md +0 -84
  572. package/template/.trae/skills/to-prd/SKILL.md +0 -75
  573. package/template/docs/templates/vertical-slice-issue-template.md +0 -61
  574. /package/template/docs/requirements/{issues → tickets}/.gitkeep +0 -0
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: yss-product-lifecycle
3
- description: "Use when starting or continuing a YSS product/module/project through opportunity exploration, discovery, business/functional/system/data architecture artifacts, PRD baseline, product design/prototype/interaction design, PRD calibration, OpenAPI Draft/Freeze, engineering baseline, architecture, design review, vertical slices, YSS frontend/backend delivery, review, release, implementation, or retrospective; or when deciding missing artifacts, lifecycle stage, next prompt, or Matt/YSS skill routing."
3
+ description: "Use when starting or continuing a YSS product/module/project through opportunity exploration, discovery, business/functional/system/data architecture artifacts, spec baseline, product design/prototype/interaction design, spec calibration, OpenAPI Draft/Freeze, engineering baseline, architecture, design review, vertical slice tickets, YSS frontend/backend delivery, review, release, implementation, or retrospective; or when deciding missing artifacts, lifecycle stage, next prompt, or Matt/YSS skill routing."
4
4
  ---
5
5
 
6
6
  # YSS Product Lifecycle
@@ -15,19 +15,21 @@ For a small requirement change or iteration on an existing feature, do not resta
15
15
 
16
16
  ## Documentation Language
17
17
 
18
- For this repository, persistent lifecycle artifacts MUST use Chinese body text by default, because the primary users and reviewers are Chinese readers. This includes discovery notes, PRD, product design, architecture, OpenAPI review/freeze notes, vertical slice issues, Matt skill outputs, review reports, release notes, implementation records, retrospectives, and Git checkpoint explanations.
18
+ For this repository, persistent lifecycle artifacts MUST use Chinese body text by default, because the primary users and reviewers are Chinese readers. This includes discovery notes, specs, product design, architecture, OpenAPI review/freeze notes, vertical slice tickets, Matt skill outputs, review reports, release notes, implementation records, retrospectives, and Git checkpoint explanations.
19
19
 
20
20
  Keep English identifiers unchanged when they are technical names: file paths, commands, class/method names, API paths, schema names, enum values, error codes, frontmatter keys, YAML/JSON keys, and metadata identifiers. If an upstream skill template uses English section titles, convert the persisted project document to Chinese section titles unless the user explicitly asks for English or the document targets an English-speaking audience.
21
21
 
22
+ Treat English skill bodies and templates as source instructions, not as final document language. When writing durable artifacts into this repository, translate section headings, checklist labels, status explanations, review findings, implementation notes, and Git checkpoint explanations into Chinese. Keep only protocol fields, metadata keys, code identifiers, commands, and external product names in English.
23
+
22
24
  Daily execution uses 8 main stages. The previous 21 stage names are governance gates / responsibility points, not a mandatory step-by-step flow for every request. The authoritative mapping of stages, artifacts, templates, and required / conditional gates is `docs/process/lifecycle-artifact-map.md`.
23
25
 
24
26
  ```text
25
27
  intake / lifecycle triage
26
28
  -> opportunity and Discovery
27
- -> business / PRD / functional architecture
29
+ -> business / spec / functional architecture
28
30
  -> product design and requirement freeze
29
31
  -> system / data architecture, engineering contract, and Design Review
30
- -> contract freeze and Issue formalization
32
+ -> contract freeze and ticket formalization
31
33
  -> vertical slices and TDD implementation
32
34
  -> verification, release, and retrospective
33
35
  ```
@@ -38,21 +40,27 @@ Use this lifecycle skill to decide the stage and route to the right workflow. Do
38
40
 
39
41
  | Layer | Owner | Responsibility | Canonical artifacts |
40
42
  |---|---|---|---|
41
- | Product / requirements | `competitive-intelligence`, `grill-with-docs`, `to-prd` | Clarify market / competitor facts, users, pain, boundaries, acceptance criteria, and PRD scope | `CONTEXT.md`, `docs/adr/`, `docs/discovery/`, `docs/requirements/<feature>-prd.md` |
43
+ | Product / requirements | `competitive-intelligence`, `research`, `grill-with-docs`, `prototype`, `to-spec` | Clarify market / competitor / technical facts, users, pain, boundaries, acceptance criteria, spec scope, and runnable answers to hard design questions | `CONTEXT.md`, `docs/adr/`, `docs/discovery/`, `docs/research/`, `docs/requirements/<feature>-spec.md` |
42
44
  | Contract | OpenAPI / YSS API skills, OpenSpec-style Spec Delta | Define and freeze frontend/backend API contracts, plus behavior deltas for medium/high-risk changes | `docs/api/specs/*.yaml`, `docs/specs/<feature>-spec-delta.md`, OpenAPI Draft Review / Freeze records |
43
- | Delivery planning | `to-issues`, Issue tracker | Split PRD / frozen contract into end-to-end vertical slices | GitLab / GitHub Issues or `docs/requirements/issues/*` |
44
- | Implementation | `implement`, `tdd`, `diagnosing-bugs`, `code-review` | Build with feedback loops, bug diagnosis, independent review, and fresh verification | tests, review reports, verification records, implementation notes |
45
+ | Delivery planning | `to-tickets`, `wayfinder`, `handoff` / equivalent handoff record, Ticket tracker | Split specs / frozen contracts into end-to-end vertical slice tickets, or map unclear large work before slicing, and preserve context across threads or implementation repos | GitLab / GitHub Issues, local `tickets.md`, `docs/requirements/tickets/*`, `docs/implementation/*` |
46
+ | Implementation | `implement`, `tdd`, `diagnosing-bugs`, `resolving-merge-conflicts`, `code-review` | Build with feedback loops, bug diagnosis, conflict resolution, independent review, and fresh verification | tests, review reports, verification records, implementation notes |
45
47
  | YSS engineering | `yss-router` and selected YSS skills | Apply YSS DDD, UI, DTO, Repository, Controller, OpenAPI, and component rules | implementation routing record, Build Architecture Checklist, code/test evidence |
46
48
 
47
49
  Rules:
48
50
 
49
- - Prefer Matt skills for generic engineering workflow: `grill-with-docs`, `to-prd`, `to-issues`, `implement`, `tdd`, `diagnosing-bugs`, `code-review`, `domain-modeling`, `codebase-design`, and `improve-codebase-architecture`.
50
- - Use `competitive-intelligence` when market, competitor, pricing, positioning, or customer sentiment facts are needed before Discovery / PRD decisions.
51
+ - Prefer Matt skills for generic engineering workflow: `research`, `grill-with-docs`, `prototype`, `to-spec`, `to-tickets`, `wayfinder`, `implement`, `tdd`, `diagnosing-bugs`, `resolving-merge-conflicts`, `code-review`, `domain-modeling`, `codebase-design`, and `improve-codebase-architecture`.
52
+ - Use `competitive-intelligence` when market, competitor, pricing, positioning, or customer sentiment facts are needed before Discovery / spec decisions.
53
+ - Use `research` when technical facts, standards, third-party API behavior, framework behavior, or official documentation need primary-source evidence before spec, OpenAPI, architecture, or acceptance decisions.
54
+ - Use `prototype` only for throwaway runnable feedback on logic, state-machine, or UI direction questions. Feed the conclusion back into spec, design, ADR, or tickets; do not treat prototype code as production implementation or as the required Ant Design v6 high-fidelity HTML prototype.
51
55
  - Preserve OpenAPI 3.1 Draft / Freeze as the API contract gate. Draft is review-only until Freeze.
52
- - Use OpenSpec-style Spec Delta for API, permission, state-machine, data-model, cross-client, new-module, or high-risk behavior changes. It is a lightweight behavior-delta artifact, not OpenSpec CLI, change-state files, or an extra state machine.
53
- - After OpenAPI Freeze, route to `to-issues` or an equivalent vertical-slice issue record; do not require extra state-machine artifacts.
56
+ - Use OpenSpec-style Spec Delta only for medium/high-risk behavior changes to an existing frozen Spec baseline, such as API, permission, state-machine, data-model, or cross-client changes. Do not create it for a new product or new module baseline.
57
+ - After OpenAPI Freeze, route to `to-tickets` or an equivalent vertical-slice ticket record; do not require extra state-machine artifacts.
58
+ - Use `wayfinder` before `to-spec` / `to-tickets` when the work is too large or foggy for one session and the destination is not yet clear.
54
59
  - Before frontend/backend implementation, first decide whether the impacted frontend/backend runtime projects already exist and can be reused. If an impacted side has no reusable project yet, route to `yss-ddd-scaffold-generator` or `yss-frontend-scaffold-generator` before business implementation.
60
+ - After a YSS DDD backend scaffold is generated, backend build, test, run, OpenAPI generation, README, CI, review, and release commands MUST use the project Maven Wrapper (`./mvnw ...`) from the backend repository root. A bare `mvn ...` command is a process deviation unless an existing repository has a documented wrapper exception and an equivalent verification record.
55
61
  - Use `yss-router` before frontend/backend implementation when the task crosses multiple YSS areas. The route output becomes implementation guidance inside the current slice.
62
+ - Use `handoff` or an equivalent handoff record when crossing threads, implementation repositories, prototype branches, or context-window limits.
63
+ - Use `resolving-merge-conflicts` or an equivalent conflict-resolution flow for merge / rebase conflicts before release or merge decisions.
56
64
  - Use `code-review` or an independent review agent before merge/release decisions.
57
65
  - Require fresh verification evidence before claiming completion.
58
66
 
@@ -63,38 +71,43 @@ Architecture artifacts are produced progressively. Do not try to finish every ar
63
71
  | Artifact | Lifecycle timing | Primary question | Typical outputs | Diagram support |
64
72
  |---|---|---|---|---|
65
73
  | Business architecture | Opportunity exploration / Discovery / product definition | Who gets value, in which workflow, and where the product boundary sits | user journey, value stream, role/ecosystem model, capability map | journey map, swimlane, capability map |
66
- | Product overview design / Functional architecture | PRD baseline / product design / PRD calibration | Which product capabilities, user flows, modules, pages, low-fidelity prototypes, APIs, and data impacts support the MVP boundary | product overview, module map, feature list, priority, dependencies, low-fidelity wireframe, state flow, open questions, PRD gaps | feature/module map, dependency graph, user flow, page map, low-fidelity wireframe |
74
+ | Product overview design / Functional architecture | spec baseline / product design / spec calibration | Which product capabilities, user flows, modules, pages, low-fidelity prototypes, APIs, and data impacts support the MVP boundary | product overview, module map, feature list, priority, dependencies, low-fidelity wireframe, state flow, open questions, spec gaps | feature/module map, dependency graph, user flow, page map, low-fidelity wireframe |
67
75
  | System overview design / System architecture | Engineering baseline / architecture review | How the product is built, deployed, integrated, operated, and safely evolved | C4/container view, service boundary, integration, deployment, NFR decisions, rollout/rollback decisions | system architecture, sequence, deployment, DFD |
68
76
  | Data architecture | Detailed design before persistence and repository work | How domain data, metadata, versions, lineage, and queries are modeled and stored | conceptual/logical/physical model, meta-model, versioning strategy, lineage/query/index strategy | ER, class, lineage graph, DFD |
69
77
 
70
78
  For data modeling, metadata management, ER design, versioning, or lineage-analysis products, data architecture is a core product design artifact. It must be explicit before persistence implementation and before OpenAPI Freeze when API schemas depend on the meta-model.
71
79
 
72
- Use `excalidraw-diagram-generator` when diagrams will make boundaries, flows, data structures, or slice dependencies easier to review. Diagrams support the text artifacts; they do not replace PRD, OpenAPI, ADR, issues, or tests.
80
+ Use `excalidraw-diagram-generator` when diagrams will make boundaries, flows, data structures, or slice dependencies easier to review. Diagrams support the text artifacts; they do not replace specs, OpenAPI, ADR, tickets, or tests.
73
81
 
74
82
  ## Workflow
75
83
 
76
84
  1. Inspect existing context before asking questions:
77
85
  - `CONTEXT.md`
78
86
  - `docs/discovery/` and `docs/discovery/reports/`
87
+ - `docs/research/`
79
88
  - `docs/requirements/`
80
89
  - `docs/design/`
81
90
  - `docs/api/specs/`
82
91
  - `docs/architecture/` and `docs/adr/`
83
- - `docs/requirements/issues/` and current issue tracker state when available
92
+ - `docs/requirements/tickets/`, `tickets.md`, and current tracker state when available
84
93
  2. Classify the request into one main stage:
85
- - intake / lifecycle triage, opportunity and Discovery, business / PRD / functional architecture, product design and requirement freeze, system / data architecture, engineering contract, and Design Review, contract freeze and Issue formalization, vertical slices and TDD implementation, or verification / release / retrospective.
94
+ - intake / lifecycle triage, opportunity and Discovery, business / spec / functional architecture, product design and requirement freeze, system / data architecture, engineering contract, and Design Review, contract freeze and ticket formalization, vertical slices and TDD implementation, or verification / release / retrospective.
86
95
  3. For small changes or iterations, identify the nearest trustworthy existing stage and only expand from the earliest impacted artifact:
87
96
  - wording / style / local configuration -> direct minimal change, then verify;
88
- - UI behavior or page state -> product design / prototype review / PRD calibration as needed;
97
+ - UI behavior or page state -> product design / prototype review / spec calibration as needed;
98
+ - unclear state-machine, complex rules, or UI direction -> `prototype` for throwaway runnable feedback, then feed the conclusion into spec/design/ADR/ticket;
89
99
  - API request, response, error, permission, pagination, or concurrency -> system / data architecture, engineering contract, and Design Review with API impact analysis / contract draft / OpenAPI Draft Review / Freeze downstream gates;
90
100
  - service boundary, state machine, integration, NFR, rollout, or rollback -> system / data architecture, engineering contract, and Design Review downstream gates;
91
101
  - persistence, metadata, versioning, lineage, query, or index -> system / data architecture, engineering contract, and Design Review downstream gates.
92
102
  4. Check whether required upstream artifacts exist.
93
- - Before PRD calibration, product design, API impact analysis, OpenAPI Draft, requirement freeze, or formal vertical slicing, verify PRD baseline and product overview design / functional architecture exist. If the task does not enter the PRD lifecycle, record the not-applicable reason in the impact assessment.
94
- - For UI work, before PRD calibration, API impact analysis, OpenAPI Draft, or requirement freeze, verify low-fidelity `prototype-review` is approved, `docs/design/prototypes/<feature>/index.html` exists as an Ant Design v6 high-fidelity HTML prototype, AntD v6 CLI validation evidence is recorded, and user confirmation is recorded after the prototype is produced. This prototype is a required lifecycle artifact and may be generated automatically by the system / Agent after low-fidelity prototype review; it does not have to be manually supplied by the user.
95
- - Before formal vertical slicing, verify PRD, product overview design / functional architecture, OpenAPI Freeze or no-API-impact record, architecture review as needed, and a clear issue destination.
96
- - For medium/high-risk API, permission, state-machine, data-model, cross-client, new-module, or safety-sensitive changes, verify an OpenSpec-style Spec Delta exists or record why it is not needed.
103
+ - Before spec calibration, product design, API impact analysis, OpenAPI Draft, requirement freeze, or formal vertical slicing, verify spec baseline and product overview design / functional architecture exist. If the task does not enter the spec lifecycle, record the not-applicable reason in the impact assessment.
104
+ - For UI work, before spec calibration, API impact analysis, OpenAPI Draft, or requirement freeze, verify low-fidelity `prototype-review` is approved, `docs/design/prototypes/<feature>/index.html` exists as an Ant Design v6 high-fidelity HTML prototype, AntD v6 CLI validation evidence is recorded, and user confirmation is recorded after the prototype is produced. This prototype is a required lifecycle artifact and may be generated automatically by the system / Agent after low-fidelity prototype review; it does not have to be manually supplied by the user.
105
+ - Before formal vertical slicing, verify spec, product overview design / functional architecture, OpenAPI Freeze or no-API-impact record, architecture review as needed, and a clear ticket destination.
106
+ - For medium/high-risk API, permission, state-machine, data-model, cross-client, or safety-sensitive changes to an existing frozen baseline, verify an OpenSpec-style Spec Delta exists or record why it is not needed. New product and new module baselines do not use Spec Delta.
107
+ - When technical, standard, framework, or third-party API facts influence downstream decisions, verify `research` or an equivalent primary-source record exists and is cited.
97
108
  - Before frontend/backend implementation, verify vertical slice scope, implementation repo/location, whether the impacted frontend/backend runtime projects already exist and are reusable, YSS skill routing, Build Architecture Checklist, test command, and review strategy.
109
+ - For backend slices, verify planned build / test / OpenAPI / CI commands use `./mvnw ...`; if commands use bare `mvn ...`, stop and either correct them or record a controlled wrapper exception before implementation.
110
+ - Before crossing threads, implementation repos, prototype branches, or long contexts, verify `handoff` or an equivalent handoff record captures source artifacts, current stage, open questions, verification commands, and next owner.
98
111
  5. Output the next action:
99
112
  - artifact to create/update,
100
113
  - specialist skill to invoke,
@@ -109,7 +122,7 @@ Use `excalidraw-diagram-generator` when diagrams will make boundaries, flows, da
109
122
 
110
123
  ## Stage Git Checkpoints
111
124
 
112
- Lifecycle artifacts are part of the product record, not scratch notes. Do not let PRD, design, OpenAPI, architecture, review, issue, or retrospective outputs remain only in the local worktree across multiple stages.
125
+ Lifecycle artifacts are part of the product record, not scratch notes. Do not let spec, design, OpenAPI, architecture, review, ticket, or retrospective outputs remain only in the local worktree across multiple stages.
113
126
 
114
127
  At the end of each stage, report:
115
128
 
@@ -123,7 +136,7 @@ At the end of each stage, report:
123
136
 
124
137
  When committing, prefer small checkpoint commits by artifact type or stage, for example:
125
138
 
126
- - `docs: add data modeling discovery and prd artifacts`
139
+ - `docs: add data modeling discovery and spec artifacts`
127
140
  - `docs: add data modeling openapi and architecture reviews`
128
141
  - `docs: update lifecycle checkpoint rules`
129
142
 
@@ -141,9 +154,12 @@ Default routing:
141
154
 
142
155
  | Intent | Next skill / workflow |
143
156
  |---|---|
144
- | Start a new business product/module | intake -> opportunity and Discovery -> `competitive-intelligence` when market / competitor facts are needed -> `grill-with-docs` -> `to-prd` -> product overview design / functional architecture -> product design and requirement freeze when UI exists |
145
- | Analyze competitors, substitute workflows, pricing, positioning, or market facts | `competitive-intelligence`; then feed stable findings into `grill-with-docs` and `to-prd` |
146
- | Design UI flow after PRD baseline | Verify product overview design / functional architecture first, then use `product-design:index` as the primary Product Design router; follow its focused routing such as `$get-context`, `$ideate`, `$prototype`, `$image-to-code`, or `$url-to-code` |
157
+ | Start a new business product/module | intake -> opportunity and Discovery -> `competitive-intelligence` when market / competitor facts are needed -> `grill-with-docs` -> `to-spec` -> product overview design / functional architecture -> product design and requirement freeze when UI exists |
158
+ | Plan a large unclear effort | `wayfinder`; map the destination, decisions, fog, and frontier tickets before `to-spec` / `to-tickets` |
159
+ | Analyze competitors, substitute workflows, pricing, positioning, or market facts | `competitive-intelligence`; then feed stable findings into `grill-with-docs` and `to-spec` |
160
+ | Research technical facts, standards, framework behavior, or third-party APIs | `research`; feed cited findings into spec, OpenAPI, architecture, ADR, or acceptance criteria |
161
+ | Answer a design question that needs runnable feedback | `prototype`; feed the conclusion into spec, design, ADR, or ticket, then delete or absorb throwaway code |
162
+ | Design UI flow after spec baseline | Verify product overview design / functional architecture first, then use `product-design:index` as the primary Product Design router; follow its focused routing such as `$get-context`, `$ideate`, `$prototype`, `$image-to-code`, or `$url-to-code` |
147
163
  | Review low-fidelity prototype before high-fidelity design | `prototype-review` |
148
164
  | Build high-fidelity interactive HTML prototype | Use `product-design:index` as the primary entrypoint and route to the appropriate Product Design focused workflow for prototype/code output; query AntD v6 design/component/demo/token/semantic facts with `antd` CLI before output; the required stage output must be Ant Design v6 HTML at `docs/design/prototypes/<feature>/index.html`, may be system / Agent generated, must record AntD CLI validation evidence, and must be confirmed by the user before downstream gates |
149
165
  | Review contract draft / OpenAPI Draft inside architecture/design review | `yss-openapi-draft-review` |
@@ -151,20 +167,23 @@ Default routing:
151
167
  | Clarify architecture artifact timing or gaps | this skill plus `docs/process/lifecycle-artifact-map.md` and `references/artifact-checklist.md` |
152
168
  | Create architecture/process/data diagrams | `excalidraw-diagram-generator` as a support skill |
153
169
  | Design meta-model / metadata / lineage data architecture | architecture/design workflow plus `yss-domain-modeling` or `yss-domain`; use `excalidraw-diagram-generator` for ER, lineage, DFD, or class diagrams when helpful |
154
- | Split delivery scope after PRD / OpenAPI Freeze | `to-issues`; record whether impacted frontend/backend projects already exist, and whether scaffold initialization is needed |
170
+ | Split delivery scope after spec / OpenAPI Freeze | `to-tickets`; record whether impacted frontend/backend projects already exist, and whether scaffold initialization is needed |
171
+ | Cross threads, repos, prototype branches, or long contexts | `handoff` or equivalent handoff record; preserve source artifacts, current stage, open questions, verification commands, and next owner |
155
172
  | Implement a slice | first check impacted frontend/backend project existence; route missing backend to `yss-ddd-scaffold-generator`, missing frontend to `yss-frontend-scaffold-generator`, then use `implement` plus `tdd`; use `yss-router` first when multiple YSS areas are touched |
156
173
  | Fix a bug or test failure | `diagnosing-bugs` then `tdd` |
174
+ | Resolve merge or rebase conflicts | `resolving-merge-conflicts`; record both intents, resolution trade-offs, and fresh verification |
157
175
  | Review implementation | `code-review` plus YSS-specific review inputs |
158
176
  | Build Vue page | `yss-ui` plus related frontend skills chosen by `yss-router` |
159
177
  | Build backend module from scratch | `yss-ddd-scaffold-generator` |
160
178
  | Model backend domain | `yss-domain` / `yss-backend-scaffold-domain` |
161
- | Implement persistence | `yss-repository` plus `yss-mybatis` when data architecture and domain metadata are stable |
162
- | Implement Web adapter | `yss-web-controller` |
179
+ | Implement Application use case / transaction boundary | `yss-backend-scaffold-application` |
180
+ | Implement persistence | `yss-repository` plus `mapstruct` / `lombok`; add `yss-mybatis` when data architecture and domain metadata are stable |
181
+ | Implement Web adapter | `yss-web-controller` plus `yss-dto` / `mapstruct` / `lombok` when DTO / VO / WebConvertor work is involved |
163
182
 
164
183
  ## When Not To Use
165
184
 
166
185
  - For a single YTable height/layout issue, use `yss-use-table-height` directly.
167
- - For a single Repository / PO / Convertor / GatewayImpl task with stable domain metadata and data architecture, use `yss-repository` directly.
186
+ - For a single Repository / PO / Convertor / GatewayImpl task with stable domain metadata and data architecture, use `yss-repository` directly, and also load `mapstruct` / `lombok` when POJO or Convertor code is generated.
168
187
  - For a request that only asks to run a specific Matt skill and already has the needed lifecycle artifacts, use that Matt skill directly.
169
188
 
170
189
  ## Output Contract
@@ -204,20 +223,24 @@ When the user explicitly asks for a full delivery plan, include stage-by-stage t
204
223
  ## Guardrails
205
224
 
206
225
  - Do not skip opportunity exploration for new product/module work; use `competitive-intelligence` when market/competitor facts are needed, or record why it is not needed.
207
- - Do not treat Discovery outputs as frozen downstream design. Discovery can provide product capability guidance and downstream impact signals, but PRD, functional architecture, OpenAPI, system architecture, and data architecture still require their own gates.
208
- - Do not start implementation before PRD is calibrated, product overview design / functional architecture exists, required architecture artifacts are explicit, product design / prototype / interaction design exists, low-fidelity `prototype-review` passes, high-fidelity Ant Design v6 HTML prototype exists when UI exists, OpenAPI Freeze decision, engineering baseline, design review, and vertical slice are clear.
226
+ - Do not make technical, standards, framework, or third-party API claims that affect spec, OpenAPI, architecture, acceptance, or release decisions without `research` or equivalent primary-source evidence.
227
+ - Do not treat Discovery outputs as frozen downstream design. Discovery can provide product capability guidance and downstream impact signals, but spec, functional architecture, OpenAPI, system architecture, and data architecture still require their own gates.
228
+ - Do not treat throwaway `prototype` code as production code, as an implementation shortcut, or as the required Ant Design v6 high-fidelity HTML prototype. Keep the conclusion, delete or absorb the code.
229
+ - Do not start implementation before the spec is calibrated, product overview design / functional architecture exists, required architecture artifacts are explicit, product design / prototype / interaction design exists, low-fidelity `prototype-review` passes, high-fidelity Ant Design v6 HTML prototype exists when UI exists, OpenAPI Freeze decision, engineering baseline, design review, and vertical slice ticket are clear.
209
230
  - Do not start implementation before deciding whether the impacted frontend/backend runtime projects already exist and can be reused. Missing or conflicting runtime projects must route back to implementation routing and scaffold initialization first.
210
231
  - Do not skip business architecture for new products unless the product boundary, users, ecosystem, and value stream are already captured elsewhere.
211
- - Do not skip product overview design / functional architecture after PRD baseline. It is a required artifact before PRD calibration, product design / prototype / interaction design, API impact analysis, OpenAPI Draft, requirement freeze, or implementation. Only tasks that do not enter the PRD lifecycle may record a not-applicable reason in the impact assessment.
232
+ - Do not skip product overview design / functional architecture after spec baseline. It is a required artifact before spec calibration, product design / prototype / interaction design, API impact analysis, OpenAPI Draft, requirement freeze, or implementation. Only tasks that do not enter the spec lifecycle may record a not-applicable reason in the impact assessment.
212
233
  - Do not skip system architecture when services, deployment, integrations, performance, security, reliability, or operations are affected.
213
234
  - Do not skip data architecture before persistence / repository work. For data modeling, metadata, versioning, or lineage products, treat it as mandatory before Design Review and OpenAPI Freeze.
214
- - Do not let Excalidraw diagrams invent requirements or architecture decisions; diagrams must point back to source artifacts and any findings must be written back to PRD, OpenAPI, ADR, or issues.
235
+ - Do not let Excalidraw diagrams invent requirements or architecture decisions; diagrams must point back to source artifacts and any findings must be written back to spec, OpenAPI, ADR, or tickets.
215
236
  - Do not treat an OpenAPI Draft as an implementation or generated-client contract before OpenAPI Freeze. It is review-only until engineering baseline, system/data architecture, Design Review, and Freeze have approved it.
216
- - Do not treat OpenSpec-style Spec Delta as a replacement for PRD, OpenAPI, Design Review, or vertical slice Issues. It only captures behavior differences, acceptance scenarios, and test / verification mapping.
237
+ - Do not treat OpenSpec-style Spec Delta as a replacement for spec, OpenAPI, Design Review, or vertical slice tickets. It only captures behavior differences, acceptance scenarios, and test / verification mapping.
217
238
  - Do not require Spec Delta for small wording, local style, configuration, or low-risk bug fixes unless the change expands into API, permission, state-machine, data-model, cross-client, or security impacts.
218
239
  - Do not move an OpenAPI Draft into Engineering Baseline / YSS DDD Review until `yss-openapi-draft-review` or an equivalent persistent review verifies P0 feature coverage, page action to endpoint mapping, YSS response wrappers, error structures, permissions, concurrency, security red lines, and contract test seams.
219
240
  - Do not route directly to frontend/backend skills before `yss-router` when the task crosses multiple YSS areas.
241
+ - Do not cross threads, implementation repos, prototype branches, or context-window limits without `handoff` or an equivalent handoff record when downstream agents need continuity.
220
242
  - Do not generate production code from this skill; hand off to the selected specialist skill.
243
+ - Do not complete merge/rebase conflict work without documenting resolution intent and rerunning relevant checks.
221
244
  - Treat TDD as the default for business behavior implementation; generated code, configuration, or throwaway prototypes may use a documented exception with a verification command.
222
245
  - Require independent review and fresh verification evidence before calling work complete.
223
246
  - Flag security red lines from `AGENTS.md` as human-review items.
@@ -6,44 +6,46 @@ Use this checklist to decide whether the current request can move forward or mus
6
6
 
7
7
  | Artifact | Typical location | Ready when |
8
8
  |---|---|---|
9
- | Domain context | `CONTEXT.md` | Key domain terms, actors, workflows, and invariants are clear enough for PRD / code naming |
9
+ | Domain context | `CONTEXT.md` | Key domain terms, actors, workflows, and invariants are clear enough for spec / code naming |
10
10
  | Discovery | `docs/discovery/<feature>-discovery.md` or issue note | User, pain, why now, MVP, non-goals, and success criteria are explicit |
11
- | Competitive intelligence | `docs/discovery/reports/<feature>-competitive-intelligence.md`, `<feature>-competitive-matrix.md`, or issue note | Competitors / substitutes, evidence sources, feature / pricing / positioning comparison, confidence, and PRD implications are explicit |
12
- | PRD | `docs/requirements/<feature>-prd.md` or issue | User stories, acceptance criteria, out of scope, OpenAPI impact, test decisions, and human-review points are clear |
13
- | Business architecture | `docs/architecture/<feature>-business-architecture.md` or PRD section | User journey, value stream, roles, external systems, and capability map are clear |
14
- | Functional architecture | `docs/architecture/<feature>-functional-architecture.md` or PRD/design section | Product capabilities, module boundaries, priority, dependencies, and MVP scope are clear |
15
- | Product overview design | `docs/design/<feature>-product-overview-design.md` | Pages, flows, states, permissions, API candidates, and PRD gaps are clear |
11
+ | Competitive intelligence | `docs/discovery/reports/<feature>-competitive-intelligence.md`, `<feature>-competitive-matrix.md`, or ticket note | Competitors / substitutes, evidence sources, feature / pricing / positioning comparison, confidence, and spec implications are explicit |
12
+ | Spec | `docs/requirements/<feature>-spec.md` or tracker ticket | User stories, acceptance criteria, out of scope, OpenAPI impact, test decisions, and human-review points are clear |
13
+ | Business architecture | `docs/architecture/<feature>-business-architecture.md` or spec section | User journey, value stream, roles, external systems, and capability map are clear |
14
+ | Functional architecture | `docs/architecture/<feature>-functional-architecture.md` or spec/design section | Product capabilities, module boundaries, priority, dependencies, and MVP scope are clear |
15
+ | Product overview design | `docs/design/<feature>-product-overview-design.md` | Pages, flows, states, permissions, API candidates, and spec gaps are clear |
16
16
  | Prototype / interaction review | `docs/design/<feature>-prototype-review.md` or issue comment | UI paths, empty/error/loading states, permission states, and API backflow list are reviewed |
17
- | High-fidelity HTML prototype | `docs/design/prototypes/<feature>/index.html` | Ant Design v6 interactive HTML prototype exists after low-fidelity review and before PRD calibration / API Draft |
18
- | API impact / OpenAPI Draft | `docs/api/specs/<feature>.yaml`, issue note, or API impact record | Request/response, wrappers, errors, pagination, permissions, concurrency, and contract test seams are reviewable |
19
- | OpenAPI Freeze | `docs/api/<feature>-openapi-freeze.md` or issue comment | Draft has been reviewed and marked stable for frontend/backend implementation |
17
+ | High-fidelity HTML prototype | `docs/design/prototypes/<feature>/index.html` | Ant Design v6 interactive HTML prototype exists after low-fidelity review and before spec calibration / API Draft |
18
+ | API impact / OpenAPI Draft | `docs/api/specs/<feature>.yaml`, ticket note, or API impact record | Request/response, wrappers, errors, pagination, permissions, concurrency, and contract test seams are reviewable |
19
+ | OpenAPI Freeze | `docs/api/<feature>-openapi-freeze.md` or ticket comment | Draft has been reviewed and marked stable for frontend/backend implementation |
20
20
  | Engineering baseline | `docs/architecture/<feature>-engineering-baseline-review.md` | YSS DDD module boundary, dependency direction, DTO/VO/CMD/Query conventions, and scaffold constraints are reviewed |
21
21
  | System architecture | `docs/architecture/<feature>-system-overview-design.md`, `<feature>-system-architecture.md`, or `<feature>-architecture.md` | Service/module boundaries, deployment, integration, security, performance, reliability, observability, rollout, rollback, and architecture review questions are clear |
22
22
  | Data architecture | `docs/architecture/<feature>-data-architecture.md` | Conceptual/logical/physical model, metadata, versioning, lineage, query, index, storage, and migration constraints are clear |
23
- | Design review | `docs/architecture/<feature>-architecture-review.md` or issue comment | Open questions, risks, safety red lines, and implementation constraints have an explicit review outcome |
24
- | Vertical slice Issue | GitLab / GitHub Issue or `docs/requirements/issues/<feature>-slice.md` | Slice is end-to-end, independently demoable/verifiable, and not split by technical layer only |
25
- | Implementation routing | `docs/requirements/issues/<feature>-implementation-routing.md` using `docs/templates/implementation-routing-template.md` or issue note | Required YSS skills, impacted frontend/backend project existence decision, scaffold initialization plan when needed, verification command, review strategy, and rollback points are clear |
26
- | Build Architecture Checklist | `docs/implementation/<feature>-build-architecture-checklist.md`, implementation plan, or issue note | Architecture constraints are bound to slice IDs and have status/evidence/follow-up |
27
- | Review report | MR / PR comment or `docs/requirements/issues/<feature>-review.md` | Independent review covers spec fidelity, coding standards, tests, contract alignment, and safety red lines |
28
- | Fresh verification | `docs/testing/<feature>-verification.md`, issue / MR comment, or release note | Verification command, timestamp, result, failures, and residual risks are recorded |
29
- | Release / rollout | `docs/releases/`, `docs/implementation/`, issue / MR comment | Release steps, rollback, monitoring, and user-facing notes are clear when applicable |
30
- | Retrospective | `docs/process/sprint-retros/` or issue note | Process learnings, architecture drift, review findings, and follow-up changes are captured |
23
+ | Design review | `docs/architecture/<feature>-architecture-review.md` or ticket comment | Open questions, risks, safety red lines, and implementation constraints have an explicit review outcome |
24
+ | Vertical slice ticket | GitLab / GitHub Issue, local `tickets.md`, or `docs/requirements/tickets/<feature>-slice.md` | Slice is end-to-end, independently demoable/verifiable, and not split by technical layer only |
25
+ | Implementation routing | `docs/requirements/tickets/<feature>-implementation-routing.md`, `docs/templates/implementation-routing-template.md`, or ticket note | Required YSS skills, impacted frontend/backend project existence decision, scaffold initialization plan when needed, verification command, review strategy, and rollback points are clear |
26
+ | Build Architecture Checklist | `docs/implementation/<feature>-build-architecture-checklist.md`, implementation plan, or ticket note | Architecture constraints are bound to slice IDs and have status/evidence/follow-up |
27
+ | Review report | MR / PR comment or `docs/requirements/tickets/<feature>-review.md` | Independent review covers spec fidelity, coding standards, tests, contract alignment, and safety red lines |
28
+ | Fresh verification | `docs/testing/<feature>-verification.md`, ticket / MR comment, or release note | Verification command, timestamp, result, failures, and residual risks are recorded |
29
+ | Release / rollout | `docs/releases/`, `docs/implementation/`, ticket / MR comment | Release steps, rollback, monitoring, and user-facing notes are clear when applicable |
30
+ | Retrospective | `docs/process/sprint-retros/` or ticket note | Process learnings, architecture drift, review findings, and follow-up changes are captured |
31
31
 
32
32
  ## Lifecycle Gate Checks
33
33
 
34
34
  - Discovery is enough to explain user, pain, MVP, non-goals, success criteria, and downstream UI/API/data/architecture impact.
35
- - Competitive intelligence uses current public evidence, separates facts from inference, and feeds PRD / MVP decisions instead of becoming requirements by itself.
36
- - PRD is enough to derive vertical slice acceptance tests and identify OpenAPI impact.
35
+ - Competitive intelligence uses current public evidence, separates facts from inference, and feeds spec / MVP decisions instead of becoming requirements by itself.
36
+ - Spec is enough to derive vertical slice acceptance tests and identify OpenAPI impact.
37
37
  - UI work with user-facing flows has product design, interaction states, and prototype review evidence.
38
38
  - API changes have OpenAPI Draft Review and Freeze evidence before implementation.
39
39
  - Persistence, metadata, versioning, lineage, query, or index changes have data architecture before Repository / MyBatis implementation.
40
40
  - Service boundary, integration, deployment, reliability, performance, or operations changes have system architecture before implementation.
41
- - Vertical slice Issues are end-to-end and independently verifiable.
41
+ - Vertical slice tickets are end-to-end and independently verifiable.
42
42
  - Impacted frontend/backend runtime projects are confirmed to exist and be reusable before implementation; otherwise scaffold initialization is recorded and completed first.
43
+ - Backend build, test, OpenAPI generation, CI, review, and release commands use the backend repository root `./mvnw ...`; bare `mvn ...` has a documented controlled exception or is corrected before implementation / completion.
44
+ - Durable project documents use Chinese body text and Chinese section titles; English skill/template wording is treated as source guidance and not copied verbatim into deliverables.
43
45
  - `yss-router` has selected the minimal YSS implementation skills before frontend/backend implementation when multiple YSS areas are touched.
44
46
  - Build Architecture Checklist is established before implementing high-risk or architecture-sensitive slices.
45
47
  - Fresh verification evidence exists before any complete / merge / release claim.
46
- - Excalidraw diagrams, when used, are referenced by the corresponding Discovery, PRD, design, architecture, or issue artifact and do not stand alone as decisions.
48
+ - Excalidraw diagrams, when used, are referenced by the corresponding Discovery, spec, design, architecture, or ticket artifact and do not stand alone as decisions.
47
49
 
48
50
  ## Missing Artifact Response
49
51
 
@@ -7,26 +7,26 @@ Use this reference after reading current repo context. It maps request shape to
7
7
  | Stage | Use when | Inputs to inspect | Output | Next route |
8
8
  |---|---|---|---|---|
9
9
  | 1. Intake / lifecycle triage | 新需求、继续需求、Bug、小调整、流程不清、缺失资产判断 | User request, `CONTEXT.md`, docs, issues, git state | stage decision, nearest trustworthy artifact, minimal skill list | route to earliest impacted stage |
10
- | 2. Opportunity and Discovery | 模糊想法、竞品/市场输入、用户痛点尚不清楚 | discovery docs, market/user facts, stakeholder notes | user, pain, why now, MVP, non-goals, success criteria, downstream impact | `competitive-intelligence` when market / competitor facts are needed, then `grill-with-docs` / PRD |
11
- | 3. Business / PRD / functional architecture | 需要明确用户故事、验收标准、功能边界、模块依赖 | discovery, `CONTEXT.md`, ADRs, existing PRD | PRD, business architecture, functional architecture, PRD review notes | product design or contract design |
12
- | 4. Product design and requirement freeze | 有 UI、页面、交互、状态矩阵、权限状态、空/错/加载态、高保真体验 | PRD, design system, existing UI, component docs | product overview design, interaction spec, state matrix, prototype review, Ant Design v6 high-fidelity HTML prototype, requirement freeze | contract and architecture review |
13
- | 5. System / data architecture, engineering contract, and Design Review | 接口、DTO、错误结构、后端新服务、新模块、DDD 分层、服务边界、部署、集成、状态机、权限、NFR、持久化、元模型、版本、血缘 | calibrated requirements, design inputs, API impact decision, engineering impact decision | API impact record; contract sketch or reviewable OpenAPI Draft marked draft-for-review; OpenAPI Draft Review; engineering baseline review; system overview; data architecture when required; ADR candidates; Design Review result | contract freeze and Issue formalization |
14
- | 6. Contract freeze and Issue formalization | OpenAPI Freeze、无 API 影响记录、正式拆分垂直切片 | Design Review approval, contract draft / OpenAPI Draft, PRD/design/architecture artifacts | OpenAPI Freeze or no API impact record; GitHub/GitLab/local vertical slice Issues | vertical slices and TDD implementation |
15
- | 7. Vertical slices and TDD implementation | issue、切片、实现、review、清理简化 | frozen contract / no API impact, approved slice, implementation repo/location | implementation routing, YSS skill routing, tests, review, verification evidence | verification, release, and retrospective |
10
+ | 2. Opportunity and Discovery | 模糊想法、竞品/市场输入、用户痛点尚不清楚 | discovery docs, market/user facts, stakeholder notes | user, pain, why now, MVP, non-goals, success criteria, downstream impact | `competitive-intelligence` when market / competitor facts are needed, then `grill-with-docs` / spec |
11
+ | 3. Business / spec / functional architecture | 需要明确用户故事、验收标准、功能边界、模块依赖 | discovery, `CONTEXT.md`, ADRs, existing Spec | Spec, business architecture, functional architecture, Spec review notes | product design or contract design |
12
+ | 4. Product design and requirement freeze | 有 UI、页面、交互、状态矩阵、权限状态、空/错/加载态、高保真体验 | spec, design system, existing UI, component docs | product overview design, interaction spec, state matrix, prototype review, Ant Design v6 high-fidelity HTML prototype, requirement freeze | contract and architecture review |
13
+ | 5. System / data architecture, engineering contract, and Design Review | 接口、DTO、错误结构、后端新服务、新模块、DDD 分层、服务边界、部署、集成、状态机、权限、NFR、持久化、元模型、版本、血缘 | calibrated requirements, design inputs, API impact decision, engineering impact decision | API impact record; contract sketch or reviewable OpenAPI Draft marked draft-for-review; OpenAPI Draft Review; engineering baseline review; system overview; data architecture when required; ADR candidates; Design Review result | contract freeze and ticket formalization |
14
+ | 6. Contract freeze and ticket formalization | OpenAPI Freeze、无 API 影响记录、正式拆分垂直切片 | Design Review approval, contract draft / OpenAPI Draft, spec/design/architecture artifacts | OpenAPI Freeze or no API impact record; GitHub/GitLab/local vertical slice tickets | vertical slices and TDD implementation |
15
+ | 7. Vertical slices and TDD implementation | ticket、切片、实现、review、清理简化 | frozen contract / no API impact, approved slice, implementation repo/location | implementation routing, YSS skill routing, tests, review, verification evidence | verification, release, and retrospective |
16
16
  | 8. Verification, release, and retrospective | 准备合并、发布、归档、复盘、用户手册 | diff, tests, CI, review notes, release notes | fresh verification, release / rollback notes, retrospective, doc updates | next intake |
17
17
 
18
18
  ## Routing Principles
19
19
 
20
- - Treat lifecycle opportunity exploration as product/MVP boundary work. Discovery may produce competitive analysis via `competitive-intelligence`, an opportunity statement, product capability guidance, and downstream impact signals, but it must not freeze PRD, final functional architecture, OpenAPI, data architecture, or technical system design.
21
- - Small iterations only expand from the earliest affected artifact. Do not rerun Discovery or PRD if a copy/style/config change has no API, state, permission, data, module boundary, or security impact.
20
+ - Treat lifecycle opportunity exploration as product/MVP boundary work. Discovery may produce competitive analysis via `competitive-intelligence`, an opportunity statement, product capability guidance, and downstream impact signals, but it must not freeze spec, final functional architecture, OpenAPI, data architecture, or technical system design.
21
+ - Small iterations only expand from the earliest affected artifact. Do not rerun Discovery or spec if a copy/style/config change has no API, state, permission, data, module boundary, or security impact.
22
22
  - If a small iteration only changes copy, local style, an existing option value, or documentation without touching API, state, permission, data, module boundary, or security red lines, route to direct minimal change plus verification.
23
- - API changes route through OpenAPI Draft Review and Freeze, then `to-issues`.
23
+ - API changes route through OpenAPI Draft Review and Freeze, then `to-tickets`.
24
24
  - For implementation spanning frontend and backend, first check whether the impacted frontend/backend runtime projects already exist and can be reused; if not, route to scaffold initialization before `yss-router`.
25
- - If multiple PRDs or issues look relevant, ask the user which one to continue before planning work.
25
+ - If multiple specs or tickets look relevant, ask the user which one to continue before planning work.
26
26
 
27
27
  ## Required Inspection Before Implementation
28
28
 
29
- 1. Inspect the relevant PRD, issue, OpenAPI Freeze or no-API-impact record, and architecture/design review when applicable.
29
+ 1. Inspect the relevant spec, ticket, OpenAPI Freeze or no-API-impact record, and architecture/design review when applicable.
30
30
  2. Confirm the implementation repo/location.
31
31
  3. Confirm whether each impacted frontend/backend runtime project already exists and is reusable; if not, route to `yss-ddd-scaffold-generator` or `yss-frontend-scaffold-generator`.
32
32
  4. Confirm `yss-router` output when frontend/backend/YSS areas are involved.
@@ -40,7 +40,7 @@ Use this reference after reading current repo context. It maps request shape to
40
40
 
41
41
  ```text
42
42
  使用 yss-product-lifecycle,判断 <feature> 当前生命周期阶段。
43
- 请先检查现有 Discovery、PRD、设计、OpenAPI、架构和 Issue 资产,
43
+ 请先检查现有 Discovery、spec、设计、OpenAPI、架构和 ticket 资产,
44
44
  然后输出缺失资产、是否阻塞、下一步推荐 skill 和可直接使用的提示词。
45
45
  ```
46
46
 
@@ -49,14 +49,14 @@ Use this reference after reading current repo context. It maps request shape to
49
49
  ```text
50
50
  使用 yss-product-lifecycle,判断 <topic> 是否需要先进入竞品分析。
51
51
  如果需要,请路由到 competitive-intelligence,输出研究问题、竞品范围、证据来源计划、
52
- 竞品矩阵落点、PRD 输入和下一步 grill-with-docs / to-prd 衔接方式。
52
+ 竞品矩阵落点、spec 输入和下一步 grill-with-docs / to-spec 衔接方式。
53
53
  ```
54
54
 
55
55
  ### API change
56
56
 
57
57
  ```text
58
58
  使用 yss-product-lifecycle,评估 <feature> 的 API 影响。
59
- 请判断是否需要 OpenAPI Draft、Draft Review、Freeze、to-issues,
59
+ 请判断是否需要 OpenAPI Draft、Draft Review、Freeze、to-tickets,
60
60
  并列出进入实现前必须补齐的 YSS skill routing、测试命令和审查点。
61
61
  ```
62
62
 
@@ -64,7 +64,7 @@ Use this reference after reading current repo context. It maps request shape to
64
64
 
65
65
  ```text
66
66
  使用 yss-product-lifecycle,检查 <issue-or-feature> 的实现准备度。
67
- 若 PRD、OpenAPI Freeze 或架构清单缺失,请路由回对应阶段;
67
+ 若 spec、OpenAPI Freeze 或架构清单缺失,请路由回对应阶段;
68
68
  若已就绪,请先判断受影响的 frontend/backend 工程是否已存在且可复用;
69
69
  若缺失则路由到对应脚手架 skill,否则输出最小 YSS skill 集合、TDD 策略、review 策略和验证命令。
70
70
  ```
@@ -16,9 +16,11 @@ Use this reference after lifecycle stage and slice scope are clear. Pick the min
16
16
  | Backend service from scratch | `yss-ddd-scaffold-generator` | After implementation location decision; then baseline check |
17
17
  | Backend scaffold baseline | `yss-backend-scaffold-parent` | Required after generated backend skeleton and before business implementation |
18
18
  | Domain modeling / aggregate / state behavior | `yss-domain-modeling`, `yss-domain`, `yss-backend-scaffold-domain` | Use before repository/controller code when domain concepts are unstable |
19
- | Repository / PO / Convertor / GatewayImpl | `yss-repository` | Add `yss-mybatis` / `yss-backend-scaffold-infrastructure` for mapper/persistence details |
20
- | Web controller / DTO / VO / Web Convertor | `yss-web-controller`, `yss-dto`, `yss-backend-scaffold-web` | Requires OpenAPI Freeze or no-API-impact record |
21
- | Java coding style and review | `alibaba-java-code-style` | Treat blockers as review blockers |
19
+ | Application use case orchestration / transaction boundary | `yss-backend-scaffold-application` | Use when implementing AppService, command/query handling, cross-aggregate coordination, or transaction boundaries |
20
+ | Repository / PO / Convertor / GatewayImpl | `yss-repository` | Add `mapstruct` and `lombok` for POJO / Convertor work; add `yss-mybatis` / `yss-backend-scaffold-infrastructure` for mapper/persistence details |
21
+ | Web controller / DTO / VO / Web Convertor | `yss-web-controller`, `yss-dto`, `yss-backend-scaffold-web` | Requires OpenAPI Freeze or no-API-impact record; add `mapstruct` and `lombok` when DTO / VO / WebConvertor objects are created or converted |
22
+ | POJO boilerplate and object conversion | `lombok`, `mapstruct` | Required for Java POJO getter/setter/constructor/builder/logging and DTO / VO / PO / Domain Model conversion work |
23
+ | Java coding style and review | `alibaba-java-code-style` | Treat blockers as review blockers; include MapStruct / Lombok processor and anti-pattern checks |
22
24
  | SQL condition/template/query utilities | `yss-sql-condition`, `yss-sql-tpl` | SQL red line still requires human review for native SQL |
23
25
  | Audit log | `yss-audit-log` | Security and traceability impacts must be recorded |
24
26
  | Cache | `yss-cache` | Include invalidation and consistency strategy |
@@ -29,9 +31,11 @@ Use this reference after lifecycle stage and slice scope are clear. Pick the min
29
31
  ## Routing Rules
30
32
 
31
33
  - Do not route directly to frontend/backend implementation skills before `yss-router` when the task crosses multiple YSS areas.
32
- - Do not use backend implementation skills before required PRD, OpenAPI Freeze/no-impact record, architecture/data design, and Build Architecture Checklist are ready for the slice.
34
+ - Do not use backend implementation skills before required spec, OpenAPI Freeze/no-impact record, architecture/data design, and Build Architecture Checklist are ready for the slice.
33
35
  - Do not use Repository / MyBatis skills before data architecture and domain metadata are stable enough to review.
34
36
  - Do not use Controller / DTO skills before OpenAPI contract is frozen or explicitly marked as no API impact.
37
+ - Do not implement DTO / VO / PO / Domain Model conversions with `BeanUtils.copyProperties`, reflection copy, or repeated manual field assignment unless the implementation contract records a controlled exception, tests, and review evidence.
38
+ - Do not handwrite batches of getter/setter/constructor/builder/logger code for Java POJO classes when Lombok is available; use `lombok` or record a controlled exception.
35
39
  - Do not use UI implementation skills before `yss-design-system` and product design/prototype review when user-facing workflow is affected.
36
40
  - For bugs, start with `diagnosing-bugs`; route to YSS skills only after the failing feedback command points to the impacted area.
37
41
 
@@ -41,7 +45,7 @@ Use this reference after lifecycle stage and slice scope are clear. Pick the min
41
45
  请使用 yss-router 为 <slice> 选择最小 YSS skill 集合。
42
46
 
43
47
  已知资产:
44
- - PRD / Issue: <path-or-link>
48
+ - Spec / ticket: <path-or-link>
45
49
  - OpenAPI Freeze / no API impact: <path-or-link>
46
50
  - Architecture / data design: <path-or-link>
47
51
  - Build Architecture Checklist: <path-or-link>
@@ -50,7 +54,8 @@ Use this reference after lifecycle stage and slice scope are clear. Pick the min
50
54
  请输出:
51
55
  1. 必须加载的 YSS skills
52
56
  2. 可选 skills 与触发条件
53
- 3. TDD / 验证命令
54
- 4. 人审点和 TODO-HUMAN-REVIEW
55
- 5. 不应触碰的范围
57
+ 3. 是否必须加载 `mapstruct` / `lombok`,以及对象转换和 POJO 样板代码证据
58
+ 4. TDD / 验证命令
59
+ 5. 人审点和 TODO-HUMAN-REVIEW
60
+ 6. 不应触碰的范围
56
61
  ```
@@ -23,8 +23,10 @@ description: 用于生成或重构 YSS Repository 持久层与 Domain Gateway
23
23
 
24
24
  1. 先确认输入来源:领域模型、metadata、数据库表、DDL。
25
25
  2. 如果 metadata 不完整,优先转到 `yss-db2mybatis` 提取。
26
- 3. 生成代码时严格保持 Domain 与 Infrastructure 分层边界。
27
- 4. 默认先生成基础 CRUD 骨架,把复杂查询留给手工实现。
26
+ 3. 涉及 POJO 字段、getter/setter、constructor、builder 或日志时,必须加载并遵守 `lombok`。
27
+ 4. 涉及 `PO <-> Domain Model`、集合转换、更新映射或枚举转换时,必须加载并遵守 `mapstruct`。
28
+ 5. 生成代码时严格保持 Domain 与 Infrastructure 分层边界。
29
+ 6. 默认先生成基础 CRUD 骨架,把复杂查询留给手工实现。
28
30
 
29
31
  ## 产物范围
30
32
 
@@ -38,17 +40,23 @@ description: 用于生成或重构 YSS Repository 持久层与 Domain Gateway
38
40
 
39
41
  - Domain 不依赖 Infrastructure。
40
42
  - Gateway 定义在 Domain,实现放在 Infrastructure。
41
- - Convertor 优先使用 MapStruct。
43
+ - PO / Domain Model 等 POJO 样板代码优先使用 Lombok;不要成片手写 getter/setter、constructor、builder 或 logger。
44
+ - Convertor 必须优先使用 MapStruct;禁止 `BeanUtils.copyProperties`、反射式通用拷贝和重复手写字段赋值,除非实现合同记录受控例外、测试和 review 证据。
45
+ - MapStruct 与 Lombok 同时使用时,必须确认注解处理器顺序和 `lombok-mapstruct-binding` 配置;构建命令使用项目根目录 `./mvnw ...`。
42
46
  - 逻辑删除、审计字段、主键策略要显式处理,不要隐式略过。
43
47
 
44
48
  ## 质量门禁
45
49
 
46
50
  - 生成代码必须可编译。
47
51
  - 命名、包路径、注解要与工程现有规范一致。
52
+ - Convertor 必须有 MapStruct 接口 / 抽象类、生成实现可编译,必要时补 mapper 单测或覆盖核心字段转换的行为测试。
53
+ - POJO 使用 Lombok 时不得引入 `@Data` 造成实体 equals / toString 风险;有关系字段、敏感字段或懒加载字段时按 `lombok` skill 排除。
48
54
  - 遇到无法自动判断的字段或规则时,写 TODO 或向用户说明,不要假装已确认。
49
55
 
50
56
  ## 协同顺序
51
57
 
52
58
  - metadata 提取:`yss-db2mybatis`
53
59
  - 领域建模:`yss-domain`
60
+ - POJO 样板代码:`lombok`
61
+ - 对象转换:`mapstruct`
54
62
  - Web 补齐:`yss-web-controller`
@@ -19,7 +19,7 @@ When the request is already narrowly scoped, use the matching specialist directl
19
19
 
20
20
  ## Lifecycle Boundaries
21
21
 
22
- - If the task introduces or changes a frontend/backend API contract, route back to `yss-product-lifecycle` until PRD, OpenAPI Draft, engineering baseline/design review, and OpenAPI Freeze are clear.
22
+ - If the task introduces or changes a frontend/backend API contract, route back to `yss-product-lifecycle` until Spec, OpenAPI Draft, engineering baseline/design review, and OpenAPI Freeze are clear.
23
23
  - `api-integration` consumes generated clients and wires page behavior; it must not invent missing API paths, DTOs, or response shapes.
24
24
  - `yss-openapi` is for generating or refreshing contracts/Orval clients after OpenAPI Freeze, or for regenerating from an already implemented backend source of truth.
25
25
 
@@ -61,7 +61,6 @@ When the request is already narrowly scoped, use the matching specialist directl
61
61
  | Work with current user info propagation or user info starter | `yss-userinfo` |
62
62
  | Work with variable component APIs | `yss-variable` |
63
63
  | Work with quality starter behavior | `yss-quality` |
64
- | Work with DolphinScheduler anti-corrosion/anti-scheduler integration | `yss-anti-scheduler` |
65
64
  | Work with exception component or unified exception handling | `yss-exception` |
66
65
  | Work with mail starter or email sending | `yss-mail` |
67
66
  | Work with file runner component | `yss-filerunner` |
@@ -98,7 +97,7 @@ Backend component skills have generated source indexes under `references/source-
98
97
  中文说明:当问题涉及真实类名、配置项、注解、拦截器、自动配置或排障时,先读对应 `source-index.md`,它会指向后端组件源码库里的真实入口。
99
98
 
100
99
  - Core framework/component examples: `yss-cache`, `yss-mybatis`, `yss-dto`, `yss-audit-log`, `yss-excel-mvc`, `yss-distributed-id`, `yss-jdbc`.
101
- - Extended component examples: `yss-dictionary`, `yss-dir`, `yss-file`, `yss-log`, `yss-liquibase`, `yss-resilience4j`, `yss-sql-condition`, `yss-sql-tpl`, `yss-taskflow`, `yss-validation`, `yss-security-algorithm`, `yss-userinfo`, `yss-variable`, `yss-quality`, `yss-anti-scheduler`, `yss-exception`, `yss-mail`, `yss-filerunner`, `yss-valuation`, `yss-duckdb`, `yss-mapper-dynamic`.
100
+ - Extended component examples: `yss-dictionary`, `yss-dir`, `yss-file`, `yss-log`, `yss-liquibase`, `yss-resilience4j`, `yss-sql-condition`, `yss-sql-tpl`, `yss-taskflow`, `yss-validation`, `yss-security-algorithm`, `yss-userinfo`, `yss-variable`, `yss-quality`, `yss-exception`, `yss-mail`, `yss-filerunner`, `yss-valuation`, `yss-duckdb`, `yss-mapper-dynamic`.
102
101
 
103
102
  Regenerate these indexes with `yss-source-index/scripts/refresh-yss-skill-index.py` after `yss-cloud-microservice` changes. Read `yss-source-index/references/source-map-config.md` when you need the full skill-to-source mapping.
104
103
 
@@ -54,7 +54,6 @@ Default for backend CRUD: use `yss-domain`, `yss-dto`, `yss-repository`, and `ys
54
54
  - `yss-userinfo`: Current-user info propagation and starter integration.
55
55
  - `yss-variable`: Variable component APIs and variable resolution.
56
56
  - `yss-quality`: Quality starter behavior.
57
- - `yss-anti-scheduler`: DolphinScheduler anti-corrosion/anti-scheduler integration.
58
57
  - `yss-exception`: Exception component and unified exception handling.
59
58
  - `yss-mail`: Mail starter and email sending.
60
59
  - `yss-filerunner`: File runner component behavior.
@@ -27,7 +27,6 @@ The refresh script maps component source path hints to skill references. These p
27
27
  | `yss-userinfo` | `yss-microservice-components/yss-component-userinfo-starter` |
28
28
  | `yss-variable` | `yss-microservice-components/yss-component-variable` |
29
29
  | `yss-quality` | `yss-microservice-components/yss-component-quality-starter` |
30
- | `yss-anti-scheduler` | `yss-microservice-components/yss-component-anti-corrosion/yss-component-anti-scheduler` |
31
30
  | `yss-exception` | `yss-microservice-components/yss-component-exception` |
32
31
  | `yss-mail` | `yss-microservice-components/yss-component-mail-starter` |
33
32
  | `yss-filerunner` | `yss-microservice-components/yss-component-filerunner-parent` |
@@ -76,9 +76,6 @@ BACKEND_SKILLS = {
76
76
  "yss-quality": [
77
77
  "yss-microservice-components/yss-component-quality-starter",
78
78
  ],
79
- "yss-anti-scheduler": [
80
- "yss-microservice-components/yss-component-anti-corrosion/yss-component-anti-scheduler",
81
- ],
82
79
  "yss-exception": [
83
80
  "yss-microservice-components/yss-component-exception",
84
81
  ],
@@ -21,9 +21,11 @@ description: 用于根据 YSS 规范生成或重构 Web Adapter Controller 层
21
21
  ## 优先流程
22
22
 
23
23
  1. 先确认 metadata、基础包、模块名、领域 segment、domain/web 落盘目录。
24
- 2. 运行 `scripts/generate_controller.py`。
25
- 3. 生成后检查路径、命名、返回值包装和 Gateway 引用是否对齐项目。
26
- 4. 对复杂接口做少量手工修正,不在 skill 中承诺自动覆盖全部业务逻辑。
24
+ 2. 涉及 DTO / VO / CMD / Query POJO 样板代码时,加载并遵守 `lombok`。
25
+ 3. 涉及 Domain / Application Result 到 VO / DTO 或 CMD / Query 到输入模型的转换时,加载并遵守 `mapstruct`。
26
+ 4. 运行 `scripts/generate_controller.py`。
27
+ 5. 生成后检查路径、命名、返回值包装、Gateway 引用、Lombok 注解和 MapStruct WebConvertor 是否对齐项目。
28
+ 6. 对复杂接口做少量手工修正,不在 skill 中承诺自动覆盖全部业务逻辑。
27
29
 
28
30
  ## 推荐命令
29
31
 
@@ -51,6 +53,8 @@ python3 scripts/generate_controller.py \
51
53
 
52
54
  - 生成代码默认依赖既有 Domain Gateway,不直接穿透 Repository。
53
55
  - 返回结构保持项目既有 `SingleResult`、`PageResult`、`MultiResult` 体系。
56
+ - DTO / VO / CMD / Query 默认用 Lombok 处理 getter/setter、constructor、builder 和日志样板;不要在 Controller 内部类或非约定包临时定义主要 DTO / VO。
57
+ - `WebConvertor` 默认使用 MapStruct;禁止在 Controller / Application 中大段手写字段赋值、使用 `BeanUtils.copyProperties` 或反射式通用拷贝,除非有受控例外和测试证据。
54
58
  - 先跑脚本,再按项目规范做少量手调。
55
59
  - 若用户只是要改单个 Controller,先看现有代码,不要盲覆盖整个目录。
56
60
 
@@ -59,3 +63,5 @@ python3 scripts/generate_controller.py \
59
63
  - 生成脚本:`scripts/generate_controller.py`
60
64
  - Controller 模板:`assets/templates/Controller.java.template`
61
65
  - Convertor 模板:`assets/templates/WebConvertor.java.template`
66
+ - POJO 样板代码:`lombok`
67
+ - 对象转换:`mapstruct`