create-yss-spec 3.5.6 → 3.5.8

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 (552) hide show
  1. package/bin/create-yss-spec.js +3 -1
  2. package/cli-core.lock.json +10 -6
  3. package/package.json +4 -1
  4. package/src/api/_sync-service.js +3 -1
  5. package/src/command-runner.mjs +44 -9
  6. package/src/content-identity.js +111 -0
  7. package/src/runtime-store.mjs +650 -0
  8. package/src/template/asset-runtime.js +4 -1
  9. package/src/template/instance-runtime.js +23 -7
  10. package/src/validation/metadata.js +8 -0
  11. package/template/.agents/skills/.strategic-design-skills-manifest.json +1 -1
  12. package/template/.agents/skills/alibaba-java-code-style/SKILL.md +30 -36
  13. package/template/.agents/skills/archify/SKILL.md +2 -2
  14. package/template/.agents/skills/archify/scripts/yss-safe-deliver.mjs +10 -6
  15. package/template/.agents/skills/archify/test/yss-safe-deliver.test.mjs +9 -2
  16. package/template/.agents/skills/code-review/SKILL.md +19 -11
  17. package/template/.agents/skills/code-review/references/candidate-capture.md +1 -1
  18. package/template/.agents/skills/code-review/references/legacy-convergence.md +3 -1
  19. package/template/.agents/skills/code-review/references/review-axis-checklists.md +2 -0
  20. package/template/.agents/skills/code-review/references/yss-review-standards.md +4 -2
  21. package/template/.agents/skills/competitive-intelligence/SKILL.md +32 -74
  22. package/template/.agents/skills/file-export-download/SKILL.md +4 -73
  23. package/template/.agents/skills/file-export-download/references/binary-contract-example.md +26 -0
  24. package/template/.agents/skills/file-export-download/references/download-call-example.md +45 -0
  25. package/template/.agents/skills/formily-foundation/SKILL.md +6 -105
  26. package/template/.agents/skills/formily-foundation/references/async-save-example.md +57 -0
  27. package/template/.agents/skills/formily-foundation/references/query-layout.md +50 -0
  28. package/template/.agents/skills/formily-linkage-effects/SKILL.md +3 -116
  29. package/template/.agents/skills/formily-linkage-effects/references/linkage-example.md +116 -0
  30. package/template/.agents/skills/formily-mode-slot-detail/SKILL.md +3 -81
  31. package/template/.agents/skills/formily-mode-slot-detail/references/mode-slot-example.md +81 -0
  32. package/template/.agents/skills/formily-step-flow/SKILL.md +3 -143
  33. package/template/.agents/skills/formily-step-flow/references/step-flow-example.md +143 -0
  34. package/template/.agents/skills/handoff/SKILL.md +3 -1
  35. package/template/.agents/skills/i-have-adhd/SKILL.md +2 -2
  36. package/template/.agents/skills/i-have-adhd/references/yss-adaptation.md +2 -2
  37. package/template/.agents/skills/i-have-adhd/tests/verify-integration.mjs +7 -2
  38. package/template/.agents/skills/implement/SKILL.md +2 -2
  39. package/template/.agents/skills/llm-wiki/references/transactions.md +2 -2
  40. package/template/.agents/skills/llm-wiki/scripts/core.mjs +40 -2
  41. package/template/.agents/skills/llm-wiki/scripts/transaction.mjs +30 -27
  42. package/template/.agents/skills/llm-wiki/scripts/v2.test.mjs +38 -2
  43. package/template/.agents/skills/lombok/SKILL.md +2 -0
  44. package/template/.agents/skills/mapstruct/SKILL.md +2 -0
  45. package/template/.agents/skills/tdd/SKILL.md +2 -2
  46. package/template/.agents/skills/theme-token-usage/SKILL.md +6 -5
  47. package/template/.agents/skills/wayfinder/references/chart-map.md +2 -2
  48. package/template/.agents/skills/wayfinder/references/ticket-types.md +1 -1
  49. package/template/.agents/skills/yss-api-integration/SKILL.md +13 -50
  50. package/template/.agents/skills/yss-api-integration/references/orval-list-example.md +38 -0
  51. package/template/.agents/skills/yss-application/SKILL.md +11 -5
  52. package/template/.agents/skills/yss-audit-log/SKILL.md +8 -6
  53. package/template/.agents/skills/yss-audit-log/references/README.md +5 -5
  54. package/template/.agents/skills/yss-cache/SKILL.md +4 -4
  55. package/template/.agents/skills/yss-ddd-scaffold-generator/SKILL.md +7 -8
  56. package/template/.agents/skills/yss-ddd-scaffold-generator/references/USAGE_EXAMPLES.md +13 -6
  57. package/template/.agents/skills/yss-ddd-scaffold-generator/references/command-examples.md +2 -0
  58. package/template/.agents/skills/yss-ddd-scaffold-generator/scripts/scaffold-generator.test.mjs +28 -1
  59. package/template/.agents/skills/yss-design-system/SKILL.md +2 -2
  60. package/template/.agents/skills/yss-distributed-id/SKILL.md +4 -4
  61. package/template/.agents/skills/yss-dto/SKILL.md +9 -9
  62. package/template/.agents/skills/yss-dto/references/README.md +4 -4
  63. package/template/.agents/skills/yss-dto/references/wire-validation-checklist.md +4 -4
  64. package/template/.agents/skills/yss-excel-mvc/SKILL.md +4 -4
  65. package/template/.agents/skills/yss-exception/SKILL.md +42 -48
  66. package/template/.agents/skills/yss-formily-schema-generator/SKILL.md +26 -170
  67. package/template/.agents/skills/yss-formily-schema-generator/references/workflow.md +49 -193
  68. package/template/.agents/skills/yss-frontend-scaffold-generator/SKILL.md +14 -10
  69. package/template/.agents/skills/yss-implementation-contract-compiler/SKILL.md +2 -6
  70. package/template/.agents/skills/yss-implementation-contract-compiler/references/yss-skill-execution-result.md +15 -1
  71. package/template/.agents/skills/yss-layered-mvc-scaffold-generator/SKILL.md +1 -1
  72. package/template/.agents/skills/yss-mybatis/SKILL.md +4 -4
  73. package/template/.agents/skills/yss-openapi-draft-review/SKILL.md +6 -4
  74. package/template/.agents/skills/yss-openapi-draft-review/references/review-output.md +2 -0
  75. package/template/.agents/skills/yss-openapi-draft-review/references/semantic-review.md +3 -3
  76. package/template/.agents/skills/yss-openapi-governance/SKILL.md +5 -7
  77. package/template/.agents/skills/yss-openapi-governance/references/governance-output.md +2 -0
  78. package/template/.agents/skills/yss-openapi-governance/references/governance-workflow.md +3 -3
  79. package/template/.agents/skills/yss-product-lifecycle/SKILL.md +23 -21
  80. package/template/.agents/skills/yss-product-lifecycle/references/artifact-dependencies.md +1 -1
  81. package/template/.agents/skills/yss-product-lifecycle/references/matt-yss-adapter.md +25 -5
  82. package/template/.agents/skills/yss-product-lifecycle/references/orchestration-contract.yaml +100 -4
  83. package/template/.agents/skills/yss-product-lifecycle/references/orchestration.md +35 -12
  84. package/template/.agents/skills/yss-product-lifecycle/references/state-model.md +3 -1
  85. package/template/.agents/skills/yss-product-lifecycle/references/user-decisions.md +3 -3
  86. package/template/.agents/skills/yss-prototype-stage/SKILL.md +1 -5
  87. package/template/.agents/skills/yss-repository/SKILL.md +2 -2
  88. package/template/.agents/skills/yss-research/SKILL.md +39 -48
  89. package/template/.agents/skills/yss-research/assets/competitive-evidence-template.yaml +146 -0
  90. package/template/.agents/skills/yss-research/references/competitive-analysis.md +76 -0
  91. package/template/.agents/skills/yss-research/references/competitive-analysis.schema.json +324 -0
  92. package/template/.agents/skills/yss-research/references/evidence-contract.md +8 -0
  93. package/template/.agents/skills/yss-research/scripts/lib/competitive-analysis.mjs +185 -0
  94. package/template/.agents/skills/yss-research/scripts/render-competitive-outputs.mjs +16 -0
  95. package/template/.agents/skills/yss-research/scripts/validate-research-package.mjs +6 -2
  96. package/template/.agents/skills/yss-research/tests/competitive-scenarios.test.mjs +270 -0
  97. package/template/.agents/skills/yss-resilience4j/SKILL.md +25 -31
  98. package/template/.agents/skills/yss-security-algorithm/SKILL.md +37 -43
  99. package/template/.agents/skills/yss-skill-source-index-refresh/SKILL.md +29 -36
  100. package/template/.agents/skills/yss-skill-source-index-refresh/references/backend-component-platform-compatibility.md +1 -1
  101. package/template/.agents/skills/yss-stage-decision/SKILL.md +2 -5
  102. package/template/.agents/skills/yss-tactical-design/SKILL.md +1 -1
  103. package/template/.agents/skills/yss-tactical-design/references/output-template.md +3 -3
  104. package/template/.agents/skills/yss-tactical-design/references/tactical-design-contract.md +1 -1
  105. package/template/.agents/skills/yss-technical-design/SKILL.md +6 -5
  106. package/template/.agents/skills/yss-ui/SKILL.md +7 -1
  107. package/template/.agents/skills/yss-ui/assets/docs/guide/gitlab-ci-integration.md +2 -2
  108. package/template/.agents/skills/yss-ui/references/checklist.md +38 -96
  109. package/template/.agents/skills/yss-ui/references/component-routing.md +3 -1
  110. package/template/.agents/skills/yss-ui/references/quick-recipes.md +17 -272
  111. package/template/.agents/skills/yss-ui/references/specialized-components.md +3 -3
  112. package/template/.agents/skills/yss-ui-business-page-generation/SKILL.md +1 -1
  113. package/template/.agents/skills/yss-up-springboot3/SKILL.md +19 -21
  114. package/template/.agents/skills/yss-userinfo/SKILL.md +27 -33
  115. package/template/.agents/skills/yss-validation/SKILL.md +26 -32
  116. package/template/.agents/skills/yss-web-controller/SKILL.md +11 -44
  117. package/template/.agents/skills/yss-web-controller/references/crud-generation.md +38 -0
  118. package/template/.agents/skills/ytable-usage/SKILL.md +2 -2
  119. package/template/.agents/skills/ytree-usage/SKILL.md +2 -80
  120. package/template/.agents/skills/ytree-usage/references/tree-and-confirmation-example.md +81 -0
  121. package/template/.codex/skills/alibaba-java-code-style/SKILL.md +30 -36
  122. package/template/.codex/skills/archify/SKILL.md +2 -2
  123. package/template/.codex/skills/archify/scripts/yss-safe-deliver.mjs +10 -6
  124. package/template/.codex/skills/archify/test/yss-safe-deliver.test.mjs +9 -2
  125. package/template/.codex/skills/code-review/SKILL.md +19 -11
  126. package/template/.codex/skills/code-review/references/candidate-capture.md +1 -1
  127. package/template/.codex/skills/code-review/references/legacy-convergence.md +3 -1
  128. package/template/.codex/skills/code-review/references/review-axis-checklists.md +2 -0
  129. package/template/.codex/skills/code-review/references/yss-review-standards.md +4 -2
  130. package/template/.codex/skills/competitive-intelligence/SKILL.md +32 -74
  131. package/template/.codex/skills/file-export-download/SKILL.md +4 -73
  132. package/template/.codex/skills/file-export-download/references/binary-contract-example.md +26 -0
  133. package/template/.codex/skills/file-export-download/references/download-call-example.md +45 -0
  134. package/template/.codex/skills/formily-foundation/SKILL.md +6 -105
  135. package/template/.codex/skills/formily-foundation/references/async-save-example.md +57 -0
  136. package/template/.codex/skills/formily-foundation/references/query-layout.md +50 -0
  137. package/template/.codex/skills/formily-linkage-effects/SKILL.md +3 -116
  138. package/template/.codex/skills/formily-linkage-effects/references/linkage-example.md +116 -0
  139. package/template/.codex/skills/formily-mode-slot-detail/SKILL.md +3 -81
  140. package/template/.codex/skills/formily-mode-slot-detail/references/mode-slot-example.md +81 -0
  141. package/template/.codex/skills/formily-step-flow/SKILL.md +3 -143
  142. package/template/.codex/skills/formily-step-flow/references/step-flow-example.md +143 -0
  143. package/template/.codex/skills/handoff/SKILL.md +3 -1
  144. package/template/.codex/skills/i-have-adhd/SKILL.md +2 -2
  145. package/template/.codex/skills/i-have-adhd/references/yss-adaptation.md +2 -2
  146. package/template/.codex/skills/i-have-adhd/tests/verify-integration.mjs +7 -2
  147. package/template/.codex/skills/implement/SKILL.md +2 -2
  148. package/template/.codex/skills/llm-wiki/references/transactions.md +2 -2
  149. package/template/.codex/skills/llm-wiki/scripts/core.mjs +40 -2
  150. package/template/.codex/skills/llm-wiki/scripts/transaction.mjs +30 -27
  151. package/template/.codex/skills/llm-wiki/scripts/v2.test.mjs +38 -2
  152. package/template/.codex/skills/lombok/SKILL.md +2 -0
  153. package/template/.codex/skills/mapstruct/SKILL.md +2 -0
  154. package/template/.codex/skills/product-design/references/communication-protocol.md +3 -3
  155. package/template/.codex/skills/product-design/references/critical-overrides.md +4 -5
  156. package/template/.codex/skills/product-design/skills/audit/SKILL.md +2 -4
  157. package/template/.codex/skills/product-design/skills/get-context/SKILL.md +6 -8
  158. package/template/.codex/skills/product-design/skills/ideate/SKILL.md +3 -3
  159. package/template/.codex/skills/product-design/skills/image-to-code/SKILL.md +3 -5
  160. package/template/.codex/skills/product-design/skills/index/SKILL.md +1 -1
  161. package/template/.codex/skills/product-design/skills/prototype/SKILL.md +2 -4
  162. package/template/.codex/skills/product-design/skills/research/SKILL.md +4 -6
  163. package/template/.codex/skills/product-design/skills/research/assets/research-brief-template.md +3 -3
  164. package/template/.codex/skills/product-design/skills/share/SKILL.md +2 -4
  165. package/template/.codex/skills/product-design/skills/url-to-code/SKILL.md +2 -4
  166. package/template/.codex/skills/product-design/skills/user-context/SKILL.md +1 -1
  167. package/template/.codex/skills/tdd/SKILL.md +2 -2
  168. package/template/.codex/skills/theme-token-usage/SKILL.md +6 -5
  169. package/template/.codex/skills/wayfinder/references/chart-map.md +2 -2
  170. package/template/.codex/skills/wayfinder/references/ticket-types.md +1 -1
  171. package/template/.codex/skills/yss-api-integration/SKILL.md +13 -50
  172. package/template/.codex/skills/yss-api-integration/references/orval-list-example.md +38 -0
  173. package/template/.codex/skills/yss-application/SKILL.md +11 -5
  174. package/template/.codex/skills/yss-audit-log/SKILL.md +8 -6
  175. package/template/.codex/skills/yss-audit-log/references/README.md +5 -5
  176. package/template/.codex/skills/yss-cache/SKILL.md +4 -4
  177. package/template/.codex/skills/yss-ddd-scaffold-generator/SKILL.md +7 -8
  178. package/template/.codex/skills/yss-ddd-scaffold-generator/references/USAGE_EXAMPLES.md +13 -6
  179. package/template/.codex/skills/yss-ddd-scaffold-generator/references/command-examples.md +2 -0
  180. package/template/.codex/skills/yss-ddd-scaffold-generator/scripts/scaffold-generator.test.mjs +28 -1
  181. package/template/.codex/skills/yss-design-system/SKILL.md +2 -2
  182. package/template/.codex/skills/yss-distributed-id/SKILL.md +4 -4
  183. package/template/.codex/skills/yss-dto/SKILL.md +9 -9
  184. package/template/.codex/skills/yss-dto/references/README.md +4 -4
  185. package/template/.codex/skills/yss-dto/references/wire-validation-checklist.md +4 -4
  186. package/template/.codex/skills/yss-excel-mvc/SKILL.md +4 -4
  187. package/template/.codex/skills/yss-exception/SKILL.md +42 -48
  188. package/template/.codex/skills/yss-formily-schema-generator/SKILL.md +26 -170
  189. package/template/.codex/skills/yss-formily-schema-generator/references/workflow.md +49 -193
  190. package/template/.codex/skills/yss-frontend-scaffold-generator/SKILL.md +14 -10
  191. package/template/.codex/skills/yss-implementation-contract-compiler/SKILL.md +2 -6
  192. package/template/.codex/skills/yss-implementation-contract-compiler/references/yss-skill-execution-result.md +15 -1
  193. package/template/.codex/skills/yss-layered-mvc-scaffold-generator/SKILL.md +1 -1
  194. package/template/.codex/skills/yss-mybatis/SKILL.md +4 -4
  195. package/template/.codex/skills/yss-openapi-draft-review/SKILL.md +6 -4
  196. package/template/.codex/skills/yss-openapi-draft-review/references/review-output.md +2 -0
  197. package/template/.codex/skills/yss-openapi-draft-review/references/semantic-review.md +3 -3
  198. package/template/.codex/skills/yss-openapi-governance/SKILL.md +5 -7
  199. package/template/.codex/skills/yss-openapi-governance/references/governance-output.md +2 -0
  200. package/template/.codex/skills/yss-openapi-governance/references/governance-workflow.md +3 -3
  201. package/template/.codex/skills/yss-product-lifecycle/SKILL.md +23 -21
  202. package/template/.codex/skills/yss-product-lifecycle/references/artifact-dependencies.md +1 -1
  203. package/template/.codex/skills/yss-product-lifecycle/references/matt-yss-adapter.md +25 -5
  204. package/template/.codex/skills/yss-product-lifecycle/references/orchestration-contract.yaml +100 -4
  205. package/template/.codex/skills/yss-product-lifecycle/references/orchestration.md +35 -12
  206. package/template/.codex/skills/yss-product-lifecycle/references/state-model.md +3 -1
  207. package/template/.codex/skills/yss-product-lifecycle/references/user-decisions.md +3 -3
  208. package/template/.codex/skills/yss-prototype-stage/SKILL.md +1 -5
  209. package/template/.codex/skills/yss-repository/SKILL.md +2 -2
  210. package/template/.codex/skills/yss-research/SKILL.md +39 -48
  211. package/template/.codex/skills/yss-research/assets/competitive-evidence-template.yaml +146 -0
  212. package/template/.codex/skills/yss-research/references/competitive-analysis.md +76 -0
  213. package/template/.codex/skills/yss-research/references/competitive-analysis.schema.json +324 -0
  214. package/template/.codex/skills/yss-research/references/evidence-contract.md +8 -0
  215. package/template/.codex/skills/yss-research/scripts/lib/competitive-analysis.mjs +185 -0
  216. package/template/.codex/skills/yss-research/scripts/render-competitive-outputs.mjs +16 -0
  217. package/template/.codex/skills/yss-research/scripts/validate-research-package.mjs +6 -2
  218. package/template/.codex/skills/yss-research/tests/competitive-scenarios.test.mjs +270 -0
  219. package/template/.codex/skills/yss-resilience4j/SKILL.md +25 -31
  220. package/template/.codex/skills/yss-security-algorithm/SKILL.md +37 -43
  221. package/template/.codex/skills/yss-skill-source-index-refresh/SKILL.md +29 -36
  222. package/template/.codex/skills/yss-skill-source-index-refresh/references/backend-component-platform-compatibility.md +1 -1
  223. package/template/.codex/skills/yss-stage-decision/SKILL.md +2 -5
  224. package/template/.codex/skills/yss-tactical-design/SKILL.md +1 -1
  225. package/template/.codex/skills/yss-tactical-design/references/output-template.md +3 -3
  226. package/template/.codex/skills/yss-tactical-design/references/tactical-design-contract.md +1 -1
  227. package/template/.codex/skills/yss-technical-design/SKILL.md +6 -5
  228. package/template/.codex/skills/yss-ui/SKILL.md +7 -1
  229. package/template/.codex/skills/yss-ui/assets/docs/guide/gitlab-ci-integration.md +2 -2
  230. package/template/.codex/skills/yss-ui/references/checklist.md +38 -96
  231. package/template/.codex/skills/yss-ui/references/component-routing.md +3 -1
  232. package/template/.codex/skills/yss-ui/references/quick-recipes.md +17 -272
  233. package/template/.codex/skills/yss-ui/references/specialized-components.md +3 -3
  234. package/template/.codex/skills/yss-ui-business-page-generation/SKILL.md +1 -1
  235. package/template/.codex/skills/yss-up-springboot3/SKILL.md +19 -21
  236. package/template/.codex/skills/yss-userinfo/SKILL.md +27 -33
  237. package/template/.codex/skills/yss-validation/SKILL.md +26 -32
  238. package/template/.codex/skills/yss-web-controller/SKILL.md +11 -44
  239. package/template/.codex/skills/yss-web-controller/references/crud-generation.md +38 -0
  240. package/template/.codex/skills/ytable-usage/SKILL.md +2 -2
  241. package/template/.codex/skills/ytree-usage/SKILL.md +2 -80
  242. package/template/.codex/skills/ytree-usage/references/tree-and-confirmation-example.md +81 -0
  243. package/template/.cursor/skills/alibaba-java-code-style/SKILL.md +30 -36
  244. package/template/.cursor/skills/archify/SKILL.md +2 -2
  245. package/template/.cursor/skills/archify/scripts/yss-safe-deliver.mjs +10 -6
  246. package/template/.cursor/skills/archify/test/yss-safe-deliver.test.mjs +9 -2
  247. package/template/.cursor/skills/code-review/SKILL.md +19 -11
  248. package/template/.cursor/skills/code-review/references/candidate-capture.md +1 -1
  249. package/template/.cursor/skills/code-review/references/legacy-convergence.md +3 -1
  250. package/template/.cursor/skills/code-review/references/review-axis-checklists.md +2 -0
  251. package/template/.cursor/skills/code-review/references/yss-review-standards.md +4 -2
  252. package/template/.cursor/skills/competitive-intelligence/SKILL.md +32 -74
  253. package/template/.cursor/skills/file-export-download/SKILL.md +4 -73
  254. package/template/.cursor/skills/file-export-download/references/binary-contract-example.md +26 -0
  255. package/template/.cursor/skills/file-export-download/references/download-call-example.md +45 -0
  256. package/template/.cursor/skills/formily-foundation/SKILL.md +6 -105
  257. package/template/.cursor/skills/formily-foundation/references/async-save-example.md +57 -0
  258. package/template/.cursor/skills/formily-foundation/references/query-layout.md +50 -0
  259. package/template/.cursor/skills/formily-linkage-effects/SKILL.md +3 -116
  260. package/template/.cursor/skills/formily-linkage-effects/references/linkage-example.md +116 -0
  261. package/template/.cursor/skills/formily-mode-slot-detail/SKILL.md +3 -81
  262. package/template/.cursor/skills/formily-mode-slot-detail/references/mode-slot-example.md +81 -0
  263. package/template/.cursor/skills/formily-step-flow/SKILL.md +3 -143
  264. package/template/.cursor/skills/formily-step-flow/references/step-flow-example.md +143 -0
  265. package/template/.cursor/skills/handoff/SKILL.md +3 -1
  266. package/template/.cursor/skills/i-have-adhd/SKILL.md +2 -2
  267. package/template/.cursor/skills/i-have-adhd/references/yss-adaptation.md +2 -2
  268. package/template/.cursor/skills/i-have-adhd/tests/verify-integration.mjs +7 -2
  269. package/template/.cursor/skills/implement/SKILL.md +2 -2
  270. package/template/.cursor/skills/llm-wiki/references/transactions.md +2 -2
  271. package/template/.cursor/skills/llm-wiki/scripts/core.mjs +40 -2
  272. package/template/.cursor/skills/llm-wiki/scripts/transaction.mjs +30 -27
  273. package/template/.cursor/skills/llm-wiki/scripts/v2.test.mjs +38 -2
  274. package/template/.cursor/skills/lombok/SKILL.md +2 -0
  275. package/template/.cursor/skills/mapstruct/SKILL.md +2 -0
  276. package/template/.cursor/skills/tdd/SKILL.md +2 -2
  277. package/template/.cursor/skills/theme-token-usage/SKILL.md +6 -5
  278. package/template/.cursor/skills/wayfinder/references/chart-map.md +2 -2
  279. package/template/.cursor/skills/wayfinder/references/ticket-types.md +1 -1
  280. package/template/.cursor/skills/yss-api-integration/SKILL.md +13 -50
  281. package/template/.cursor/skills/yss-api-integration/references/orval-list-example.md +38 -0
  282. package/template/.cursor/skills/yss-application/SKILL.md +11 -5
  283. package/template/.cursor/skills/yss-audit-log/SKILL.md +8 -6
  284. package/template/.cursor/skills/yss-audit-log/references/README.md +5 -5
  285. package/template/.cursor/skills/yss-cache/SKILL.md +4 -4
  286. package/template/.cursor/skills/yss-ddd-scaffold-generator/SKILL.md +7 -8
  287. package/template/.cursor/skills/yss-ddd-scaffold-generator/references/USAGE_EXAMPLES.md +13 -6
  288. package/template/.cursor/skills/yss-ddd-scaffold-generator/references/command-examples.md +2 -0
  289. package/template/.cursor/skills/yss-ddd-scaffold-generator/scripts/scaffold-generator.test.mjs +28 -1
  290. package/template/.cursor/skills/yss-design-system/SKILL.md +2 -2
  291. package/template/.cursor/skills/yss-distributed-id/SKILL.md +4 -4
  292. package/template/.cursor/skills/yss-dto/SKILL.md +9 -9
  293. package/template/.cursor/skills/yss-dto/references/README.md +4 -4
  294. package/template/.cursor/skills/yss-dto/references/wire-validation-checklist.md +4 -4
  295. package/template/.cursor/skills/yss-excel-mvc/SKILL.md +4 -4
  296. package/template/.cursor/skills/yss-exception/SKILL.md +42 -48
  297. package/template/.cursor/skills/yss-formily-schema-generator/SKILL.md +26 -170
  298. package/template/.cursor/skills/yss-formily-schema-generator/references/workflow.md +49 -193
  299. package/template/.cursor/skills/yss-frontend-scaffold-generator/SKILL.md +14 -10
  300. package/template/.cursor/skills/yss-implementation-contract-compiler/SKILL.md +2 -6
  301. package/template/.cursor/skills/yss-implementation-contract-compiler/references/yss-skill-execution-result.md +15 -1
  302. package/template/.cursor/skills/yss-layered-mvc-scaffold-generator/SKILL.md +1 -1
  303. package/template/.cursor/skills/yss-mybatis/SKILL.md +4 -4
  304. package/template/.cursor/skills/yss-openapi-draft-review/SKILL.md +6 -4
  305. package/template/.cursor/skills/yss-openapi-draft-review/references/review-output.md +2 -0
  306. package/template/.cursor/skills/yss-openapi-draft-review/references/semantic-review.md +3 -3
  307. package/template/.cursor/skills/yss-openapi-governance/SKILL.md +5 -7
  308. package/template/.cursor/skills/yss-openapi-governance/references/governance-output.md +2 -0
  309. package/template/.cursor/skills/yss-openapi-governance/references/governance-workflow.md +3 -3
  310. package/template/.cursor/skills/yss-product-lifecycle/SKILL.md +23 -21
  311. package/template/.cursor/skills/yss-product-lifecycle/references/artifact-dependencies.md +1 -1
  312. package/template/.cursor/skills/yss-product-lifecycle/references/matt-yss-adapter.md +25 -5
  313. package/template/.cursor/skills/yss-product-lifecycle/references/orchestration-contract.yaml +100 -4
  314. package/template/.cursor/skills/yss-product-lifecycle/references/orchestration.md +35 -12
  315. package/template/.cursor/skills/yss-product-lifecycle/references/state-model.md +3 -1
  316. package/template/.cursor/skills/yss-product-lifecycle/references/user-decisions.md +3 -3
  317. package/template/.cursor/skills/yss-prototype-stage/SKILL.md +1 -5
  318. package/template/.cursor/skills/yss-repository/SKILL.md +2 -2
  319. package/template/.cursor/skills/yss-research/SKILL.md +39 -48
  320. package/template/.cursor/skills/yss-research/assets/competitive-evidence-template.yaml +146 -0
  321. package/template/.cursor/skills/yss-research/references/competitive-analysis.md +76 -0
  322. package/template/.cursor/skills/yss-research/references/competitive-analysis.schema.json +324 -0
  323. package/template/.cursor/skills/yss-research/references/evidence-contract.md +8 -0
  324. package/template/.cursor/skills/yss-research/scripts/lib/competitive-analysis.mjs +185 -0
  325. package/template/.cursor/skills/yss-research/scripts/render-competitive-outputs.mjs +16 -0
  326. package/template/.cursor/skills/yss-research/scripts/validate-research-package.mjs +6 -2
  327. package/template/.cursor/skills/yss-research/tests/competitive-scenarios.test.mjs +270 -0
  328. package/template/.cursor/skills/yss-resilience4j/SKILL.md +25 -31
  329. package/template/.cursor/skills/yss-security-algorithm/SKILL.md +37 -43
  330. package/template/.cursor/skills/yss-skill-source-index-refresh/SKILL.md +29 -36
  331. package/template/.cursor/skills/yss-skill-source-index-refresh/references/backend-component-platform-compatibility.md +1 -1
  332. package/template/.cursor/skills/yss-stage-decision/SKILL.md +2 -5
  333. package/template/.cursor/skills/yss-tactical-design/SKILL.md +1 -1
  334. package/template/.cursor/skills/yss-tactical-design/references/output-template.md +3 -3
  335. package/template/.cursor/skills/yss-tactical-design/references/tactical-design-contract.md +1 -1
  336. package/template/.cursor/skills/yss-technical-design/SKILL.md +6 -5
  337. package/template/.cursor/skills/yss-ui/SKILL.md +7 -1
  338. package/template/.cursor/skills/yss-ui/assets/docs/guide/gitlab-ci-integration.md +2 -2
  339. package/template/.cursor/skills/yss-ui/references/checklist.md +38 -96
  340. package/template/.cursor/skills/yss-ui/references/component-routing.md +3 -1
  341. package/template/.cursor/skills/yss-ui/references/quick-recipes.md +17 -272
  342. package/template/.cursor/skills/yss-ui/references/specialized-components.md +3 -3
  343. package/template/.cursor/skills/yss-ui-business-page-generation/SKILL.md +1 -1
  344. package/template/.cursor/skills/yss-up-springboot3/SKILL.md +19 -21
  345. package/template/.cursor/skills/yss-userinfo/SKILL.md +27 -33
  346. package/template/.cursor/skills/yss-validation/SKILL.md +26 -32
  347. package/template/.cursor/skills/yss-web-controller/SKILL.md +11 -44
  348. package/template/.cursor/skills/yss-web-controller/references/crud-generation.md +38 -0
  349. package/template/.cursor/skills/ytable-usage/SKILL.md +2 -2
  350. package/template/.cursor/skills/ytree-usage/SKILL.md +2 -80
  351. package/template/.cursor/skills/ytree-usage/references/tree-and-confirmation-example.md +81 -0
  352. package/template/.pi/skills/alibaba-java-code-style/SKILL.md +30 -36
  353. package/template/.pi/skills/archify/SKILL.md +2 -2
  354. package/template/.pi/skills/archify/scripts/yss-safe-deliver.mjs +10 -6
  355. package/template/.pi/skills/archify/test/yss-safe-deliver.test.mjs +9 -2
  356. package/template/.pi/skills/code-review/SKILL.md +19 -11
  357. package/template/.pi/skills/code-review/references/candidate-capture.md +1 -1
  358. package/template/.pi/skills/code-review/references/legacy-convergence.md +3 -1
  359. package/template/.pi/skills/code-review/references/review-axis-checklists.md +2 -0
  360. package/template/.pi/skills/code-review/references/yss-review-standards.md +4 -2
  361. package/template/.pi/skills/competitive-intelligence/SKILL.md +32 -74
  362. package/template/.pi/skills/file-export-download/SKILL.md +4 -73
  363. package/template/.pi/skills/file-export-download/references/binary-contract-example.md +26 -0
  364. package/template/.pi/skills/file-export-download/references/download-call-example.md +45 -0
  365. package/template/.pi/skills/formily-foundation/SKILL.md +6 -105
  366. package/template/.pi/skills/formily-foundation/references/async-save-example.md +57 -0
  367. package/template/.pi/skills/formily-foundation/references/query-layout.md +50 -0
  368. package/template/.pi/skills/formily-linkage-effects/SKILL.md +3 -116
  369. package/template/.pi/skills/formily-linkage-effects/references/linkage-example.md +116 -0
  370. package/template/.pi/skills/formily-mode-slot-detail/SKILL.md +3 -81
  371. package/template/.pi/skills/formily-mode-slot-detail/references/mode-slot-example.md +81 -0
  372. package/template/.pi/skills/formily-step-flow/SKILL.md +3 -143
  373. package/template/.pi/skills/formily-step-flow/references/step-flow-example.md +143 -0
  374. package/template/.pi/skills/handoff/SKILL.md +3 -1
  375. package/template/.pi/skills/i-have-adhd/SKILL.md +2 -2
  376. package/template/.pi/skills/i-have-adhd/references/yss-adaptation.md +2 -2
  377. package/template/.pi/skills/i-have-adhd/tests/verify-integration.mjs +7 -2
  378. package/template/.pi/skills/implement/SKILL.md +2 -2
  379. package/template/.pi/skills/llm-wiki/references/transactions.md +2 -2
  380. package/template/.pi/skills/llm-wiki/scripts/core.mjs +40 -2
  381. package/template/.pi/skills/llm-wiki/scripts/transaction.mjs +30 -27
  382. package/template/.pi/skills/llm-wiki/scripts/v2.test.mjs +38 -2
  383. package/template/.pi/skills/lombok/SKILL.md +2 -0
  384. package/template/.pi/skills/mapstruct/SKILL.md +2 -0
  385. package/template/.pi/skills/tdd/SKILL.md +2 -2
  386. package/template/.pi/skills/theme-token-usage/SKILL.md +6 -5
  387. package/template/.pi/skills/wayfinder/references/chart-map.md +2 -2
  388. package/template/.pi/skills/wayfinder/references/ticket-types.md +1 -1
  389. package/template/.pi/skills/yss-api-integration/SKILL.md +13 -50
  390. package/template/.pi/skills/yss-api-integration/references/orval-list-example.md +38 -0
  391. package/template/.pi/skills/yss-application/SKILL.md +11 -5
  392. package/template/.pi/skills/yss-audit-log/SKILL.md +8 -6
  393. package/template/.pi/skills/yss-audit-log/references/README.md +5 -5
  394. package/template/.pi/skills/yss-cache/SKILL.md +4 -4
  395. package/template/.pi/skills/yss-ddd-scaffold-generator/SKILL.md +7 -8
  396. package/template/.pi/skills/yss-ddd-scaffold-generator/references/USAGE_EXAMPLES.md +13 -6
  397. package/template/.pi/skills/yss-ddd-scaffold-generator/references/command-examples.md +2 -0
  398. package/template/.pi/skills/yss-ddd-scaffold-generator/scripts/scaffold-generator.test.mjs +28 -1
  399. package/template/.pi/skills/yss-design-system/SKILL.md +2 -2
  400. package/template/.pi/skills/yss-distributed-id/SKILL.md +4 -4
  401. package/template/.pi/skills/yss-dto/SKILL.md +9 -9
  402. package/template/.pi/skills/yss-dto/references/README.md +4 -4
  403. package/template/.pi/skills/yss-dto/references/wire-validation-checklist.md +4 -4
  404. package/template/.pi/skills/yss-excel-mvc/SKILL.md +4 -4
  405. package/template/.pi/skills/yss-exception/SKILL.md +42 -48
  406. package/template/.pi/skills/yss-formily-schema-generator/SKILL.md +26 -170
  407. package/template/.pi/skills/yss-formily-schema-generator/references/workflow.md +49 -193
  408. package/template/.pi/skills/yss-frontend-scaffold-generator/SKILL.md +14 -10
  409. package/template/.pi/skills/yss-implementation-contract-compiler/SKILL.md +2 -6
  410. package/template/.pi/skills/yss-implementation-contract-compiler/references/yss-skill-execution-result.md +15 -1
  411. package/template/.pi/skills/yss-layered-mvc-scaffold-generator/SKILL.md +1 -1
  412. package/template/.pi/skills/yss-mybatis/SKILL.md +4 -4
  413. package/template/.pi/skills/yss-openapi-draft-review/SKILL.md +6 -4
  414. package/template/.pi/skills/yss-openapi-draft-review/references/review-output.md +2 -0
  415. package/template/.pi/skills/yss-openapi-draft-review/references/semantic-review.md +3 -3
  416. package/template/.pi/skills/yss-openapi-governance/SKILL.md +5 -7
  417. package/template/.pi/skills/yss-openapi-governance/references/governance-output.md +2 -0
  418. package/template/.pi/skills/yss-openapi-governance/references/governance-workflow.md +3 -3
  419. package/template/.pi/skills/yss-product-lifecycle/SKILL.md +23 -21
  420. package/template/.pi/skills/yss-product-lifecycle/references/artifact-dependencies.md +1 -1
  421. package/template/.pi/skills/yss-product-lifecycle/references/matt-yss-adapter.md +25 -5
  422. package/template/.pi/skills/yss-product-lifecycle/references/orchestration-contract.yaml +100 -4
  423. package/template/.pi/skills/yss-product-lifecycle/references/orchestration.md +35 -12
  424. package/template/.pi/skills/yss-product-lifecycle/references/state-model.md +3 -1
  425. package/template/.pi/skills/yss-product-lifecycle/references/user-decisions.md +3 -3
  426. package/template/.pi/skills/yss-prototype-stage/SKILL.md +1 -5
  427. package/template/.pi/skills/yss-repository/SKILL.md +2 -2
  428. package/template/.pi/skills/yss-research/SKILL.md +39 -48
  429. package/template/.pi/skills/yss-research/assets/competitive-evidence-template.yaml +146 -0
  430. package/template/.pi/skills/yss-research/references/competitive-analysis.md +76 -0
  431. package/template/.pi/skills/yss-research/references/competitive-analysis.schema.json +324 -0
  432. package/template/.pi/skills/yss-research/references/evidence-contract.md +8 -0
  433. package/template/.pi/skills/yss-research/scripts/lib/competitive-analysis.mjs +185 -0
  434. package/template/.pi/skills/yss-research/scripts/render-competitive-outputs.mjs +16 -0
  435. package/template/.pi/skills/yss-research/scripts/validate-research-package.mjs +6 -2
  436. package/template/.pi/skills/yss-research/tests/competitive-scenarios.test.mjs +270 -0
  437. package/template/.pi/skills/yss-resilience4j/SKILL.md +25 -31
  438. package/template/.pi/skills/yss-security-algorithm/SKILL.md +37 -43
  439. package/template/.pi/skills/yss-skill-source-index-refresh/SKILL.md +29 -36
  440. package/template/.pi/skills/yss-skill-source-index-refresh/references/backend-component-platform-compatibility.md +1 -1
  441. package/template/.pi/skills/yss-stage-decision/SKILL.md +2 -5
  442. package/template/.pi/skills/yss-tactical-design/SKILL.md +1 -1
  443. package/template/.pi/skills/yss-tactical-design/references/output-template.md +3 -3
  444. package/template/.pi/skills/yss-tactical-design/references/tactical-design-contract.md +1 -1
  445. package/template/.pi/skills/yss-technical-design/SKILL.md +6 -5
  446. package/template/.pi/skills/yss-ui/SKILL.md +7 -1
  447. package/template/.pi/skills/yss-ui/assets/docs/guide/gitlab-ci-integration.md +2 -2
  448. package/template/.pi/skills/yss-ui/references/checklist.md +38 -96
  449. package/template/.pi/skills/yss-ui/references/component-routing.md +3 -1
  450. package/template/.pi/skills/yss-ui/references/quick-recipes.md +17 -272
  451. package/template/.pi/skills/yss-ui/references/specialized-components.md +3 -3
  452. package/template/.pi/skills/yss-ui-business-page-generation/SKILL.md +1 -1
  453. package/template/.pi/skills/yss-up-springboot3/SKILL.md +19 -21
  454. package/template/.pi/skills/yss-userinfo/SKILL.md +27 -33
  455. package/template/.pi/skills/yss-validation/SKILL.md +26 -32
  456. package/template/.pi/skills/yss-web-controller/SKILL.md +11 -44
  457. package/template/.pi/skills/yss-web-controller/references/crud-generation.md +38 -0
  458. package/template/.pi/skills/ytable-usage/SKILL.md +2 -2
  459. package/template/.pi/skills/ytree-usage/SKILL.md +2 -80
  460. package/template/.pi/skills/ytree-usage/references/tree-and-confirmation-example.md +81 -0
  461. package/template/.template-spec/agents/backend-architecture-profiles.md +1 -1
  462. package/template/.template-spec/agents/digital-human-roles.md +5 -1
  463. package/template/.template-spec/agents/digital-human-roles.yaml +49 -1
  464. package/template/.template-spec/engineering/backend-platforms.json +1 -1
  465. package/template/.template-spec/plan/templates/competitive-analysis-template.md +38 -36
  466. package/template/.template-spec/plan/templates/competitive-matrix-template.md +37 -17
  467. package/template/.template-spec/process/document-writing.md +22 -3
  468. package/template/.template-spec/process/harness-process-tailoring.md +5 -1
  469. package/template/.template-spec/process/implementation-repo-integration.md +26 -8
  470. package/template/.template-spec/process/research-completion.md +2 -0
  471. package/template/.template-spec/process/runtime-storage.md +78 -0
  472. package/template/.template-spec/process/schemas/approval-context.schema.json +67 -0
  473. package/template/.template-spec/process/schemas/approval-record.schema.json +179 -16
  474. package/template/.template-spec/process/schemas/backend-delivery.schema.json +16 -0
  475. package/template/.template-spec/process/schemas/delivery-preflight-input.schema.json +4 -0
  476. package/template/.template-spec/process/schemas/digital-human-task-package.schema.json +236 -1
  477. package/template/.template-spec/process/schemas/implementation-repository-preparation-result.schema.json +335 -52
  478. package/template/.template-spec/process/schemas/lifecycle-checkpoint.schema.json +11 -0
  479. package/template/.template-spec/process/schemas/project-scaffold-contract.schema.json +3 -0
  480. package/template/.template-spec/process/schemas/review-bundle.schema.json +347 -35
  481. package/template/.template-spec/process/schemas/strategic-design-handoff-v3.schema.json +504 -0
  482. package/template/.template-spec/process/schemas/strategic-design-handoff-v4.schema.json +544 -8
  483. package/template/.template-spec/process/schemas/strategic-design-handoff-v5.schema.json +616 -0
  484. package/template/.template-spec/process/schemas/strategic-design-handoff.schema.json +616 -0
  485. package/template/.template-spec/process/schemas/strategic-handoff-domain-strategy-v3.schema.json +712 -109
  486. package/template/.template-spec/process/schemas/strategic-handoff-domain-strategy.schema.json +595 -90
  487. package/template/.template-spec/process/schemas/strategic-handoff-export-v2.schema.json +448 -0
  488. package/template/.template-spec/process/schemas/strategic-handoff-export.schema.json +392 -0
  489. package/template/.template-spec/process/schemas/strategic-handoff-stage-decision-package-v3.schema.json +556 -83
  490. package/template/.template-spec/process/schemas/strategic-handoff-stage-decision-package.schema.json +418 -57
  491. package/template/.template-spec/process/subagent-collaboration.md +7 -1
  492. package/template/.template-spec/templates/approval-record-template.json +7 -3
  493. package/template/.template-spec/templates/approval-record-template.yaml +8 -2
  494. package/template/.template-spec/templates/examples/lifecycle-writing-examples.md +92 -2
  495. package/template/.template-spec/templates/retro-report-template.md +10 -3
  496. package/template/.template-spec/templates/review-bundle-template.yaml +19 -10
  497. package/template/AGENTS.md +4 -3
  498. package/template/CONTEXT.md +2 -2
  499. package/template/README.md +2 -2
  500. package/template/scripts/advance-maintenance-iteration +51 -0
  501. package/template/scripts/lib/approval-checkpoint-discovery.mjs +26 -0
  502. package/template/scripts/lib/approval-consumption.mjs +35 -0
  503. package/template/scripts/lib/approval-current.mjs +111 -0
  504. package/template/scripts/lib/approval-record-io.mjs +56 -0
  505. package/template/scripts/lib/approval-record.mjs +79 -184
  506. package/template/scripts/lib/approved-execution-context.mjs +8 -6
  507. package/template/scripts/lib/asset-transactions.mjs +5 -1
  508. package/template/scripts/lib/backend-delivery.mjs +1 -1
  509. package/template/scripts/lib/backend-review.mjs +2 -1
  510. package/template/scripts/lib/backend-scaffold-prerequisites.mjs +3 -2
  511. package/template/scripts/lib/business-ticket-lifecycle.mjs +2 -1
  512. package/template/scripts/lib/checkpoint-commit.mjs +50 -0
  513. package/template/scripts/lib/command-runner.mjs +44 -9
  514. package/template/scripts/lib/content-identity.mjs +273 -0
  515. package/template/scripts/lib/delivery-preflight.mjs +2 -1
  516. package/template/scripts/lib/digital-human-roles.mjs +12 -5
  517. package/template/scripts/lib/drift-report.mjs +110 -0
  518. package/template/scripts/lib/existing-backend-architecture.mjs +4 -1
  519. package/template/scripts/lib/lifecycle-context-query.mjs +172 -11
  520. package/template/scripts/lib/lifecycle-controls.mjs +9 -19
  521. package/template/scripts/lib/lifecycle-presentation.mjs +5 -0
  522. package/template/scripts/lib/lifecycle-status.mjs +63 -12
  523. package/template/scripts/lib/lifecycle-transition.mjs +2 -1
  524. package/template/scripts/lib/maintenance-candidate.mjs +24 -30
  525. package/template/scripts/lib/maintenance-research.mjs +52 -8
  526. package/template/scripts/lib/maintenance-storage.mjs +81 -0
  527. package/template/scripts/lib/plan-spec-entry.mjs +2 -1
  528. package/template/scripts/lib/project-governance.mjs +2 -1
  529. package/template/scripts/lib/read-only-intake.mjs +44 -9
  530. package/template/scripts/lib/review-capabilities.mjs +234 -0
  531. package/template/scripts/lib/review-package.mjs +100 -0
  532. package/template/scripts/lib/runtime-store.mjs +650 -0
  533. package/template/scripts/lib/skill-registry.mjs +4 -4
  534. package/template/scripts/lib/strategic-handoff.mjs +22 -9
  535. package/template/scripts/lib/task-package.mjs +47 -16
  536. package/template/scripts/lifecycle-status +26 -1
  537. package/template/scripts/maintenance-path +11 -0
  538. package/template/scripts/prepare-review-package +8 -0
  539. package/template/scripts/project-ci +13 -3
  540. package/template/scripts/query-lifecycle-context +8 -1
  541. package/template/scripts/run-read-only-intake +2 -2
  542. package/template/scripts/runtime-store +40 -0
  543. package/template/scripts/verify-approval-record +21 -13
  544. package/template/scripts/verify-lifecycle-checkpoint +7 -3
  545. package/template/scripts/verify-project-instance +21 -1
  546. package/template/skills-lock.json +62 -61
  547. package/template.snapshot.json +4 -4
  548. package/vendor/cli-core/cli.mjs +2 -0
  549. package/vendor/cli-core/command-runner.mjs +44 -9
  550. package/vendor/cli-core/package.json +1 -1
  551. package/vendor/cli-core/runtime-store.mjs +650 -0
  552. package/vendor/cli-core/scaffold.mjs +4 -2
@@ -2,7 +2,7 @@
2
2
 
3
3
  ## 输入
4
4
 
5
- 必须引用批准且版本当前的 Spec、功能架构、战略 DDD、原型状态矩阵、OpenAPI Draft / Freeze(或无 API 影响记录)、ADR 和工程约束。来自 Strategic Design Handoff 时,额外要求 v3 交接包、`strategic_context_import_ref` 和目标仓 `context_reconciliation_ref`;目标根 `CONTEXT.md` 未完成增量对账前返回 `blocked`。所有引用都必须带版本或 digest;不可读或过期引用返回 `blocked` / `stale`。
5
+ 必须引用批准且版本当前的 Spec、功能架构、战略 DDD、适用 UI 状态矩阵、OpenAPI Draft / Freeze(或无 API 影响记录)、ADR 和工程约束。来自 Strategic Design Handoff 时,按仓库 `.template-spec/process/strategic-handoff-package.md` 的版本与消费者规则绑定交接包、`strategic_context_import_ref` 和目标仓 `context_reconciliation_ref`;历史 v3/v4 只按冻结 schema 兼容读取,新交付使用 v5。原型或 existing UI baseline 须符合该包的来源分支;目标根 `CONTEXT.md` 未完成增量对账前返回 `blocked`。所有引用都必须带版本或 digest;不可读或过期引用返回 `blocked` / `stale`。
6
6
 
7
7
  ## 输出
8
8
 
@@ -9,17 +9,18 @@ description: 在 YSS 技术分析中统一承接需求与战略输入,按已
9
9
 
10
10
  由 `yss-product-lifecycle` 调度,负责 `work-unit.technical-analysis` 的技术设计,不另起生命周期、不生成生产代码。生命周期维护批准和状态;`yss-implementation-contract-compiler` 消费批准且当前的设计,起草实现合同。
11
11
 
12
- 文档输出时按 `lifecycle-document-output` 条件调用 `i-have-adhd`,读取 `.template-spec/process/document-writing.md`;作用域仅限当前产物,派发时传递条件及引用。
12
+ ## 文档输出
13
13
 
14
- ## 文档写作
15
-
16
- 起草或修订技术设计解释正文前,读取 `.template-spec/process/document-writing.md` 的共用写法及工程契约指引,并在分支派发中传递该引用;结构化合同保持原 schema 和验证要求。
14
+ 起草或修订技术设计解释正文时,按 `lifecycle-document-output` 条件调用 `i-have-adhd`,读取 `.template-spec/process/document-writing.md` 的共用写法及工程契约指引。作用域仅限当前产物,分支派发传递条件及引用;结构化合同保持原 schema 和验证要求。
17
15
 
18
16
  ## 输入与架构选择
19
17
 
20
18
  先读根 `CONTEXT.md`、已批准且当前的 Spec、业务规则、关键场景、适用的 API 契约、ADR 和工程约束。没有 API 或其他专项影响时记录有依据的不适用,不生成占位设计。
21
19
 
22
- 按项目绑定架构选择的来源及摘要。新工程必须先通过 `gate.backend-architecture-platform-approved`:Agent 展示 DDD / MVC 推荐依据及平台清单中的精确 Spring Boot、Java 版本,用户在同一次决定中确认两项内容;决定持久化到 `scaffold-architecture-decisions.yaml`,再进入对应分支,后续脚手架消费同一决定。既有工程核验并沿用当前登记架构及固定工程基线/POM 中的实际 Spring Boot 版本,该门禁记录为 `not-applicable`,不重复询问;架构转换或平台升级另行立项。只有 `domain-driven` 和 `layered-mvc` 两种架构族,不能从目录推断或默认 DDD、MVC 或 Spring Boot 版本。具体 Profile 及模块边界消费技能注册表与 `.template-spec/agents/backend-architecture-profiles.md`。
20
+ 按项目绑定架构来源及摘要,架构族只允许 `domain-driven` 与 `layered-mvc`;不从目录推断或默认架构、Spring Boot 版本。具体 Profile 与模块边界消费技能注册表及 `.template-spec/agents/backend-architecture-profiles.md`。
21
+
22
+ - 新工程先通过 `gate.backend-architecture-platform-approved`:展示 DDD / MVC 推荐依据及平台清单中的精确 Spring Boot、Java,用户在同一次决定确认架构与平台。决定持久化到 `scaffold-architecture-decisions.yaml`,设计与后续脚手架消费同一决定。
23
+ - 既有工程核验并沿用当前登记架构及固定工程基线/POM 的实际 Spring Boot;该门禁记录带依据的 `not-applicable`,不重复询问。架构转换或平台升级单独立项。
23
24
 
24
25
  - `domain-driven`:调用 `yss-tactical-design`,补齐适用的战略领域输入。
25
26
  - `layered-mvc`:由本 skill 直接设计模块职责与依赖方向、用例流程、业务规则、状态转换、事务与回滚、幂等与并发、持久化映射、外部集成和公开测试 seam;不要求战略 DDD、聚合、值对象、Domain Event 或 DDD Gateway。分层边界消费 `.template-spec/agents/backend-architecture-profiles.md`,不得为 MVC 加载 `yss-domain` 或生成 DDD Gateway。
@@ -22,7 +22,11 @@ description: "选择和核验 YSS Vue 生产页面组件及 Ant Design Vue 兼
22
22
 
23
23
  ## 2. 执行前版本预检
24
24
 
25
- 采用专职前端 profile 或显式 `frontend_delivery` 绑定时,先按 `.template-spec/process/frontend-backend-delivery.md` 实际核验战略与后端联合交付。缺任一输入只能诊断和回交;输入通过后准备计划/合同,正式实现、生成和恢复仍须当前批准的 Slice Contract 冻结接收摘要。接口或部署版本漂移时重新接收,不复用旧成功输出。
25
+ 采用专职前端 profile 或显式 `frontend_delivery` 绑定时:
26
+
27
+ - 按 `.template-spec/process/frontend-backend-delivery.md` 核验战略与后端联合交付;缺任一输入只能诊断和回交。
28
+ - 输入通过后准备计划 / 合同;正式实现、生成和恢复仍须当前批准的 Slice Contract 冻结接收摘要。
29
+ - 接口或部署版本漂移时重新接收,不复用旧成功输出。
26
30
 
27
31
  进入实现前从前端工程根目录执行:
28
32
 
@@ -32,6 +36,8 @@ pnpm why vue @yss-ui/components @yss-ui/hooks ant-design-vue vxe-table
32
36
 
33
37
  记录实际版本、lockfile、验证命令和环境阻塞。完整策略见 `references/antdv-compatibility.md`。
34
38
 
39
+ 本次输入还包括批准合同、页面 / 交互范围和实际适用的专项技能;UI 切片使用已校验的 `frontend_implementation_plan`,实现后补 `frontend_implementation_verification`。输入缺失、摘要漂移或组件事实无法确认时,停止受影响的实现并回交原所有者。
40
+
35
41
  产品设计使用的 Antdv Next 或 Ant Design v6 视觉/token 语义,不等于 Vue 生产实现 API。生产代码必须使用项目安装的 Ant Design Vue 4.x API,禁止把原型 props、events、slots、hook 或组件写法当作生产合同。原型统一使用 HTML/CSS/JavaScript;原型阶段不得调用本技能。只有进入前端实现计划、已批准切片的生产实现或实现还原验证后,才从目标 lockfile、类型、本地文档和既有用法取得真实组件事实。
36
42
 
37
43
  ## 3. 组件选型门禁
@@ -162,5 +162,5 @@ git push -f origin dev
162
162
 
163
163
  ## 相关文档
164
164
 
165
- - [发版工作流指南](./guide/release-workflow.md)
166
- - [Commit 规范说明](./guide/release-workflow.md#-commit-message-规范必须遵守)
165
+ - [发版工作流指南](./release-workflow.md)
166
+ - [Commit 规范说明](./release-workflow.md#-commit-message-规范必须遵守)
@@ -1,110 +1,52 @@
1
- # yss-ui Checklist
1
+ # YSS UI 交付检查
2
2
 
3
- ## 使用方式
3
+ 开发时按当前页面和影响面自检,联调时核对数据链路,交付时重新绑定当前 Slice 的实现计划、实现还原验证与实际执行证据。未命中项按原合同记录原因;命中但未验证的项保留阻塞,不能用清单勾选替代执行。
4
4
 
5
- - 开发阶段:按页面类型逐项自检。
6
- - 联调阶段:重点执行“数据链路与交互”清单。
7
- - 提交前:至少完成“通用基线”+ 当前页面类型清单。
5
+ ## 通用基线
8
6
 
9
- ---
7
+ - [ ] 已从目标工程用 `pnpm why` 确认 Vue、YSS UI、AntDV、VXE 实际版本及 lockfile。
8
+ - [ ] 组件选型符合 [组件路由](component-routing.md),已导出的组件 / Hook / Utils 使用真实包来源;受控回退有能力缺口、版本和验证证据。
9
+ - [ ] 使用 Vue 3 Composition API 与 `<script setup lang="ts">`,未引入不存在的 Y 前缀组件或违规 `@formily/antd*` UI。
10
+ - [ ] 页面编排、业务 Hook、纯配置和样式按职责组织;容器的间距与可计算高度符合工程基线。
11
+ - [ ] 适用实现已对照匹配版本的组件文档和已验证 Demo;`pending-verification` 示例不作为推荐依据。
12
+ - [ ] loading、empty、error、disabled/no-access 和实际依赖的 selected 状态都有反馈与恢复路径。
10
13
 
11
- ## 通用基线(所有页面必查)
14
+ ## 主题、Locale、浮层和可访问性
12
15
 
13
- - [ ] 已用 `pnpm why` 确认 Vue、YSS UI、AntDV、VXE 实际版本
14
- - [ ] 组件选型已对照 `component-routing.md`,AntDV 回退已记录原因
15
- - [ ] 使用 Vue 3 Composition API + `<script setup lang="ts">`
16
- - [ ] 优先使用 `@yss-ui/components`,缺失能力再回退 `ant-design-vue`
17
- - [ ] 未引入不存在的 Y 前缀组件
18
- - [ ] 无 `@formily/antd*` 违规导入
19
- - [ ] 页面容器具备统一布局(padding/margin/min-height)
20
- - [ ] 状态展示与危险操作颜色保持一致
21
- - [ ] 关键交互具备成功/失败反馈(`message`)
22
- - [ ] 关键实现至少对照一个 docs demo(`../assets/demos/*`)
23
- - [ ] 推荐 Demo 不含 `pending-verification`
16
+ - [ ] 通过项目 ConfigProvider、YSS theme 或语义 Token 消费主题,未新增页面级主题色、任意 z-index;状态不只用颜色表达。
17
+ - [ ] locale、时区、日期和金额格式化复用统一能力;Popup/Teleport 目标与宿主、微应用容器一致。
18
+ - [ ] 图标按钮有可访问名称,表单 label 与错误提示有语义关联;主要动作支持键盘,Tab 顺序合理。
19
+ - [ ] Modal/Drawer 打开后焦点合理,关闭时清理状态并恢复触发元素焦点。
20
+ - [ ] 窄屏布局、表格横向滚动、操作收敛及实际采用的大数据 / 搜索 / 按需加载策略已验证。
24
21
 
25
- ## 主题、Locale 与浮层
22
+ ## 列表与选择
26
23
 
27
- - [ ] 页面通过项目 ConfigProvider/YSS theme/语义 token 消费主题
28
- - [ ] 未新增页面级主题色和任意 z-index
29
- - [ ] locale、时区、日期和金额格式化沿用项目统一能力
30
- - [ ] Popup/Teleport 目标适配宿主和微应用容器
31
- - [ ] Modal/Drawer 关闭时清理状态并恢复触发元素焦点
24
+ 配置 YTable 时由已安装的 `ytable-usage` 核对专项规则,组件公开 API 见 [YTable 文档](../assets/docs/components/table.md);没有多选或分页的页面不需要引入对应能力。公共包未附的专项及缺失时的停止、恢复条件见 [专项技能的可用性](quick-recipes.md#专项技能的可用性),组件文档不能替代必要专项。
32
25
 
33
- ## 可访问性、响应式与性能
26
+ - [ ] 列使用 `YTableColumn` 与 `field/type`;行键配置实际业务主键和 `useKey: true`。
27
+ - [ ] 自定义单元格与表头使用真实字段插槽,不用 `bodyCell` 分支冒充 YTable 主渲染模式;DOM 模板中的插槽按 kebab-case。
28
+ - [ ] 远程分页使用 `pageable + v-model:pagination`,状态为 `current/pageSize/total/remote`,监听 `@page-change` 的 `{ current, pageSize }`。
29
+ - [ ] 多选场景配置 Checkbox、受控选择和空选择禁用;批量操作成功后受控字段与可见勾选同时清空。
30
+ - [ ] 远程查询由业务 Hook 执行,未把实例 `refresh()` 当作接口重查;危险操作使用组件确认或邻近 `Popconfirm`。
34
31
 
35
- - [ ] 图标按钮有可访问名称,状态不只依赖颜色
36
- - [ ] 表单 label、错误提示与控件建立语义关联
37
- - [ ] 主要操作可通过键盘完成,Tab 顺序合理
38
- - [ ] 窄屏布局、表格横向滚动和操作收敛已检查
39
- - [ ] 大数据 Table/Tree、远程搜索和复杂组件采用项目已验证的性能策略
32
+ ## 抽屉与步骤
40
33
 
41
- ---
34
+ - [ ] 抽屉开关与当前记录有单一来源,打开前完成回填,关闭时清理临时输入,Tab 切换不引入脏数据。
35
+ - [ ] 抽屉内列表沿用 YTable 列和分页合同;底部危险操作按批准交互设置确认,不默认使用居中 `Modal.confirm`。
36
+ - [ ] 步骤状态有单一来源,当前实例校验成功才前进;跨步骤数据与弹层编辑回填都保留。
37
+ - [ ] 上一步、下一步、取消与完成按钮的状态和文案正确;完成后提供反馈并进入合同约定的目标页面。
42
38
 
43
- ## 列表页清单(YTable)
39
+ ## API、Mock、路由与菜单
44
40
 
45
- - [ ] 列定义使用 `YTableColumn`,主字段走 `field/type`
46
- - [ ] 启用 `:row-config="{ keyField: 'id' }"` 或业务主键
47
- - [ ] 需要选择行时已配置 `type: 'checkbox'`
48
- - [ ] 自定义单元格走字段插槽(如 `#status`、`#action`)
49
- - [ ] DOM 模板(JSP/HTML)下插槽命名使用 kebab-case(如 `#toolbar-left`)
50
- - [ ] 避免以 `bodyCell` 分支作为主渲染模式
51
- - [ ] 分页状态包含 `current/pageSize/total`
52
- - [ ] `@change` 中同步更新分页并触发刷新
53
- - [ ] 加载态与空态行为正确
41
+ - [ ] API 经项目统一 mutator,导入当前真实生成函数与 DTO;URL 未重复拼接 `/api`。
42
+ - [ ] 请求分页、筛选和响应映射均匹配冻结合同;Mock 路径、字段、状态码和包装复现同一 wire shape,不另定通用包装。
43
+ - [ ] 查询回第一页,翻页保留筛选;API 失败只由 mutator 提示,Hook 维护状态与恢复,不重复错误 Toast。
44
+ - [ ] 路由位于实际模块层级,`meta.title` 和唯一 `name` 符合页面语义;已有工程采用 `MENU_TYPE.INNER_MENU` 时,详情 / 创建页沿用其配置。
54
45
 
55
- ---
46
+ ## 实际验证与限制
56
47
 
57
- ## 抽屉详情页清单
58
-
59
- - [ ] 抽屉开关状态单一来源(`ref<boolean>`)
60
- - [ ] 打开抽屉前正确设置当前记录
61
- - [ ] 抽屉关闭时清理临时输入/评论等状态
62
- - [ ] Tab 切换不引入脏数据
63
- - [ ] 抽屉内表格优先使用 YTable(列同样遵循 `field/type`)
64
- - [ ] 底部操作按钮具备确认机制(如 `Modal.confirm`)
65
-
66
- ---
67
-
68
- ## 步骤页清单(Create/Step)
69
-
70
- - [ ] 步骤状态由单一 `currentStep` 管理
71
- - [ ] 第一步表单校验通过后再进入下一步
72
- - [ ] 步骤二列表推荐使用 YTable 承载节点信息
73
- - [ ] 节点编辑弹层(Drawer/Modal)保存后回填源数据
74
- - [ ] 上一步/下一步/取消/完成按钮状态与文案正确
75
- - [ ] 完成动作后有明确反馈并返回目标页面
76
-
77
- ---
78
-
79
- ## 数据链路与联调清单(API + Mock)
80
-
81
- - [ ] API 请求通过项目统一实例(`mutator.ts`)发起
82
- - [ ] URL 未重复拼接 `/api` 前缀
83
- - [ ] 列表请求参数包含 `page/pageSize` 与筛选参数
84
- - [ ] Mock 路由与前端请求路径一致
85
- - [ ] Mock 返回结构为 `{ code, message, data: { list, total, page, pageSize } }`
86
- - [ ] 查询行为会重置页码到第一页
87
- - [ ] 分页行为会沿用筛选条件重新请求
88
- - [ ] 异常时正确提示并兜底空数据
89
-
90
- ---
91
-
92
- ## 路由与菜单清单
93
-
94
- - [ ] 页面路由挂载在正确模块 `children` 下
95
- - [ ] `meta.title` 与页面语义一致
96
- - [ ] 详情/创建页使用 `menuType: MENU_TYPE.INNER_MENU`
97
- - [ ] 路由名称(name)语义清晰且唯一
98
-
99
- ---
100
-
101
- ## 交付前核查清单
102
-
103
- - [ ] 关键文件已补充必要类型定义
104
- - [ ] 无调试输出(如 `console.info`)遗留
105
- - [ ] 运行格式化命令并确认无格式问题
106
- - [ ] 目标文件 IDE 诊断无新增错误
107
- - [ ] 若 lint/type-check 失败,已明确标注环境原因
108
- - [ ] 如需 AI 辅助生成代码,优先加载 `llms-full.txt` 上下文
109
- - [ ] 必要的组件测试、E2E、视觉回归已执行;未适用项记录原因
110
- - [ ] 浏览器 console 无新增 warning/error
48
+ - [ ] 类型、静态检查和目标文件诊断没有新增问题;无调试输出遗留。格式检查优先使用工程现有检查模式,避免重写无关文件。
49
+ - [ ] 适用组件测试、关键交互、E2E、响应式与视觉回归已执行,浏览器 console 无新增 warning/error。
50
+ - [ ] `frontend_implementation_plan` / `frontend_implementation_verification` 绑定当前输入;视觉场景按 `case_id` 配对基准图、实现图、diff/mask 与差异解释。
51
+ - [ ] 验证记录含工作目录、实际命令、退出码、环境及证据。失败报告实际现象和已确认原因;原因未知时保留未知,未执行项不写通过。
52
+ - [ ] 文档查询按 [组件来源判定](component-routing.md#导入来源判定)选择 MCP、匹配版本的本地资料或源码,不因生成代码就预读完整 `llms-full.txt`。
@@ -15,7 +15,7 @@
15
15
  | 条件构建 | `YConditionBuilder` | YSS domain component | required | 标准模型与校验边界见 `specialized-components.md` |
16
16
  | 月历 | `YMonthCalendar` | YSS domain component | required | 日期、月份、高度与事件边界见 `specialized-components.md` |
17
17
  | Cron | `YCron` | YSS domain component | required | 七段表达式边界见 `specialized-components.md` |
18
- | 图表 | `YssEcharts` | ECharts | required | 主题、更新和尺寸边界见 `specialized-components.md` |
18
+ | 图表 | `YEcharts` | ECharts | required | 主题、更新和尺寸边界见 `specialized-components.md` |
19
19
  | 编辑器 | `YMonaco` / `YMonacoDiff` | Monaco | required | 按需加载和尺寸治理见 `specialized-components.md` |
20
20
  | Sheet | `YSheet` | Univer | required | Facade、释放和依赖边界见 `specialized-components.md` |
21
21
  | 输入、选择、日期 | 无独立通用 Wrapper | AntDV Input/Select/DatePicker 等 | fallback | 读取实际 AntDV 版本;服从 theme/locale/popup 规则 |
@@ -23,6 +23,8 @@
23
23
  | 服务式反馈 | 无统一 Wrapper | message/notification | fallback | 检查 App/ConfigProvider 上下文 |
24
24
  | 布局与导航 | 按项目现状 | AntDV Layout/Grid/Menu/Tabs 等 | fallback | 不复制 React Ant Design v6 API |
25
25
 
26
+ 图表名称按本地快照的 [Vue Demo 导入](../assets/demos/echarts/line.vue) 使用 `YEcharts`;文档标题中的旧名称不作为导出依据。目标工程仍须按 lockfile、类型和真实导出核验。
27
+
26
28
  ## 受控回退
27
29
 
28
30
  YSS `required` wrapper 缺少必要能力时,记录组件、能力缺口、依赖版本、替代方案、主题/locale/浮层影响和验证证据。没有记录不得回退。
@@ -1,280 +1,25 @@
1
- # yss-ui Quick Recipes
1
+ # YSS UI 场景与示例入口
2
2
 
3
- ## 使用说明
3
+ 新建页面时,按当前任务选择下面的示例;重构时依次核对列与插槽、请求与分页、路由和交付证据。示例用于说明组件组合,不决定业务字段、接口包装或实现资格。先消费批准合同、目标 lockfile、类型和真实导出;本地快照与目标版本不同的部分需重新核验。
4
4
 
5
- - 当任务是“新建页面”时,优先选用最接近的模板再改字段与交互。
6
- - 当任务是“重构页面”时,按“列定义 -> 插槽 -> 请求 -> 分页 -> 路由”顺序迁移。
7
- - 模板默认基于 Vue 3 + TypeScript + `@yss-ui/components`。
8
- - 组件与 Demo 先对照 `../assets/reference-index.md` 和 `../assets/demos/*` 再编码。
5
+ ## 专项技能的可用性
9
6
 
10
- ---
7
+ 下表链接的公共路由、API 资料和 Demo 随公开包提供;`ytable-usage`、`ytree-usage`、`formily-*`、`file-export-download`、`theme-token-usage` 专项不随该包附带。任务命中时仍加载消费工程已安装的对应专项,由原专项持有唯一规则;部分组件资料、Demo 或 Blob 响应说明不能替代完整专项与批准合同。
11
8
 
12
- ## 组件样例速查(docs 对照)
9
+ 必要专项未安装或不可读时,停止受影响的实现,记录缺失 Skill 与来源;从消费工程已登记的技能来源恢复,核验版本与项目基线一致并重新读取后再继续。只读诊断可以使用随包资料确认组件事实,不据此跳过必需专项或批准输入。分步场景仍由 `formily-step-flow` 决定,不以快照中的 FormStep Demo 替代其方案。
13
10
 
14
- - YTable:`../assets/demos/table/*`
15
- - YEditTable:`../assets/demos/edit-table/*`
16
- - YssFormily:`../assets/demos/formily/*`
17
- - YTree:`../assets/demos/tree/*`
18
- - SplitPane:`../assets/demos/split-pane/*`
19
- - YMonaco:`../assets/demos/monaco/*`
20
- - YEcharts:`../assets/demos/echarts/*`
21
- - YFileImport:`../assets/demos/file-import/*`
22
- - YConditionBuilder:`../assets/demos/condition-builder/*`
23
- - YCron:`../assets/demos/cron/*`
24
- - YCard:`../assets/demos/card/*`
25
- - YButton:`../assets/demos/button/*`
11
+ ## 按场景读取
26
12
 
27
- ---
13
+ | 当前任务 | 按需读取 | 必须保留的场景差异 |
14
+ |---|---|---|
15
+ | 列表管理:选择、分页、状态和操作 | [YTable 组件 API](../assets/docs/components/table.md) 与 [列表请求及分页](../../yss-hook/references/list-pagination.md);选择和批量操作由已加载的 `ytable-usage` 核对 | `pageable`、`pagination.remote` 和 `@page-change` 单对象 `{ current, pageSize }`;危险操作确认与成功后选择态清理 |
16
+ | 待办审批:列表与详情抽屉 | [业务页面生成](../../yss-ui-business-page-generation/SKILL.md) 与 [模式及插槽路由](../../yss-formily/SKILL.md),按命中条件加载 `formily-mode-slot-detail` | 抽屉打开前准备记录,关闭时清理临时状态;同意、拒绝等行为消费冻结规则与当前权限 |
17
+ | 分步创建与步骤中的节点列表 | [分步场景路由](../../yss-formily/SKILL.md)加载 `formily-step-flow`;节点列表再按已安装的 YTable 专项 | 当前步骤校验成功才前进,前序数据跨步骤保留,编辑弹层保存后回填源数据,确认步骤不另造提交数据源 |
18
+ | 列表请求与 Mock 接入 | [API 集成](../../yss-api-integration/SKILL.md) 与 [列表分页 Hook](../../yss-hook/references/list-pagination.md) | 请求、响应与 Mock 均遵循目标冻结 DTO,分页字段在 Hook 边界映射;不固定 `page`、`data.list` 或响应包装 |
19
+ | 左树右表 | [YTree 组件 API](../assets/docs/components/tree.md) 与 [页面组合](../../yss-ui-business-page-generation/references/page-composition-example.md);树与删除确认由已加载的 `ytree-usage` 核对 | `YSplitPane + YCard + YTree + YTable`,树选中后右表回第一页,高度偏移只扣实际启用区域 |
20
+ | 同一表单新增、编辑与查看 | [三态与插槽路由](../../yss-formily/SKILL.md)加载 `formily-mode-slot-detail` | 新代码使用 `YFormily`;历史 `YssFormily` 只在真实兼容导出已确认时维护;详情路径与编辑 Slot 分开 |
21
+ | 文件导入两步流 | [YFileImport 边界](specialized-components.md#yfileimport) 与 [导入 Demo](../assets/demos/file-import/basic.vue) | 文件选择 / 结果确认、`nextStep` / `finalImport` / `exportErrorData`;下载失败数据时先加载已安装的 `file-export-download`,响应边界另核对 [API 集成](../../yss-api-integration/SKILL.md)的 Blob 契约 |
28
22
 
29
- ## 模板 1:列表管理页(带勾选、分页、状态、操作)
23
+ 完整组件与 Demo 入口见 [场景索引](../assets/scenario-index.md)和[文档索引](../assets/reference-index.md)。仅加载当前使用的表格、编辑表格、Formily、树、分栏、Monaco、图表、文件导入、条件构建、Cron、Card 或 Button;不预读所有示例。
30
24
 
31
- ```ts
32
- import { reactive, ref } from "vue";
33
- import { YTable, type YTableColumn } from "@yss-ui/components";
34
-
35
- const loading = ref(false);
36
- const tableData = ref<any[]>([]);
37
- const pagination = reactive({
38
- current: 1,
39
- pageSize: 10,
40
- total: 0,
41
- showSizeChanger: true,
42
- showQuickJumper: true,
43
- });
44
-
45
- const columns = reactive<YTableColumn[]>([
46
- { type: "checkbox", width: 50, align: "center" },
47
- { type: "seq", title: "序号", width: 60, align: "center" },
48
- { field: "name", title: "名称", minWidth: 180 },
49
- { field: "owner", title: "负责人", width: 120 },
50
- { field: "updatedAt", title: "更新时间", width: 180 },
51
- { field: "status", title: "状态", width: 110 },
52
- { field: "action", title: "操作", width: 180, fixed: "right" as const },
53
- ]);
54
- ```
55
-
56
- ```vue
57
- <YTable
58
- :columns="columns"
59
- :row-config="{ keyField: 'id' }"
60
- :data="tableData"
61
- :loading="loading"
62
- :pagination="pagination"
63
- :checkbox-config="{ highlight: true }"
64
- @change="handlePageChange"
65
- >
66
- <template #status="{ row }">
67
- <span :class="['status-dot', row.status === 'ENABLED' ? 'enabled' : 'disabled']"></span>
68
- {{ row.status === "ENABLED" ? "启用" : "停用" }}
69
- </template>
70
- <template #action="{ row }">
71
- <a @click="handleEdit(row)">编辑</a>
72
- <a @click="handleDetail(row)">详情</a>
73
- <a style="color: #ff4d4f" @click="handleDelete(row)">删除</a>
74
- </template>
75
- </YTable>
76
- ```
77
-
78
- ---
79
-
80
- ## 模板 2:待办审批页(列表 + 详情抽屉)
81
-
82
- ```ts
83
- import { ref, reactive } from "vue";
84
- import { YTable, type YTableColumn } from "@yss-ui/components";
85
-
86
- const detailVisible = ref(false);
87
- const activeRecord = ref<any>(null);
88
-
89
- const columns = reactive<YTableColumn[]>([
90
- { type: "checkbox", width: 50, align: "center" },
91
- { type: "seq", title: "序号", width: 60, align: "center" },
92
- { field: "approvalName", title: "审批名称", width: 220 },
93
- { field: "submitter", title: "提交人", width: 120 },
94
- { field: "submittedAt", title: "提交时间", width: 180 },
95
- { field: "status", title: "状态", width: 110 },
96
- { field: "action", title: "操作", width: 220, fixed: "right" as const },
97
- ]);
98
- ```
99
-
100
- ```vue
101
- <YTable :columns="columns" :row-config="{ keyField: 'id' }" :data="tableData">
102
- <template #approvalName="{ row }">
103
- <a @click="openDetail(row)">{{ row.approvalName }}</a>
104
- </template>
105
- <template #action="{ row }">
106
- <a @click="handleApprove(row)">同意</a>
107
- <a style="color: #ff4d4f" @click="handleReject(row)">拒绝</a>
108
- <a @click="openDetail(row)">详情</a>
109
- </template>
110
- </YTable>
111
- ```
112
-
113
- ---
114
-
115
- ## 模板 3:步骤创建页(步骤二节点表格)
116
-
117
- ```ts
118
- import { reactive, ref } from "vue";
119
- import { YTable, type YTableColumn } from "@yss-ui/components";
120
-
121
- const nodeList = ref<any[]>([]);
122
-
123
- const nodeColumns = reactive<YTableColumn[]>([
124
- { type: "seq", title: "序号", width: 70, align: "center" },
125
- { field: "nodeName", title: "节点名称", minWidth: 160 },
126
- { field: "taskType", title: "任务策略类型", width: 140 },
127
- { field: "approverType", title: "审批人类型", width: 140 },
128
- { field: "approvers", title: "审批人", minWidth: 220 },
129
- { field: "action", title: "操作", width: 130, fixed: "right" as const },
130
- ]);
131
- ```
132
-
133
- ```vue
134
- <YTable
135
- :columns="nodeColumns"
136
- :row-config="{ keyField: 'id' }"
137
- :data="nodeList"
138
- :border="true"
139
- >
140
- <template #taskType="{ row }">
141
- {{ row.taskType === "AUTO" ? "自动通过审批" : "人工审批" }}
142
- </template>
143
- <template #approvers="{ row }">
144
- {{ row.approvers.join("、") || "-" }}
145
- </template>
146
- <template #action="{ row }">
147
- <a @click="openEditDrawer(row)">编辑</a>
148
- <a style="color: #ff4d4f" @click="removeNode(row.id)">删除</a>
149
- </template>
150
- </YTable>
151
- ```
152
-
153
- ---
154
-
155
- ## 模板 4:列表请求 + API 接入
156
-
157
- ```ts
158
- const fetchData = async () => {
159
- loading.value = true;
160
- try {
161
- const res = await getListApi({
162
- page: pagination.current,
163
- pageSize: pagination.pageSize,
164
- keyword: query.keyword || undefined,
165
- status: query.status || undefined,
166
- });
167
- tableData.value = res?.data?.list || [];
168
- pagination.total = res?.data?.total || 0;
169
- } finally {
170
- loading.value = false;
171
- }
172
- };
173
-
174
- const handleSearch = () => {
175
- pagination.current = 1;
176
- fetchData();
177
- };
178
-
179
- const handlePageChange = (page: number, size: number) => {
180
- pagination.current = page;
181
- pagination.pageSize = size;
182
- fetchData();
183
- };
184
- ```
185
-
186
- Mock 返回建议结构:
187
-
188
- ```json
189
- {
190
- "code": 200,
191
- "message": "success",
192
- "data": {
193
- "list": [],
194
- "total": 0,
195
- "page": 1,
196
- "pageSize": 10
197
- }
198
- }
199
- ```
200
-
201
- ---
202
-
203
- ## 模板 5:树表页面(YTree + useTreeHeight + SplitPane)
204
-
205
- ```ts
206
- import { ref } from "vue";
207
- import { useTreeHeight, YTREE_SEARCH_HEIGHT } from "@yss-ui/hooks";
208
-
209
- const treeWrapRef = ref<HTMLDivElement>();
210
- const selectedKeys = ref<(string | number)[]>([]);
211
- const searchValue = ref("");
212
- const { treeHeight } = useTreeHeight(treeWrapRef, {
213
- extraOffset: YTREE_SEARCH_HEIGHT,
214
- });
215
- ```
216
-
217
- ```vue
218
- <div class="layout">
219
- <YSplitPane :initial-width="300" :min-width="240" :max-width="480">
220
- <template #left>
221
- <div ref="treeWrapRef" class="tree-wrap">
222
- <YTree
223
- v-model:searchValue="searchValue"
224
- v-model:selectedKeys="selectedKeys"
225
- :height="treeHeight"
226
- :tree-data="treeData"
227
- filterable
228
- @select="handleTreeSelect"
229
- />
230
- </div>
231
- </template>
232
- <template #right>
233
- <YTable :columns="columns" :data="tableData" :row-config="{ keyField: 'id' }" />
234
- </template>
235
- </YSplitPane>
236
- </div>
237
- ```
238
-
239
- ---
240
-
241
- ## 模板 6:YssFormily 模式切换(新增/编辑/查看)
242
-
243
- ```ts
244
- const mode = ref<0 | 1 | 2>(0);
245
- const formData = ref<Record<string, any>>({});
246
- ```
247
-
248
- ```vue
249
- <YssFormily v-model="formData" :schema="schema" :mode="mode">
250
- <template #detail-owner="{ value }">
251
- <a-tag color="blue">{{ value || "-" }}</a-tag>
252
- </template>
253
- </YssFormily>
254
- ```
255
-
256
- 规则要点:
257
-
258
- - 查看态插槽固定命名:`detail-<字段路径>`,路径中的 `.` 改为 `-`
259
- - 输入类事件优先 `onUpdate:value`,跨字段逻辑优先 `x-reactions/effects`
260
-
261
- ---
262
-
263
- ## 模板 7:文件导入两步流(YFileImport)
264
-
265
- ```vue
266
- <YFileImport
267
- v-model="visible"
268
- :file-type-list="['xls', 'xlsx', 'csv']"
269
- :import-result="importResult"
270
- @nextStep="handleNextStep"
271
- @finalImport="handleFinalImport"
272
- @exportErrorData="handleExportErrorData"
273
- />
274
- ```
275
-
276
- 要点:
277
-
278
- - 走“选择文件 -> 结果确认”两步交互
279
- - 失败数据通过 `exportErrorData` 下载回溯
280
- - 与表单联动时可复用 `formily.vue` 示例模式
25
+ 样例中的视觉表达消费 [设计系统](../../yss-design-system/SKILL.md)和[主题、Locale 与浮层基线](theme-locale-overlay.md);涉及 Token 实现与换肤时仍加载已安装的 `theme-token-usage`,由原专项决定规则。错误提示服从项目 mutator,操作失败不能继续执行成功动作。页面验收保留当前 Slice 的 `frontend_implementation_plan` / `frontend_implementation_verification`,以及所需截图、交互、console warning 和实际 `pnpm` 退出码。
@@ -13,7 +13,7 @@
13
13
  - 根值是 `ConditionGroup`;叶子保持字段、操作符和值的标准模型。接口 DSL 的序列化、恢复与错误兜底放入 Hook。
14
14
  - 字段切换需要动态操作符或候选值时使用组件公开的加载入口;提交前执行公开校验。
15
15
  - 默认严格校验,只有明确允许未完成草稿时才关闭;展示态使用 `disabled`,不使用已废弃的 `readonly`。
16
- - 组件资料见 `../assets/component-docs/condition-builder-*`,实现前仍须核对目标项目安装版本。
16
+ - 组件资料见 [条件构建器快照](../assets/docs/components/conditionBuilder.md),实现前仍须核对目标项目安装版本。
17
17
 
18
18
  ## YMonthCalendar
19
19
 
@@ -27,7 +27,7 @@
27
27
  - 文件选择、预检、结果回显和最终确认组成两步流程;业务上传与校验由 `nextStep` / `finalImport` 接入。
28
28
  - 默认 `beforeUpload=false`,不能期待 `action` 自动上传;直传只通过 `upload-props.customRequest`。
29
29
  - `importResult` 展示结果,失败数据通过 `exportErrorData` 下载。弹窗配置与上传器配置保持分离。
30
- - 组件资料见 `../assets/component-docs/file-import-*`。
30
+ - 组件资料见 [文件导入快照](../assets/docs/components/fileImport.md)。
31
31
 
32
32
  ## YMonaco / YMonacoDiff
33
33
 
@@ -46,7 +46,7 @@
46
46
  - 初始化后只通过公开 Facade API 修改工作簿,并通过公开保存入口取值;不得直接修改工作簿原始数据对象。
47
47
  - 卸载时释放实例,接入前确认 Univer、React、RxJS 等可选依赖及包体影响。
48
48
 
49
- ## YssEcharts
49
+ ## YEcharts
50
50
 
51
51
  - option、更新策略和容器尺寸以目标版本手册与项目已验证实践为准。
52
52
  - 不在页面层重复原生 ECharts 初始化、销毁或 ResizeObserver 管理。
@@ -87,7 +87,7 @@ description: "生成或改造完整 YSS UI CRUD、列表、表单、详情或左
87
87
  ## 交付检查清单
88
88
 
89
89
  - [ ] 已优先复用 `@yss-ui/components`、`@yss-ui/hooks`、`@yss-ui/utils`。
90
- - [ ] `index.vue` 不超过 150 行,业务逻辑、常量、列配置和样式已按职责拆分。
90
+ - [ ] `index.vue` 负责 Hook 组合、视图编排和事件转发;业务逻辑、常量、列配置和样式已按职责拆分。
91
91
  - [ ] 未出现未导出的 Y 前缀组件。
92
92
  - [ ] 未导入 `@formily/antd-v3`、`@formily/antd` 或业务层 `@formily/antdv` UI 组件。
93
93
  - [ ] `YTable` 分页字段为 `current/pageSize/total`。
@@ -5,15 +5,13 @@ description: "审查或迁移 YSS Spring Boot 2 到 3 的依赖、Jakarta 与 Sp
5
5
 
6
6
  # yss-up-springboot3
7
7
 
8
- Use this skill for catalog-driven YSS backend upgrade analysis and approved migrations from an exact Spring Boot 2 platform to an exact Spring Boot 3 platform.
8
+ 本 Skill 从精确 Spring Boot 2 平台分析并执行已批准的 Spring Boot 3 迁移,不替代具体组件 Skill。源平台、目标平台和组件能力只从 `.template-spec/engineering/backend-platforms.json`、批准的 `platform_configuration`、工程 Manifest、effective POM 与实际依赖树解析,不按版本记忆或源码可编译状态推断兼容。
9
9
 
10
- 中文说明:这个技能是平台迁移编排入口,不替代具体组件 Skill。源平台、目标平台和组件能力只从 `.template-spec/engineering/backend-platforms.json`、批准的 `platform_configuration`、工程 Manifest、effective POM 与实际依赖树解析,不按版本记忆或源码可编译状态推断兼容。
10
+ ## 何时使用
11
11
 
12
- ## When To Use
13
-
14
- - The user asks to assess or migrate a YSS backend from Spring Boot 2 to Spring Boot 3.
15
- - The task mentions `javax.*` to `jakarta.*`, Spring Security migration, validation changes, Servlet API changes, Gateway/OpenFeign compatibility, or dependency BOM changes.
16
- - The task involves checking whether a YSS component can run on Spring Boot 3.
12
+ - 评估或迁移 YSS 后端的 Spring Boot 2 → 3 平台。
13
+ - 平台迁移涉及 `javax.*` → `jakarta.*`、Spring Security、Validation、Servlet、Gateway/OpenFeign 或依赖 BOM。
14
+ - 核验 YSS 组件在指定 Spring Boot 3 平台的兼容状态。
17
15
 
18
16
  ## 准入与阻断
19
17
 
@@ -22,7 +20,7 @@ Use this skill for catalog-driven YSS backend upgrade analysis and approved migr
22
20
  - 既有工程的源码编译、单元测试或 `javax`→`jakarta` 替换不等于平台认证。没有目标架构的真实构件、启动和组件 seam 证据时不得宣称迁移完成。
23
21
  - 平台迁移不得夹带业务重构、架构族转换或组件替换。发现这些影响时返回 `new_impacts`,交实现合同编译器重新路由。
24
22
 
25
- ## Workflow
23
+ ## 迁移流程
26
24
 
27
25
  1. 从工程登记、Manifest、父/BOM、effective POM 和依赖树冻结源 `platform_configuration`、架构 Profile、全部 YSS GAV、组件绑定及基线验证命令;缺失或相互冲突时停止。
28
26
  2. 从平台目录选择一个精确 Spring Boot 3 目标 profile,记录 compatibility id/digest;不得使用 `3.x`、`latest`、范围版本或自行拼装父/BOM。
@@ -33,22 +31,22 @@ Use this skill for catalog-driven YSS backend upgrade analysis and approved migr
33
31
  7. 使用工程根 `./mvnw` 记录 effective POM、依赖树、`validate`、`test`、`package`、随机端口启动和真实组件 seam;DDD 与 MVC 证据不可互相代替。
34
32
  8. 重新解析全部组件绑定并比较摘要;通过只表示该工程的批准迁移结果,不自动把共享平台或其他工程标记为 verified。
35
33
 
36
- ## Common Checks
34
+ ## 适用检查
37
35
 
38
- - Maven BOM and plugin versions are aligned before changing code.
39
- - `javax.*` imports are migrated only where the target framework expects Jakarta APIs.
40
- - Spring Security configuration no longer depends on removed `WebSecurityConfigurerAdapter` patterns.
41
- - Validation annotations and exception handlers still map to the expected DTO/Result contract.
42
- - MyBatis interceptors, auto configurations, and starter metadata are compatible with Spring Boot 3 auto-configuration loading.
43
- - Tests or sample modules are updated together with framework code.
36
+ - 改代码前核对 Maven BOM 与插件版本。
37
+ - 仅目标框架要求 Jakarta 的 API 迁移 `javax.*` import。
38
+ - Spring Security 配置不依赖已移除的 `WebSecurityConfigurerAdapter` 模式。
39
+ - Validation 注解与异常处理仍映射到冻结 DTO/Result 合同。
40
+ - MyBatis 拦截器、自动配置与 starter metadata 符合目标 Boot 3 装载机制。
41
+ - 受影响测试或样例模块与框架代码同步。
44
42
  - Jackson 2 的 Result/PageResult、日期、枚举、nullability 和错误响应 wire fixture 与冻结 OpenAPI 一致。
45
43
  - `spring.factories` 与 `AutoConfiguration.imports` 的目标机制以真实 starter 为准,不能仅移动文件名后宣称自动配置生效。
46
44
  - 输出包含源/目标 profile、compatibility digest、组件逐项结论、阻塞项、实际命令与回滚点。
47
45
 
48
- ## Do Not
46
+ ## 修改边界
49
47
 
50
- - Do not blindly rewrite all `javax.*` imports without checking whether the dependency still uses the old namespace.
51
- - Do not mix unrelated business refactors into migration patches.
52
- - Do not assume component compatibility from memory; inspect source and specialist skill indexes.
53
- - Do not bypass a blocked component by excluding its starter, copying component code into the service, or substituting an unapproved third-party dependency.
54
- - Do not execute a Boot 4 migration under this Skill or reuse Boot 3 evidence for Boot 4.
48
+ - 先核验依赖实际命名空间,不批量替换全部 `javax.*`。
49
+ - 迁移不夹带无关业务重构。
50
+ - 组件兼容结论使用源码、专项索引和平台证据,不使用版本记忆。
51
+ - 不能通过排除 starter、复制组件源码到服务或换未批准第三方依赖绕过组件阻断。
52
+ - Boot 4 另行路由,不复用 Boot 3 证据执行其迁移。