create-yss-spec 3.4.5 → 3.4.7

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 (547) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  3. package/template/.agents/skills/.strategic-design-skills-manifest.json +1 -1
  4. package/template/.agents/skills/.yss-skills-manifest.json +1 -8
  5. package/template/.agents/skills/formily-mode-slot-detail/SKILL.md +3 -4
  6. package/template/.agents/skills/yedit-table-usage/SKILL.md +2 -0
  7. package/template/.agents/skills/yss-application/SKILL.md +8 -6
  8. package/template/.agents/skills/yss-audit-log/SKILL.md +12 -7
  9. package/template/.agents/skills/yss-audit-log/references/source-index.boot2-java8.md +57 -0
  10. package/template/.agents/skills/yss-audit-log/references/source-index.boot3-java17.md +58 -0
  11. package/template/.agents/skills/yss-audit-log/references/source-index.md +6 -39
  12. package/template/.agents/skills/yss-cache/SKILL.md +5 -1
  13. package/template/.agents/skills/yss-cache/references/source-index.boot2-java8.md +81 -0
  14. package/template/.agents/skills/yss-cache/references/source-index.boot3-java17.md +83 -0
  15. package/template/.agents/skills/yss-cache/references/source-index.md +6 -63
  16. package/template/.agents/skills/yss-cache/scripts/check-skill-freshness.sh +20 -15
  17. package/template/.agents/skills/yss-ddd-scaffold-generator/SKILL.md +2 -2
  18. package/template/{.cursor/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-parent/SKILL.md → .agents/skills/yss-ddd-scaffold-generator/references/engineering-baseline.md} +0 -5
  19. package/template/.agents/skills/yss-ddd-scaffold-generator/scripts/first-slice-verification.test.mjs +1 -1
  20. package/template/.agents/skills/yss-ddd-scaffold-generator/scripts/generate_scaffold.mjs +2 -2
  21. package/template/.agents/skills/yss-ddd-scaffold-generator/scripts/run_first_slice_verification.mjs +1 -3
  22. package/template/.agents/skills/yss-ddd-scaffold-generator/scripts/run_scaffold_verification.mjs +1 -1
  23. package/template/.agents/skills/yss-ddd-scaffold-generator/scripts/scaffold-generator.test.mjs +1 -1
  24. package/template/.agents/skills/yss-design-system/SKILL.md +2 -2
  25. package/template/.agents/skills/yss-distributed-id/SKILL.md +4 -0
  26. package/template/.agents/skills/yss-distributed-id/references/source-index.boot2-java8.md +102 -0
  27. package/template/.agents/skills/yss-distributed-id/references/source-index.boot3-java17.md +90 -0
  28. package/template/.agents/skills/yss-distributed-id/references/source-index.md +6 -82
  29. package/template/.agents/skills/yss-dto/SKILL.md +2 -2
  30. package/template/.agents/skills/yss-dto/references/source-index.boot2-java8.md +67 -0
  31. package/template/.agents/skills/yss-dto/references/source-index.boot3-java17.md +70 -0
  32. package/template/.agents/skills/yss-dto/references/source-index.md +6 -51
  33. package/template/.agents/skills/yss-excel-mvc/SKILL.md +4 -0
  34. package/template/.agents/skills/yss-excel-mvc/references/source-index.boot2-java8.md +90 -0
  35. package/template/.agents/skills/yss-excel-mvc/references/source-index.boot3-java17.md +58 -0
  36. package/template/.agents/skills/yss-excel-mvc/references/source-index.md +6 -70
  37. package/template/.agents/skills/yss-exception/SKILL.md +12 -9
  38. package/template/.agents/skills/yss-exception/references/source-index.boot2-java8.md +50 -0
  39. package/template/.agents/skills/yss-exception/references/source-index.boot3-java17.md +50 -0
  40. package/template/.agents/skills/yss-exception/references/source-index.md +6 -31
  41. package/template/.agents/skills/yss-formily/SKILL.md +2 -2
  42. package/template/.agents/skills/yss-frontend-scaffold-generator/SKILL.md +1 -1
  43. package/template/.agents/skills/yss-frontend-scaffold-generator/assets/data-quality-v1/README.md +1 -1
  44. package/template/.agents/skills/yss-frontend-scaffold-generator/assets/data-quality-v1/package.json +2 -2
  45. package/template/.agents/skills/yss-frontend-scaffold-generator/assets/data-quality-v1/pnpm-lock.yaml +158 -0
  46. package/template/.agents/skills/yss-frontend-scaffold-generator/references/data-quality-v1.manifest.json +3 -3
  47. package/template/.agents/skills/yss-frontend-scaffold-generator/scripts/scaffold-generator.test.mjs +5 -0
  48. package/template/.agents/skills/yss-hook/SKILL.md +3 -2
  49. package/template/.agents/skills/yss-implementation-contract-compiler/SKILL.md +2 -0
  50. package/template/.agents/skills/yss-implementation-contract-compiler/references/boundaries.md +4 -6
  51. package/template/.agents/skills/yss-implementation-contract-compiler/references/compiler-contract.yaml +27 -2
  52. package/template/.agents/skills/yss-implementation-contract-compiler/references/yss-skill-execution-result.md +2 -1
  53. package/template/.agents/skills/yss-implementation-contract-compiler/tests/compiler-scenarios.test.mjs +60 -14
  54. package/template/.agents/skills/yss-layered-mvc-scaffold-generator/SKILL.md +6 -5
  55. package/template/.agents/skills/yss-layered-mvc-scaffold-generator/agents/openai.yaml +2 -2
  56. package/template/.agents/skills/yss-layered-mvc-scaffold-generator/references/architecture.md +2 -0
  57. package/template/.agents/skills/yss-layered-mvc-scaffold-generator/scripts/data-analysis-profile.mjs +82 -0
  58. package/template/.agents/skills/yss-layered-mvc-scaffold-generator/scripts/generate_scaffold.mjs +23 -9
  59. package/template/.agents/skills/yss-layered-mvc-scaffold-generator/scripts/scaffold-generator.test.mjs +23 -6
  60. package/template/.agents/skills/yss-layered-mvc-scaffold-generator/tests/scaffold-generator.test.mjs +2 -0
  61. package/template/.agents/skills/yss-mybatis/SKILL.md +2 -2
  62. package/template/.agents/skills/yss-mybatis/references/source-index.boot2-java8.md +126 -0
  63. package/template/.agents/skills/yss-mybatis/references/source-index.boot3-java17.md +126 -0
  64. package/template/.agents/skills/yss-mybatis/references/source-index.md +6 -109
  65. package/template/.agents/skills/yss-product-lifecycle/references/orchestration-contract.yaml +11 -11
  66. package/template/.agents/skills/yss-product-lifecycle/references/orchestration.md +2 -2
  67. package/template/.agents/skills/yss-repository/SKILL.md +1 -1
  68. package/template/.agents/skills/yss-resilience4j/SKILL.md +4 -0
  69. package/template/.agents/skills/yss-resilience4j/references/source-index.boot2-java8.md +48 -0
  70. package/template/.agents/skills/yss-resilience4j/references/source-index.boot3-java17.md +48 -0
  71. package/template/.agents/skills/yss-resilience4j/references/source-index.md +6 -29
  72. package/template/.agents/skills/yss-security-algorithm/SKILL.md +34 -10
  73. package/template/.agents/skills/yss-security-algorithm/references/source-index.boot2-java8.md +50 -0
  74. package/template/.agents/skills/yss-security-algorithm/references/source-index.boot3-java17.md +51 -0
  75. package/template/.agents/skills/yss-security-algorithm/references/source-index.md +6 -31
  76. package/template/.agents/skills/yss-skill-source-index-refresh/SKILL.md +12 -6
  77. package/template/.agents/skills/yss-skill-source-index-refresh/references/backend-component-platform-compatibility.md +27 -0
  78. package/template/.agents/skills/yss-skill-source-index-refresh/references/source-location.md +4 -4
  79. package/template/.agents/skills/yss-skill-source-index-refresh/references/source-map-config.md +13 -5
  80. package/template/.agents/skills/yss-skill-source-index-refresh/scripts/check-backend-skill-source-index.mjs +60 -0
  81. package/template/.agents/skills/yss-skill-source-index-refresh/scripts/refresh-yss-skill-index.mjs +250 -56
  82. package/template/.agents/skills/yss-skill-source-index-refresh/scripts/refresh-yss-skill-index.test.mjs +74 -7
  83. package/template/.agents/skills/yss-tactical-design/SKILL.md +1 -1
  84. package/template/.agents/skills/yss-tactical-design/references/output-template.md +1 -1
  85. package/template/.agents/skills/yss-technical-design/SKILL.md +3 -1
  86. package/template/.agents/skills/yss-technical-design/references/technical-design-contract.md +1 -1
  87. package/template/.agents/skills/yss-technical-design/scripts/generate-schema.mjs +1 -1
  88. package/template/.agents/skills/yss-technical-design/tests/run-scenarios.mjs +3 -1
  89. package/template/.agents/skills/yss-ui/SKILL.md +9 -6
  90. package/template/.agents/skills/yss-ui/references/component-routing.md +11 -4
  91. package/template/.agents/skills/yss-ui-business-page-generation/SKILL.md +5 -1
  92. package/template/.agents/skills/yss-ui-business-page-generation/references/hooks-map.md +3 -2
  93. package/template/.agents/skills/yss-up-springboot3/SKILL.md +23 -9
  94. package/template/.agents/skills/yss-userinfo/SKILL.md +21 -14
  95. package/template/.agents/skills/yss-userinfo/references/source-index.boot2-java8.md +49 -0
  96. package/template/.agents/skills/yss-userinfo/references/source-index.boot3-java17.md +54 -0
  97. package/template/.agents/skills/yss-userinfo/references/source-index.md +6 -30
  98. package/template/.agents/skills/yss-validation/SKILL.md +12 -17
  99. package/template/.agents/skills/yss-validation/references/source-index.boot2-java8.md +47 -0
  100. package/template/.agents/skills/yss-validation/references/source-index.boot3-java17.md +47 -0
  101. package/template/.agents/skills/yss-validation/references/source-index.md +6 -29
  102. package/template/.agents/skills/yss-web-controller/SKILL.md +4 -4
  103. package/template/.agents/skills/yss-web-controller/scripts/generate_controller.test.mjs +1 -1
  104. package/template/.agents/skills/ytable-usage/SKILL.md +14 -7
  105. package/template/.agents/skills/ytree-usage/SKILL.md +1 -0
  106. package/template/.codex/skills/formily-mode-slot-detail/SKILL.md +3 -4
  107. package/template/.codex/skills/yedit-table-usage/SKILL.md +2 -0
  108. package/template/.codex/skills/yss-application/SKILL.md +8 -6
  109. package/template/.codex/skills/yss-audit-log/SKILL.md +12 -7
  110. package/template/.codex/skills/yss-audit-log/references/source-index.boot2-java8.md +57 -0
  111. package/template/.codex/skills/yss-audit-log/references/source-index.boot3-java17.md +58 -0
  112. package/template/.codex/skills/yss-audit-log/references/source-index.md +6 -39
  113. package/template/.codex/skills/yss-cache/SKILL.md +5 -1
  114. package/template/.codex/skills/yss-cache/references/source-index.boot2-java8.md +81 -0
  115. package/template/.codex/skills/yss-cache/references/source-index.boot3-java17.md +83 -0
  116. package/template/.codex/skills/yss-cache/references/source-index.md +6 -63
  117. package/template/.codex/skills/yss-cache/scripts/check-skill-freshness.sh +20 -15
  118. package/template/.codex/skills/yss-ddd-scaffold-generator/SKILL.md +2 -2
  119. package/template/{.agents/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-parent/SKILL.md → .codex/skills/yss-ddd-scaffold-generator/references/engineering-baseline.md} +0 -5
  120. package/template/.codex/skills/yss-ddd-scaffold-generator/scripts/first-slice-verification.test.mjs +1 -1
  121. package/template/.codex/skills/yss-ddd-scaffold-generator/scripts/generate_scaffold.mjs +2 -2
  122. package/template/.codex/skills/yss-ddd-scaffold-generator/scripts/run_first_slice_verification.mjs +1 -3
  123. package/template/.codex/skills/yss-ddd-scaffold-generator/scripts/run_scaffold_verification.mjs +1 -1
  124. package/template/.codex/skills/yss-ddd-scaffold-generator/scripts/scaffold-generator.test.mjs +1 -1
  125. package/template/.codex/skills/yss-design-system/SKILL.md +2 -2
  126. package/template/.codex/skills/yss-distributed-id/SKILL.md +4 -0
  127. package/template/.codex/skills/yss-distributed-id/references/source-index.boot2-java8.md +102 -0
  128. package/template/.codex/skills/yss-distributed-id/references/source-index.boot3-java17.md +90 -0
  129. package/template/.codex/skills/yss-distributed-id/references/source-index.md +6 -82
  130. package/template/.codex/skills/yss-dto/SKILL.md +2 -2
  131. package/template/.codex/skills/yss-dto/references/source-index.boot2-java8.md +67 -0
  132. package/template/.codex/skills/yss-dto/references/source-index.boot3-java17.md +70 -0
  133. package/template/.codex/skills/yss-dto/references/source-index.md +6 -51
  134. package/template/.codex/skills/yss-excel-mvc/SKILL.md +4 -0
  135. package/template/.codex/skills/yss-excel-mvc/references/source-index.boot2-java8.md +90 -0
  136. package/template/.codex/skills/yss-excel-mvc/references/source-index.boot3-java17.md +58 -0
  137. package/template/.codex/skills/yss-excel-mvc/references/source-index.md +6 -70
  138. package/template/.codex/skills/yss-exception/SKILL.md +12 -9
  139. package/template/.codex/skills/yss-exception/references/source-index.boot2-java8.md +50 -0
  140. package/template/.codex/skills/yss-exception/references/source-index.boot3-java17.md +50 -0
  141. package/template/.codex/skills/yss-exception/references/source-index.md +6 -31
  142. package/template/.codex/skills/yss-formily/SKILL.md +2 -2
  143. package/template/.codex/skills/yss-frontend-scaffold-generator/SKILL.md +1 -1
  144. package/template/.codex/skills/yss-frontend-scaffold-generator/assets/data-quality-v1/README.md +1 -1
  145. package/template/.codex/skills/yss-frontend-scaffold-generator/assets/data-quality-v1/package.json +2 -2
  146. package/template/.codex/skills/yss-frontend-scaffold-generator/assets/data-quality-v1/pnpm-lock.yaml +158 -0
  147. package/template/.codex/skills/yss-frontend-scaffold-generator/references/data-quality-v1.manifest.json +3 -3
  148. package/template/.codex/skills/yss-frontend-scaffold-generator/scripts/scaffold-generator.test.mjs +5 -0
  149. package/template/.codex/skills/yss-hook/SKILL.md +3 -2
  150. package/template/.codex/skills/yss-implementation-contract-compiler/SKILL.md +2 -0
  151. package/template/.codex/skills/yss-implementation-contract-compiler/references/boundaries.md +4 -6
  152. package/template/.codex/skills/yss-implementation-contract-compiler/references/compiler-contract.yaml +27 -2
  153. package/template/.codex/skills/yss-implementation-contract-compiler/references/yss-skill-execution-result.md +2 -1
  154. package/template/.codex/skills/yss-implementation-contract-compiler/tests/compiler-scenarios.test.mjs +60 -14
  155. package/template/.codex/skills/yss-layered-mvc-scaffold-generator/SKILL.md +6 -5
  156. package/template/.codex/skills/yss-layered-mvc-scaffold-generator/agents/openai.yaml +2 -2
  157. package/template/.codex/skills/yss-layered-mvc-scaffold-generator/references/architecture.md +2 -0
  158. package/template/.codex/skills/yss-layered-mvc-scaffold-generator/scripts/data-analysis-profile.mjs +82 -0
  159. package/template/.codex/skills/yss-layered-mvc-scaffold-generator/scripts/generate_scaffold.mjs +23 -9
  160. package/template/.codex/skills/yss-layered-mvc-scaffold-generator/scripts/scaffold-generator.test.mjs +23 -6
  161. package/template/.codex/skills/yss-layered-mvc-scaffold-generator/tests/scaffold-generator.test.mjs +2 -0
  162. package/template/.codex/skills/yss-mybatis/SKILL.md +2 -2
  163. package/template/.codex/skills/yss-mybatis/references/source-index.boot2-java8.md +126 -0
  164. package/template/.codex/skills/yss-mybatis/references/source-index.boot3-java17.md +126 -0
  165. package/template/.codex/skills/yss-mybatis/references/source-index.md +6 -109
  166. package/template/.codex/skills/yss-product-lifecycle/references/orchestration-contract.yaml +11 -11
  167. package/template/.codex/skills/yss-product-lifecycle/references/orchestration.md +2 -2
  168. package/template/.codex/skills/yss-repository/SKILL.md +1 -1
  169. package/template/.codex/skills/yss-resilience4j/SKILL.md +4 -0
  170. package/template/.codex/skills/yss-resilience4j/references/source-index.boot2-java8.md +48 -0
  171. package/template/.codex/skills/yss-resilience4j/references/source-index.boot3-java17.md +48 -0
  172. package/template/.codex/skills/yss-resilience4j/references/source-index.md +6 -29
  173. package/template/.codex/skills/yss-security-algorithm/SKILL.md +34 -10
  174. package/template/.codex/skills/yss-security-algorithm/references/source-index.boot2-java8.md +50 -0
  175. package/template/.codex/skills/yss-security-algorithm/references/source-index.boot3-java17.md +51 -0
  176. package/template/.codex/skills/yss-security-algorithm/references/source-index.md +6 -31
  177. package/template/.codex/skills/yss-skill-source-index-refresh/SKILL.md +12 -6
  178. package/template/.codex/skills/yss-skill-source-index-refresh/references/backend-component-platform-compatibility.md +27 -0
  179. package/template/.codex/skills/yss-skill-source-index-refresh/references/source-location.md +4 -4
  180. package/template/.codex/skills/yss-skill-source-index-refresh/references/source-map-config.md +13 -5
  181. package/template/.codex/skills/yss-skill-source-index-refresh/scripts/check-backend-skill-source-index.mjs +60 -0
  182. package/template/.codex/skills/yss-skill-source-index-refresh/scripts/refresh-yss-skill-index.mjs +250 -56
  183. package/template/.codex/skills/yss-skill-source-index-refresh/scripts/refresh-yss-skill-index.test.mjs +74 -7
  184. package/template/.codex/skills/yss-tactical-design/SKILL.md +1 -1
  185. package/template/.codex/skills/yss-tactical-design/references/output-template.md +1 -1
  186. package/template/.codex/skills/yss-technical-design/SKILL.md +3 -1
  187. package/template/.codex/skills/yss-technical-design/references/technical-design-contract.md +1 -1
  188. package/template/.codex/skills/yss-technical-design/scripts/generate-schema.mjs +1 -1
  189. package/template/.codex/skills/yss-technical-design/tests/run-scenarios.mjs +3 -1
  190. package/template/.codex/skills/yss-ui/SKILL.md +9 -6
  191. package/template/.codex/skills/yss-ui/references/component-routing.md +11 -4
  192. package/template/.codex/skills/yss-ui-business-page-generation/SKILL.md +5 -1
  193. package/template/.codex/skills/yss-ui-business-page-generation/references/hooks-map.md +3 -2
  194. package/template/.codex/skills/yss-up-springboot3/SKILL.md +23 -9
  195. package/template/.codex/skills/yss-userinfo/SKILL.md +21 -14
  196. package/template/.codex/skills/yss-userinfo/references/source-index.boot2-java8.md +49 -0
  197. package/template/.codex/skills/yss-userinfo/references/source-index.boot3-java17.md +54 -0
  198. package/template/.codex/skills/yss-userinfo/references/source-index.md +6 -30
  199. package/template/.codex/skills/yss-validation/SKILL.md +12 -17
  200. package/template/.codex/skills/yss-validation/references/source-index.boot2-java8.md +47 -0
  201. package/template/.codex/skills/yss-validation/references/source-index.boot3-java17.md +47 -0
  202. package/template/.codex/skills/yss-validation/references/source-index.md +6 -29
  203. package/template/.codex/skills/yss-web-controller/SKILL.md +4 -4
  204. package/template/.codex/skills/yss-web-controller/scripts/generate_controller.test.mjs +1 -1
  205. package/template/.codex/skills/ytable-usage/SKILL.md +14 -7
  206. package/template/.codex/skills/ytree-usage/SKILL.md +1 -0
  207. package/template/.cursor/skills/formily-mode-slot-detail/SKILL.md +3 -4
  208. package/template/.cursor/skills/yedit-table-usage/SKILL.md +2 -0
  209. package/template/.cursor/skills/yss-application/SKILL.md +8 -6
  210. package/template/.cursor/skills/yss-audit-log/SKILL.md +12 -7
  211. package/template/.cursor/skills/yss-audit-log/references/source-index.boot2-java8.md +57 -0
  212. package/template/.cursor/skills/yss-audit-log/references/source-index.boot3-java17.md +58 -0
  213. package/template/.cursor/skills/yss-audit-log/references/source-index.md +6 -39
  214. package/template/.cursor/skills/yss-cache/SKILL.md +5 -1
  215. package/template/.cursor/skills/yss-cache/references/source-index.boot2-java8.md +81 -0
  216. package/template/.cursor/skills/yss-cache/references/source-index.boot3-java17.md +83 -0
  217. package/template/.cursor/skills/yss-cache/references/source-index.md +6 -63
  218. package/template/.cursor/skills/yss-cache/scripts/check-skill-freshness.sh +20 -15
  219. package/template/.cursor/skills/yss-ddd-scaffold-generator/SKILL.md +2 -2
  220. package/template/{.codex/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-parent/SKILL.md → .cursor/skills/yss-ddd-scaffold-generator/references/engineering-baseline.md} +0 -5
  221. package/template/.cursor/skills/yss-ddd-scaffold-generator/scripts/first-slice-verification.test.mjs +1 -1
  222. package/template/.cursor/skills/yss-ddd-scaffold-generator/scripts/generate_scaffold.mjs +2 -2
  223. package/template/.cursor/skills/yss-ddd-scaffold-generator/scripts/run_first_slice_verification.mjs +1 -3
  224. package/template/.cursor/skills/yss-ddd-scaffold-generator/scripts/run_scaffold_verification.mjs +1 -1
  225. package/template/.cursor/skills/yss-ddd-scaffold-generator/scripts/scaffold-generator.test.mjs +1 -1
  226. package/template/.cursor/skills/yss-design-system/SKILL.md +2 -2
  227. package/template/.cursor/skills/yss-distributed-id/SKILL.md +4 -0
  228. package/template/.cursor/skills/yss-distributed-id/references/source-index.boot2-java8.md +102 -0
  229. package/template/.cursor/skills/yss-distributed-id/references/source-index.boot3-java17.md +90 -0
  230. package/template/.cursor/skills/yss-distributed-id/references/source-index.md +6 -82
  231. package/template/.cursor/skills/yss-dto/SKILL.md +2 -2
  232. package/template/.cursor/skills/yss-dto/references/source-index.boot2-java8.md +67 -0
  233. package/template/.cursor/skills/yss-dto/references/source-index.boot3-java17.md +70 -0
  234. package/template/.cursor/skills/yss-dto/references/source-index.md +6 -51
  235. package/template/.cursor/skills/yss-excel-mvc/SKILL.md +4 -0
  236. package/template/.cursor/skills/yss-excel-mvc/references/source-index.boot2-java8.md +90 -0
  237. package/template/.cursor/skills/yss-excel-mvc/references/source-index.boot3-java17.md +58 -0
  238. package/template/.cursor/skills/yss-excel-mvc/references/source-index.md +6 -70
  239. package/template/.cursor/skills/yss-exception/SKILL.md +12 -9
  240. package/template/.cursor/skills/yss-exception/references/source-index.boot2-java8.md +50 -0
  241. package/template/.cursor/skills/yss-exception/references/source-index.boot3-java17.md +50 -0
  242. package/template/.cursor/skills/yss-exception/references/source-index.md +6 -31
  243. package/template/.cursor/skills/yss-formily/SKILL.md +2 -2
  244. package/template/.cursor/skills/yss-frontend-scaffold-generator/SKILL.md +1 -1
  245. package/template/.cursor/skills/yss-frontend-scaffold-generator/assets/data-quality-v1/README.md +1 -1
  246. package/template/.cursor/skills/yss-frontend-scaffold-generator/assets/data-quality-v1/package.json +2 -2
  247. package/template/.cursor/skills/yss-frontend-scaffold-generator/assets/data-quality-v1/pnpm-lock.yaml +158 -0
  248. package/template/.cursor/skills/yss-frontend-scaffold-generator/references/data-quality-v1.manifest.json +3 -3
  249. package/template/.cursor/skills/yss-frontend-scaffold-generator/scripts/scaffold-generator.test.mjs +5 -0
  250. package/template/.cursor/skills/yss-hook/SKILL.md +3 -2
  251. package/template/.cursor/skills/yss-implementation-contract-compiler/SKILL.md +2 -0
  252. package/template/.cursor/skills/yss-implementation-contract-compiler/references/boundaries.md +4 -6
  253. package/template/.cursor/skills/yss-implementation-contract-compiler/references/compiler-contract.yaml +27 -2
  254. package/template/.cursor/skills/yss-implementation-contract-compiler/references/yss-skill-execution-result.md +2 -1
  255. package/template/.cursor/skills/yss-implementation-contract-compiler/tests/compiler-scenarios.test.mjs +60 -14
  256. package/template/.cursor/skills/yss-layered-mvc-scaffold-generator/SKILL.md +6 -5
  257. package/template/.cursor/skills/yss-layered-mvc-scaffold-generator/agents/openai.yaml +2 -2
  258. package/template/.cursor/skills/yss-layered-mvc-scaffold-generator/references/architecture.md +2 -0
  259. package/template/.cursor/skills/yss-layered-mvc-scaffold-generator/scripts/data-analysis-profile.mjs +82 -0
  260. package/template/.cursor/skills/yss-layered-mvc-scaffold-generator/scripts/generate_scaffold.mjs +23 -9
  261. package/template/.cursor/skills/yss-layered-mvc-scaffold-generator/scripts/scaffold-generator.test.mjs +23 -6
  262. package/template/.cursor/skills/yss-layered-mvc-scaffold-generator/tests/scaffold-generator.test.mjs +2 -0
  263. package/template/.cursor/skills/yss-mybatis/SKILL.md +2 -2
  264. package/template/.cursor/skills/yss-mybatis/references/source-index.boot2-java8.md +126 -0
  265. package/template/.cursor/skills/yss-mybatis/references/source-index.boot3-java17.md +126 -0
  266. package/template/.cursor/skills/yss-mybatis/references/source-index.md +6 -109
  267. package/template/.cursor/skills/yss-product-lifecycle/references/orchestration-contract.yaml +11 -11
  268. package/template/.cursor/skills/yss-product-lifecycle/references/orchestration.md +2 -2
  269. package/template/.cursor/skills/yss-repository/SKILL.md +1 -1
  270. package/template/.cursor/skills/yss-resilience4j/SKILL.md +4 -0
  271. package/template/.cursor/skills/yss-resilience4j/references/source-index.boot2-java8.md +48 -0
  272. package/template/.cursor/skills/yss-resilience4j/references/source-index.boot3-java17.md +48 -0
  273. package/template/.cursor/skills/yss-resilience4j/references/source-index.md +6 -29
  274. package/template/.cursor/skills/yss-security-algorithm/SKILL.md +34 -10
  275. package/template/.cursor/skills/yss-security-algorithm/references/source-index.boot2-java8.md +50 -0
  276. package/template/.cursor/skills/yss-security-algorithm/references/source-index.boot3-java17.md +51 -0
  277. package/template/.cursor/skills/yss-security-algorithm/references/source-index.md +6 -31
  278. package/template/.cursor/skills/yss-skill-source-index-refresh/SKILL.md +12 -6
  279. package/template/.cursor/skills/yss-skill-source-index-refresh/references/backend-component-platform-compatibility.md +27 -0
  280. package/template/.cursor/skills/yss-skill-source-index-refresh/references/source-location.md +4 -4
  281. package/template/.cursor/skills/yss-skill-source-index-refresh/references/source-map-config.md +13 -5
  282. package/template/.cursor/skills/yss-skill-source-index-refresh/scripts/check-backend-skill-source-index.mjs +60 -0
  283. package/template/.cursor/skills/yss-skill-source-index-refresh/scripts/refresh-yss-skill-index.mjs +250 -56
  284. package/template/.cursor/skills/yss-skill-source-index-refresh/scripts/refresh-yss-skill-index.test.mjs +74 -7
  285. package/template/.cursor/skills/yss-tactical-design/SKILL.md +1 -1
  286. package/template/.cursor/skills/yss-tactical-design/references/output-template.md +1 -1
  287. package/template/.cursor/skills/yss-technical-design/SKILL.md +3 -1
  288. package/template/.cursor/skills/yss-technical-design/references/technical-design-contract.md +1 -1
  289. package/template/.cursor/skills/yss-technical-design/scripts/generate-schema.mjs +1 -1
  290. package/template/.cursor/skills/yss-technical-design/tests/run-scenarios.mjs +3 -1
  291. package/template/.cursor/skills/yss-ui/SKILL.md +9 -6
  292. package/template/.cursor/skills/yss-ui/references/component-routing.md +11 -4
  293. package/template/.cursor/skills/yss-ui-business-page-generation/SKILL.md +5 -1
  294. package/template/.cursor/skills/yss-ui-business-page-generation/references/hooks-map.md +3 -2
  295. package/template/.cursor/skills/yss-up-springboot3/SKILL.md +23 -9
  296. package/template/.cursor/skills/yss-userinfo/SKILL.md +21 -14
  297. package/template/.cursor/skills/yss-userinfo/references/source-index.boot2-java8.md +49 -0
  298. package/template/.cursor/skills/yss-userinfo/references/source-index.boot3-java17.md +54 -0
  299. package/template/.cursor/skills/yss-userinfo/references/source-index.md +6 -30
  300. package/template/.cursor/skills/yss-validation/SKILL.md +12 -17
  301. package/template/.cursor/skills/yss-validation/references/source-index.boot2-java8.md +47 -0
  302. package/template/.cursor/skills/yss-validation/references/source-index.boot3-java17.md +47 -0
  303. package/template/.cursor/skills/yss-validation/references/source-index.md +6 -29
  304. package/template/.cursor/skills/yss-web-controller/SKILL.md +4 -4
  305. package/template/.cursor/skills/yss-web-controller/scripts/generate_controller.test.mjs +1 -1
  306. package/template/.cursor/skills/ytable-usage/SKILL.md +14 -7
  307. package/template/.cursor/skills/ytree-usage/SKILL.md +1 -0
  308. package/template/.pi/skills/formily-mode-slot-detail/SKILL.md +3 -4
  309. package/template/.pi/skills/yedit-table-usage/SKILL.md +2 -0
  310. package/template/.pi/skills/yss-application/SKILL.md +8 -6
  311. package/template/.pi/skills/yss-audit-log/SKILL.md +12 -7
  312. package/template/.pi/skills/yss-audit-log/references/source-index.boot2-java8.md +57 -0
  313. package/template/.pi/skills/yss-audit-log/references/source-index.boot3-java17.md +58 -0
  314. package/template/.pi/skills/yss-audit-log/references/source-index.md +6 -39
  315. package/template/.pi/skills/yss-cache/SKILL.md +5 -1
  316. package/template/.pi/skills/yss-cache/references/source-index.boot2-java8.md +81 -0
  317. package/template/.pi/skills/yss-cache/references/source-index.boot3-java17.md +83 -0
  318. package/template/.pi/skills/yss-cache/references/source-index.md +6 -63
  319. package/template/.pi/skills/yss-cache/scripts/check-skill-freshness.sh +20 -15
  320. package/template/.pi/skills/yss-ddd-scaffold-generator/SKILL.md +2 -2
  321. package/template/.pi/skills/yss-ddd-scaffold-generator/references/{yss-backend-scaffold-parent/SKILL.md → engineering-baseline.md} +0 -5
  322. package/template/.pi/skills/yss-ddd-scaffold-generator/scripts/first-slice-verification.test.mjs +1 -1
  323. package/template/.pi/skills/yss-ddd-scaffold-generator/scripts/generate_scaffold.mjs +2 -2
  324. package/template/.pi/skills/yss-ddd-scaffold-generator/scripts/run_first_slice_verification.mjs +1 -3
  325. package/template/.pi/skills/yss-ddd-scaffold-generator/scripts/run_scaffold_verification.mjs +1 -1
  326. package/template/.pi/skills/yss-ddd-scaffold-generator/scripts/scaffold-generator.test.mjs +1 -1
  327. package/template/.pi/skills/yss-design-system/SKILL.md +2 -2
  328. package/template/.pi/skills/yss-distributed-id/SKILL.md +4 -0
  329. package/template/.pi/skills/yss-distributed-id/references/source-index.boot2-java8.md +102 -0
  330. package/template/.pi/skills/yss-distributed-id/references/source-index.boot3-java17.md +90 -0
  331. package/template/.pi/skills/yss-distributed-id/references/source-index.md +6 -82
  332. package/template/.pi/skills/yss-dto/SKILL.md +2 -2
  333. package/template/.pi/skills/yss-dto/references/source-index.boot2-java8.md +67 -0
  334. package/template/.pi/skills/yss-dto/references/source-index.boot3-java17.md +70 -0
  335. package/template/.pi/skills/yss-dto/references/source-index.md +6 -51
  336. package/template/.pi/skills/yss-excel-mvc/SKILL.md +4 -0
  337. package/template/.pi/skills/yss-excel-mvc/references/source-index.boot2-java8.md +90 -0
  338. package/template/.pi/skills/yss-excel-mvc/references/source-index.boot3-java17.md +58 -0
  339. package/template/.pi/skills/yss-excel-mvc/references/source-index.md +6 -70
  340. package/template/.pi/skills/yss-exception/SKILL.md +12 -9
  341. package/template/.pi/skills/yss-exception/references/source-index.boot2-java8.md +50 -0
  342. package/template/.pi/skills/yss-exception/references/source-index.boot3-java17.md +50 -0
  343. package/template/.pi/skills/yss-exception/references/source-index.md +6 -31
  344. package/template/.pi/skills/yss-formily/SKILL.md +2 -2
  345. package/template/.pi/skills/yss-frontend-scaffold-generator/SKILL.md +1 -1
  346. package/template/.pi/skills/yss-frontend-scaffold-generator/assets/data-quality-v1/README.md +1 -1
  347. package/template/.pi/skills/yss-frontend-scaffold-generator/assets/data-quality-v1/package.json +2 -2
  348. package/template/.pi/skills/yss-frontend-scaffold-generator/assets/data-quality-v1/pnpm-lock.yaml +158 -0
  349. package/template/.pi/skills/yss-frontend-scaffold-generator/references/data-quality-v1.manifest.json +3 -3
  350. package/template/.pi/skills/yss-frontend-scaffold-generator/scripts/scaffold-generator.test.mjs +5 -0
  351. package/template/.pi/skills/yss-hook/SKILL.md +3 -2
  352. package/template/.pi/skills/yss-implementation-contract-compiler/SKILL.md +2 -0
  353. package/template/.pi/skills/yss-implementation-contract-compiler/references/boundaries.md +4 -6
  354. package/template/.pi/skills/yss-implementation-contract-compiler/references/compiler-contract.yaml +27 -2
  355. package/template/.pi/skills/yss-implementation-contract-compiler/references/yss-skill-execution-result.md +2 -1
  356. package/template/.pi/skills/yss-implementation-contract-compiler/tests/compiler-scenarios.test.mjs +60 -14
  357. package/template/.pi/skills/yss-layered-mvc-scaffold-generator/SKILL.md +6 -5
  358. package/template/.pi/skills/yss-layered-mvc-scaffold-generator/agents/openai.yaml +2 -2
  359. package/template/.pi/skills/yss-layered-mvc-scaffold-generator/references/architecture.md +2 -0
  360. package/template/.pi/skills/yss-layered-mvc-scaffold-generator/scripts/data-analysis-profile.mjs +82 -0
  361. package/template/.pi/skills/yss-layered-mvc-scaffold-generator/scripts/generate_scaffold.mjs +23 -9
  362. package/template/.pi/skills/yss-layered-mvc-scaffold-generator/scripts/scaffold-generator.test.mjs +23 -6
  363. package/template/.pi/skills/yss-layered-mvc-scaffold-generator/tests/scaffold-generator.test.mjs +2 -0
  364. package/template/.pi/skills/yss-mybatis/SKILL.md +2 -2
  365. package/template/.pi/skills/yss-mybatis/references/source-index.boot2-java8.md +126 -0
  366. package/template/.pi/skills/yss-mybatis/references/source-index.boot3-java17.md +126 -0
  367. package/template/.pi/skills/yss-mybatis/references/source-index.md +6 -109
  368. package/template/.pi/skills/yss-product-lifecycle/references/orchestration-contract.yaml +11 -11
  369. package/template/.pi/skills/yss-product-lifecycle/references/orchestration.md +2 -2
  370. package/template/.pi/skills/yss-repository/SKILL.md +1 -1
  371. package/template/.pi/skills/yss-resilience4j/SKILL.md +4 -0
  372. package/template/.pi/skills/yss-resilience4j/references/source-index.boot2-java8.md +48 -0
  373. package/template/.pi/skills/yss-resilience4j/references/source-index.boot3-java17.md +48 -0
  374. package/template/.pi/skills/yss-resilience4j/references/source-index.md +6 -29
  375. package/template/.pi/skills/yss-security-algorithm/SKILL.md +34 -10
  376. package/template/.pi/skills/yss-security-algorithm/references/source-index.boot2-java8.md +50 -0
  377. package/template/.pi/skills/yss-security-algorithm/references/source-index.boot3-java17.md +51 -0
  378. package/template/.pi/skills/yss-security-algorithm/references/source-index.md +6 -31
  379. package/template/.pi/skills/yss-skill-source-index-refresh/SKILL.md +12 -6
  380. package/template/.pi/skills/yss-skill-source-index-refresh/references/backend-component-platform-compatibility.md +27 -0
  381. package/template/.pi/skills/yss-skill-source-index-refresh/references/source-location.md +4 -4
  382. package/template/.pi/skills/yss-skill-source-index-refresh/references/source-map-config.md +13 -5
  383. package/template/.pi/skills/yss-skill-source-index-refresh/scripts/check-backend-skill-source-index.mjs +60 -0
  384. package/template/.pi/skills/yss-skill-source-index-refresh/scripts/refresh-yss-skill-index.mjs +250 -56
  385. package/template/.pi/skills/yss-skill-source-index-refresh/scripts/refresh-yss-skill-index.test.mjs +74 -7
  386. package/template/.pi/skills/yss-tactical-design/SKILL.md +1 -1
  387. package/template/.pi/skills/yss-tactical-design/references/output-template.md +1 -1
  388. package/template/.pi/skills/yss-technical-design/SKILL.md +3 -1
  389. package/template/.pi/skills/yss-technical-design/references/technical-design-contract.md +1 -1
  390. package/template/.pi/skills/yss-technical-design/scripts/generate-schema.mjs +1 -1
  391. package/template/.pi/skills/yss-technical-design/tests/run-scenarios.mjs +3 -1
  392. package/template/.pi/skills/yss-ui/SKILL.md +9 -6
  393. package/template/.pi/skills/yss-ui/references/component-routing.md +11 -4
  394. package/template/.pi/skills/yss-ui-business-page-generation/SKILL.md +5 -1
  395. package/template/.pi/skills/yss-ui-business-page-generation/references/hooks-map.md +3 -2
  396. package/template/.pi/skills/yss-up-springboot3/SKILL.md +23 -9
  397. package/template/.pi/skills/yss-userinfo/SKILL.md +21 -14
  398. package/template/.pi/skills/yss-userinfo/references/source-index.boot2-java8.md +49 -0
  399. package/template/.pi/skills/yss-userinfo/references/source-index.boot3-java17.md +54 -0
  400. package/template/.pi/skills/yss-userinfo/references/source-index.md +6 -30
  401. package/template/.pi/skills/yss-validation/SKILL.md +12 -17
  402. package/template/.pi/skills/yss-validation/references/source-index.boot2-java8.md +47 -0
  403. package/template/.pi/skills/yss-validation/references/source-index.boot3-java17.md +47 -0
  404. package/template/.pi/skills/yss-validation/references/source-index.md +6 -29
  405. package/template/.pi/skills/yss-web-controller/SKILL.md +4 -4
  406. package/template/.pi/skills/yss-web-controller/scripts/generate_controller.test.mjs +1 -1
  407. package/template/.pi/skills/ytable-usage/SKILL.md +14 -7
  408. package/template/.pi/skills/ytree-usage/SKILL.md +1 -0
  409. package/template/docs/agents/backend-architecture-profiles.md +1 -1
  410. package/template/docs/agents/digital-human-roles.yaml +3 -3
  411. package/template/docs/agents/skill-migrations.md +39 -3
  412. package/template/docs/agents/yss-skill-registry.yaml +93 -96
  413. package/template/docs/api/templates/openapi-draft-review-checklist.md +1 -1
  414. package/template/docs/architecture/templates/engineering-baseline-review-template.md +3 -3
  415. package/template/docs/architecture/templates/system-overview-design-template.md +1 -1
  416. package/template/docs/engineering/backend-platforms.json +662 -9
  417. package/template/docs/engineering/backend-platforms.md +33 -7
  418. package/template/docs/process/schemas/backend-architecture-identity.schema.json +102 -0
  419. package/template/docs/process/schemas/project-scaffold-contract.schema.json +16 -4
  420. package/template/docs/process/schemas/scaffold-architecture-decisions.schema.json +7 -0
  421. package/template/docs/process/schemas/slice-implementation-contract-v3.schema.json +143 -0
  422. package/template/docs/process/strategic-handoff-package.md +1 -1
  423. package/template/docs/templates/implementation-routing-template.md +1 -1
  424. package/template/docs/user-guide//346/212/200/346/234/257/350/256/276/350/256/241/347/224/250/346/210/267/346/214/207/345/215/227.md +2 -2
  425. package/template/scripts/backend-platforms +77 -8
  426. package/template/scripts/lib/backend-platform.mjs +232 -5
  427. package/template/scripts/lib/existing-backend-architecture.mjs +3 -2
  428. package/template/scripts/lib/implementation-contract-compiler.mjs +93 -9
  429. package/template/scripts/lib/skill-registry.mjs +170 -13
  430. package/template/scripts/lib/skill-supply-chain.mjs +1 -1
  431. package/template/scripts/lib/slice-contract-preparation.mjs +6 -5
  432. package/template/scripts/verify-backend-platform-matrix +1 -1
  433. package/template/skills-lock.json +38 -165
  434. package/template/yss-public-skills.json +1 -5
  435. package/template.snapshot.json +4 -4
  436. package/template/.agents/skills/component-selection-imports/SKILL.md +0 -64
  437. package/template/.agents/skills/page-form-module/SKILL.md +0 -168
  438. package/template/.agents/skills/page-list-module/SKILL.md +0 -137
  439. package/template/.agents/skills/page-skeleton/SKILL.md +0 -76
  440. package/template/.agents/skills/page-skeleton/examples/AdvancedFormPage/constant.ts +0 -34
  441. package/template/.agents/skills/page-skeleton/examples/AdvancedFormPage/hooks/useRuleConfig.ts +0 -75
  442. package/template/.agents/skills/page-skeleton/examples/AdvancedFormPage/index.vue +0 -107
  443. package/template/.agents/skills/page-skeleton/examples/AdvancedFormPage/schemas/ruleConfigSchema.ts +0 -256
  444. package/template/.agents/skills/page-skeleton/examples/AdvancedFormPage/style.less +0 -30
  445. package/template/.agents/skills/page-skeleton/examples/StandardListPage/constant.ts +0 -28
  446. package/template/.agents/skills/page-skeleton/examples/StandardListPage/hooks/useQualityRuleList.ts +0 -58
  447. package/template/.agents/skills/page-skeleton/examples/StandardListPage/hooks/useRuleActions.ts +0 -65
  448. package/template/.agents/skills/page-skeleton/examples/StandardListPage/index.vue +0 -91
  449. package/template/.agents/skills/page-skeleton/examples/StandardListPage/style.less +0 -49
  450. package/template/.agents/skills/vue3-best-practices/SKILL.md +0 -68
  451. package/template/.agents/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-parent/agents/openai.yaml +0 -5
  452. package/template/.agents/skills/yss-mvc-data-analysis-project-initializer/SKILL.md +0 -22
  453. package/template/.agents/skills/yss-mvc-data-analysis-project-initializer/scripts/generate_project.mjs +0 -77
  454. package/template/.agents/skills/yss-mvc-data-analysis-project-initializer/scripts/run_scaffold_verification.mjs +0 -9
  455. package/template/.agents/skills/yss-mvc-design/SKILL.md +0 -16
  456. package/template/.agents/skills/yss-mvc-design/agents/openai.yaml +0 -4
  457. package/template/.agents/skills/yss-use-table-height/SKILL.md +0 -130
  458. package/template/.agents/skills/yss-use-table-height/agents/openai.yaml +0 -5
  459. package/template/.agents/skills/yss-use-table-height/references/frontend-docs.md +0 -9
  460. package/template/.agents/skills/yss-use-tree-height/SKILL.md +0 -98
  461. package/template/.agents/skills/yss-use-tree-height/agents/openai.yaml +0 -5
  462. package/template/.agents/skills/yss-use-tree-height/references/frontend-docs.md +0 -9
  463. package/template/.codex/skills/component-selection-imports/SKILL.md +0 -64
  464. package/template/.codex/skills/page-form-module/SKILL.md +0 -168
  465. package/template/.codex/skills/page-list-module/SKILL.md +0 -137
  466. package/template/.codex/skills/page-skeleton/SKILL.md +0 -76
  467. package/template/.codex/skills/page-skeleton/examples/AdvancedFormPage/constant.ts +0 -34
  468. package/template/.codex/skills/page-skeleton/examples/AdvancedFormPage/hooks/useRuleConfig.ts +0 -75
  469. package/template/.codex/skills/page-skeleton/examples/AdvancedFormPage/index.vue +0 -107
  470. package/template/.codex/skills/page-skeleton/examples/AdvancedFormPage/schemas/ruleConfigSchema.ts +0 -256
  471. package/template/.codex/skills/page-skeleton/examples/AdvancedFormPage/style.less +0 -30
  472. package/template/.codex/skills/page-skeleton/examples/StandardListPage/constant.ts +0 -28
  473. package/template/.codex/skills/page-skeleton/examples/StandardListPage/hooks/useQualityRuleList.ts +0 -58
  474. package/template/.codex/skills/page-skeleton/examples/StandardListPage/hooks/useRuleActions.ts +0 -65
  475. package/template/.codex/skills/page-skeleton/examples/StandardListPage/index.vue +0 -91
  476. package/template/.codex/skills/page-skeleton/examples/StandardListPage/style.less +0 -49
  477. package/template/.codex/skills/vue3-best-practices/SKILL.md +0 -68
  478. package/template/.codex/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-parent/agents/openai.yaml +0 -5
  479. package/template/.codex/skills/yss-mvc-data-analysis-project-initializer/SKILL.md +0 -22
  480. package/template/.codex/skills/yss-mvc-data-analysis-project-initializer/scripts/generate_project.mjs +0 -77
  481. package/template/.codex/skills/yss-mvc-data-analysis-project-initializer/scripts/run_scaffold_verification.mjs +0 -9
  482. package/template/.codex/skills/yss-mvc-design/SKILL.md +0 -16
  483. package/template/.codex/skills/yss-mvc-design/agents/openai.yaml +0 -4
  484. package/template/.codex/skills/yss-use-table-height/SKILL.md +0 -130
  485. package/template/.codex/skills/yss-use-table-height/agents/openai.yaml +0 -5
  486. package/template/.codex/skills/yss-use-table-height/references/frontend-docs.md +0 -9
  487. package/template/.codex/skills/yss-use-tree-height/SKILL.md +0 -98
  488. package/template/.codex/skills/yss-use-tree-height/agents/openai.yaml +0 -5
  489. package/template/.codex/skills/yss-use-tree-height/references/frontend-docs.md +0 -9
  490. package/template/.cursor/skills/component-selection-imports/SKILL.md +0 -64
  491. package/template/.cursor/skills/page-form-module/SKILL.md +0 -168
  492. package/template/.cursor/skills/page-list-module/SKILL.md +0 -137
  493. package/template/.cursor/skills/page-skeleton/SKILL.md +0 -76
  494. package/template/.cursor/skills/page-skeleton/examples/AdvancedFormPage/constant.ts +0 -34
  495. package/template/.cursor/skills/page-skeleton/examples/AdvancedFormPage/hooks/useRuleConfig.ts +0 -75
  496. package/template/.cursor/skills/page-skeleton/examples/AdvancedFormPage/index.vue +0 -107
  497. package/template/.cursor/skills/page-skeleton/examples/AdvancedFormPage/schemas/ruleConfigSchema.ts +0 -256
  498. package/template/.cursor/skills/page-skeleton/examples/AdvancedFormPage/style.less +0 -30
  499. package/template/.cursor/skills/page-skeleton/examples/StandardListPage/constant.ts +0 -28
  500. package/template/.cursor/skills/page-skeleton/examples/StandardListPage/hooks/useQualityRuleList.ts +0 -58
  501. package/template/.cursor/skills/page-skeleton/examples/StandardListPage/hooks/useRuleActions.ts +0 -65
  502. package/template/.cursor/skills/page-skeleton/examples/StandardListPage/index.vue +0 -91
  503. package/template/.cursor/skills/page-skeleton/examples/StandardListPage/style.less +0 -49
  504. package/template/.cursor/skills/vue3-best-practices/SKILL.md +0 -68
  505. package/template/.cursor/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-parent/agents/openai.yaml +0 -5
  506. package/template/.cursor/skills/yss-mvc-data-analysis-project-initializer/SKILL.md +0 -22
  507. package/template/.cursor/skills/yss-mvc-data-analysis-project-initializer/scripts/generate_project.mjs +0 -77
  508. package/template/.cursor/skills/yss-mvc-data-analysis-project-initializer/scripts/run_scaffold_verification.mjs +0 -9
  509. package/template/.cursor/skills/yss-mvc-design/SKILL.md +0 -16
  510. package/template/.cursor/skills/yss-mvc-design/agents/openai.yaml +0 -4
  511. package/template/.cursor/skills/yss-use-table-height/SKILL.md +0 -130
  512. package/template/.cursor/skills/yss-use-table-height/agents/openai.yaml +0 -5
  513. package/template/.cursor/skills/yss-use-table-height/references/frontend-docs.md +0 -9
  514. package/template/.cursor/skills/yss-use-tree-height/SKILL.md +0 -98
  515. package/template/.cursor/skills/yss-use-tree-height/agents/openai.yaml +0 -5
  516. package/template/.cursor/skills/yss-use-tree-height/references/frontend-docs.md +0 -9
  517. package/template/.pi/skills/component-selection-imports/SKILL.md +0 -64
  518. package/template/.pi/skills/page-form-module/SKILL.md +0 -168
  519. package/template/.pi/skills/page-list-module/SKILL.md +0 -137
  520. package/template/.pi/skills/page-skeleton/SKILL.md +0 -76
  521. package/template/.pi/skills/page-skeleton/examples/AdvancedFormPage/constant.ts +0 -34
  522. package/template/.pi/skills/page-skeleton/examples/AdvancedFormPage/hooks/useRuleConfig.ts +0 -75
  523. package/template/.pi/skills/page-skeleton/examples/AdvancedFormPage/index.vue +0 -107
  524. package/template/.pi/skills/page-skeleton/examples/AdvancedFormPage/schemas/ruleConfigSchema.ts +0 -256
  525. package/template/.pi/skills/page-skeleton/examples/AdvancedFormPage/style.less +0 -30
  526. package/template/.pi/skills/page-skeleton/examples/StandardListPage/constant.ts +0 -28
  527. package/template/.pi/skills/page-skeleton/examples/StandardListPage/hooks/useQualityRuleList.ts +0 -58
  528. package/template/.pi/skills/page-skeleton/examples/StandardListPage/hooks/useRuleActions.ts +0 -65
  529. package/template/.pi/skills/page-skeleton/examples/StandardListPage/index.vue +0 -91
  530. package/template/.pi/skills/page-skeleton/examples/StandardListPage/style.less +0 -49
  531. package/template/.pi/skills/vue3-best-practices/SKILL.md +0 -68
  532. package/template/.pi/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-parent/agents/openai.yaml +0 -5
  533. package/template/.pi/skills/yss-mvc-data-analysis-project-initializer/SKILL.md +0 -22
  534. package/template/.pi/skills/yss-mvc-data-analysis-project-initializer/scripts/generate_project.mjs +0 -77
  535. package/template/.pi/skills/yss-mvc-data-analysis-project-initializer/scripts/run_scaffold_verification.mjs +0 -9
  536. package/template/.pi/skills/yss-mvc-design/SKILL.md +0 -16
  537. package/template/.pi/skills/yss-mvc-design/agents/openai.yaml +0 -4
  538. package/template/.pi/skills/yss-use-table-height/SKILL.md +0 -130
  539. package/template/.pi/skills/yss-use-table-height/agents/openai.yaml +0 -5
  540. package/template/.pi/skills/yss-use-table-height/references/frontend-docs.md +0 -9
  541. package/template/.pi/skills/yss-use-tree-height/SKILL.md +0 -98
  542. package/template/.pi/skills/yss-use-tree-height/agents/openai.yaml +0 -5
  543. package/template/.pi/skills/yss-use-tree-height/references/frontend-docs.md +0 -9
  544. /package/template/.agents/skills/{yss-mvc-design → yss-technical-design}/references/mvc-design.schema.json +0 -0
  545. /package/template/.codex/skills/{yss-mvc-design → yss-technical-design}/references/mvc-design.schema.json +0 -0
  546. /package/template/.cursor/skills/{yss-mvc-design → yss-technical-design}/references/mvc-design.schema.json +0 -0
  547. /package/template/.pi/skills/{yss-mvc-design → yss-technical-design}/references/mvc-design.schema.json +0 -0
@@ -1,130 +0,0 @@
1
- ---
2
- name: yss-use-table-height
3
- description: "用 useTableHeight 修复 YTable、YEditTable 自适应高度、双滚动条及分页或工具栏偏移。"
4
- ---
5
-
6
- # useTableHeight 使用
7
-
8
- ## 触发条件
9
-
10
- - YTable/YEditTable 需要自适应滚动高度,或页面出现双滚动条、底部空白和容器撑开闪烁。
11
- - 表格内含分页、工具栏、添加按钮,或位于弹窗/抽屉/shrink-wrap 容器内。
12
-
13
- ## 不适用场景
14
-
15
- - 纯短表且页面不需要独立滚动区。
16
- - 当前布局组件已完整托管表格高度,且没有内部偏移需要扣减。
17
-
18
- ## 实施流程
19
-
20
- 1. MCP 可用时,先用 `get_component_docs` 精确查询 `useTableHeight`,需要示例时再调用 `get_demo`;不要仅凭 Skill 中的静态签名推断当前 API。
21
- 2. 精确查询无结果时,先用 `search_docs` 校正名称;仅在 MCP 不可用、调用失败或仍无结果时,回退读取最新 `llms-full.txt`。文档版本与当前依赖不一致时,再核对 Hook 源码、CodeGraph 和真实导出。
22
- 3. 先确认容器是稳定 flex 区域还是被表格内容撑开的 shrink-wrap 区域。
23
- 4. 盘点表格内部实际开启的分页、工具栏、YEditTable 添加按钮和额外 padding。
24
- 5. 把受约束的容器 `ref` 传给 Hook,将 `tableHeight` 绑定到表格 `height`。
25
- 6. 在弹窗/抽屉动画结束或布局切换后视情况调用 `recalculateHeight()` 验证最终高度。
26
-
27
- ## 硬约束(禁止/必须)
28
-
29
- - 使用真实签名 `useTableHeight(tableAreaRef, options)` 和真实返回值 `tableHeight/isReady/recalculateHeight`。
30
- - `tableAreaRef` 支持原生 DOM 或 Vue 组件实例(如 `YCard`)。绑定 DOM 时使用表格的直接父容器;绑定 Card 时 Hook 会尝试获取 `.ant-card-body`。
31
- - 稳定布局使用“外层可计算高度 + flex column,表格区 `flex: 1; min-height: 0; overflow: hidden`”。禁止用大常量高度替代 Hook。
32
- - YTable 开启 `pageable` 时设置 `withPagination: true`;开启 `toolbarConfig.custom` 或工具栏插槽时设置 `withToolbar: true`;YEditTable 显示 `addable` 按钮时设置 `withAddButton: true`。
33
- - 默认偏移常量分别是分页 48px、工具栏 48px、添加按钮 40px;只在实际样式不同时使用 `paginationHeight/toolbarHeight/addButtonHeight` 覆盖。
34
- - 把结果绑定到 `YTable/YEditTable` 的 `:height="tableHeight"`,不只设置 `max-height`。
35
- - 直属容器由表格内容撑开时,不要观察该容器形成“子元素改变父高度、父高度又改变子元素”循环;传入更外层稳定容器 `boundaryRef`,并用 `extraOffset` 扣除边界内其他区域。
36
- - Hook 已用 `ResizeObserver` 监听容器尺寸。不强制为每个弹窗/抽屉写 watch;只在动画或隐藏初始化导致高度不准时,于可见后 `nextTick(recalculateHeight)`。
37
-
38
- ## 标准代码骨架
39
-
40
- ```vue
41
- <script setup lang="ts">
42
- import { ref } from 'vue';
43
- import { YTable, type YTableColumn } from '@yss-ui/components';
44
- import { useTableHeight } from '@yss-ui/hooks';
45
-
46
- const tableAreaRef = ref<HTMLDivElement>();
47
- const dataList = ref<Array<{ id: string; name: string }>>([]);
48
- const columns: YTableColumn[] = [
49
- { type: 'seq', title: '序号', width: 70 },
50
- { field: 'name', title: '名称', minWidth: 180 },
51
- ];
52
- const { tableHeight, isReady, recalculateHeight } = useTableHeight(tableAreaRef, {
53
- withPagination: true,
54
- withToolbar: true,
55
- });
56
- </script>
57
-
58
- <template>
59
- <div class="page">
60
- <div ref="tableAreaRef" class="table-area">
61
- <YTable
62
- v-if="isReady"
63
- :height="tableHeight"
64
- :data="dataList"
65
- :columns="columns"
66
- :toolbar-config="{ custom: true }"
67
- pageable
68
- />
69
- </div>
70
- </div>
71
- </template>
72
-
73
- <style scoped lang="less">
74
- @import './style.less';
75
- </style>
76
- ```
77
-
78
- ```less
79
- /* style.less */
80
- .page {
81
- height: 100%;
82
- display: flex;
83
- flex-direction: column;
84
- }
85
-
86
- .table-area {
87
- flex: 1;
88
- min-height: 0;
89
- overflow: hidden;
90
- }
91
- ```
92
-
93
- ## shrink-wrap 容器
94
-
95
- ```typescript
96
- const tableAreaRef = ref<HTMLDivElement>();
97
- const boundaryRef = ref<HTMLDivElement>();
98
-
99
- const { tableHeight } = useTableHeight(tableAreaRef, {
100
- boundaryRef,
101
- });
102
- ```
103
-
104
- `extraOffset` 必须来自可说明的实际布局占位;如果区域高度会变,优先改成稳定 flex 布局,不固定一个近似大数。
105
-
106
- ## 弹层可见后补算
107
-
108
- ```typescript
109
- import { nextTick } from 'vue';
110
-
111
- /** 弹层完全展开后重算表格高度。 */
112
- const handleAfterOpenChange = async (open: boolean) => {
113
- if (!open) return;
114
- await nextTick();
115
- recalculateHeight();
116
- };
117
- ```
118
-
119
- ## 交付检查清单
120
-
121
- - [ ] 观察容器具有稳定高度,需要时已使用 `boundaryRef`。
122
- - [ ] 分页、工具栏、添加按钮的偏移与实际开关一致,未重复扣减。
123
- - [ ] 表格绑定 `height`,容器有 `min-height: 0`,无双滚动条和底部大空白。
124
- - [ ] 只在实际出现隐藏态/动画时机问题时手动调用 `recalculateHeight()`。
125
-
126
- ## 失败兜底策略
127
-
128
- - 高度持续闪烁时,检查被观察容器是否由表格内容撑开;是则使用稳定 `boundaryRef` 或改为 flex 布局。
129
- - 底部空白或内容被遮挡时,逐项核对 `withPagination/withToolbar/withAddButton` 与实际开关,不反复调大 `extraOffset`。
130
- - 弹层首次打开高度不准时,在可见或动画结束后 `nextTick(recalculateHeight)`;正常 ResizeObserver 已生效时不增加重复 watch。
@@ -1,5 +0,0 @@
1
- version: 1
2
- interface:
3
- display_name: "YSS Table Height"
4
- short_description: "YTable 自适应高度计算、分页偏移与布局处理规范"
5
- default_prompt: "Use $yss-use-table-height to wire a responsive table height calculation for a YSS page."
@@ -1,9 +0,0 @@
1
- # yss-use-table-height Frontend Documentation
2
-
3
- Generated: 2026-08-17T12:03:37.436Z
4
-
5
- Use these YSS UI documentation entry points as authoritative references when local repo examples are insufficient.
6
-
7
- - hooks: http://192.168.164.27:3200/hooks
8
-
9
- When documentation and local code differ, inspect the current project code before editing and prefer established local usage.
@@ -1,98 +0,0 @@
1
- ---
2
- name: yss-use-tree-height
3
- description: "用 useTreeHeight 实现 YTree 独立滚动,修复搜索区、Tab 或抽屉切换后的高度。"
4
- ---
5
-
6
- # useTreeHeight 使用
7
-
8
- ## 触发条件
9
-
10
- - YTree 或左树右表需要独立滚动区和自适应高度。
11
- - 树区域含内置搜索,或在 Tab/抽屉/折叠面板切换后高度不正确。
12
-
13
- ## 不适用场景
14
-
15
- - 树节点很少、无需独立滚动,且父级布局已托管高度。
16
- - 主要问题是树节点与右侧数据联动,而非布局高度。
17
-
18
- ## 文档检索
19
-
20
- 1. MCP 可用时,先用 `get_component_docs` 精确查询 `useTreeHeight`,需要示例时再调用 `get_demo`;不要仅凭 Skill 中的静态签名推断当前 API。
21
- 2. 精确查询无结果时,先用 `search_docs` 校正名称;仅在 MCP 不可用、调用失败或仍无结果时,回退读取最新 `llms-full.txt`。文档版本与当前依赖不一致时,再核对 Hook 源码、CodeGraph 和真实导出。
22
-
23
- ## 硬约束(禁止/必须)
24
-
25
- - 把树区域的直接父容器 `ref` 传给 `useTreeHeight(treeAreaRef, options)`,并使用真实返回值 `treeHeight/recalculateHeight`。
26
- - 最外层必须有可计算高度;树区域使用 `flex: 1; min-height: 0; overflow: hidden;`。
27
- - 计算结果绑定到 `YTree` 的 `:height="treeHeight"`,不用固定魔法高度替代 Hook,也不为了触发虚拟滚动默认添加 `:virtual="true"`。
28
- - 使用 YTree 内置搜索时配置 `extraOffset: YTREE_SEARCH_HEIGHT`;搜索区已放在 `treeAreaRef` 外部时不再扣除。
29
- - `extraOffset` 只用于树区域内部实际占位的搜索、padding 或边框,禁止无依据叠加 `+16` 等偏移。
30
- - Hook 仅在挂载时为当时存在的 `treeAreaRef` 建立 `ResizeObserver`。优先保持树区域外层容器挂载(如使用 `v-show`);Tab/抽屉可见后在 `nextTick` 调用 `recalculateHeight()`。
31
- - 隐藏态容器可能得到 `minHeight` 而不是真实可用高度;不把该值当成最终布局结果。
32
-
33
- ## 标准代码骨架
34
-
35
- ```vue
36
- <script setup lang="ts">
37
- import { ref } from 'vue';
38
- import { YTree } from '@yss-ui/components';
39
- import { useTreeHeight, YTREE_SEARCH_HEIGHT } from '@yss-ui/hooks';
40
-
41
- const treeAreaRef = ref<HTMLDivElement>();
42
- const treeData = ref([]);
43
- const { treeHeight, recalculateHeight } = useTreeHeight(treeAreaRef, {
44
- extraOffset: YTREE_SEARCH_HEIGHT,
45
- });
46
- </script>
47
-
48
- <template>
49
- <div ref="treeAreaRef" class="tree-area">
50
- <YTree :height="treeHeight" :tree-data="treeData" filterable />
51
- </div>
52
- </template>
53
-
54
- <style scoped lang="less">
55
- @import './style.less';
56
- </style>
57
- ```
58
-
59
- ```less
60
- /* style.less */
61
- .tree-layout {
62
- height: 100%;
63
- display: flex;
64
- flex-direction: column;
65
- }
66
-
67
- .tree-area {
68
- flex: 1;
69
- min-height: 0;
70
- overflow: hidden;
71
- }
72
- ```
73
-
74
- ## 容器切换时机
75
-
76
- ```typescript
77
- import { nextTick } from 'vue';
78
-
79
- /** 容器显示后补充一次高度计算。 */
80
- const handleVisibleChange = async (visible: boolean) => {
81
- if (!visible) return;
82
- await nextTick();
83
- recalculateHeight();
84
- };
85
- ```
86
-
87
- ## 交付检查清单
88
-
89
- - [ ] `treeAreaRef` 在 Hook 挂载时可用,父级高度可计算。
90
- - [ ] 内置搜索开关与 `YTREE_SEARCH_HEIGHT` 偏移一致,没有重复扣减。
91
- - [ ] Tab/抽屉切换后使用真实的 `recalculateHeight()` 重算。
92
- - [ ] 节点较少时未裁剪 DOM 被识别为正常虚拟滚动阈值行为。
93
-
94
- ## 失败兜底策略
95
-
96
- - 树高度显示为 `minHeight` 且与容器不符时,检查是否在隐藏态完成首次计算,并在可见后重算。
97
- - `treeAreaRef` 由 `v-if` 延迟创建且尺寸不再自动更新时,保持外层容器挂载后重新初始化 Hook,或使用 `v-show + recalculateHeight()`。
98
- - 节点较少未触发 DOM 裁剪时,核对虚拟滚动阈值,不加 `virtual=true` 伪装修复。
@@ -1,5 +0,0 @@
1
- version: 1
2
- interface:
3
- display_name: "YSS Tree Height"
4
- short_description: "YTree 自适应高度计算、搜索偏移与布局处理规范"
5
- default_prompt: "Use $yss-use-tree-height to wire a responsive tree height calculation for a YSS page."
@@ -1,9 +0,0 @@
1
- # yss-use-tree-height Frontend Documentation
2
-
3
- Generated: 2026-08-17T12:03:37.436Z
4
-
5
- Use these YSS UI documentation entry points as authoritative references when local repo examples are insufficient.
6
-
7
- - hooks: http://192.168.164.27:3200/hooks
8
-
9
- When documentation and local code differ, inspect the current project code before editing and prefer established local usage.
@@ -1,64 +0,0 @@
1
- ---
2
- name: component-selection-imports
3
- description: 指导 YSS UI 业务页面、CRUD、列表页、表单页和组件评审在编码前判定组件、Hook 与工具函数的真实导出来源;当需要在 @yss-ui/components、@yss-ui/hooks、@yss-ui/utils 与 ant-design-vue 之间选择,或需要排查虚构 Y 前缀组件、错误导入、Formily UI 边界时使用。
4
- ---
5
-
6
- # 组件选择与导入
7
-
8
- ## 触发条件
9
-
10
- - 生成 YSS UI 业务页面前需要判定组件、Hook 或工具函数来源。
11
- - 出现错误 Y 前缀、导入冲突、Formily UI 跨层或者组件是否已封装不明确。
12
-
13
- ## 不适用场景
14
-
15
- - 只修改与 UI 导入无关的纯数据逻辑。
16
- - 组件库内部组件开发;该场景应按组件开发规范处理内部依赖。
17
-
18
- ## 判定流程
19
-
20
- 1. 当前会话可用 yss-ui MCP 时,先用 `list_components` 确认组件、Hook 或 Utils 是否真实存在,再用 `get_component_docs` 确认名称、导出包、Props、Events 和 Slots,不只看 demo 标签名。
21
- 2. `get_component_docs` 未命中时,先用 `search_docs` 和 `list_components` 校正别名与归属,不得立即判定为未封装。
22
- 3. MCP 工具不可用、调用失败或校正后仍无结果时,读取当前上下文或文档站的最新 `llms-full.txt`。
23
- 4. 必要时读取 `../yss-ui-business-page-generation/references/component-map.md`、`hooks-map.md`、`utils-map.md` 快速缩小范围;文档与当前项目依赖版本不一致时,最终以当前源码和可编译导出为准。
24
- 5. 已导出的 YSS 能力优先从 `@yss-ui/components`、`@yss-ui/hooks`、`@yss-ui/utils` 导入;确认未封装后才从 `ant-design-vue` 导入原组件。
25
- 6. 若文档与导出源码不一致,记录差异并按当前仓库可编译的导出处理,不猜测 API。
26
-
27
- ## 硬约束(禁止/必须)
28
-
29
- - 业务层已封装组件必须从 `@yss-ui/components` 导入;可编辑表格必须优先使用 `YEditTable`,业务主表格必须优先使用 `YTable`。
30
- - 当前公共导出包含 `YButton`、`YCard`、`YTable`、`YEditTable`、`YTree`、`YSplitPane`、`YFormily` 等;未导出 `YModal`、`YDrawer`、`YInput`、`YPopconfirm`,禁止臆造这些名称。
31
- - 当前未封装的 `Modal`、`Drawer`、`Popconfirm`、`Input` 等从 `ant-design-vue` 导入。删除操作使用按钮附近的 `Popconfirm`,不默认使用居中 `Modal.confirm`。
32
- - 业务层禁止导入 `@formily/antdv` 或 `@formily/antd*` UI 组件;使用 `YFormily` 提供的 Schema 与组件边界。
33
- - 禁止因文档暂时不可达就把猜测的 `Y*` 组件改成 Ant Design Vue “先落地”。只能复用当前仓库已证明可用的导入,或明确报告待确认项。
34
- - 接口错误提示由 `mutator.ts` 的响应拦截器统一处理。API Hook 不得在 `success === false` 分支或 `catch` 内重复调用 `message.error`;`message` 只用于非 API 错误的本地交互反馈或成功提示。
35
-
36
- ## 标准代码骨架
37
-
38
- ```typescript
39
- import {
40
- YButton,
41
- YCard,
42
- YEditTable,
43
- YTable,
44
- YTree,
45
- YFormily,
46
- type YEditTableColumn,
47
- type YTableColumn,
48
- } from '@yss-ui/components';
49
- import { useLoading, useTableHeight, useTreeHeight } from '@yss-ui/hooks';
50
- import { copyToClipboard, formatDate } from '@yss-ui/utils';
51
- import { Drawer, Input, Modal, Popconfirm } from 'ant-design-vue';
52
- ```
53
-
54
- ## 交付检查清单
55
-
56
- - [ ] 每个关键导入都能在最新文档或包的 `src/index.ts` 中追溯。
57
- - [ ] 未导出的 Y 前缀组件没有出现在业务代码中。
58
- - [ ] 删除、表格、编辑表格和 Formily 导入边界符合项目约束。
59
- - [ ] API Hook 中没有重复 `message.error`,异常仍由 `Promise.reject` 中断后续流程。
60
-
61
- ## 失败兜底策略
62
-
63
- - MCP 与 `llms-full.txt` 都不可用时,用 CodeGraph/源码 `src/index.ts` 和当前项目已编译的相近页面交叉确认,不猜测导出。
64
- - 文档与源码不一致时,优先保证当前仓库可编译,并在交付中明确标注文档差异。
@@ -1,168 +0,0 @@
1
- ---
2
- name: page-form-module
3
- description: "实现 YSS UI 新增、编辑、查看表单模块及弹窗闭环;排查回显丢失、重置、提交与列表刷新。"
4
- ---
5
-
6
- # Page Form Module Skill
7
-
8
- ## 触发条件
9
-
10
- - 实现新增、编辑、查看表单页,或 Drawer/Modal 中的表单闭环。
11
- - 需要处理 Schema、mode 0/1/2、回填、校验、提交和成功后列表刷新。
12
-
13
- ## 不适用场景
14
-
15
- - 页面只包含列表查询,不包含任何表单编辑。
16
- - 表单为分步流程:使用 `formily-step-flow`。
17
- - 仅修复单个联动表达式:使用 `formily-linkage-effects`。
18
-
19
- ## 必读依赖
20
-
21
- - 表单基础:`../formily-foundation/SKILL.md`
22
- - 联动副作用:`../formily-linkage-effects/SKILL.md`
23
- - 模式与详情:`../formily-mode-slot-detail/SKILL.md`
24
- - 分步表单:`../formily-step-flow/SKILL.md`
25
- - 接口与错误处理:`../yss-api-integration/SKILL.md`
26
-
27
- ## 文档检索
28
-
29
- 1. MCP 可用时,先用 `get_component_docs` 查询 `YFormily` 的 `mode`、`detail-options`、实例提交与回填 API,再按场景用 `get_demo` 获取 `formily/modes`、`formily/group`、`formily/linkage` 或 `formily/steps` 示例。
30
- 2. 精确查询无结果时,先用 `search_docs` 或 `list_components` 校正名称;仅在 MCP 不可用、调用失败或校正后仍无结果时,回退读取最新 `llms-full.txt`。文档版本与当前依赖不一致时,再核对当前源码、CodeGraph 和真实导出。
31
- 3. 当前会话已经加载上述本地 Skill 时,不要再通过 MCP 重复查询同一 Skill;仅在依赖 Skill 缺失时使用 `list_skills`、`get_skill` 补齐规则。
32
-
33
- ## 硬约束(禁止/必须)
34
-
35
- - 提交前必须调用 `formRef.submit()` 或 `Submit.onSubmit` 进入完整校验链路。
36
- - `open/mode/currentId/formModel/submitting` 和回填、提交、关闭方法收敛在同一 Hook。
37
- - **数据前置同步原则(必守)**:表单数据必须在 `openCreate`/`openEdit` 触发前**同步赋好 `formModel.value`**;**严禁**在弹窗/抽屉组件内部通过 `watch(visible) + await nextTick() + initForm()` 异步回填数据(会导致首次编辑正常,切换新增再编辑时因时序差读取到残留空对象导致回显变空白的经典 Bug)。
38
- - **单一信任源**:使用 `v-model="formModel"` + `ref="formRef"` 调用 `submit()` 驱动;**严禁**在组件顶层写 `const form = createForm()` 与 `v-model`、`form.setValues`、`form.reset` 混用。
39
- - **禁止滥用动态 `:key`**:**严禁**在 `YFormily`/`YssFormily` 上使用 `:key="isEdit ? 'edit' : 'create'"` 等强制 Remount,应直接通过 `:mode` 或响应式数据驱动。
40
- - **弹窗生命周期隔离**:Modal/Drawer 必须配置 `:destroy-on-close="true"`,且内部 `YFormily` 必须使用 `v-if="open"` 随容器打开挂载、关闭销毁,避免宽度为 0 导致栅格退化,并彻底回收脏状态。
41
- - 新增/编辑/查看使用 `YFormily :mode="mode"`,`mode=2` 不渲染保存按钮。
42
- - Drawer 默认使用响应式宽度;基础表单设置 `FormLayout { labelWidth: 140, labelAlign: 'right' }`。
43
- - Drawer/Modal 中的 `FormGrid` 默认使用 `maxColumns: 2`、`minColumns: 1`、`minWidth: 320~360`;禁止 `minColumns: 2` 锁死两列。
44
- - 备注、说明和长文本通过 `x-decorator-props.gridSpan` 跨满整行。
45
- - 下拉选择器异步数据源必须使用 `enum` 或 `x-reactions` / `field.dataSource` 注入,严禁写入 `x-component-props.options`;基础字典下拉优先在弹窗打开前 `await` 拉取完成或在页面初始化提前拉取。
46
- - **表单校验规则规范**:必填文本字段声明 `whitespace: true`(如 `{ required: true, whitespace: true, message: '请输入xxx' }`);自定义长度与格式校验必须使用条件式函数,空值放行交由 `required` 报错,非空才校验具体规则,禁止多个自定义校验重复承担必填职责。YFormily 适配层虽会归一化反馈展示,但不能代替正确的 Schema 语义。
47
- - 长整型 ID 按字符串原样回填和提交,禁止 `Number()`/`parseInt()`;表单中的普通数值按生成 DTO 真实类型处理。
48
- - 禁止使用 `if (res?.success)` 包裹保存成功逻辑,也禁止在 `catch` 重复 `message.error`。
49
-
50
- ## 标准代码骨架
51
-
52
- ```typescript
53
- import { ref } from 'vue';
54
-
55
- /** 默认表单模型 */
56
- const createDefaultModel = () => ({
57
- name: '',
58
- code: '',
59
- description: '',
60
- });
61
-
62
- /** YFormily 业务侧仅需的实例方法。 */
63
- interface FormilyFormRef {
64
- submit: () => Promise<Record<string, unknown>>;
65
- }
66
-
67
- /** 管理表单的模式、可见性、数据模型与提交链路。 */
68
- export const useRuleForm = (onSuccess: () => void) => {
69
- const open = ref(false);
70
- const mode = ref<0 | 1 | 2>(0);
71
- const currentId = ref<string>();
72
- const formModel = ref(createDefaultModel());
73
- const submitting = ref(false);
74
- const formRef = ref<FormilyFormRef>();
75
-
76
- /** 打开新增:同步赋空值 */
77
- const openCreate = (): void => {
78
- mode.value = 0;
79
- currentId.value = undefined;
80
- formModel.value = createDefaultModel();
81
- open.value = true;
82
- };
83
-
84
- /** 打开编辑:同步赋目标行数据,前置完成回填 */
85
- const openEdit = (record: Record<string, any>): void => {
86
- mode.value = 1;
87
- currentId.value = record.id;
88
- formModel.value = {
89
- name: record.name ?? '',
90
- code: record.code ?? '',
91
- description: record.description ?? '',
92
- };
93
- open.value = true;
94
- };
95
-
96
- /** 关闭并清理 */
97
- const close = (): void => {
98
- open.value = false;
99
- formModel.value = createDefaultModel();
100
- };
101
-
102
- /** 校验并保存表单。 */
103
- const submit = async (): Promise<void> => {
104
- if (mode.value === 2 || submitting.value || !formRef.value) return;
105
-
106
- submitting.value = true;
107
- try {
108
- const values = await formRef.value.submit();
109
- await saveRule({ ...formModel.value, ...values, id: currentId.value });
110
- close();
111
- onSuccess();
112
- } catch {
113
- // Formily 校验反馈或 mutator 已展示错误,此处不重复 Toast。
114
- } finally {
115
- submitting.value = false;
116
- }
117
- };
118
-
119
- return { open, mode, currentId, formModel, submitting, formRef, openCreate, openEdit, close, submit };
120
- };
121
- ```
122
-
123
- `saveRule` 必须替换为当前 Orval 真实生成方法,不得照抄占位名。
124
-
125
- ```vue
126
- <YFormily
127
- v-if="open"
128
- ref="formRef"
129
- v-model="formModel"
130
- :schema="schema"
131
- :mode="mode"
132
- :detail-options="{ bordered: true, maxColumns: 2, minColumns: 1, minWidth: 320 }"
133
- />
134
- ```
135
-
136
- ```typescript
137
- /** Drawer 表单的基础布局 Schema。 */
138
- export const drawerFormLayout = {
139
- type: 'void',
140
- 'x-component': 'FormLayout',
141
- 'x-component-props': { layout: 'horizontal', labelWidth: 140, labelAlign: 'right' },
142
- properties: {
143
- grid: {
144
- type: 'void',
145
- 'x-component': 'FormGrid',
146
- 'x-component-props': { maxColumns: 2, minColumns: 1, minWidth: 340, columnGap: 24, rowGap: 16 },
147
- properties: {},
148
- },
149
- },
150
- };
151
- ```
152
-
153
- ## 交付检查清单
154
-
155
- - [ ] `mode=0/1/2` 语义、回填和查看态渲染正确。
156
- - [ ] 提交先校验,又防重入,loading 始终在 `finally` 恢复。
157
- - [ ] Drawer/Modal 内 `YFormily` 按可见性条件挂载与销毁。
158
- - [ ] label 宽度和右对齐一致,FormGrid 能从 2 列响应式收缩为 1 列。
159
- - [ ] 长字段已跨行,长整型 ID 未转 number。
160
- - [ ] 没有 `if (res?.success)` 和重复错误 Toast。
161
- - [ ] 成功后关闭表单并通知上层刷新。
162
- - [ ] 业务层未导入 `@formily/antdv` UI 组件。
163
-
164
- ## 失败兜底策略
165
-
166
- - 提交无响应时,先确认 `submit()` 是否实际调用并查看 Formily 校验反馈。
167
- - 编辑回填异常时,核对真实 DTO、字段路径与 Schema path,不在模板散落转换。
168
- - 表单过大时,拆分 Schema 生成函数、字典 Hook 和提交 Hook,保持 `index.vue` 不超过 150 行。
@@ -1,137 +0,0 @@
1
- ---
2
- name: page-list-module
3
- description: 指导实现 YSS UI 标准列表、远程分页、查询重置、YTable 工具栏、行操作、批量操作和左树右表模块;当页面需要查询、表格、分页或 CRUD 列表闭环时使用。
4
- ---
5
-
6
- # Page List Module Skill
7
-
8
- ## 触发条件
9
-
10
- - 实现查询、表格、分页、行操作或批量操作组合的业务列表。
11
- - 实现左树右表、远程分页、工具栏或列设置。
12
-
13
- ## 不适用场景
14
-
15
- - 仅实现表单提交,没有列表或分页。
16
- - 仅展示本地静态数据,不涉及业务查询与列表操作。
17
-
18
- ## 必读依赖
19
-
20
- - 组件选型:`../component-selection-imports/SKILL.md`
21
- - 表格 API:`../ytable-usage/SKILL.md`
22
- - 查询表单:`../yss-formily/SKILL.md`
23
- - 接口、错误链路和长整型:`../yss-api-integration/SKILL.md`
24
- - 左树右表高度:`../ytree-usage/SKILL.md`、`../yss-use-tree-height/SKILL.md`、`../yss-use-table-height/SKILL.md`
25
-
26
- ## 文档检索
27
-
28
- 1. MCP 可用时,按当前页面实际使用的能力调用 `get_component_docs` 查询 `YTable`、`YFormily`、`useTableHeight` 或 `useTreeHeight`,再用 `get_demo` 获取对应官方示例;不要只凭 Skill 内的静态片段推断 API。
29
- 2. 精确查询无结果时,先用 `search_docs` 或 `list_components` 校正名称;仅在 MCP 不可用、调用失败或校正后仍无结果时,回退读取最新 `llms-full.txt`。文档版本与当前依赖不一致时,再核对当前源码、CodeGraph 和真实导出。
30
- 3. 当前会话已经加载上述本地 Skill 时,不要再通过 MCP 重复查询同一 Skill;仅在依赖 Skill 缺失时使用 `list_skills`、`get_skill` 补齐规则。
31
-
32
- ## 硬约束(禁止/必须)
33
-
34
- - 列表请求必须收敛在 `useXxxList`,模板不直接请求。
35
- - 后端查询参数可用 `pageIndex/pageSize`;YTable 分页状态必须使用 `current/pageSize/total`。
36
- - 远程分页必须配置 `pageable`、`pagination.remote = true`、`v-model:pagination` 和 `@page-change`;事件参数固定为 `{ current, pageSize }`,禁止读取 `currentPage`。
37
- - 禁止臆造 `request`/`search-params` 等 Prop,也禁止把实例 `refresh()` 当成远程重新查询;该方法只调用 vxe `updateData()` 刷新当前表格数据,远程查询/重置/刷新必须调用业务 Hook。
38
- - 查询区使用纵向 `search-content`:`YFormily` 仅渲染字段,查询/重置按钮在外部 `.xxx__search-actions` 独占下一行并右对齐。
39
- - 新增、导入、批量操作等主操作直接放入 `#toolbar-right` 插槽即可自动渲染;**无需配置 `:toolbar-config="{ custom: true }"`**,避免无端展示列设置图标;**仅在业务明确需要列设置时才传入 `:toolbar-config="{ custom: true }"`**。
40
- - 删除等危险操作默认使用 `actionConfig.buttons[].isConfirm` 按钮项气泡确认,禁止默认使用居中 `Modal.confirm`。
41
- - 列定义、状态映射和筛选配置放入 `constant.ts`;超过 10 行的列不得内联在 `index.vue`。
42
- - 长整型 ID 保持字符串透传,禁止 `Number()`/`parseInt()` 等会丢失精度的转换;页码、状态值等普通 number 按真实生成类型使用。
43
- - 禁止使用 `if (res?.success)` 包裹成功逻辑,也禁止在 `else`/`catch` 重复调用 `message.error`;mutator 已对 `success === false` 提示并 reject。
44
-
45
- ## 标准代码骨架
46
-
47
- ```typescript
48
- import { reactive, ref } from 'vue';
49
-
50
- /** 管理规则列表数据、查询条件和远程分页。 */
51
- export const useRuleList = () => {
52
- const loading = ref(false);
53
- const dataList = ref<RuleItem[]>([]);
54
- const query = reactive<RuleQuery>({ pageIndex: 1, pageSize: 20, keyword: '' });
55
- const pagination = reactive({ current: 1, pageSize: 20, total: 0, remote: true });
56
-
57
- /** 请求规则列表;错误 Toast 由 mutator 处理。 */
58
- const fetchData = async (): Promise<void> => {
59
- loading.value = true;
60
- try {
61
- query.pageIndex = pagination.current;
62
- query.pageSize = pagination.pageSize;
63
- const res = await queryRuleList(query);
64
- dataList.value = res.data ?? [];
65
- pagination.total = res.totalCount ?? 0;
66
- } catch {
67
- dataList.value = [];
68
- pagination.total = 0;
69
- } finally {
70
- loading.value = false;
71
- }
72
- };
73
-
74
- /** 处理页码或每页数量变化。 */
75
- const handlePageChange = ({ current, pageSize }: { current: number; pageSize: number }): void => {
76
- pagination.current = current;
77
- pagination.pageSize = pageSize;
78
- void fetchData();
79
- };
80
-
81
- /** 从第一页执行查询。 */
82
- const handleSearch = (): void => {
83
- pagination.current = 1;
84
- void fetchData();
85
- };
86
-
87
- /** 重置查询条件并回到第一页。 */
88
- const handleReset = (): void => {
89
- Object.assign(query, { pageIndex: 1, pageSize: pagination.pageSize, keyword: '' });
90
- pagination.current = 1;
91
- void fetchData();
92
- };
93
-
94
- return { loading, dataList, query, pagination, fetchData, handlePageChange, handleSearch, handleReset };
95
- };
96
- ```
97
-
98
- `RuleItem`、`RuleQuery`、`queryRuleList` 必须替换为当前 Orval 生成类型和真实方法,禁止照抄占位名。
99
-
100
- ```vue
101
- <YTable
102
- v-if="isReady"
103
- ref="tableRef"
104
- v-model:selected-row-keys="selectedRowKeys"
105
- :row-config="{ keyField: 'id', useKey: true }"
106
- :data="dataList"
107
- :columns="TABLE_COLUMNS"
108
- :loading="loading"
109
- :height="tableHeight"
110
- pageable
111
- v-model:pagination="pagination"
112
- @page-change="handlePageChange"
113
- >
114
- <template #toolbar-right>
115
- <YButton :disabled="selectedRowKeys.length === 0" @click="handleBatchDelete">批量删除</YButton>
116
- <YButton type="primary" @click="openCreate">新增</YButton>
117
- </template>
118
- </YTable>
119
- ```
120
-
121
- ## 交付检查清单
122
-
123
- - [ ] 已确认真实 Orval 导出、查询 DTO 和响应字段。
124
- - [ ] 查询参数与 YTable 分页字段已映射,`page-change` 回调读取 `current/pageSize` 而非 `currentPage`。
125
- - [ ] 若包含批量操作,首列已配置 `type: 'checkbox'`,设置了 `:row-config="{ keyField: 'xxx', useKey: true }"`,批量按钮配置了 `:disabled="selectedRowKeys.length === 0"`,操作成功后已清空选中态。
126
- - [ ] 查询/重置会回到第一页,远程分页配置完整。
127
- - [ ] 主操作在 `#toolbar-right`,列设置已开启。
128
- - [ ] 删除使用气泡确认,操作按钮的 loading/close 在成功与失败后都会恢复。
129
- - [ ] 长整型 ID 未转 number,普通 number 仍符合真实类型。
130
- - [ ] 没有 `if (res?.success)` 和重复错误 Toast。
131
- - [ ] loading、空态和失败后数据状态可预期。
132
-
133
- ## 失败兜底策略
134
-
135
- - 分页字段混乱时,在 Hook 中分离 YTable 状态和后端参数,不直接把 `pageIndex/totalCount` 绑到组件。
136
- - 列表逻辑过大时,拆分 `useListData` 和 `useListActions`,不得回填到 `index.vue`。
137
- - 响应字段不稳定时,在 Hook API 边界做最小映射,禁止在模板散落兼容分支。