create-yss-spec 2.1.10 → 2.1.13

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 (1222) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  3. package/template/.agents/skills/ask-matt/SKILL.md +8 -2
  4. package/template/.agents/skills/code-review/SKILL.md +6 -4
  5. package/template/.agents/skills/high-fidelity-html-prototype/SKILL.md +2 -19
  6. package/template/.agents/skills/implement/SKILL.md +1 -1
  7. package/template/.agents/skills/llm-wiki/SKILL.md +60 -0
  8. package/template/.agents/skills/llm-wiki/assets/CLAUDE.md.template +26 -0
  9. package/template/.agents/skills/llm-wiki/assets/fixtures/broken-wiki/wiki/CLAUDE.md +3 -0
  10. package/template/.agents/skills/llm-wiki/assets/fixtures/broken-wiki/wiki/index.md +5 -0
  11. package/template/.agents/skills/llm-wiki/assets/fixtures/broken-wiki/wiki/log.md +1 -0
  12. package/template/.agents/skills/llm-wiki/assets/fixtures/broken-wiki/wiki//345/255/230/345/234/250/347/232/204/351/241/265.md +7 -0
  13. package/template/.agents/skills/llm-wiki/references/compile.md +126 -0
  14. package/template/.agents/skills/llm-wiki/references/discover.md +41 -0
  15. package/template/.agents/skills/llm-wiki/references/ingest.md +36 -0
  16. package/template/.agents/skills/llm-wiki/references/lint.md +54 -0
  17. package/template/.agents/skills/llm-wiki/references/query.md +21 -0
  18. package/template/.agents/skills/llm-wiki/references/schema.md +45 -0
  19. package/template/.agents/skills/llm-wiki/references/writing.md +35 -0
  20. package/template/.agents/skills/llm-wiki/scripts/advise.mjs +196 -0
  21. package/template/.agents/skills/llm-wiki/scripts/advise.test.mjs +91 -0
  22. package/template/.agents/skills/llm-wiki/scripts/extract.mjs +55 -0
  23. package/template/.agents/skills/llm-wiki/scripts/extract.test.mjs +34 -0
  24. package/template/.agents/skills/llm-wiki/scripts/inventory.mjs +174 -0
  25. package/template/.agents/skills/llm-wiki/scripts/inventory.test.mjs +98 -0
  26. package/template/.agents/skills/llm-wiki/scripts/lint-wikilinks.mjs +177 -0
  27. package/template/.agents/skills/llm-wiki/scripts/lint-wikilinks.test.mjs +212 -0
  28. package/template/.agents/skills/to-spec/SKILL.md +1 -1
  29. package/template/.agents/skills/yss-antd-design/SKILL.md +34 -0
  30. package/template/.agents/skills/yss-antd-design/references/boundaries.md +30 -0
  31. package/template/.agents/skills/yss-antd-design/references/cli-matrix.md +38 -0
  32. package/template/.agents/skills/yss-antd-design/references/evidence.md +26 -0
  33. package/template/.agents/skills/yss-antd-design/scripts/validate-frontmatter.mjs +46 -0
  34. package/template/.agents/skills/yss-antd-design/scripts/validate-frontmatter.test.mjs +27 -0
  35. package/template/.agents/skills/yss-api-integration/SKILL.md +2 -0
  36. package/template/.agents/skills/yss-application/SKILL.md +52 -0
  37. package/template/.agents/skills/yss-application/agents/openai.yaml +5 -0
  38. package/template/{.claude/skills/yss-backend-scaffold-application/SKILL.md → .agents/skills/yss-application/references/application-layer-guide.md} +0 -7
  39. package/template/.agents/skills/yss-ddd-scaffold-generator/SKILL.md +1 -1
  40. package/template/.agents/skills/yss-ddd-scaffold-generator/references/ARCHITECTURE.md +4 -4
  41. package/template/.agents/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-application/SKILL.md +2 -2
  42. package/template/.agents/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-application/agents/openai.yaml +1 -1
  43. package/template/.agents/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-domain/SKILL.md +2 -2
  44. package/template/.agents/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-domain/agents/openai.yaml +1 -1
  45. package/template/.agents/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-infrastructure/SKILL.md +3 -3
  46. package/template/.agents/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-infrastructure/agents/openai.yaml +1 -1
  47. package/template/.agents/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-web/SKILL.md +4 -4
  48. package/template/.agents/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-web/agents/openai.yaml +1 -1
  49. package/template/.agents/skills/yss-design-system/SKILL.md +9 -5
  50. package/template/.agents/skills/yss-design-system/references/design-qa-theme.md +64 -0
  51. package/template/.agents/skills/yss-design-system/references/design-system.md +20 -12
  52. package/template/.agents/skills/yss-domain/SKILL.md +5 -0
  53. package/template/{.claude/skills/yss-backend-scaffold-domain/SKILL.md → .agents/skills/yss-domain/references/domain-layer-guide.md} +0 -7
  54. package/template/.agents/skills/yss-microapp-commit/SKILL.md +2 -0
  55. package/template/.agents/skills/yss-product-lifecycle/SKILL.md +1 -1
  56. package/template/.agents/skills/yss-product-lifecycle/references/orchestration-contract.yaml +2 -2
  57. package/template/.agents/skills/yss-prototype-stage/SKILL.md +4 -2
  58. package/template/.agents/skills/yss-repository/SKILL.md +5 -0
  59. package/template/{.codex/skills/yss-backend-scaffold-infrastructure/SKILL.md → .agents/skills/yss-repository/references/infrastructure-layer-guide.md} +0 -7
  60. package/template/.agents/skills/yss-router/references/boundaries.md +2 -6
  61. package/template/.agents/skills/yss-router/references/router-contract.yaml +8 -12
  62. package/template/.agents/skills/yss-source-index/references/source-map-config.md +0 -4
  63. package/template/.agents/skills/yss-source-index/scripts/refresh-yss-skill-index.mjs +1 -1
  64. package/template/.agents/skills/yss-ui/SKILL.md +1 -1
  65. package/template/.agents/skills/yss-web-controller/SKILL.md +1 -0
  66. package/template/.agents/skills/{yss-backend-scaffold-web/SKILL.md → yss-web-controller/references/web-adapter-layer-guide.md} +0 -7
  67. package/template/.claude/skills/ask-matt/SKILL.md +8 -2
  68. package/template/.claude/skills/code-review/SKILL.md +6 -4
  69. package/template/.claude/skills/high-fidelity-html-prototype/SKILL.md +2 -19
  70. package/template/.claude/skills/implement/SKILL.md +1 -1
  71. package/template/.claude/skills/llm-wiki/SKILL.md +60 -0
  72. package/template/.claude/skills/llm-wiki/assets/CLAUDE.md.template +26 -0
  73. package/template/.claude/skills/llm-wiki/assets/fixtures/broken-wiki/wiki/CLAUDE.md +3 -0
  74. package/template/.claude/skills/llm-wiki/assets/fixtures/broken-wiki/wiki/index.md +5 -0
  75. package/template/.claude/skills/llm-wiki/assets/fixtures/broken-wiki/wiki/log.md +1 -0
  76. package/template/.claude/skills/llm-wiki/assets/fixtures/broken-wiki/wiki//345/255/230/345/234/250/347/232/204/351/241/265.md +7 -0
  77. package/template/.claude/skills/llm-wiki/references/compile.md +126 -0
  78. package/template/.claude/skills/llm-wiki/references/discover.md +41 -0
  79. package/template/.claude/skills/llm-wiki/references/ingest.md +36 -0
  80. package/template/.claude/skills/llm-wiki/references/lint.md +54 -0
  81. package/template/.claude/skills/llm-wiki/references/query.md +21 -0
  82. package/template/.claude/skills/llm-wiki/references/schema.md +45 -0
  83. package/template/.claude/skills/llm-wiki/references/writing.md +35 -0
  84. package/template/.claude/skills/llm-wiki/scripts/advise.mjs +196 -0
  85. package/template/.claude/skills/llm-wiki/scripts/advise.test.mjs +91 -0
  86. package/template/.claude/skills/llm-wiki/scripts/extract.mjs +55 -0
  87. package/template/.claude/skills/llm-wiki/scripts/extract.test.mjs +34 -0
  88. package/template/.claude/skills/llm-wiki/scripts/inventory.mjs +174 -0
  89. package/template/.claude/skills/llm-wiki/scripts/inventory.test.mjs +98 -0
  90. package/template/.claude/skills/llm-wiki/scripts/lint-wikilinks.mjs +177 -0
  91. package/template/.claude/skills/llm-wiki/scripts/lint-wikilinks.test.mjs +212 -0
  92. package/template/.claude/skills/to-spec/SKILL.md +1 -1
  93. package/template/.claude/skills/yss-antd-design/SKILL.md +34 -0
  94. package/template/.claude/skills/yss-antd-design/references/boundaries.md +30 -0
  95. package/template/.claude/skills/yss-antd-design/references/cli-matrix.md +38 -0
  96. package/template/.claude/skills/yss-antd-design/references/evidence.md +26 -0
  97. package/template/.claude/skills/yss-antd-design/scripts/validate-frontmatter.mjs +46 -0
  98. package/template/.claude/skills/yss-antd-design/scripts/validate-frontmatter.test.mjs +27 -0
  99. package/template/.claude/skills/yss-api-integration/SKILL.md +2 -0
  100. package/template/.claude/skills/yss-application/SKILL.md +52 -0
  101. package/template/.claude/skills/yss-application/agents/openai.yaml +5 -0
  102. package/template/{.codex/skills/yss-backend-scaffold-application/SKILL.md → .claude/skills/yss-application/references/application-layer-guide.md} +0 -7
  103. package/template/.claude/skills/yss-ddd-scaffold-generator/SKILL.md +1 -1
  104. package/template/.claude/skills/yss-ddd-scaffold-generator/references/ARCHITECTURE.md +4 -4
  105. package/template/.claude/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-application/SKILL.md +2 -2
  106. package/template/.claude/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-application/agents/openai.yaml +1 -1
  107. package/template/.claude/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-domain/SKILL.md +2 -2
  108. package/template/.claude/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-domain/agents/openai.yaml +1 -1
  109. package/template/.claude/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-infrastructure/SKILL.md +3 -3
  110. package/template/.claude/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-infrastructure/agents/openai.yaml +1 -1
  111. package/template/.claude/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-web/SKILL.md +4 -4
  112. package/template/.claude/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-web/agents/openai.yaml +1 -1
  113. package/template/.claude/skills/yss-design-system/SKILL.md +9 -5
  114. package/template/.claude/skills/yss-design-system/references/design-qa-theme.md +64 -0
  115. package/template/.claude/skills/yss-design-system/references/design-system.md +20 -12
  116. package/template/.claude/skills/yss-domain/SKILL.md +5 -0
  117. package/template/{.agents/skills/yss-backend-scaffold-domain/SKILL.md → .claude/skills/yss-domain/references/domain-layer-guide.md} +0 -7
  118. package/template/.claude/skills/yss-microapp-commit/SKILL.md +2 -0
  119. package/template/.claude/skills/yss-product-lifecycle/SKILL.md +1 -1
  120. package/template/.claude/skills/yss-product-lifecycle/references/orchestration-contract.yaml +2 -2
  121. package/template/.claude/skills/yss-prototype-stage/SKILL.md +4 -2
  122. package/template/.claude/skills/yss-repository/SKILL.md +5 -0
  123. package/template/.claude/skills/{yss-backend-scaffold-infrastructure/SKILL.md → yss-repository/references/infrastructure-layer-guide.md} +0 -7
  124. package/template/.claude/skills/yss-router/references/boundaries.md +2 -6
  125. package/template/.claude/skills/yss-router/references/router-contract.yaml +8 -12
  126. package/template/.claude/skills/yss-source-index/references/source-map-config.md +0 -4
  127. package/template/.claude/skills/yss-source-index/scripts/refresh-yss-skill-index.mjs +1 -1
  128. package/template/.claude/skills/yss-ui/SKILL.md +1 -1
  129. package/template/.claude/skills/yss-web-controller/SKILL.md +1 -0
  130. package/template/{.codex/skills/yss-backend-scaffold-web/SKILL.md → .claude/skills/yss-web-controller/references/web-adapter-layer-guide.md} +0 -7
  131. package/template/.codex/skills/ask-matt/SKILL.md +8 -2
  132. package/template/.codex/skills/code-review/SKILL.md +6 -4
  133. package/template/.codex/skills/high-fidelity-html-prototype/SKILL.md +2 -19
  134. package/template/.codex/skills/implement/SKILL.md +1 -1
  135. package/template/.codex/skills/llm-wiki/SKILL.md +60 -0
  136. package/template/.codex/skills/llm-wiki/assets/CLAUDE.md.template +26 -0
  137. package/template/.codex/skills/llm-wiki/assets/fixtures/broken-wiki/wiki/CLAUDE.md +3 -0
  138. package/template/.codex/skills/llm-wiki/assets/fixtures/broken-wiki/wiki/index.md +5 -0
  139. package/template/.codex/skills/llm-wiki/assets/fixtures/broken-wiki/wiki/log.md +1 -0
  140. package/template/.codex/skills/llm-wiki/assets/fixtures/broken-wiki/wiki//345/255/230/345/234/250/347/232/204/351/241/265.md +7 -0
  141. package/template/.codex/skills/llm-wiki/references/compile.md +126 -0
  142. package/template/.codex/skills/llm-wiki/references/discover.md +41 -0
  143. package/template/.codex/skills/llm-wiki/references/ingest.md +36 -0
  144. package/template/.codex/skills/llm-wiki/references/lint.md +54 -0
  145. package/template/.codex/skills/llm-wiki/references/query.md +21 -0
  146. package/template/.codex/skills/llm-wiki/references/schema.md +45 -0
  147. package/template/.codex/skills/llm-wiki/references/writing.md +35 -0
  148. package/template/.codex/skills/llm-wiki/scripts/advise.mjs +196 -0
  149. package/template/.codex/skills/llm-wiki/scripts/advise.test.mjs +91 -0
  150. package/template/.codex/skills/llm-wiki/scripts/extract.mjs +55 -0
  151. package/template/.codex/skills/llm-wiki/scripts/extract.test.mjs +34 -0
  152. package/template/.codex/skills/llm-wiki/scripts/inventory.mjs +174 -0
  153. package/template/.codex/skills/llm-wiki/scripts/inventory.test.mjs +98 -0
  154. package/template/.codex/skills/llm-wiki/scripts/lint-wikilinks.mjs +177 -0
  155. package/template/.codex/skills/llm-wiki/scripts/lint-wikilinks.test.mjs +212 -0
  156. package/template/.codex/skills/to-spec/SKILL.md +1 -1
  157. package/template/.codex/skills/yss-antd-design/SKILL.md +34 -0
  158. package/template/.codex/skills/yss-antd-design/references/boundaries.md +30 -0
  159. package/template/.codex/skills/yss-antd-design/references/cli-matrix.md +38 -0
  160. package/template/.codex/skills/yss-antd-design/references/evidence.md +26 -0
  161. package/template/.codex/skills/yss-antd-design/scripts/validate-frontmatter.mjs +46 -0
  162. package/template/.codex/skills/yss-antd-design/scripts/validate-frontmatter.test.mjs +27 -0
  163. package/template/.codex/skills/yss-api-integration/SKILL.md +2 -0
  164. package/template/.codex/skills/yss-application/SKILL.md +52 -0
  165. package/template/.codex/skills/yss-application/agents/openai.yaml +5 -0
  166. package/template/{.agents/skills/yss-backend-scaffold-application/SKILL.md → .codex/skills/yss-application/references/application-layer-guide.md} +0 -7
  167. package/template/.codex/skills/yss-ddd-scaffold-generator/SKILL.md +1 -1
  168. package/template/.codex/skills/yss-ddd-scaffold-generator/references/ARCHITECTURE.md +4 -4
  169. package/template/.codex/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-application/SKILL.md +2 -2
  170. package/template/.codex/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-application/agents/openai.yaml +1 -1
  171. package/template/.codex/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-domain/SKILL.md +2 -2
  172. package/template/.codex/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-domain/agents/openai.yaml +1 -1
  173. package/template/.codex/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-infrastructure/SKILL.md +3 -3
  174. package/template/.codex/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-infrastructure/agents/openai.yaml +1 -1
  175. package/template/.codex/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-web/SKILL.md +4 -4
  176. package/template/.codex/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-web/agents/openai.yaml +1 -1
  177. package/template/.codex/skills/yss-design-system/SKILL.md +9 -5
  178. package/template/.codex/skills/yss-design-system/references/design-qa-theme.md +64 -0
  179. package/template/.codex/skills/yss-design-system/references/design-system.md +20 -12
  180. package/template/.codex/skills/yss-domain/SKILL.md +5 -0
  181. package/template/.codex/skills/{yss-backend-scaffold-domain/SKILL.md → yss-domain/references/domain-layer-guide.md} +0 -7
  182. package/template/.codex/skills/yss-microapp-commit/SKILL.md +2 -0
  183. package/template/.codex/skills/yss-product-lifecycle/SKILL.md +1 -1
  184. package/template/.codex/skills/yss-product-lifecycle/references/orchestration-contract.yaml +2 -2
  185. package/template/.codex/skills/yss-prototype-stage/SKILL.md +4 -2
  186. package/template/.codex/skills/yss-repository/SKILL.md +5 -0
  187. package/template/{.hermes/skills/yss-backend-scaffold-infrastructure/SKILL.md → .codex/skills/yss-repository/references/infrastructure-layer-guide.md} +0 -7
  188. package/template/.codex/skills/yss-router/references/boundaries.md +2 -6
  189. package/template/.codex/skills/yss-router/references/router-contract.yaml +8 -12
  190. package/template/.codex/skills/yss-source-index/references/source-map-config.md +0 -4
  191. package/template/.codex/skills/yss-source-index/scripts/refresh-yss-skill-index.mjs +1 -1
  192. package/template/.codex/skills/yss-ui/SKILL.md +1 -1
  193. package/template/.codex/skills/yss-web-controller/SKILL.md +1 -0
  194. package/template/{.hermes/skills/yss-backend-scaffold-web/SKILL.md → .codex/skills/yss-web-controller/references/web-adapter-layer-guide.md} +0 -7
  195. package/template/.cursor/environment.json +5 -0
  196. package/template/.cursor/skills/alibaba-java-code-style/SKILL.md +51 -0
  197. package/template/.cursor/skills/alibaba-java-code-style/agents/openai.yaml +4 -0
  198. package/template/.cursor/skills/alibaba-java-code-style/references/database-engineering-design.md +147 -0
  199. package/template/.cursor/skills/alibaba-java-code-style/references/java-programming.md +178 -0
  200. package/template/.cursor/skills/alibaba-java-code-style/references/reliability-test-security.md +89 -0
  201. package/template/.cursor/skills/ask-matt/PHASE-BOUNDARIES.md +55 -0
  202. package/template/.cursor/skills/ask-matt/SKILL.md +95 -0
  203. package/template/.cursor/skills/ask-matt/agents/openai.yaml +5 -0
  204. package/template/.cursor/skills/code-review/SKILL.md +117 -0
  205. package/template/.cursor/skills/code-review/agents/openai.yaml +3 -0
  206. package/template/.cursor/skills/codebase-design/DEEPENING.md +37 -0
  207. package/template/.cursor/skills/codebase-design/DESIGN-IT-TWICE.md +44 -0
  208. package/template/.cursor/skills/codebase-design/SKILL.md +114 -0
  209. package/template/.cursor/skills/codebase-design/agents/openai.yaml +3 -0
  210. package/template/.cursor/skills/competitive-intelligence/SKILL.md +94 -0
  211. package/template/.cursor/skills/cross-repo-implementation-routing/SKILL.md +51 -0
  212. package/template/.cursor/skills/diagnosing-bugs/SKILL.md +138 -0
  213. package/template/.cursor/skills/diagnosing-bugs/agents/openai.yaml +3 -0
  214. package/template/.cursor/skills/diagnosing-bugs/scripts/hitl-loop.template.sh +44 -0
  215. package/template/.cursor/skills/dispatching-parallel-agents/SKILL.md +185 -0
  216. package/template/.cursor/skills/domain-modeling/ADR-FORMAT.md +47 -0
  217. package/template/.cursor/skills/domain-modeling/CONTEXT-FORMAT.md +60 -0
  218. package/template/.cursor/skills/domain-modeling/SKILL.md +74 -0
  219. package/template/.cursor/skills/domain-modeling/agents/openai.yaml +3 -0
  220. package/template/.cursor/skills/grill-me/SKILL.md +7 -0
  221. package/template/.cursor/skills/grill-me/agents/openai.yaml +5 -0
  222. package/template/.cursor/skills/grill-with-docs/SKILL.md +19 -0
  223. package/template/.cursor/skills/grill-with-docs/agents/openai.yaml +5 -0
  224. package/template/.cursor/skills/grilling/SKILL.md +28 -0
  225. package/template/.cursor/skills/grilling/agents/openai.yaml +3 -0
  226. package/template/.cursor/skills/handoff/SKILL.md +16 -0
  227. package/template/.cursor/skills/handoff/agents/openai.yaml +5 -0
  228. package/template/.cursor/skills/high-fidelity-html-prototype/SKILL.md +89 -0
  229. package/template/.cursor/skills/high-fidelity-html-prototype/agents/openai.yaml +5 -0
  230. package/template/.cursor/skills/implement/SKILL.md +15 -0
  231. package/template/.cursor/skills/implement/agents/openai.yaml +5 -0
  232. package/template/.cursor/skills/implementation-repo-onboarding/SKILL.md +50 -0
  233. package/template/.cursor/skills/improve-codebase-architecture/HTML-REPORT.md +123 -0
  234. package/template/.cursor/skills/improve-codebase-architecture/SKILL.md +71 -0
  235. package/template/.cursor/skills/improve-codebase-architecture/agents/openai.yaml +5 -0
  236. package/template/.cursor/skills/llm-wiki/SKILL.md +60 -0
  237. package/template/.cursor/skills/llm-wiki/assets/CLAUDE.md.template +26 -0
  238. package/template/.cursor/skills/llm-wiki/assets/fixtures/broken-wiki/wiki/CLAUDE.md +3 -0
  239. package/template/.cursor/skills/llm-wiki/assets/fixtures/broken-wiki/wiki/index.md +5 -0
  240. package/template/.cursor/skills/llm-wiki/assets/fixtures/broken-wiki/wiki/log.md +1 -0
  241. package/template/.cursor/skills/llm-wiki/assets/fixtures/broken-wiki/wiki//345/255/230/345/234/250/347/232/204/351/241/265.md +7 -0
  242. package/template/.cursor/skills/llm-wiki/references/compile.md +126 -0
  243. package/template/.cursor/skills/llm-wiki/references/discover.md +41 -0
  244. package/template/.cursor/skills/llm-wiki/references/ingest.md +36 -0
  245. package/template/.cursor/skills/llm-wiki/references/lint.md +54 -0
  246. package/template/.cursor/skills/llm-wiki/references/query.md +21 -0
  247. package/template/.cursor/skills/llm-wiki/references/schema.md +45 -0
  248. package/template/.cursor/skills/llm-wiki/references/writing.md +35 -0
  249. package/template/.cursor/skills/llm-wiki/scripts/advise.mjs +196 -0
  250. package/template/.cursor/skills/llm-wiki/scripts/advise.test.mjs +91 -0
  251. package/template/.cursor/skills/llm-wiki/scripts/extract.mjs +55 -0
  252. package/template/.cursor/skills/llm-wiki/scripts/extract.test.mjs +34 -0
  253. package/template/.cursor/skills/llm-wiki/scripts/inventory.mjs +174 -0
  254. package/template/.cursor/skills/llm-wiki/scripts/inventory.test.mjs +98 -0
  255. package/template/.cursor/skills/llm-wiki/scripts/lint-wikilinks.mjs +177 -0
  256. package/template/.cursor/skills/llm-wiki/scripts/lint-wikilinks.test.mjs +212 -0
  257. package/template/.cursor/skills/lombok/SKILL.md +351 -0
  258. package/template/.cursor/skills/loop-me/SKILL.md +32 -0
  259. package/template/.cursor/skills/loop-me/agents/openai.yaml +5 -0
  260. package/template/.cursor/skills/maintaining-skills/SKILL.md +25 -0
  261. package/template/.cursor/skills/mapstruct/SKILL.md +334 -0
  262. package/template/.cursor/skills/migrate-to-shoehorn/SKILL.md +118 -0
  263. package/template/.cursor/skills/migrate-to-shoehorn/agents/openai.yaml +3 -0
  264. package/template/.cursor/skills/prototype/LOGIC.md +67 -0
  265. package/template/.cursor/skills/prototype/SKILL.md +26 -0
  266. package/template/.cursor/skills/prototype/UI.md +112 -0
  267. package/template/.cursor/skills/prototype/agents/openai.yaml +3 -0
  268. package/template/.cursor/skills/prototype-review/SKILL.md +74 -0
  269. package/template/.cursor/skills/prototype-review/agents/openai.yaml +4 -0
  270. package/template/.cursor/skills/research/SKILL.md +12 -0
  271. package/template/.cursor/skills/research/agents/openai.yaml +3 -0
  272. package/template/.cursor/skills/resolving-merge-conflicts/SKILL.md +14 -0
  273. package/template/.cursor/skills/resolving-merge-conflicts/agents/openai.yaml +3 -0
  274. package/template/.cursor/skills/scaffold-exercises/SKILL.md +106 -0
  275. package/template/.cursor/skills/scaffold-exercises/agents/openai.yaml +3 -0
  276. package/template/.cursor/skills/setup-matt-pocock-skills/SKILL.md +125 -0
  277. package/template/.cursor/skills/setup-matt-pocock-skills/agents/openai.yaml +5 -0
  278. package/template/.cursor/skills/setup-matt-pocock-skills/domain.md +51 -0
  279. package/template/.cursor/skills/setup-matt-pocock-skills/issue-tracker-github.md +45 -0
  280. package/template/.cursor/skills/setup-matt-pocock-skills/issue-tracker-gitlab.md +46 -0
  281. package/template/.cursor/skills/setup-matt-pocock-skills/issue-tracker-local.md +66 -0
  282. package/template/.cursor/skills/setup-matt-pocock-skills/triage-labels.md +15 -0
  283. package/template/.cursor/skills/setup-pre-commit/SKILL.md +91 -0
  284. package/template/.cursor/skills/setup-pre-commit/agents/openai.yaml +3 -0
  285. package/template/.cursor/skills/setup-ts-deep-modules/SKILL.md +102 -0
  286. package/template/.cursor/skills/setup-ts-deep-modules/agents/openai.yaml +5 -0
  287. package/template/.cursor/skills/setup-ts-deep-modules/dependency-cruiser.config.cjs +95 -0
  288. package/template/.cursor/skills/tdd/SKILL.md +38 -0
  289. package/template/.cursor/skills/tdd/agents/openai.yaml +3 -0
  290. package/template/.cursor/skills/tdd/mocking.md +59 -0
  291. package/template/.cursor/skills/tdd/tests.md +77 -0
  292. package/template/.cursor/skills/teach/GLOSSARY-FORMAT.md +35 -0
  293. package/template/.cursor/skills/teach/LEARNING-RECORD-FORMAT.md +46 -0
  294. package/template/.cursor/skills/teach/MISSION-FORMAT.md +31 -0
  295. package/template/.cursor/skills/teach/RESOURCES-FORMAT.md +32 -0
  296. package/template/.cursor/skills/teach/SKILL.md +140 -0
  297. package/template/.cursor/skills/teach/agents/openai.yaml +5 -0
  298. package/template/.cursor/skills/to-questionnaire/SKILL.md +53 -0
  299. package/template/.cursor/skills/to-questionnaire/agents/openai.yaml +5 -0
  300. package/template/.cursor/skills/to-spec/SKILL.md +75 -0
  301. package/template/.cursor/skills/to-spec/agents/openai.yaml +5 -0
  302. package/template/.cursor/skills/to-tickets/SKILL.md +105 -0
  303. package/template/.cursor/skills/to-tickets/agents/openai.yaml +5 -0
  304. package/template/.cursor/skills/triage/AGENT-BRIEF.md +207 -0
  305. package/template/.cursor/skills/triage/OUT-OF-SCOPE.md +105 -0
  306. package/template/.cursor/skills/triage/SKILL.md +112 -0
  307. package/template/.cursor/skills/triage/agents/openai.yaml +5 -0
  308. package/template/.cursor/skills/using-git-worktrees/SKILL.md +202 -0
  309. package/template/.cursor/skills/wait-what/SKILL.md +7 -0
  310. package/template/.cursor/skills/wait-what/agents/openai.yaml +5 -0
  311. package/template/.cursor/skills/wayfinder/SKILL.md +128 -0
  312. package/template/.cursor/skills/wayfinder/agents/openai.yaml +5 -0
  313. package/template/.cursor/skills/writing-beats/SKILL.md +67 -0
  314. package/template/.cursor/skills/writing-beats/agents/openai.yaml +5 -0
  315. package/template/.cursor/skills/writing-for-agents/SKILL-MECHANICS.md +22 -0
  316. package/template/.cursor/skills/writing-for-agents/SKILL.md +81 -0
  317. package/template/.cursor/skills/writing-for-agents/agents/openai.yaml +3 -0
  318. package/template/.cursor/skills/writing-fragments/SKILL.md +79 -0
  319. package/template/.cursor/skills/writing-fragments/agents/openai.yaml +5 -0
  320. package/template/.cursor/skills/writing-shape/SKILL.md +79 -0
  321. package/template/.cursor/skills/writing-shape/agents/openai.yaml +5 -0
  322. package/template/.cursor/skills/yss-antd-design/SKILL.md +34 -0
  323. package/template/.cursor/skills/yss-antd-design/references/boundaries.md +30 -0
  324. package/template/.cursor/skills/yss-antd-design/references/cli-matrix.md +38 -0
  325. package/template/.cursor/skills/yss-antd-design/references/evidence.md +26 -0
  326. package/template/.cursor/skills/yss-antd-design/scripts/validate-frontmatter.mjs +46 -0
  327. package/template/.cursor/skills/yss-antd-design/scripts/validate-frontmatter.test.mjs +27 -0
  328. package/template/.cursor/skills/yss-api-integration/SKILL.md +429 -0
  329. package/template/.cursor/skills/yss-api-integration/agents/openai.yaml +5 -0
  330. package/template/.cursor/skills/yss-application/SKILL.md +52 -0
  331. package/template/.cursor/skills/yss-application/agents/openai.yaml +5 -0
  332. package/template/{.hermes/skills/yss-backend-scaffold-application/SKILL.md → .cursor/skills/yss-application/references/application-layer-guide.md} +0 -7
  333. package/template/.cursor/skills/yss-audit-log/SKILL.md +67 -0
  334. package/template/.cursor/skills/yss-audit-log/agents/openai.yaml +5 -0
  335. package/template/.cursor/skills/yss-audit-log/assets/AuditLogAspect.java +262 -0
  336. package/template/.cursor/skills/yss-audit-log/assets/YssAuditLogPrintSubscriberImpl.java +37 -0
  337. package/template/.cursor/skills/yss-audit-log/assets/YssAuditLogSysManagerSubscriberImpl.java +18 -0
  338. package/template/.cursor/skills/yss-audit-log/assets/YssAuditPublishService.java +69 -0
  339. package/template/.cursor/skills/yss-audit-log/references/README.md +69 -0
  340. package/template/.cursor/skills/yss-audit-log/references/source-index.md +43 -0
  341. package/template/.cursor/skills/yss-cache/SKILL.md +44 -0
  342. package/template/.cursor/skills/yss-cache/agents/openai.yaml +5 -0
  343. package/template/.cursor/skills/yss-cache/references/annotations.md +39 -0
  344. package/template/.cursor/skills/yss-cache/references/architecture.md +25 -0
  345. package/template/.cursor/skills/yss-cache/references/configuration.md +34 -0
  346. package/template/.cursor/skills/yss-cache/references/redis-fallback.md +23 -0
  347. package/template/.cursor/skills/yss-cache/references/redis-topology.md +62 -0
  348. package/template/.cursor/skills/yss-cache/references/serialization.md +17 -0
  349. package/template/.cursor/skills/yss-cache/references/source-index.md +67 -0
  350. package/template/.cursor/skills/yss-cache/references/troubleshooting.md +33 -0
  351. package/template/.cursor/skills/yss-cache/references/verification.md +34 -0
  352. package/template/.cursor/skills/yss-cache/scripts/check-skill-freshness.sh +84 -0
  353. package/template/.cursor/skills/yss-cache/scripts/inspect-cache-usage.sh +96 -0
  354. package/template/.cursor/skills/yss-cache/scripts/verify-cache-component.sh +101 -0
  355. package/template/.cursor/skills/yss-components/SKILL.md +386 -0
  356. package/template/.cursor/skills/yss-components/agents/openai.yaml +5 -0
  357. package/template/.cursor/skills/yss-components/references/frontend-docs.md +9 -0
  358. package/template/.cursor/skills/yss-ddd-scaffold-generator/SKILL.md +96 -0
  359. package/template/.cursor/skills/yss-ddd-scaffold-generator/agents/openai.yaml +5 -0
  360. package/template/.cursor/skills/yss-ddd-scaffold-generator/assets/templates/config/application.yml.template +37 -0
  361. package/template/.cursor/skills/yss-ddd-scaffold-generator/assets/templates/config/logback-spring.xml.template +15 -0
  362. package/template/.cursor/skills/yss-ddd-scaffold-generator/assets/templates/config/parent-pom.xml.template +84 -0
  363. package/template/.cursor/skills/yss-ddd-scaffold-generator/assets/templates/pom/adapter-pom.xml.template +19 -0
  364. package/template/.cursor/skills/yss-ddd-scaffold-generator/assets/templates/pom/application-pom.xml.template +43 -0
  365. package/template/.cursor/skills/yss-ddd-scaffold-generator/assets/templates/pom/bootstrap-pom.xml.template +50 -0
  366. package/template/.cursor/skills/yss-ddd-scaffold-generator/assets/templates/pom/domain-pom.xml.template +36 -0
  367. package/template/.cursor/skills/yss-ddd-scaffold-generator/assets/templates/pom/infrastructure-pom.xml.template +34 -0
  368. package/template/.cursor/skills/yss-ddd-scaffold-generator/assets/templates/pom/parent-pom.xml.template +95 -0
  369. package/template/.cursor/skills/yss-ddd-scaffold-generator/assets/templates/pom/web-pom.xml.template +44 -0
  370. package/template/.cursor/skills/yss-ddd-scaffold-generator/assets/wrapper/.mvn/jvm.config +1 -0
  371. package/template/.cursor/skills/yss-ddd-scaffold-generator/assets/wrapper/.mvn/maven.config +3 -0
  372. package/template/.cursor/skills/yss-ddd-scaffold-generator/assets/wrapper/.mvn/settings.xml +128 -0
  373. package/template/.cursor/skills/yss-ddd-scaffold-generator/assets/wrapper/.mvn/wrapper/MavenWrapperDownloader.java +117 -0
  374. package/template/.cursor/skills/yss-ddd-scaffold-generator/assets/wrapper/.mvn/wrapper/maven-wrapper.jar +0 -0
  375. package/template/.cursor/skills/yss-ddd-scaffold-generator/assets/wrapper/.mvn/wrapper/maven-wrapper.properties +18 -0
  376. package/template/.cursor/skills/yss-ddd-scaffold-generator/assets/wrapper/mvnw +316 -0
  377. package/template/.cursor/skills/yss-ddd-scaffold-generator/assets/wrapper/mvnw.cmd +188 -0
  378. package/template/.cursor/skills/yss-ddd-scaffold-generator/references/ARCHITECTURE.md +194 -0
  379. package/template/.cursor/skills/yss-ddd-scaffold-generator/references/USAGE_EXAMPLES.md +420 -0
  380. package/template/.cursor/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-adapter/SKILL.md +199 -0
  381. package/template/.cursor/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-adapter/agents/openai.yaml +5 -0
  382. package/template/.cursor/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-application/SKILL.md +8 -0
  383. package/template/{.claude/skills → .cursor/skills/yss-ddd-scaffold-generator/references}/yss-backend-scaffold-application/agents/openai.yaml +1 -1
  384. package/template/.cursor/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-domain/SKILL.md +8 -0
  385. package/template/{.agents/skills → .cursor/skills/yss-ddd-scaffold-generator/references}/yss-backend-scaffold-domain/agents/openai.yaml +1 -1
  386. package/template/.cursor/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-infrastructure/SKILL.md +8 -0
  387. package/template/{.claude/skills → .cursor/skills/yss-ddd-scaffold-generator/references}/yss-backend-scaffold-infrastructure/agents/openai.yaml +1 -1
  388. package/template/.cursor/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-parent/SKILL.md +138 -0
  389. package/template/.cursor/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-parent/agents/openai.yaml +5 -0
  390. package/template/.cursor/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-web/SKILL.md +8 -0
  391. package/template/{.claude/skills → .cursor/skills/yss-ddd-scaffold-generator/references}/yss-backend-scaffold-web/agents/openai.yaml +1 -1
  392. package/template/.cursor/skills/yss-ddd-scaffold-generator/scripts/generate_scaffold.mjs +225 -0
  393. package/template/.cursor/skills/yss-ddd-scaffold-generator/scripts/run_scaffold_verification.mjs +32 -0
  394. package/template/.cursor/skills/yss-ddd-scaffold-generator/scripts/scaffold-generator.test.mjs +26 -0
  395. package/template/.cursor/skills/yss-design-system/SKILL.md +103 -0
  396. package/template/.cursor/skills/yss-design-system/agents/openai.yaml +5 -0
  397. package/template/.cursor/skills/yss-design-system/references/design-qa-theme.md +64 -0
  398. package/template/.cursor/skills/yss-design-system/references/design-system.md +245 -0
  399. package/template/.cursor/skills/yss-design-system/scripts/validate-frontmatter.mjs +36 -0
  400. package/template/.cursor/skills/yss-design-system/scripts/validate-frontmatter.test.mjs +12 -0
  401. package/template/.cursor/skills/yss-distributed-id/SKILL.md +69 -0
  402. package/template/.cursor/skills/yss-distributed-id/agents/openai.yaml +5 -0
  403. package/template/.cursor/skills/yss-distributed-id/assets/AutoIdInterceptor.java +246 -0
  404. package/template/.cursor/skills/yss-distributed-id/assets/EnableDistributedId.java +25 -0
  405. package/template/.cursor/skills/yss-distributed-id/assets/LeafConf.java +36 -0
  406. package/template/.cursor/skills/yss-distributed-id/references/README.md +51 -0
  407. package/template/.cursor/skills/yss-distributed-id/references/source-index.md +86 -0
  408. package/template/.cursor/skills/yss-domain/SKILL.md +68 -0
  409. package/template/.cursor/skills/yss-domain/agents/openai.yaml +5 -0
  410. package/template/{.hermes/skills/yss-backend-scaffold-domain/SKILL.md → .cursor/skills/yss-domain/references/domain-layer-guide.md} +0 -7
  411. package/template/.cursor/skills/yss-dto/SKILL.md +86 -0
  412. package/template/.cursor/skills/yss-dto/agents/openai.yaml +5 -0
  413. package/template/.cursor/skills/yss-dto/assets/CommandDTO.java +8 -0
  414. package/template/.cursor/skills/yss-dto/assets/PageQuery.java +133 -0
  415. package/template/.cursor/skills/yss-dto/assets/QueryDTO.java +6 -0
  416. package/template/.cursor/skills/yss-dto/assets/Result.java +105 -0
  417. package/template/.cursor/skills/yss-dto/references/README.md +67 -0
  418. package/template/.cursor/skills/yss-dto/references/openapi-wire-profile.yaml +181 -0
  419. package/template/.cursor/skills/yss-dto/references/source-index.md +55 -0
  420. package/template/.cursor/skills/yss-excel-mvc/SKILL.md +66 -0
  421. package/template/.cursor/skills/yss-excel-mvc/agents/openai.yaml +5 -0
  422. package/template/.cursor/skills/yss-excel-mvc/assets/ExcelDynamicData.java +66 -0
  423. package/template/.cursor/skills/yss-excel-mvc/assets/RequestExcel.java +33 -0
  424. package/template/.cursor/skills/yss-excel-mvc/assets/RequestFastExcelArgumentResolver.java +272 -0
  425. package/template/.cursor/skills/yss-excel-mvc/assets/ResponseExcel.java +46 -0
  426. package/template/.cursor/skills/yss-excel-mvc/assets/ResponseFastExcelReturnValueHandler.java +154 -0
  427. package/template/.cursor/skills/yss-excel-mvc/references/README.md +5 -0
  428. package/template/.cursor/skills/yss-excel-mvc/references/source-index.md +74 -0
  429. package/template/.cursor/skills/yss-exception/SKILL.md +55 -0
  430. package/template/.cursor/skills/yss-exception/agents/openai.yaml +4 -0
  431. package/template/{.agents/skills/yss-log → .cursor/skills/yss-exception}/references/source-index.md +8 -7
  432. package/template/.cursor/skills/yss-formily/SKILL.md +304 -0
  433. package/template/.cursor/skills/yss-formily/agents/openai.yaml +5 -0
  434. package/template/.cursor/skills/yss-formily/references/examples.md +65 -0
  435. package/template/.cursor/skills/yss-formily-schema-generator/SKILL.md +189 -0
  436. package/template/.cursor/skills/yss-formily-schema-generator/agents/openai.yaml +5 -0
  437. package/template/.cursor/skills/yss-formily-schema-generator/assets/java-sdk/ExampleUsage.java +111 -0
  438. package/template/.cursor/skills/yss-formily-schema-generator/assets/java-sdk/YssFormilyDsl.java +1219 -0
  439. package/template/.cursor/skills/yss-formily-schema-generator/references/workflow.md +240 -0
  440. package/template/.cursor/skills/yss-frontend-scaffold-generator/SKILL.md +76 -0
  441. package/template/.cursor/skills/yss-hook/SKILL.md +200 -0
  442. package/template/.cursor/skills/yss-hook/agents/openai.yaml +5 -0
  443. package/template/.cursor/skills/yss-hook/references/frontend-docs.md +10 -0
  444. package/template/.cursor/skills/yss-microapp-commit/SKILL.md +201 -0
  445. package/template/.cursor/skills/yss-microapp-commit/agents/openai.yaml +5 -0
  446. package/template/.cursor/skills/yss-microapp-commit/references/scope-mapping.md +204 -0
  447. package/template/.cursor/skills/yss-mybatis/SKILL.md +77 -0
  448. package/template/.cursor/skills/yss-mybatis/agents/openai.yaml +5 -0
  449. package/template/.cursor/skills/yss-mybatis/assets/BaseRepository.java +112 -0
  450. package/template/.cursor/skills/yss-mybatis/assets/EntityQueryAspect.java +37 -0
  451. package/template/.cursor/skills/yss-mybatis/assets/MybatisBaseConfiguration.java +18 -0
  452. package/template/.cursor/skills/yss-mybatis/assets/PageQueryEntityConfigration.java +18 -0
  453. package/template/.cursor/skills/yss-mybatis/references/README.md +57 -0
  454. package/template/.cursor/skills/yss-mybatis/references/source-index.md +93 -0
  455. package/template/.cursor/skills/yss-openapi-draft-review/SKILL.md +82 -0
  456. package/template/.cursor/skills/yss-openapi-governance/SKILL.md +130 -0
  457. package/template/.cursor/skills/yss-openapi-governance/agents/openai.yaml +4 -0
  458. package/template/.cursor/skills/yss-page-module-development/SKILL.md +153 -0
  459. package/template/.cursor/skills/yss-page-module-development/agents/openai.yaml +5 -0
  460. package/template/.cursor/skills/yss-page-module-development/examples/AdvancedFormPage/constant.ts +32 -0
  461. package/template/.cursor/skills/yss-page-module-development/examples/AdvancedFormPage/hooks/useRuleConfig.ts +158 -0
  462. package/template/.cursor/skills/yss-page-module-development/examples/AdvancedFormPage/index.vue +188 -0
  463. package/template/.cursor/skills/yss-page-module-development/examples/AdvancedFormPage/schemas/ruleConfigSchema.ts +256 -0
  464. package/template/.cursor/skills/yss-page-module-development/examples/AdvancedFormPage/style.less +76 -0
  465. package/template/.cursor/skills/yss-page-module-development/examples/StandardListPage/constant.ts +128 -0
  466. package/template/.cursor/skills/yss-page-module-development/examples/StandardListPage/hooks/useQualityRuleList.ts +144 -0
  467. package/template/.cursor/skills/yss-page-module-development/examples/StandardListPage/hooks/useRuleActions.ts +141 -0
  468. package/template/.cursor/skills/yss-page-module-development/examples/StandardListPage/index.vue +175 -0
  469. package/template/.cursor/skills/yss-page-module-development/examples/StandardListPage/style.less +83 -0
  470. package/template/.cursor/skills/yss-page-module-development/references/frontend-docs.md +11 -0
  471. package/template/.cursor/skills/yss-product-lifecycle/SKILL.md +49 -0
  472. package/template/.cursor/skills/yss-product-lifecycle/agents/openai.yaml +4 -0
  473. package/template/.cursor/skills/yss-product-lifecycle/references/artifact-dependencies.md +32 -0
  474. package/template/.cursor/skills/yss-product-lifecycle/references/matt-yss-adapter.md +122 -0
  475. package/template/.cursor/skills/yss-product-lifecycle/references/orchestration-contract.yaml +521 -0
  476. package/template/.cursor/skills/yss-product-lifecycle/references/orchestration.md +103 -0
  477. package/template/.cursor/skills/yss-product-lifecycle/references/state-model.md +107 -0
  478. package/template/.cursor/skills/yss-prototype-stage/SKILL.md +42 -0
  479. package/template/.cursor/skills/yss-repository/SKILL.md +76 -0
  480. package/template/.cursor/skills/yss-repository/agents/openai.yaml +5 -0
  481. package/template/{.agents/skills/yss-backend-scaffold-infrastructure/SKILL.md → .cursor/skills/yss-repository/references/infrastructure-layer-guide.md} +0 -7
  482. package/template/.cursor/skills/yss-resilience4j/SKILL.md +46 -0
  483. package/template/.cursor/skills/yss-resilience4j/agents/openai.yaml +4 -0
  484. package/template/{.hermes/skills/yss-jdbc → .cursor/skills/yss-resilience4j}/references/source-index.md +6 -6
  485. package/template/.cursor/skills/yss-router/SKILL.md +49 -0
  486. package/template/.cursor/skills/yss-router/agents/openai.yaml +4 -0
  487. package/template/.cursor/skills/yss-router/references/boundaries.md +50 -0
  488. package/template/.cursor/skills/yss-router/references/router-contract.yaml +245 -0
  489. package/template/.cursor/skills/yss-router/references/slice-implementation-contract.md +113 -0
  490. package/template/.cursor/skills/yss-router/references/yss-skill-execution-result.md +62 -0
  491. package/template/.cursor/skills/yss-security-algorithm/SKILL.md +52 -0
  492. package/template/.cursor/skills/yss-security-algorithm/agents/openai.yaml +4 -0
  493. package/template/{.agents/skills/yss-jdbc → .cursor/skills/yss-security-algorithm}/references/source-index.md +7 -5
  494. package/template/.cursor/skills/yss-source-index/SKILL.md +63 -0
  495. package/template/.cursor/skills/yss-source-index/agents/openai.yaml +4 -0
  496. package/template/.cursor/skills/yss-source-index/references/source-location.md +18 -0
  497. package/template/.cursor/skills/yss-source-index/references/source-map-config.md +30 -0
  498. package/template/.cursor/skills/yss-source-index/scripts/refresh-yss-skill-index.mjs +24 -0
  499. package/template/.cursor/skills/yss-source-index/scripts/refresh-yss-skill-index.test.mjs +15 -0
  500. package/template/.cursor/skills/yss-ui/SKILL.md +169 -0
  501. package/template/.cursor/skills/yss-ui/agents/openai.yaml +5 -0
  502. package/template/.cursor/skills/yss-ui/assets/demos/button/auth-basic.vue +24 -0
  503. package/template/.cursor/skills/yss-ui/assets/demos/button/auth-dropdown.vue +29 -0
  504. package/template/.cursor/skills/yss-ui/assets/demos/button/permission.vue +10 -0
  505. package/template/.cursor/skills/yss-ui/assets/demos/button/size.vue +12 -0
  506. package/template/.cursor/skills/yss-ui/assets/demos/button/states.vue +12 -0
  507. package/template/.cursor/skills/yss-ui/assets/demos/card/basic/index.vue +54 -0
  508. package/template/.cursor/skills/yss-ui/assets/demos/card/basic/style.less +41 -0
  509. package/template/.cursor/skills/yss-ui/assets/demos/card/cover/index.vue +25 -0
  510. package/template/.cursor/skills/yss-ui/assets/demos/card/flexible-layout/index.vue +122 -0
  511. package/template/.cursor/skills/yss-ui/assets/demos/card/flexible-layout/style.less +191 -0
  512. package/template/.cursor/skills/yss-ui/assets/demos/card/header-extra/index.vue +260 -0
  513. package/template/.cursor/skills/yss-ui/assets/demos/card/header-extra/style.less +124 -0
  514. package/template/.cursor/skills/yss-ui/assets/demos/card/layout-metrics/constants.ts +61 -0
  515. package/template/.cursor/skills/yss-ui/assets/demos/card/layout-metrics/index.vue +72 -0
  516. package/template/.cursor/skills/yss-ui/assets/demos/card/layout-metrics/metrics-cards.vue +70 -0
  517. package/template/.cursor/skills/yss-ui/assets/demos/card/layout-metrics/style.less +232 -0
  518. package/template/.cursor/skills/yss-ui/assets/demos/card/loading/index.vue +19 -0
  519. package/template/.cursor/skills/yss-ui/assets/demos/card/meta/index.vue +19 -0
  520. package/template/.cursor/skills/yss-ui/assets/demos/condition-builder/basic/constants.ts +44 -0
  521. package/template/.cursor/skills/yss-ui/assets/demos/condition-builder/basic/hooks/useConditionBasic.ts +18 -0
  522. package/template/.cursor/skills/yss-ui/assets/demos/condition-builder/basic/index.vue +100 -0
  523. package/template/.cursor/skills/yss-ui/assets/demos/condition-builder/linked/constants.ts +51 -0
  524. package/template/.cursor/skills/yss-ui/assets/demos/condition-builder/linked/hooks/useConditionLinked.ts +29 -0
  525. package/template/.cursor/skills/yss-ui/assets/demos/condition-builder/linked/index.vue +23 -0
  526. package/template/.cursor/skills/yss-ui/assets/demos/condition-builder/nesting-between/constants.ts +35 -0
  527. package/template/.cursor/skills/yss-ui/assets/demos/condition-builder/nesting-between/hooks/useConditionNesting.ts +25 -0
  528. package/template/.cursor/skills/yss-ui/assets/demos/condition-builder/nesting-between/index.vue +24 -0
  529. package/template/.cursor/skills/yss-ui/assets/demos/condition-builder/remote/constants.ts +7 -0
  530. package/template/.cursor/skills/yss-ui/assets/demos/condition-builder/remote/hooks/useConditionRemote.ts +75 -0
  531. package/template/.cursor/skills/yss-ui/assets/demos/condition-builder/remote/index.vue +23 -0
  532. package/template/.cursor/skills/yss-ui/assets/demos/condition-builder/validation/constants.ts +42 -0
  533. package/template/.cursor/skills/yss-ui/assets/demos/condition-builder/validation/hooks/useConditionBasic.ts +22 -0
  534. package/template/.cursor/skills/yss-ui/assets/demos/condition-builder/validation/index.vue +138 -0
  535. package/template/.cursor/skills/yss-ui/assets/demos/condition-builder/validation-custom/constants.ts +42 -0
  536. package/template/.cursor/skills/yss-ui/assets/demos/condition-builder/validation-custom/hooks/useConditionBasic.ts +22 -0
  537. package/template/.cursor/skills/yss-ui/assets/demos/condition-builder/validation-custom/index.vue +134 -0
  538. package/template/.cursor/skills/yss-ui/assets/demos/cron/basic/index.vue +54 -0
  539. package/template/.cursor/skills/yss-ui/assets/demos/cron/select/index.vue +145 -0
  540. package/template/.cursor/skills/yss-ui/assets/demos/echarts/basic.vue +30 -0
  541. package/template/.cursor/skills/yss-ui/assets/demos/echarts/calendar-heatmap.vue +49 -0
  542. package/template/.cursor/skills/yss-ui/assets/demos/echarts/candlestick.vue +30 -0
  543. package/template/.cursor/skills/yss-ui/assets/demos/echarts/dark.vue +40 -0
  544. package/template/.cursor/skills/yss-ui/assets/demos/echarts/expose-methods.vue +97 -0
  545. package/template/.cursor/skills/yss-ui/assets/demos/echarts/funnel.vue +42 -0
  546. package/template/.cursor/skills/yss-ui/assets/demos/echarts/gauge.vue +25 -0
  547. package/template/.cursor/skills/yss-ui/assets/demos/echarts/line.vue +24 -0
  548. package/template/.cursor/skills/yss-ui/assets/demos/echarts/mix.vue +33 -0
  549. package/template/.cursor/skills/yss-ui/assets/demos/echarts/pie.vue +34 -0
  550. package/template/.cursor/skills/yss-ui/assets/demos/echarts/radar.vue +38 -0
  551. package/template/.cursor/skills/yss-ui/assets/demos/echarts/ring-segment.vue +77 -0
  552. package/template/.cursor/skills/yss-ui/assets/demos/echarts/scatter.vue +23 -0
  553. package/template/.cursor/skills/yss-ui/assets/demos/echarts/stacked-area.vue +55 -0
  554. package/template/.cursor/skills/yss-ui/assets/demos/echarts/stacked-bar.vue +52 -0
  555. package/template/.cursor/skills/yss-ui/assets/demos/echarts/treemap.vue +30 -0
  556. package/template/.cursor/skills/yss-ui/assets/demos/edit-table/all-types/hooks/useAllTypes.ts +259 -0
  557. package/template/.cursor/skills/yss-ui/assets/demos/edit-table/all-types/index.vue +33 -0
  558. package/template/.cursor/skills/yss-ui/assets/demos/edit-table/async-remote/hooks/useAsyncRemote.ts +201 -0
  559. package/template/.cursor/skills/yss-ui/assets/demos/edit-table/async-remote/index.vue +45 -0
  560. package/template/.cursor/skills/yss-ui/assets/demos/edit-table/basic/index.vue +104 -0
  561. package/template/.cursor/skills/yss-ui/assets/demos/edit-table/big-data/index.vue +82 -0
  562. package/template/.cursor/skills/yss-ui/assets/demos/edit-table/custom-rule/index.vue +114 -0
  563. package/template/.cursor/skills/yss-ui/assets/demos/edit-table/direct-editable/index.vue +94 -0
  564. package/template/.cursor/skills/yss-ui/assets/demos/edit-table/drag/index.vue +125 -0
  565. package/template/.cursor/skills/yss-ui/assets/demos/edit-table/filter/index.vue +107 -0
  566. package/template/.cursor/skills/yss-ui/assets/demos/edit-table/linkage/index.vue +181 -0
  567. package/template/.cursor/skills/yss-ui/assets/demos/edit-table/pagination-action/index.vue +131 -0
  568. package/template/.cursor/skills/yss-ui/assets/demos/edit-table/required/index.vue +95 -0
  569. package/template/.cursor/skills/yss-ui/assets/demos/edit-table/row-edit/index.vue +220 -0
  570. package/template/.cursor/skills/yss-ui/assets/demos/edit-table/row-options/index.vue +165 -0
  571. package/template/.cursor/skills/yss-ui/assets/demos/edit-table/slot-linkage/index.vue +184 -0
  572. package/template/.cursor/skills/yss-ui/assets/demos/edit-table/submit-view/index.vue +107 -0
  573. package/template/.cursor/skills/yss-ui/assets/demos/file-import/basic.vue +54 -0
  574. package/template/.cursor/skills/yss-ui/assets/demos/file-import/formily.vue +42 -0
  575. package/template/.cursor/skills/yss-ui/assets/demos/file-import/multiple.vue +33 -0
  576. package/template/.cursor/skills/yss-ui/assets/demos/file-import/result-slot.vue +30 -0
  577. package/template/.cursor/skills/yss-ui/assets/demos/formily/actions.vue +61 -0
  578. package/template/.cursor/skills/yss-ui/assets/demos/formily/align.vue +56 -0
  579. package/template/.cursor/skills/yss-ui/assets/demos/formily/async-validate.vue +69 -0
  580. package/template/.cursor/skills/yss-ui/assets/demos/formily/basic.vue +317 -0
  581. package/template/.cursor/skills/yss-ui/assets/demos/formily/collapse.vue +104 -0
  582. package/template/.cursor/skills/yss-ui/assets/demos/formily/custom-component.vue +75 -0
  583. package/template/.cursor/skills/yss-ui/assets/demos/formily/disabled.vue +71 -0
  584. package/template/.cursor/skills/yss-ui/assets/demos/formily/dynamic-array.vue +74 -0
  585. package/template/.cursor/skills/yss-ui/assets/demos/formily/dynamic.vue +59 -0
  586. package/template/.cursor/skills/yss-ui/assets/demos/formily/effects.vue +117 -0
  587. package/template/.cursor/skills/yss-ui/assets/demos/formily/events-inline.vue +82 -0
  588. package/template/.cursor/skills/yss-ui/assets/demos/formily/events-scope.vue +101 -0
  589. package/template/.cursor/skills/yss-ui/assets/demos/formily/grid.vue +71 -0
  590. package/template/.cursor/skills/yss-ui/assets/demos/formily/group.vue +102 -0
  591. package/template/.cursor/skills/yss-ui/assets/demos/formily/helper-slot.vue +50 -0
  592. package/template/.cursor/skills/yss-ui/assets/demos/formily/label-tip.vue +42 -0
  593. package/template/.cursor/skills/yss-ui/assets/demos/formily/linkage-multi.vue +127 -0
  594. package/template/.cursor/skills/yss-ui/assets/demos/formily/linkage.vue +78 -0
  595. package/template/.cursor/skills/yss-ui/assets/demos/formily/modes.vue +72 -0
  596. package/template/.cursor/skills/yss-ui/assets/demos/formily/remote-enum.vue +88 -0
  597. package/template/.cursor/skills/yss-ui/assets/demos/formily/slot.vue +54 -0
  598. package/template/.cursor/skills/yss-ui/assets/demos/formily/steps.vue +135 -0
  599. package/template/.cursor/skills/yss-ui/assets/demos/formily/submit-failed.vue +72 -0
  600. package/template/.cursor/skills/yss-ui/assets/demos/monaco/basic.vue +40 -0
  601. package/template/.cursor/skills/yss-ui/assets/demos/monaco/diff-basic.vue +143 -0
  602. package/template/.cursor/skills/yss-ui/assets/demos/monaco/fullscreen.vue +84 -0
  603. package/template/.cursor/skills/yss-ui/assets/demos/monaco/history-log-viewer.vue +586 -0
  604. package/template/.cursor/skills/yss-ui/assets/demos/monaco/log-viewer.vue +260 -0
  605. package/template/.cursor/skills/yss-ui/assets/demos/monaco/mock/mockLogApi.ts +199 -0
  606. package/template/.cursor/skills/yss-ui/assets/demos/monaco/monaco.vue +66 -0
  607. package/template/.cursor/skills/yss-ui/assets/demos/monaco/readonly.vue +20 -0
  608. package/template/.cursor/skills/yss-ui/assets/demos/monaco/resizable.vue +22 -0
  609. package/template/.cursor/skills/yss-ui/assets/demos/monaco/sql-schema.vue +20 -0
  610. package/template/.cursor/skills/yss-ui/assets/demos/monaco/switch-lang-theme.vue +48 -0
  611. package/template/.cursor/skills/yss-ui/assets/demos/split-pane/tree-table/constant.ts +18 -0
  612. package/template/.cursor/skills/yss-ui/assets/demos/split-pane/tree-table/index.vue +60 -0
  613. package/template/.cursor/skills/yss-ui/assets/demos/split-pane/tree-table/style.less +39 -0
  614. package/template/.cursor/skills/yss-ui/assets/demos/split-pane/tree-table-layout/hooks/useTreeTable.ts +158 -0
  615. package/template/.cursor/skills/yss-ui/assets/demos/split-pane/tree-table-layout/index.vue +88 -0
  616. package/template/.cursor/skills/yss-ui/assets/demos/split-pane/tree-table-layout/style.less +73 -0
  617. package/template/.cursor/skills/yss-ui/assets/demos/table/action/index.vue +83 -0
  618. package/template/.cursor/skills/yss-ui/assets/demos/table/action/style.less +3 -0
  619. package/template/.cursor/skills/yss-ui/assets/demos/table/action-auth/index.vue +41 -0
  620. package/template/.cursor/skills/yss-ui/assets/demos/table/action-slot/index.vue +62 -0
  621. package/template/.cursor/skills/yss-ui/assets/demos/table/action-slot/style.less +36 -0
  622. package/template/.cursor/skills/yss-ui/assets/demos/table/basic/hooks/useBasicTable.ts +205 -0
  623. package/template/.cursor/skills/yss-ui/assets/demos/table/basic/index.vue +89 -0
  624. package/template/.cursor/skills/yss-ui/assets/demos/table/basic/style.less +28 -0
  625. package/template/.cursor/skills/yss-ui/assets/demos/table/column-custom-search/hooks/useColumnCustomSearch.ts +236 -0
  626. package/template/.cursor/skills/yss-ui/assets/demos/table/column-custom-search/index.vue +141 -0
  627. package/template/.cursor/skills/yss-ui/assets/demos/table/column-custom-search/style.less +48 -0
  628. package/template/.cursor/skills/yss-ui/assets/demos/table/drag/index.vue +42 -0
  629. package/template/.cursor/skills/yss-ui/assets/demos/table/expand/action-expand.vue +142 -0
  630. package/template/.cursor/skills/yss-ui/assets/demos/table/expand/index.vue +35 -0
  631. package/template/.cursor/skills/yss-ui/assets/demos/table/filter-async/index.vue +93 -0
  632. package/template/.cursor/skills/yss-ui/assets/demos/table/filter-auto/index.vue +99 -0
  633. package/template/.cursor/skills/yss-ui/assets/demos/table/filter-custom/index.vue +72 -0
  634. package/template/.cursor/skills/yss-ui/assets/demos/table/filter-local/index.vue +112 -0
  635. package/template/.cursor/skills/yss-ui/assets/demos/table/filter-mixed/index.vue +142 -0
  636. package/template/.cursor/skills/yss-ui/assets/demos/table/filter-remote/constant.ts +129 -0
  637. package/template/.cursor/skills/yss-ui/assets/demos/table/filter-remote/hooks/useTableData.ts +186 -0
  638. package/template/.cursor/skills/yss-ui/assets/demos/table/filter-remote/index.vue +73 -0
  639. package/template/.cursor/skills/yss-ui/assets/demos/table/group-header/index.vue +86 -0
  640. package/template/.cursor/skills/yss-ui/assets/demos/table/group-header/style.less +3 -0
  641. package/template/.cursor/skills/yss-ui/assets/demos/table/header-height/index.vue +29 -0
  642. package/template/.cursor/skills/yss-ui/assets/demos/table/header-height/style.less +9 -0
  643. package/template/.cursor/skills/yss-ui/assets/demos/table/merge-cells/hooks/useMergeCells.ts +183 -0
  644. package/template/.cursor/skills/yss-ui/assets/demos/table/merge-cells/index.vue +17 -0
  645. package/template/.cursor/skills/yss-ui/assets/demos/table/merge-cells/style.less +3 -0
  646. package/template/.cursor/skills/yss-ui/assets/demos/table/pagination-remote/hooks/usePaginationRemote.ts +106 -0
  647. package/template/.cursor/skills/yss-ui/assets/demos/table/pagination-remote/index.vue +24 -0
  648. package/template/.cursor/skills/yss-ui/assets/demos/table/renderers/index.vue +64 -0
  649. package/template/.cursor/skills/yss-ui/assets/demos/table/selection-checkbox/index.vue +88 -0
  650. package/template/.cursor/skills/yss-ui/assets/demos/table/selection-checkbox/style.less +9 -0
  651. package/template/.cursor/skills/yss-ui/assets/demos/table/selection-radio/index.vue +57 -0
  652. package/template/.cursor/skills/yss-ui/assets/demos/table/selection-radio/style.less +9 -0
  653. package/template/.cursor/skills/yss-ui/assets/demos/table/transform/index.vue +32 -0
  654. package/template/.cursor/skills/yss-ui/assets/demos/tree/basic-left/index.vue +124 -0
  655. package/template/.cursor/skills/yss-ui/assets/demos/tree/datasource-group/index.vue +31 -0
  656. package/template/.cursor/skills/yss-ui/assets/demos/tree/multi-checkable/index.vue +86 -0
  657. package/template/.cursor/skills/yss-ui/assets/demos/tree/multiple-select/index.vue +76 -0
  658. package/template/.cursor/skills/yss-ui/assets/demos/tree/resource-list/index.vue +41 -0
  659. package/template/.cursor/skills/yss-ui/assets/demos/tree/search-toolbar/index.vue +156 -0
  660. package/template/.cursor/skills/yss-ui/assets/demos/tree/slot-icon/index.vue +36 -0
  661. package/template/.cursor/skills/yss-ui/assets/demos/tree/slot-switcher-icon/index.vue +34 -0
  662. package/template/.cursor/skills/yss-ui/assets/docs/components/button.md +79 -0
  663. package/template/.cursor/skills/yss-ui/assets/docs/components/card.md +162 -0
  664. package/template/.cursor/skills/yss-ui/assets/docs/components/conditionBuilder.md +114 -0
  665. package/template/.cursor/skills/yss-ui/assets/docs/components/cron.md +77 -0
  666. package/template/.cursor/skills/yss-ui/assets/docs/components/echarts.md +110 -0
  667. package/template/.cursor/skills/yss-ui/assets/docs/components/editTable.md +212 -0
  668. package/template/.cursor/skills/yss-ui/assets/docs/components/fileImport.md +85 -0
  669. package/template/.cursor/skills/yss-ui/assets/docs/components/formily.md +370 -0
  670. package/template/.cursor/skills/yss-ui/assets/docs/components/monaco.md +369 -0
  671. package/template/.cursor/skills/yss-ui/assets/docs/components/sheet.md +169 -0
  672. package/template/.cursor/skills/yss-ui/assets/docs/components/split-pane.md +45 -0
  673. package/template/.cursor/skills/yss-ui/assets/docs/components/table.md +398 -0
  674. package/template/.cursor/skills/yss-ui/assets/docs/components/tree.md +102 -0
  675. package/template/.cursor/skills/yss-ui/assets/docs/guide/gitlab-ci-integration.md +166 -0
  676. package/template/.cursor/skills/yss-ui/assets/docs/guide/index.md +132 -0
  677. package/template/.cursor/skills/yss-ui/assets/docs/guide/installation.md +97 -0
  678. package/template/.cursor/skills/yss-ui/assets/docs/guide/jsp.md +227 -0
  679. package/template/.cursor/skills/yss-ui/assets/docs/guide/llms.md +295 -0
  680. package/template/.cursor/skills/yss-ui/assets/docs/guide/monorepo-versioning.md +149 -0
  681. package/template/.cursor/skills/yss-ui/assets/docs/guide/release-workflow.md +251 -0
  682. package/template/.cursor/skills/yss-ui/assets/docs/hooks/use-table-height.md +101 -0
  683. package/template/.cursor/skills/yss-ui/assets/docs/hooks/use-tree-height.md +115 -0
  684. package/template/.cursor/skills/yss-ui/assets/docs/hooks/useFullscreen.md +130 -0
  685. package/template/.cursor/skills/yss-ui/assets/docs/hooks/useLoading.md +97 -0
  686. package/template/.cursor/skills/yss-ui/assets/docs/root/resources.md +18 -0
  687. package/template/.cursor/skills/yss-ui/assets/keyword-index.json +53 -0
  688. package/template/.cursor/skills/yss-ui/assets/keyword-index.md +47 -0
  689. package/template/.cursor/skills/yss-ui/assets/reference-index.json +55 -0
  690. package/template/.cursor/skills/yss-ui/assets/reference-index.md +74 -0
  691. package/template/.cursor/skills/yss-ui/assets/scenario-index.json +50 -0
  692. package/template/.cursor/skills/yss-ui/assets/scenario-index.md +41 -0
  693. package/template/.cursor/skills/yss-ui/references/accessibility.md +23 -0
  694. package/template/.cursor/skills/yss-ui/references/antdv-compatibility.md +39 -0
  695. package/template/.cursor/skills/yss-ui/references/checklist.md +110 -0
  696. package/template/.cursor/skills/yss-ui/references/component-routing.md +31 -0
  697. package/template/.cursor/skills/yss-ui/references/frontend-docs.md +11 -0
  698. package/template/.cursor/skills/yss-ui/references/migration-antdv-to-yss.md +20 -0
  699. package/template/.cursor/skills/yss-ui/references/quick-recipes.md +280 -0
  700. package/template/.cursor/skills/yss-ui/references/theme-locale-overlay.md +25 -0
  701. package/template/.cursor/skills/yss-ui/references/verification.md +20 -0
  702. package/template/.cursor/skills/yss-up-springboot3/SKILL.md +40 -0
  703. package/template/.cursor/skills/yss-up-springboot3/agents/openai.yaml +4 -0
  704. package/template/.cursor/skills/yss-use-table-height/SKILL.md +340 -0
  705. package/template/.cursor/skills/yss-use-table-height/agents/openai.yaml +5 -0
  706. package/template/.cursor/skills/yss-use-table-height/references/frontend-docs.md +9 -0
  707. package/template/.cursor/skills/yss-use-tree-height/SKILL.md +431 -0
  708. package/template/.cursor/skills/yss-use-tree-height/agents/openai.yaml +5 -0
  709. package/template/.cursor/skills/yss-use-tree-height/references/frontend-docs.md +9 -0
  710. package/template/.cursor/skills/yss-userinfo/SKILL.md +49 -0
  711. package/template/.cursor/skills/yss-userinfo/agents/openai.yaml +4 -0
  712. package/template/{.codex/skills/yss-jdbc → .cursor/skills/yss-userinfo}/references/source-index.md +6 -5
  713. package/template/.cursor/skills/yss-validation/SKILL.md +56 -0
  714. package/template/.cursor/skills/yss-validation/agents/openai.yaml +4 -0
  715. package/template/{.claude/skills/yss-jdbc → .cursor/skills/yss-validation}/references/source-index.md +6 -6
  716. package/template/.cursor/skills/yss-web-controller/SKILL.md +78 -0
  717. package/template/.cursor/skills/yss-web-controller/agents/openai.yaml +5 -0
  718. package/template/.cursor/skills/yss-web-controller/assets/templates/Controller.java.template +73 -0
  719. package/template/.cursor/skills/yss-web-controller/assets/templates/WebConvertor.java.template +23 -0
  720. package/template/.cursor/skills/yss-web-controller/assets/templates/domain/dto/cmd/AddCmd.java.template +23 -0
  721. package/template/.cursor/skills/yss-web-controller/assets/templates/domain/dto/cmd/UpdateCmd.java.template +23 -0
  722. package/template/.cursor/skills/yss-web-controller/assets/templates/domain/dto/query/PageQuery.java.template +21 -0
  723. package/template/.cursor/skills/yss-web-controller/assets/templates/domain/vo/VO.java.template +20 -0
  724. package/template/{.claude/skills/yss-backend-scaffold-web/SKILL.md → .cursor/skills/yss-web-controller/references/web-adapter-layer-guide.md} +0 -7
  725. package/template/.cursor/skills/yss-web-controller/scripts/generate_controller.mjs +77 -0
  726. package/template/.cursor/skills/yss-web-controller/scripts/generate_controller.test.mjs +19 -0
  727. package/template/.hermes/skills/ask-matt/SKILL.md +8 -2
  728. package/template/.hermes/skills/code-review/SKILL.md +6 -4
  729. package/template/.hermes/skills/high-fidelity-html-prototype/SKILL.md +2 -19
  730. package/template/.hermes/skills/implement/SKILL.md +1 -1
  731. package/template/.hermes/skills/llm-wiki/SKILL.md +60 -0
  732. package/template/.hermes/skills/llm-wiki/assets/CLAUDE.md.template +26 -0
  733. package/template/.hermes/skills/llm-wiki/assets/fixtures/broken-wiki/wiki/CLAUDE.md +3 -0
  734. package/template/.hermes/skills/llm-wiki/assets/fixtures/broken-wiki/wiki/index.md +5 -0
  735. package/template/.hermes/skills/llm-wiki/assets/fixtures/broken-wiki/wiki/log.md +1 -0
  736. package/template/.hermes/skills/llm-wiki/assets/fixtures/broken-wiki/wiki//345/255/230/345/234/250/347/232/204/351/241/265.md +7 -0
  737. package/template/.hermes/skills/llm-wiki/references/compile.md +126 -0
  738. package/template/.hermes/skills/llm-wiki/references/discover.md +41 -0
  739. package/template/.hermes/skills/llm-wiki/references/ingest.md +36 -0
  740. package/template/.hermes/skills/llm-wiki/references/lint.md +54 -0
  741. package/template/.hermes/skills/llm-wiki/references/query.md +21 -0
  742. package/template/.hermes/skills/llm-wiki/references/schema.md +45 -0
  743. package/template/.hermes/skills/llm-wiki/references/writing.md +35 -0
  744. package/template/.hermes/skills/llm-wiki/scripts/advise.mjs +196 -0
  745. package/template/.hermes/skills/llm-wiki/scripts/advise.test.mjs +91 -0
  746. package/template/.hermes/skills/llm-wiki/scripts/extract.mjs +55 -0
  747. package/template/.hermes/skills/llm-wiki/scripts/extract.test.mjs +34 -0
  748. package/template/.hermes/skills/llm-wiki/scripts/inventory.mjs +174 -0
  749. package/template/.hermes/skills/llm-wiki/scripts/inventory.test.mjs +98 -0
  750. package/template/.hermes/skills/llm-wiki/scripts/lint-wikilinks.mjs +177 -0
  751. package/template/.hermes/skills/llm-wiki/scripts/lint-wikilinks.test.mjs +212 -0
  752. package/template/.hermes/skills/to-spec/SKILL.md +1 -1
  753. package/template/.hermes/skills/yss-antd-design/SKILL.md +34 -0
  754. package/template/.hermes/skills/yss-antd-design/references/boundaries.md +30 -0
  755. package/template/.hermes/skills/yss-antd-design/references/cli-matrix.md +38 -0
  756. package/template/.hermes/skills/yss-antd-design/references/evidence.md +26 -0
  757. package/template/.hermes/skills/yss-antd-design/scripts/validate-frontmatter.mjs +46 -0
  758. package/template/.hermes/skills/yss-antd-design/scripts/validate-frontmatter.test.mjs +27 -0
  759. package/template/.hermes/skills/yss-api-integration/SKILL.md +2 -0
  760. package/template/.hermes/skills/yss-application/SKILL.md +52 -0
  761. package/template/.hermes/skills/yss-application/agents/openai.yaml +5 -0
  762. package/template/.hermes/skills/yss-application/references/application-layer-guide.md +132 -0
  763. package/template/.hermes/skills/yss-ddd-scaffold-generator/SKILL.md +1 -1
  764. package/template/.hermes/skills/yss-ddd-scaffold-generator/references/ARCHITECTURE.md +4 -4
  765. package/template/.hermes/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-application/SKILL.md +2 -2
  766. package/template/.hermes/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-application/agents/openai.yaml +1 -1
  767. package/template/.hermes/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-domain/SKILL.md +2 -2
  768. package/template/.hermes/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-domain/agents/openai.yaml +1 -1
  769. package/template/.hermes/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-infrastructure/SKILL.md +3 -3
  770. package/template/.hermes/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-infrastructure/agents/openai.yaml +1 -1
  771. package/template/.hermes/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-web/SKILL.md +4 -4
  772. package/template/.hermes/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-web/agents/openai.yaml +1 -1
  773. package/template/.hermes/skills/yss-design-system/SKILL.md +9 -5
  774. package/template/.hermes/skills/yss-design-system/references/design-qa-theme.md +64 -0
  775. package/template/.hermes/skills/yss-design-system/references/design-system.md +20 -12
  776. package/template/.hermes/skills/yss-domain/SKILL.md +5 -0
  777. package/template/.hermes/skills/yss-domain/references/domain-layer-guide.md +274 -0
  778. package/template/.hermes/skills/yss-microapp-commit/SKILL.md +2 -0
  779. package/template/.hermes/skills/yss-product-lifecycle/SKILL.md +1 -1
  780. package/template/.hermes/skills/yss-product-lifecycle/references/orchestration-contract.yaml +2 -2
  781. package/template/.hermes/skills/yss-prototype-stage/SKILL.md +4 -2
  782. package/template/.hermes/skills/yss-repository/SKILL.md +5 -0
  783. package/template/.hermes/skills/yss-repository/references/infrastructure-layer-guide.md +192 -0
  784. package/template/.hermes/skills/yss-router/references/boundaries.md +2 -6
  785. package/template/.hermes/skills/yss-router/references/router-contract.yaml +8 -12
  786. package/template/.hermes/skills/yss-source-index/references/source-map-config.md +0 -4
  787. package/template/.hermes/skills/yss-source-index/scripts/refresh-yss-skill-index.mjs +1 -1
  788. package/template/.hermes/skills/yss-ui/SKILL.md +1 -1
  789. package/template/.hermes/skills/yss-web-controller/SKILL.md +1 -0
  790. package/template/.hermes/skills/yss-web-controller/references/web-adapter-layer-guide.md +168 -0
  791. package/template/.pi/skills/ask-matt/SKILL.md +8 -2
  792. package/template/.pi/skills/code-review/SKILL.md +6 -4
  793. package/template/.pi/skills/high-fidelity-html-prototype/SKILL.md +2 -19
  794. package/template/.pi/skills/implement/SKILL.md +1 -1
  795. package/template/.pi/skills/llm-wiki/SKILL.md +60 -0
  796. package/template/.pi/skills/llm-wiki/assets/CLAUDE.md.template +26 -0
  797. package/template/.pi/skills/llm-wiki/assets/fixtures/broken-wiki/wiki/CLAUDE.md +3 -0
  798. package/template/.pi/skills/llm-wiki/assets/fixtures/broken-wiki/wiki/index.md +5 -0
  799. package/template/.pi/skills/llm-wiki/assets/fixtures/broken-wiki/wiki/log.md +1 -0
  800. package/template/.pi/skills/llm-wiki/assets/fixtures/broken-wiki/wiki//345/255/230/345/234/250/347/232/204/351/241/265.md +7 -0
  801. package/template/.pi/skills/llm-wiki/references/compile.md +126 -0
  802. package/template/.pi/skills/llm-wiki/references/discover.md +41 -0
  803. package/template/.pi/skills/llm-wiki/references/ingest.md +36 -0
  804. package/template/.pi/skills/llm-wiki/references/lint.md +54 -0
  805. package/template/.pi/skills/llm-wiki/references/query.md +21 -0
  806. package/template/.pi/skills/llm-wiki/references/schema.md +45 -0
  807. package/template/.pi/skills/llm-wiki/references/writing.md +35 -0
  808. package/template/.pi/skills/llm-wiki/scripts/advise.mjs +196 -0
  809. package/template/.pi/skills/llm-wiki/scripts/advise.test.mjs +91 -0
  810. package/template/.pi/skills/llm-wiki/scripts/extract.mjs +55 -0
  811. package/template/.pi/skills/llm-wiki/scripts/extract.test.mjs +34 -0
  812. package/template/.pi/skills/llm-wiki/scripts/inventory.mjs +174 -0
  813. package/template/.pi/skills/llm-wiki/scripts/inventory.test.mjs +98 -0
  814. package/template/.pi/skills/llm-wiki/scripts/lint-wikilinks.mjs +177 -0
  815. package/template/.pi/skills/llm-wiki/scripts/lint-wikilinks.test.mjs +212 -0
  816. package/template/.pi/skills/to-spec/SKILL.md +1 -1
  817. package/template/.pi/skills/yss-antd-design/SKILL.md +34 -0
  818. package/template/.pi/skills/yss-antd-design/references/boundaries.md +30 -0
  819. package/template/.pi/skills/yss-antd-design/references/cli-matrix.md +38 -0
  820. package/template/.pi/skills/yss-antd-design/references/evidence.md +26 -0
  821. package/template/.pi/skills/yss-antd-design/scripts/validate-frontmatter.mjs +46 -0
  822. package/template/.pi/skills/yss-antd-design/scripts/validate-frontmatter.test.mjs +27 -0
  823. package/template/.pi/skills/yss-api-integration/SKILL.md +2 -0
  824. package/template/.pi/skills/yss-application/SKILL.md +52 -0
  825. package/template/.pi/skills/yss-application/agents/openai.yaml +5 -0
  826. package/template/.pi/skills/yss-application/references/application-layer-guide.md +132 -0
  827. package/template/.pi/skills/yss-ddd-scaffold-generator/SKILL.md +1 -1
  828. package/template/.pi/skills/yss-ddd-scaffold-generator/references/ARCHITECTURE.md +4 -4
  829. package/template/.pi/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-application/SKILL.md +2 -2
  830. package/template/.pi/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-application/agents/openai.yaml +1 -1
  831. package/template/.pi/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-domain/SKILL.md +2 -2
  832. package/template/.pi/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-domain/agents/openai.yaml +1 -1
  833. package/template/.pi/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-infrastructure/SKILL.md +3 -3
  834. package/template/.pi/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-infrastructure/agents/openai.yaml +1 -1
  835. package/template/.pi/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-web/SKILL.md +4 -4
  836. package/template/.pi/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-web/agents/openai.yaml +1 -1
  837. package/template/.pi/skills/yss-design-system/SKILL.md +9 -5
  838. package/template/.pi/skills/yss-design-system/references/design-qa-theme.md +64 -0
  839. package/template/.pi/skills/yss-design-system/references/design-system.md +20 -12
  840. package/template/.pi/skills/yss-domain/SKILL.md +5 -0
  841. package/template/.pi/skills/yss-domain/references/domain-layer-guide.md +274 -0
  842. package/template/.pi/skills/yss-microapp-commit/SKILL.md +2 -0
  843. package/template/.pi/skills/yss-product-lifecycle/SKILL.md +1 -1
  844. package/template/.pi/skills/yss-product-lifecycle/references/orchestration-contract.yaml +2 -2
  845. package/template/.pi/skills/yss-prototype-stage/SKILL.md +4 -2
  846. package/template/.pi/skills/yss-repository/SKILL.md +5 -0
  847. package/template/.pi/skills/yss-repository/references/infrastructure-layer-guide.md +192 -0
  848. package/template/.pi/skills/yss-router/references/boundaries.md +2 -6
  849. package/template/.pi/skills/yss-router/references/router-contract.yaml +8 -12
  850. package/template/.pi/skills/yss-source-index/references/source-map-config.md +0 -4
  851. package/template/.pi/skills/yss-source-index/scripts/refresh-yss-skill-index.mjs +1 -1
  852. package/template/.pi/skills/yss-ui/SKILL.md +1 -1
  853. package/template/.pi/skills/yss-web-controller/SKILL.md +1 -0
  854. package/template/.pi/skills/yss-web-controller/references/web-adapter-layer-guide.md +168 -0
  855. package/template/.qoder/skills/ask-matt/SKILL.md +8 -2
  856. package/template/.qoder/skills/code-review/SKILL.md +6 -4
  857. package/template/.qoder/skills/high-fidelity-html-prototype/SKILL.md +2 -19
  858. package/template/.qoder/skills/implement/SKILL.md +1 -1
  859. package/template/.qoder/skills/llm-wiki/SKILL.md +60 -0
  860. package/template/.qoder/skills/llm-wiki/assets/CLAUDE.md.template +26 -0
  861. package/template/.qoder/skills/llm-wiki/assets/fixtures/broken-wiki/wiki/CLAUDE.md +3 -0
  862. package/template/.qoder/skills/llm-wiki/assets/fixtures/broken-wiki/wiki/index.md +5 -0
  863. package/template/.qoder/skills/llm-wiki/assets/fixtures/broken-wiki/wiki/log.md +1 -0
  864. package/template/.qoder/skills/llm-wiki/assets/fixtures/broken-wiki/wiki//345/255/230/345/234/250/347/232/204/351/241/265.md +7 -0
  865. package/template/.qoder/skills/llm-wiki/references/compile.md +126 -0
  866. package/template/.qoder/skills/llm-wiki/references/discover.md +41 -0
  867. package/template/.qoder/skills/llm-wiki/references/ingest.md +36 -0
  868. package/template/.qoder/skills/llm-wiki/references/lint.md +54 -0
  869. package/template/.qoder/skills/llm-wiki/references/query.md +21 -0
  870. package/template/.qoder/skills/llm-wiki/references/schema.md +45 -0
  871. package/template/.qoder/skills/llm-wiki/references/writing.md +35 -0
  872. package/template/.qoder/skills/llm-wiki/scripts/advise.mjs +196 -0
  873. package/template/.qoder/skills/llm-wiki/scripts/advise.test.mjs +91 -0
  874. package/template/.qoder/skills/llm-wiki/scripts/extract.mjs +55 -0
  875. package/template/.qoder/skills/llm-wiki/scripts/extract.test.mjs +34 -0
  876. package/template/.qoder/skills/llm-wiki/scripts/inventory.mjs +174 -0
  877. package/template/.qoder/skills/llm-wiki/scripts/inventory.test.mjs +98 -0
  878. package/template/.qoder/skills/llm-wiki/scripts/lint-wikilinks.mjs +177 -0
  879. package/template/.qoder/skills/llm-wiki/scripts/lint-wikilinks.test.mjs +212 -0
  880. package/template/.qoder/skills/to-spec/SKILL.md +1 -1
  881. package/template/.qoder/skills/yss-antd-design/SKILL.md +34 -0
  882. package/template/.qoder/skills/yss-antd-design/references/boundaries.md +30 -0
  883. package/template/.qoder/skills/yss-antd-design/references/cli-matrix.md +38 -0
  884. package/template/.qoder/skills/yss-antd-design/references/evidence.md +26 -0
  885. package/template/.qoder/skills/yss-antd-design/scripts/validate-frontmatter.mjs +46 -0
  886. package/template/.qoder/skills/yss-antd-design/scripts/validate-frontmatter.test.mjs +27 -0
  887. package/template/.qoder/skills/yss-api-integration/SKILL.md +2 -0
  888. package/template/.qoder/skills/yss-application/SKILL.md +52 -0
  889. package/template/.qoder/skills/yss-application/agents/openai.yaml +5 -0
  890. package/template/.qoder/skills/yss-application/references/application-layer-guide.md +132 -0
  891. package/template/.qoder/skills/yss-ddd-scaffold-generator/SKILL.md +1 -1
  892. package/template/.qoder/skills/yss-ddd-scaffold-generator/references/ARCHITECTURE.md +4 -4
  893. package/template/.qoder/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-application/SKILL.md +2 -2
  894. package/template/.qoder/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-application/agents/openai.yaml +1 -1
  895. package/template/.qoder/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-domain/SKILL.md +2 -2
  896. package/template/.qoder/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-domain/agents/openai.yaml +1 -1
  897. package/template/.qoder/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-infrastructure/SKILL.md +3 -3
  898. package/template/.qoder/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-infrastructure/agents/openai.yaml +1 -1
  899. package/template/.qoder/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-web/SKILL.md +4 -4
  900. package/template/.qoder/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-web/agents/openai.yaml +1 -1
  901. package/template/.qoder/skills/yss-design-system/SKILL.md +9 -5
  902. package/template/.qoder/skills/yss-design-system/references/design-qa-theme.md +64 -0
  903. package/template/.qoder/skills/yss-design-system/references/design-system.md +20 -12
  904. package/template/.qoder/skills/yss-domain/SKILL.md +5 -0
  905. package/template/.qoder/skills/yss-domain/references/domain-layer-guide.md +274 -0
  906. package/template/.qoder/skills/yss-microapp-commit/SKILL.md +2 -0
  907. package/template/.qoder/skills/yss-product-lifecycle/SKILL.md +1 -1
  908. package/template/.qoder/skills/yss-product-lifecycle/references/orchestration-contract.yaml +2 -2
  909. package/template/.qoder/skills/yss-prototype-stage/SKILL.md +4 -2
  910. package/template/.qoder/skills/yss-repository/SKILL.md +5 -0
  911. package/template/.qoder/skills/yss-repository/references/infrastructure-layer-guide.md +192 -0
  912. package/template/.qoder/skills/yss-router/references/boundaries.md +2 -6
  913. package/template/.qoder/skills/yss-router/references/router-contract.yaml +8 -12
  914. package/template/.qoder/skills/yss-source-index/references/source-map-config.md +0 -4
  915. package/template/.qoder/skills/yss-source-index/scripts/refresh-yss-skill-index.mjs +1 -1
  916. package/template/.qoder/skills/yss-ui/SKILL.md +1 -1
  917. package/template/.qoder/skills/yss-web-controller/SKILL.md +1 -0
  918. package/template/.qoder/skills/yss-web-controller/references/web-adapter-layer-guide.md +168 -0
  919. package/template/.trae/skills/ask-matt/SKILL.md +8 -2
  920. package/template/.trae/skills/code-review/SKILL.md +6 -4
  921. package/template/.trae/skills/high-fidelity-html-prototype/SKILL.md +2 -19
  922. package/template/.trae/skills/implement/SKILL.md +1 -1
  923. package/template/.trae/skills/llm-wiki/SKILL.md +60 -0
  924. package/template/.trae/skills/llm-wiki/assets/CLAUDE.md.template +26 -0
  925. package/template/.trae/skills/llm-wiki/assets/fixtures/broken-wiki/wiki/CLAUDE.md +3 -0
  926. package/template/.trae/skills/llm-wiki/assets/fixtures/broken-wiki/wiki/index.md +5 -0
  927. package/template/.trae/skills/llm-wiki/assets/fixtures/broken-wiki/wiki/log.md +1 -0
  928. package/template/.trae/skills/llm-wiki/assets/fixtures/broken-wiki/wiki//345/255/230/345/234/250/347/232/204/351/241/265.md +7 -0
  929. package/template/.trae/skills/llm-wiki/references/compile.md +126 -0
  930. package/template/.trae/skills/llm-wiki/references/discover.md +41 -0
  931. package/template/.trae/skills/llm-wiki/references/ingest.md +36 -0
  932. package/template/.trae/skills/llm-wiki/references/lint.md +54 -0
  933. package/template/.trae/skills/llm-wiki/references/query.md +21 -0
  934. package/template/.trae/skills/llm-wiki/references/schema.md +45 -0
  935. package/template/.trae/skills/llm-wiki/references/writing.md +35 -0
  936. package/template/.trae/skills/llm-wiki/scripts/advise.mjs +196 -0
  937. package/template/.trae/skills/llm-wiki/scripts/advise.test.mjs +91 -0
  938. package/template/.trae/skills/llm-wiki/scripts/extract.mjs +55 -0
  939. package/template/.trae/skills/llm-wiki/scripts/extract.test.mjs +34 -0
  940. package/template/.trae/skills/llm-wiki/scripts/inventory.mjs +174 -0
  941. package/template/.trae/skills/llm-wiki/scripts/inventory.test.mjs +98 -0
  942. package/template/.trae/skills/llm-wiki/scripts/lint-wikilinks.mjs +177 -0
  943. package/template/.trae/skills/llm-wiki/scripts/lint-wikilinks.test.mjs +212 -0
  944. package/template/.trae/skills/to-spec/SKILL.md +1 -1
  945. package/template/.trae/skills/yss-antd-design/SKILL.md +34 -0
  946. package/template/.trae/skills/yss-antd-design/references/boundaries.md +30 -0
  947. package/template/.trae/skills/yss-antd-design/references/cli-matrix.md +38 -0
  948. package/template/.trae/skills/yss-antd-design/references/evidence.md +26 -0
  949. package/template/.trae/skills/yss-antd-design/scripts/validate-frontmatter.mjs +46 -0
  950. package/template/.trae/skills/yss-antd-design/scripts/validate-frontmatter.test.mjs +27 -0
  951. package/template/.trae/skills/yss-api-integration/SKILL.md +2 -0
  952. package/template/.trae/skills/yss-application/SKILL.md +52 -0
  953. package/template/.trae/skills/yss-application/agents/openai.yaml +5 -0
  954. package/template/.trae/skills/yss-application/references/application-layer-guide.md +132 -0
  955. package/template/.trae/skills/yss-ddd-scaffold-generator/SKILL.md +1 -1
  956. package/template/.trae/skills/yss-ddd-scaffold-generator/references/ARCHITECTURE.md +4 -4
  957. package/template/.trae/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-application/SKILL.md +2 -2
  958. package/template/.trae/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-application/agents/openai.yaml +1 -1
  959. package/template/.trae/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-domain/SKILL.md +2 -2
  960. package/template/.trae/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-domain/agents/openai.yaml +1 -1
  961. package/template/.trae/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-infrastructure/SKILL.md +3 -3
  962. package/template/.trae/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-infrastructure/agents/openai.yaml +1 -1
  963. package/template/.trae/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-web/SKILL.md +4 -4
  964. package/template/.trae/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-web/agents/openai.yaml +1 -1
  965. package/template/.trae/skills/yss-design-system/SKILL.md +9 -5
  966. package/template/.trae/skills/yss-design-system/references/design-qa-theme.md +64 -0
  967. package/template/.trae/skills/yss-design-system/references/design-system.md +20 -12
  968. package/template/.trae/skills/yss-domain/SKILL.md +5 -0
  969. package/template/.trae/skills/yss-domain/references/domain-layer-guide.md +274 -0
  970. package/template/.trae/skills/yss-microapp-commit/SKILL.md +2 -0
  971. package/template/.trae/skills/yss-product-lifecycle/SKILL.md +1 -1
  972. package/template/.trae/skills/yss-product-lifecycle/references/orchestration-contract.yaml +2 -2
  973. package/template/.trae/skills/yss-prototype-stage/SKILL.md +4 -2
  974. package/template/.trae/skills/yss-repository/SKILL.md +5 -0
  975. package/template/.trae/skills/yss-repository/references/infrastructure-layer-guide.md +192 -0
  976. package/template/.trae/skills/yss-router/references/boundaries.md +2 -6
  977. package/template/.trae/skills/yss-router/references/router-contract.yaml +8 -12
  978. package/template/.trae/skills/yss-source-index/references/source-map-config.md +0 -4
  979. package/template/.trae/skills/yss-source-index/scripts/refresh-yss-skill-index.mjs +1 -1
  980. package/template/.trae/skills/yss-ui/SKILL.md +1 -1
  981. package/template/.trae/skills/yss-web-controller/SKILL.md +1 -0
  982. package/template/.trae/skills/yss-web-controller/references/web-adapter-layer-guide.md +168 -0
  983. package/template/AGENTS.md +18 -3
  984. package/template/CLAUDE.md +13 -0
  985. package/template/CONTEXT.md +3 -3
  986. package/template/README.md +2 -1
  987. package/template/docs/agents/README.md +6 -4
  988. package/template/docs/agents/skills-maintenance.md +3 -1
  989. package/template/docs/agents/yss-skill-registry.yaml +510 -0
  990. package/template/docs/architecture/templates/engineering-baseline-review-template.md +2 -2
  991. package/template/docs/design/README.md +5 -5
  992. package/template/docs/design/design.md +94 -29
  993. package/template/docs/design/templates/prototype-evidence-template.yaml +12 -1
  994. package/template/docs/design/tokens/theme.json +16 -9
  995. package/template/docs/design/tokens/tokens.compact.json +35 -32
  996. package/template/docs/design/tokens/tokens.dark.json +5 -5
  997. package/template/docs/design/tokens/tokens.default.json +41 -32
  998. package/template/docs/design/tokens/variables.css +62 -37
  999. package/template/docs/design/tokens/variables.dark.css +5 -5
  1000. package/template/docs/process/implementation-repo-integration.md +9 -0
  1001. package/template/docs/templates/build-architecture-checklist-template.md +5 -5
  1002. package/template/docs/templates/implementation-routing-template.md +5 -5
  1003. package/template/docs/templates/review-report-template.md +3 -3
  1004. package/template/docs/templates/vertical-slice-ticket-template.md +4 -4
  1005. package/template/docs/user-guide//344/272/247/345/223/201/347/240/224/345/217/221/345/205/250/347/224/237/345/221/275/345/221/250/346/234/237/346/234/200/344/275/263/345/256/236/350/267/265.md +5 -4
  1006. package/template/docs/user-guide//347/224/237/345/221/275/345/221/250/346/234/237/346/234/200/344/275/263/345/256/236/350/267/265.md +2 -2
  1007. package/template/scripts/lib/skill-registry.mjs +198 -0
  1008. package/template/scripts/lib/skill-supply-chain.mjs +7 -4
  1009. package/template/scripts/verify-skill-registry +10 -0
  1010. package/template/scripts/verify-template +3 -2
  1011. package/template/skills-lock.json +125 -133
  1012. package/template/wiki/.wiki-manifest.json +390 -0
  1013. package/template/wiki/raw/AGENTS.md +42 -61
  1014. package/template/wiki/raw/CONTEXT.md +27 -1
  1015. package/template/wiki/raw/README.md +4 -1
  1016. package/template/wiki/raw/create-yss-spec-repository-mode-contract.md +95 -0
  1017. package/template/wiki/raw/harness-process-tailoring.md +64 -0
  1018. package/template/wiki/raw/implementation-repo-integration.md +62 -0
  1019. package/template/wiki/raw/issue-tracker.md +135 -0
  1020. package/template/wiki/raw/lifecycle-registry.yaml +369 -0
  1021. package/template/wiki/raw/maintenance-intensity.yaml +25 -0
  1022. package/template/wiki/raw/skills-lock-names.md +92 -0
  1023. package/template/wiki/raw/skills-maintenance.md +90 -0
  1024. package/template/wiki/raw/spec-template.md +3 -4
  1025. package/template/wiki/raw/triage-labels.md +15 -0
  1026. package/template/wiki/raw/vertical-slice-ticket-template.md +14 -8
  1027. package/template/wiki/raw/yss-skill-registry.yaml +504 -0
  1028. package/template/wiki/wiki/Agent/345/205/245/345/217/243/350/247/204/345/210/231.md +17 -5
  1029. package/template/wiki/wiki/CLAUDE.md +15 -11
  1030. package/template/wiki/wiki/Fresh/351/252/214/350/257/201/344/270/216/347/213/254/347/253/213/345/256/241/346/237/245.md +15 -5
  1031. package/template/wiki/wiki/LLM Wiki.md +30 -0
  1032. package/template/wiki/wiki/Matt/346/212/200/350/203/275/344/275/223/347/263/273.md +17 -5
  1033. package/template/wiki/wiki/OpenAPI/345/245/221/347/272/246.md +16 -5
  1034. package/template/wiki/wiki/SpecDelta.md +15 -5
  1035. package/template/wiki/wiki/Spec/345/237/272/347/272/277.md +18 -5
  1036. package/template/wiki/wiki/Ticket/344/270/216/346/265/201/347/250/213/347/212/266/346/200/201.md +17 -5
  1037. package/template/wiki/wiki/YSS/345/267/245/347/250/213/346/212/200/350/203/275/344/275/223/347/263/273.md +19 -5
  1038. package/template/wiki/wiki/YSS/350/267/257/347/224/261/344/270/216/345/220/210/345/220/214/347/274/226/350/257/221.md +16 -5
  1039. package/template/wiki/wiki/concept-table.md +9 -0
  1040. package/template/wiki/wiki/index.md +12 -11
  1041. package/template/wiki/wiki/log.md +27 -0
  1042. package/template/wiki/wiki//344/272/247/345/223/201/347/240/224/345/217/221/347/224/237/345/221/275/345/221/250/346/234/237.md +15 -4
  1043. package/template/wiki/wiki//344/272/247/345/223/201/350/256/276/350/256/241/345/275/261/345/223/215/344/270/216/345/216/237/345/236/213.md +14 -4
  1044. package/template/wiki/wiki//344/273/223/345/272/223/350/272/253/344/273/275/344/270/216/350/267/257/347/224/261.md +15 -4
  1045. package/template/wiki/wiki//345/210/207/347/211/207/345/256/236/347/216/260/345/220/210/345/220/214.md +17 -5
  1046. package/template/wiki/wiki//345/236/202/347/233/264/345/210/207/347/211/207Ticket.md +19 -5
  1047. package/template/wiki/wiki//345/244/215/347/233/230/344/270/216/346/235/203/345/250/201/350/265/204/344/272/247/344/277/256/350/256/242.md +15 -4
  1048. package/template/wiki/wiki//345/256/236/347/216/260/344/273/223/345/272/223/344/270/216/350/267/250/344/273/223/345/272/223/345/245/221/347/272/246.md +17 -4
  1049. package/template/wiki/wiki//345/275/261/345/223/215/351/235/242/345/210/206/350/257/212/344/270/216/346/265/201/347/250/213/350/243/201/345/211/252.md +15 -4
  1050. package/template/wiki/wiki//346/212/200/350/203/275/346/212/225/345/275/261/344/270/216/351/224/201/345/256/232.md +18 -4
  1051. package/template/wiki/wiki//346/235/241/344/273/266/345/274/272/345/210/266/351/227/250/347/246/201.md +13 -4
  1052. package/template/wiki/wiki//346/250/241/346/235/277/345/217/221/345/270/203/351/227/250/347/246/201/344/270/216/351/252/214/350/257/201.md +17 -4
  1053. package/template/wiki/wiki//346/250/241/346/235/277/346/200/273/350/247/210.md +16 -5
  1054. package/template/wiki/wiki//346/250/241/346/235/277/347/273/264/346/212/244/346/265/201/347/250/213.md +14 -4
  1055. package/template/yss-public-skills.json +4 -16
  1056. package/template.snapshot.json +4 -4
  1057. package/template/.agents/skills/product-design-prototype/SKILL.md +0 -91
  1058. package/template/.agents/skills/product-design-prototype/agents/openai.yaml +0 -4
  1059. package/template/.agents/skills/yss-backend-scaffold-application/agents/openai.yaml +0 -5
  1060. package/template/.agents/skills/yss-backend-scaffold-infrastructure/agents/openai.yaml +0 -5
  1061. package/template/.agents/skills/yss-backend-scaffold-web/agents/openai.yaml +0 -5
  1062. package/template/.agents/skills/yss-dictionary/SKILL.md +0 -49
  1063. package/template/.agents/skills/yss-dictionary/agents/openai.yaml +0 -4
  1064. package/template/.agents/skills/yss-dictionary/references/source-index.md +0 -80
  1065. package/template/.agents/skills/yss-jdbc/SKILL.md +0 -73
  1066. package/template/.agents/skills/yss-jdbc/agents/openai.yaml +0 -5
  1067. package/template/.agents/skills/yss-jdbc/assets/DefaultHutoolConfiguration.java +0 -9
  1068. package/template/.agents/skills/yss-jdbc/assets/DefaultHutoolDbHolder.java +0 -33
  1069. package/template/.agents/skills/yss-jdbc/assets/DsParam.java +0 -19
  1070. package/template/.agents/skills/yss-jdbc/assets/JdbcSqlUtil.java +0 -92
  1071. package/template/.agents/skills/yss-jdbc/references/README.md +0 -55
  1072. package/template/.agents/skills/yss-log/SKILL.md +0 -48
  1073. package/template/.agents/skills/yss-log/agents/openai.yaml +0 -4
  1074. package/template/.agents/skills/yss-taskflow/SKILL.md +0 -58
  1075. package/template/.agents/skills/yss-taskflow/agents/openai.yaml +0 -4
  1076. package/template/.agents/skills/yss-taskflow/references/source-index.md +0 -158
  1077. package/template/.claude/skills/product-design-prototype/SKILL.md +0 -91
  1078. package/template/.claude/skills/product-design-prototype/agents/openai.yaml +0 -4
  1079. package/template/.claude/skills/yss-backend-scaffold-domain/agents/openai.yaml +0 -5
  1080. package/template/.claude/skills/yss-dictionary/SKILL.md +0 -49
  1081. package/template/.claude/skills/yss-dictionary/agents/openai.yaml +0 -4
  1082. package/template/.claude/skills/yss-dictionary/references/source-index.md +0 -80
  1083. package/template/.claude/skills/yss-jdbc/SKILL.md +0 -73
  1084. package/template/.claude/skills/yss-jdbc/agents/openai.yaml +0 -5
  1085. package/template/.claude/skills/yss-jdbc/assets/DefaultHutoolConfiguration.java +0 -9
  1086. package/template/.claude/skills/yss-jdbc/assets/DefaultHutoolDbHolder.java +0 -33
  1087. package/template/.claude/skills/yss-jdbc/assets/DsParam.java +0 -19
  1088. package/template/.claude/skills/yss-jdbc/assets/JdbcSqlUtil.java +0 -92
  1089. package/template/.claude/skills/yss-jdbc/references/README.md +0 -55
  1090. package/template/.claude/skills/yss-log/SKILL.md +0 -48
  1091. package/template/.claude/skills/yss-log/agents/openai.yaml +0 -4
  1092. package/template/.claude/skills/yss-log/references/source-index.md +0 -34
  1093. package/template/.claude/skills/yss-taskflow/SKILL.md +0 -58
  1094. package/template/.claude/skills/yss-taskflow/agents/openai.yaml +0 -4
  1095. package/template/.claude/skills/yss-taskflow/references/source-index.md +0 -158
  1096. package/template/.codex/skills/product-design-prototype/SKILL.md +0 -91
  1097. package/template/.codex/skills/product-design-prototype/agents/openai.yaml +0 -4
  1098. package/template/.codex/skills/yss-backend-scaffold-application/agents/openai.yaml +0 -5
  1099. package/template/.codex/skills/yss-backend-scaffold-domain/agents/openai.yaml +0 -5
  1100. package/template/.codex/skills/yss-backend-scaffold-infrastructure/agents/openai.yaml +0 -5
  1101. package/template/.codex/skills/yss-backend-scaffold-web/agents/openai.yaml +0 -5
  1102. package/template/.codex/skills/yss-dictionary/SKILL.md +0 -49
  1103. package/template/.codex/skills/yss-dictionary/agents/openai.yaml +0 -4
  1104. package/template/.codex/skills/yss-dictionary/references/source-index.md +0 -80
  1105. package/template/.codex/skills/yss-jdbc/SKILL.md +0 -73
  1106. package/template/.codex/skills/yss-jdbc/agents/openai.yaml +0 -5
  1107. package/template/.codex/skills/yss-jdbc/assets/DefaultHutoolConfiguration.java +0 -9
  1108. package/template/.codex/skills/yss-jdbc/assets/DefaultHutoolDbHolder.java +0 -33
  1109. package/template/.codex/skills/yss-jdbc/assets/DsParam.java +0 -19
  1110. package/template/.codex/skills/yss-jdbc/assets/JdbcSqlUtil.java +0 -92
  1111. package/template/.codex/skills/yss-jdbc/references/README.md +0 -55
  1112. package/template/.codex/skills/yss-log/SKILL.md +0 -48
  1113. package/template/.codex/skills/yss-log/agents/openai.yaml +0 -4
  1114. package/template/.codex/skills/yss-log/references/source-index.md +0 -34
  1115. package/template/.codex/skills/yss-taskflow/SKILL.md +0 -58
  1116. package/template/.codex/skills/yss-taskflow/agents/openai.yaml +0 -4
  1117. package/template/.codex/skills/yss-taskflow/references/source-index.md +0 -158
  1118. package/template/.hermes/skills/product-design-prototype/SKILL.md +0 -91
  1119. package/template/.hermes/skills/product-design-prototype/agents/openai.yaml +0 -4
  1120. package/template/.hermes/skills/yss-backend-scaffold-application/agents/openai.yaml +0 -5
  1121. package/template/.hermes/skills/yss-backend-scaffold-domain/agents/openai.yaml +0 -5
  1122. package/template/.hermes/skills/yss-backend-scaffold-infrastructure/agents/openai.yaml +0 -5
  1123. package/template/.hermes/skills/yss-backend-scaffold-web/agents/openai.yaml +0 -5
  1124. package/template/.hermes/skills/yss-dictionary/SKILL.md +0 -49
  1125. package/template/.hermes/skills/yss-dictionary/agents/openai.yaml +0 -4
  1126. package/template/.hermes/skills/yss-dictionary/references/source-index.md +0 -80
  1127. package/template/.hermes/skills/yss-jdbc/SKILL.md +0 -73
  1128. package/template/.hermes/skills/yss-jdbc/agents/openai.yaml +0 -5
  1129. package/template/.hermes/skills/yss-jdbc/assets/DefaultHutoolConfiguration.java +0 -9
  1130. package/template/.hermes/skills/yss-jdbc/assets/DefaultHutoolDbHolder.java +0 -33
  1131. package/template/.hermes/skills/yss-jdbc/assets/DsParam.java +0 -19
  1132. package/template/.hermes/skills/yss-jdbc/assets/JdbcSqlUtil.java +0 -92
  1133. package/template/.hermes/skills/yss-jdbc/references/README.md +0 -55
  1134. package/template/.hermes/skills/yss-log/SKILL.md +0 -48
  1135. package/template/.hermes/skills/yss-log/agents/openai.yaml +0 -4
  1136. package/template/.hermes/skills/yss-log/references/source-index.md +0 -34
  1137. package/template/.hermes/skills/yss-taskflow/SKILL.md +0 -58
  1138. package/template/.hermes/skills/yss-taskflow/agents/openai.yaml +0 -4
  1139. package/template/.hermes/skills/yss-taskflow/references/source-index.md +0 -158
  1140. package/template/.pi/skills/product-design-prototype/SKILL.md +0 -91
  1141. package/template/.pi/skills/product-design-prototype/agents/openai.yaml +0 -4
  1142. package/template/.pi/skills/yss-backend-scaffold-application/SKILL.md +0 -139
  1143. package/template/.pi/skills/yss-backend-scaffold-application/agents/openai.yaml +0 -5
  1144. package/template/.pi/skills/yss-backend-scaffold-domain/SKILL.md +0 -281
  1145. package/template/.pi/skills/yss-backend-scaffold-domain/agents/openai.yaml +0 -5
  1146. package/template/.pi/skills/yss-backend-scaffold-infrastructure/SKILL.md +0 -199
  1147. package/template/.pi/skills/yss-backend-scaffold-infrastructure/agents/openai.yaml +0 -5
  1148. package/template/.pi/skills/yss-backend-scaffold-web/SKILL.md +0 -175
  1149. package/template/.pi/skills/yss-backend-scaffold-web/agents/openai.yaml +0 -5
  1150. package/template/.pi/skills/yss-dictionary/SKILL.md +0 -49
  1151. package/template/.pi/skills/yss-dictionary/agents/openai.yaml +0 -4
  1152. package/template/.pi/skills/yss-dictionary/references/source-index.md +0 -80
  1153. package/template/.pi/skills/yss-jdbc/SKILL.md +0 -73
  1154. package/template/.pi/skills/yss-jdbc/agents/openai.yaml +0 -5
  1155. package/template/.pi/skills/yss-jdbc/assets/DefaultHutoolConfiguration.java +0 -9
  1156. package/template/.pi/skills/yss-jdbc/assets/DefaultHutoolDbHolder.java +0 -33
  1157. package/template/.pi/skills/yss-jdbc/assets/DsParam.java +0 -19
  1158. package/template/.pi/skills/yss-jdbc/assets/JdbcSqlUtil.java +0 -92
  1159. package/template/.pi/skills/yss-jdbc/references/README.md +0 -55
  1160. package/template/.pi/skills/yss-jdbc/references/source-index.md +0 -33
  1161. package/template/.pi/skills/yss-log/SKILL.md +0 -48
  1162. package/template/.pi/skills/yss-log/agents/openai.yaml +0 -4
  1163. package/template/.pi/skills/yss-log/references/source-index.md +0 -34
  1164. package/template/.pi/skills/yss-taskflow/SKILL.md +0 -58
  1165. package/template/.pi/skills/yss-taskflow/agents/openai.yaml +0 -4
  1166. package/template/.pi/skills/yss-taskflow/references/source-index.md +0 -158
  1167. package/template/.qoder/skills/product-design-prototype/SKILL.md +0 -91
  1168. package/template/.qoder/skills/product-design-prototype/agents/openai.yaml +0 -4
  1169. package/template/.qoder/skills/yss-backend-scaffold-application/SKILL.md +0 -139
  1170. package/template/.qoder/skills/yss-backend-scaffold-application/agents/openai.yaml +0 -5
  1171. package/template/.qoder/skills/yss-backend-scaffold-domain/SKILL.md +0 -281
  1172. package/template/.qoder/skills/yss-backend-scaffold-domain/agents/openai.yaml +0 -5
  1173. package/template/.qoder/skills/yss-backend-scaffold-infrastructure/SKILL.md +0 -199
  1174. package/template/.qoder/skills/yss-backend-scaffold-infrastructure/agents/openai.yaml +0 -5
  1175. package/template/.qoder/skills/yss-backend-scaffold-web/SKILL.md +0 -175
  1176. package/template/.qoder/skills/yss-backend-scaffold-web/agents/openai.yaml +0 -5
  1177. package/template/.qoder/skills/yss-dictionary/SKILL.md +0 -49
  1178. package/template/.qoder/skills/yss-dictionary/agents/openai.yaml +0 -4
  1179. package/template/.qoder/skills/yss-dictionary/references/source-index.md +0 -80
  1180. package/template/.qoder/skills/yss-jdbc/SKILL.md +0 -73
  1181. package/template/.qoder/skills/yss-jdbc/agents/openai.yaml +0 -5
  1182. package/template/.qoder/skills/yss-jdbc/assets/DefaultHutoolConfiguration.java +0 -9
  1183. package/template/.qoder/skills/yss-jdbc/assets/DefaultHutoolDbHolder.java +0 -33
  1184. package/template/.qoder/skills/yss-jdbc/assets/DsParam.java +0 -19
  1185. package/template/.qoder/skills/yss-jdbc/assets/JdbcSqlUtil.java +0 -92
  1186. package/template/.qoder/skills/yss-jdbc/references/README.md +0 -55
  1187. package/template/.qoder/skills/yss-jdbc/references/source-index.md +0 -33
  1188. package/template/.qoder/skills/yss-log/SKILL.md +0 -48
  1189. package/template/.qoder/skills/yss-log/agents/openai.yaml +0 -4
  1190. package/template/.qoder/skills/yss-log/references/source-index.md +0 -34
  1191. package/template/.qoder/skills/yss-taskflow/SKILL.md +0 -58
  1192. package/template/.qoder/skills/yss-taskflow/agents/openai.yaml +0 -4
  1193. package/template/.qoder/skills/yss-taskflow/references/source-index.md +0 -158
  1194. package/template/.trae/skills/product-design-prototype/SKILL.md +0 -91
  1195. package/template/.trae/skills/product-design-prototype/agents/openai.yaml +0 -4
  1196. package/template/.trae/skills/yss-backend-scaffold-application/SKILL.md +0 -139
  1197. package/template/.trae/skills/yss-backend-scaffold-application/agents/openai.yaml +0 -5
  1198. package/template/.trae/skills/yss-backend-scaffold-domain/SKILL.md +0 -281
  1199. package/template/.trae/skills/yss-backend-scaffold-domain/agents/openai.yaml +0 -5
  1200. package/template/.trae/skills/yss-backend-scaffold-infrastructure/SKILL.md +0 -199
  1201. package/template/.trae/skills/yss-backend-scaffold-infrastructure/agents/openai.yaml +0 -5
  1202. package/template/.trae/skills/yss-backend-scaffold-web/SKILL.md +0 -175
  1203. package/template/.trae/skills/yss-backend-scaffold-web/agents/openai.yaml +0 -5
  1204. package/template/.trae/skills/yss-dictionary/SKILL.md +0 -49
  1205. package/template/.trae/skills/yss-dictionary/agents/openai.yaml +0 -4
  1206. package/template/.trae/skills/yss-dictionary/references/source-index.md +0 -80
  1207. package/template/.trae/skills/yss-jdbc/SKILL.md +0 -73
  1208. package/template/.trae/skills/yss-jdbc/agents/openai.yaml +0 -5
  1209. package/template/.trae/skills/yss-jdbc/assets/DefaultHutoolConfiguration.java +0 -9
  1210. package/template/.trae/skills/yss-jdbc/assets/DefaultHutoolDbHolder.java +0 -33
  1211. package/template/.trae/skills/yss-jdbc/assets/DsParam.java +0 -19
  1212. package/template/.trae/skills/yss-jdbc/assets/JdbcSqlUtil.java +0 -92
  1213. package/template/.trae/skills/yss-jdbc/references/README.md +0 -55
  1214. package/template/.trae/skills/yss-jdbc/references/source-index.md +0 -33
  1215. package/template/.trae/skills/yss-log/SKILL.md +0 -48
  1216. package/template/.trae/skills/yss-log/agents/openai.yaml +0 -4
  1217. package/template/.trae/skills/yss-log/references/source-index.md +0 -34
  1218. package/template/.trae/skills/yss-taskflow/SKILL.md +0 -58
  1219. package/template/.trae/skills/yss-taskflow/agents/openai.yaml +0 -4
  1220. package/template/.trae/skills/yss-taskflow/references/source-index.md +0 -158
  1221. package/template/wiki/raw/create-yss-spec-contract.md +0 -59
  1222. package/template/wiki/raw/skills-lock.json +0 -1379
@@ -0,0 +1,64 @@
1
+ # Design QA 项目主题对照
2
+
3
+ 本文件给 Codex `$design-qa` 使用。官方 `design-qa` skill 仍负责截图对比流程和 `final result: passed|blocked`;本文件只提供项目视觉真相,不改上游插件正文。
4
+
5
+ ## Source visual truth
6
+
7
+ - 规范:`docs/design/design.md`
8
+ - Token:`docs/design/tokens/theme.json`、`docs/design/tokens/tokens.default.json`、`docs/design/tokens/variables.css`
9
+ - 实现截图:当前原型或页面在同一 viewport / 主题 / 状态下的渲染
10
+
11
+ 官方 `https://ant.design/design.md` 只是上游默认。项目覆盖与官方不同时,以项目覆盖为准。
12
+
13
+ ## 必查 fidelity surface(项目覆盖)
14
+
15
+ ### Colors and visual tokens
16
+
17
+ | 角色 | 必须对照 | 记为 P1 token drift |
18
+ | --- | --- | --- |
19
+ | 主色 | `#3371ff` | `#1677ff` 或 `#3177ff` 当默认主色 |
20
+ | 主色 hover / active | `#4096ff` / `#0958d9` | 用算法重算替代 `:root` 显式值且未记录 |
21
+ | 错误色 | `#f5222d` | 官方 `#ff4d4f` 当默认错误色 |
22
+ | 成功 / 警告 | `#52c41a` / `#faad14` | 改成非功能色装饰 |
23
+ | 页面背景 | `#f0f2f5` | `#f5f5f5` 或其它灰底当默认 layout |
24
+ | 容器 / 浮层 | `#ffffff` | 用卡片阴影堆叠替代表面层级 |
25
+ | 主文本 / 次文本 | `rgba(0, 0, 0, 0.88)` / `rgba(0, 0, 0, 0.65)` | `#2e2e2e` / `#646464` 当默认文本 |
26
+ | 边框 / 分割线 | `#d9d9d9` / `#f0f0f0` | `#dbdbdb` / `#f1f1f1` 当默认边框 |
27
+ | 运行时变量 | `--primary-color` 指向 `--brand-color-primary` | 页面另写一套 Less 色值 |
28
+
29
+ `blue` 预设色板里的 `#1677ff` 不是品牌主色,不要据此判定主色漂移。
30
+
31
+ ### Fonts and typography
32
+
33
+ | 角色 | 必须对照 | 记为 P1 token drift |
34
+ | --- | --- | --- |
35
+ | 默认正文字号 | 14px | 16px 营销字号当正文 |
36
+ | 默认控件高度 | 32px | 明显偏离 32px 且未走 compact algorithm |
37
+ | 字体栈 | 系统栈(`-apple-system, BlinkMacSystemFont, "Segoe UI", ...`) | 强制 `Inter` 或其它未登记品牌字体 |
38
+ | 字重 | 400 / 600 | 用 700+ 表达选中或激活 |
39
+
40
+ ### Spacing and layout rhythm
41
+
42
+ | 角色 | 必须对照 | 记为 P1 token drift |
43
+ | --- | --- | --- |
44
+ | 圆角 | 小控件 4px、默认 6px、容器 8px | 历史品牌 8px / 10px,或 Less 前半 4px 当全局默认 |
45
+ | 间距网格 | 4 / 8 / 12 / 16 / 20 / 24 / 32 / 48 | 任意 magic number 撑开中后台密度 |
46
+ | 顶栏 / 侧栏 | 顶栏 64px,深色侧栏 `#001529` | 未说明就改成营销式顶栏 |
47
+
48
+ ### Image quality and copy
49
+
50
+ 沿用官方 `design-qa` 规则。本主题不引入插画、logo 或营销文案;出现这类素材时按官方 rubric 记 finding,并同时记为偏离中后台定位。
51
+
52
+ ## 判定
53
+
54
+ - 仍用官方 `#1677ff`、强制 `Inter` 或 8px 品牌圆角作为默认主题:P1。
55
+ - 只改局部组件、且 `prototype-evidence.yaml` 的 `theme_override` 已记录:按官方 severity 评估,不自动升 P1。
56
+ - 暗色模式:本轮未重派生完整暗色色板;暗色对照前若缺少新的 algorithm 派生证据,`final result: blocked`,写明 blocker。
57
+
58
+ ## 报告要求
59
+
60
+ `design-qa.md` 必须写明:
61
+
62
+ - source visual truth path:`docs/design/design.md` 与对应 token 文件
63
+ - 已按本清单核对 Colors/tokens 与 Fonts/typography
64
+ - 与官方默认的差异是否被接受为项目覆盖
@@ -0,0 +1,245 @@
1
+ # YSS 设计系统执行规范
2
+
3
+ 本文件是 `docs/design/design.md` 的 skill 侧执行清单。项目文档面向团队阅读并作为唯一规范来源,本文件面向 Agent 执行、设计评审和前端实现,不单独承载新的 token 决策。
4
+
5
+ 权威资料:
6
+
7
+ - 团队规范:`docs/design/design.md`
8
+ - Token 快照:`docs/design/tokens/*`
9
+ - Skill 入口:`.agents/skills/yss-design-system/SKILL.md`
10
+
11
+ ## 设计定位
12
+
13
+ 本项目 UI 默认采用 Ant Design 企业级中后台风格,而不是营销站、品牌官网或概念展示风格。
14
+
15
+ 关键词:
16
+
17
+ - 数据密集
18
+ - 表单密集
19
+ - 流程密集
20
+ - 可扫描
21
+ - 状态确定
22
+ - 低装饰
23
+ - 组件一致
24
+
25
+ 页面首屏应优先呈现实际业务界面。除非需求明确要求 Landing Page,不要创建营销式 hero、过度装饰、全屏宣传页或卡片堆叠式介绍页。
26
+
27
+ ## 设计原则
28
+
29
+ | 原则 | 执行要求 |
30
+ | --- | --- |
31
+ | Natural | 使用熟悉的中后台模式,如筛选区、表格、详情抽屉、Modal、Tabs、左树右表 |
32
+ | Certain | 每个操作都有明确状态反馈,加载、错误、权限、只读、冲突不靠猜 |
33
+ | Meaningful | 视觉强调只服务于主操作、状态和层级,不做无意义装饰 |
34
+ | Growing | 支持从简单表单扩展到复杂表格、审批流、控制台和多模块页面 |
35
+
36
+ ## Token 基线
37
+
38
+ ### 颜色
39
+
40
+ | Token | 值 | 用途 |
41
+ | --- | --- | --- |
42
+ | `colorPrimary` | `#3371ff` | 主操作、链接、焦点、选中态 |
43
+ | `colorPrimaryHover` | `#4096ff` | 主色 hover |
44
+ | `colorPrimaryActive` | `#0958d9` | 主色 active |
45
+ | `colorSuccess` | `#52c41a` | 成功状态 |
46
+ | `colorWarning` | `#faad14` | 警告状态 |
47
+ | `colorError` | `#f5222d` | 错误状态 |
48
+ | `colorInfo` | `#3371ff` | 信息提示 |
49
+ | `colorBgLayout` | `#f0f2f5` | 页面背景 |
50
+ | `colorBgContainer` | `#ffffff` | 内容容器 |
51
+ | `colorBgElevated` | `#ffffff` | 浮层容器 |
52
+ | `colorText` | `rgba(0, 0, 0, 0.88)` | 主文本 |
53
+ | `colorTextSecondary` | `rgba(0, 0, 0, 0.65)` | 次级文本 |
54
+ | `colorTextTertiary` | `#8c8c8c` | 弱说明 |
55
+ | `colorTextQuaternary` | `#bfbfbf` | placeholder / disabled |
56
+ | `colorBorder` | `#d9d9d9` | 主边框 |
57
+ | `colorBorderSecondary` | `#f0f0f0` | 次级分割线 |
58
+
59
+ 颜色规则:
60
+
61
+ - 主色只用于主操作、链接、焦点、选中态和激活导航。
62
+ - `success`、`warning`、`error`、`info` 只表达功能状态。
63
+ - 预设色板只用于 Tag、图表、分类可视化,不用于重新定义主操作。
64
+ - 不硬编码白色、灰色、状态色;优先引用 token、CSS variables 或 Ant Design theme。
65
+ - semantic token 优先于色值:页面先声明背景、容器、浮层、文本、边框、状态等角色,再映射到具体 token。
66
+ - 运行时短名 `--primary-color`、`--text-color`、`--bg-color` 必须指向 `--brand-*`,不要再维护第二套色值。
67
+ - `blue` 等预设色板可以仍含官方 `#1677ff`;色板预设 ≠ 品牌主色。
68
+ - accessibility contrast 不足时,通过 `ConfigProvider` 的 seed token 或组件 token 调整;不要为单个页面制造不可复用的深浅色例外。
69
+ - Codex `$design-qa` 的 token / 字体对照读 `references/design-qa-theme.md`。
70
+
71
+ ### 排版
72
+
73
+ | 层级 | 字号 | 字重 | 用途 |
74
+ | --- | --- | --- | --- |
75
+ | Heading 1 | 38 | 600 | 大标题,慎用 |
76
+ | Heading 2 | 32 | 600 | 页面级标题 |
77
+ | Heading 3 | 26 | 600 | 重要分区 |
78
+ | Heading 4 | 22 | 600 | 分区标题 |
79
+ | Heading 5 | 18 | 600 | 卡片 / 面板标题 |
80
+ | Body | 14 | 400 | 默认正文、控件、表格 |
81
+ | Small | 12 | 400 | 辅助信息、Tag |
82
+
83
+ 排版规则:
84
+
85
+ - UI 默认正文 14px。
86
+ - UI 字重优先 400 / 600。
87
+ - 字体栈使用系统字体,不强制 `Inter`。
88
+ - 不用 700+ 粗体表达选中或激活状态。
89
+ - 选中状态优先使用颜色、边框、下划线、背景表达。
90
+
91
+ ### 间距、尺寸、圆角
92
+
93
+ | 类型 | 基线 |
94
+ | --- | --- |
95
+ | 间距网格 | 4px |
96
+ | 默认控件高度 | 32px |
97
+ | 小控件高度 | 24px |
98
+ | 大控件高度 | 40px |
99
+ | 默认字号 | 14px |
100
+ | 字体栈 | 系统栈,不强制 `Inter` |
101
+ | 小控件圆角 | 4px |
102
+ | 默认控件圆角 | 6px |
103
+ | 大容器 / 浮层圆角 | 8px |
104
+ | 顶栏高度 | 64px |
105
+ | 深色侧栏 | `#001529` |
106
+
107
+ 执行规则:
108
+
109
+ - 间距使用 4 / 8 / 12 / 16 / 20 / 24 / 32 / 48。
110
+ - 表单、筛选区、工具栏、表格、详情页使用密集但有节奏的布局。
111
+ - 控件圆角不得明显大于容器圆角。
112
+ - 不使用任意 magic number;确需新增尺寸时,先说明为什么 token 不够。
113
+
114
+ ### 动效
115
+
116
+ | Token | 值 | 用途 |
117
+ | --- | --- | --- |
118
+ | `motionDurationFast` | `0.1s` | hover、focus、press |
119
+ | `motionDurationMid` | `0.2s` | 折叠、淡入淡出、控件内部状态 |
120
+ | `motionDurationSlow` | `0.3s` | Modal、Drawer、页面级浮层 |
121
+
122
+ 动效只服务于状态反馈、层级变化和空间关系。不自造 easing。
123
+
124
+ ## 组件规则
125
+
126
+ | 组件 | 规则 |
127
+ | --- | --- |
128
+ | Button Primary | 每个决策区域只保留一个主按钮 |
129
+ | Button Default | 次级动作默认使用默认按钮或描边按钮 |
130
+ | Input / Select | 默认高度 32px,focus 可见 |
131
+ | Card | 只用于真实内容容器,不做卡片套卡片 |
132
+ | Modal | 用于阻断式决策和关键表单 |
133
+ | Drawer | 用于详情、编辑、辅助流程,不打断主列表上下文 |
134
+ | Menu | 选中态使用淡蓝背景和主色文本 |
135
+ | Tabs | 激活态使用主色文本和下划线,不加背景块 |
136
+ | Table | 表头浅表面色 + 600 字重;hover 再强调行 |
137
+ | Tag | 表达分类,不表达关键阻断状态 |
138
+ | Alert | 表达成功、警告、错误、信息等语义反馈 |
139
+ | Badge | 只做紧凑状态提示,不能替代文本 |
140
+ | Tooltip | 只提供补充解释,不承载关键业务信息 |
141
+
142
+ 交互规则:
143
+
144
+ - 每个决策区域只保留一个 single primary action;危险操作和次级动作必须在视觉层级上降级。
145
+ - 保存、提交、审批、发布、导出等可点击动作必须产生 interaction feedback,包括结果消息、行内状态变化、禁用原因或确认弹窗。
146
+ - 风险或不可逆动作使用 Modal 二次确认;禁止将“已发布”误表示为“已执行数据库变更”。
147
+
148
+ ## 页面规则
149
+
150
+ - 后台页面优先使用:Header / 查询区 / 工具栏 / 表格 / 详情抽屉 / 弹窗。
151
+ - 主从关系优先使用:左树右表、列表 + 详情、Tabs + 分区。
152
+ - 表格密集场景优先保证列可读、操作稳定、横向滚动受控。
153
+ - 筛选区要支持重置、提交、默认值和窄屏重排。
154
+ - 空态要说明下一步,不只显示“暂无数据”。
155
+ - 无权限态要说明权限缺失,不假装是空数据。
156
+
157
+ ## 状态矩阵
158
+
159
+ 设计、原型或实现至少考虑:
160
+
161
+ - loading
162
+ - empty
163
+ - error
164
+ - readonly
165
+ - disabled
166
+ - no-permission
167
+ - conflict
168
+ - dirty / unsaved
169
+ - success
170
+
171
+ 关键业务流还要补充:
172
+
173
+ - optimistic update
174
+ - idempotency
175
+ - concurrent modification
176
+ - partial success
177
+ - retryable failure
178
+ - audit-visible action
179
+
180
+ ## 响应式验收
181
+
182
+ 核心视口:
183
+
184
+ | 名称 | 尺寸 |
185
+ | --- | --- |
186
+ | mobile compact | 360 × 800 |
187
+ | mobile standard | 390 × 844 |
188
+ | mobile large | 430 × 932 |
189
+ | foldable / small tablet | 600 × 960 |
190
+ | tablet portrait | 820 × 1180 |
191
+ | tablet landscape | 1024 × 768 |
192
+ | laptop | 1366 × 768 |
193
+ | desktop | 1440 × 900 |
194
+ | wide desktop | 1920 × 1080 |
195
+
196
+ 验收规则:
197
+
198
+ - 页面整体不出现意外横向滚动。
199
+ - 表格横向滚动必须限定在表格容器内。
200
+ - 工具栏、筛选区、批量操作区在窄屏下重排或折叠。
201
+ - 长文本、按钮、标签、表头、弹窗内容不得溢出。
202
+ - 移动端表格需要说明替代形态,如卡片列表、关键列优先或详情抽屉。
203
+
204
+ ## 前端落地
205
+
206
+ React + Ant Design:
207
+
208
+ - 使用 `ConfigProvider` 注入主题。
209
+ - 默认主题使用 `theme.defaultAlgorithm`;暗色与紧凑模式通过 theme algorithm 切换,不手工反转色值或逐组件压缩。
210
+ - 优先通过 token、component token、CSS variables、theme algorithm 实现样式。
211
+ - 静态反馈 API 使用 `App`、hook API 或 context holder,避免主题上下文丢失。
212
+ - 暗色模式使用 `darkAlgorithm` 或 `variables.dark.css`。
213
+ - 紧凑模式使用 `compactAlgorithm` 或 `tokens.compact.json`。
214
+
215
+ YSS UI / Vue:
216
+
217
+ - 业务页面优先走 `yss-ui` 和 `yss-page-module-development`。
218
+ - 表单使用 `YssFormily` schema。
219
+ - 表格使用 `YTable`,列定义使用项目约定字段。
220
+ - 高度自适应使用 `useTableHeight` / `useTreeHeight`。
221
+ - 请求、分页、筛选参数下沉到 Hook。
222
+
223
+ ## 评审清单
224
+
225
+ 设计评审时检查:
226
+
227
+ - 是否引用 `docs/design/design.md`。
228
+ - 是否符合中后台定位。
229
+ - 页面清单、主路径、异常路径是否清楚。
230
+ - 状态矩阵是否完整。
231
+ - 组件选择是否复用 YSS UI / Ant Design。
232
+ - API 反推字段、筛选、分页、动作、错误、权限是否完整。
233
+ - 主操作是否唯一,次级操作是否降级。
234
+ - 响应式断点和窄屏替代形态是否清楚。
235
+
236
+ 实现评审时检查:
237
+
238
+ - 是否消费 token,而不是硬编码颜色和尺寸。
239
+ - 是否以 semantic token 表达颜色、圆角、阴影和状态层级。
240
+ - 是否保持默认 14px 正文、32px 控件、4px 间距网格。
241
+ - 是否保留 hover、focus、active、disabled、loading、empty、error 状态。
242
+ - 是否只保留一个 single primary action,并让每个关键操作提供 interaction feedback。
243
+ - 是否在目标字号和背景下复核 accessibility contrast。
244
+ - 是否存在卡片套卡片、营销式 hero、装饰性渐变或无意义插画。
245
+ - 是否存在横向溢出、文本遮挡或按钮文字溢出。
@@ -0,0 +1,36 @@
1
+ #!/usr/bin/env node
2
+ import { readFile } from "node:fs/promises";
3
+ import path from "node:path";
4
+ import { fileURLToPath } from "node:url";
5
+
6
+ export function validateFrontmatter(text) {
7
+ const match = /^---\n([\s\S]*?)\n---/.exec(text);
8
+ if (!match) throw new Error("Invalid SKILL.md frontmatter block");
9
+ const fields = new Map();
10
+ for (const line of match[1].split("\n")) {
11
+ if (!line.trim()) continue;
12
+ const index = line.indexOf(":");
13
+ if (index < 0) throw new Error(`Invalid frontmatter line: ${line}`);
14
+ fields.set(line.slice(0, index).trim(), line.slice(index + 1).trim());
15
+ }
16
+ const keys = [...fields.keys()].sort();
17
+ if (keys.join(",") !== "description,name") throw new Error(`Expected keys ['description', 'name'], got ${JSON.stringify(keys)}`);
18
+ const name = fields.get("name");
19
+ const description = fields.get("description");
20
+ if (!/^[a-z0-9-]+$/.test(name)) throw new Error("Invalid skill name: " + name);
21
+ if (!description || description.length > 1024) throw new Error("Description must be present and <= 1024 chars");
22
+ return name;
23
+ }
24
+
25
+ async function main() {
26
+ const skill = path.resolve(path.dirname(fileURLToPath(import.meta.url)), "..", "SKILL.md");
27
+ try {
28
+ const name = validateFrontmatter(await readFile(skill, "utf8"));
29
+ console.log(`${name} frontmatter ok`);
30
+ } catch (error) {
31
+ console.error(error.message);
32
+ process.exitCode = 1;
33
+ }
34
+ }
35
+
36
+ if (process.argv[1] === fileURLToPath(import.meta.url)) await main();
@@ -0,0 +1,12 @@
1
+ import assert from "node:assert/strict";
2
+ import test from "node:test";
3
+ import { validateFrontmatter } from "./validate-frontmatter.mjs";
4
+
5
+ test("accepts the required skill frontmatter", () => {
6
+ assert.equal(validateFrontmatter("---\nname: yss-design-system\ndescription: Use when validating a skill.\n---\n"), "yss-design-system");
7
+ });
8
+
9
+ test("rejects missing and unsupported frontmatter fields", () => {
10
+ assert.throws(() => validateFrontmatter("# no frontmatter"), /Invalid SKILL/);
11
+ assert.throws(() => validateFrontmatter("---\nname: bad\nextra: x\n---"), /Expected keys/);
12
+ });
@@ -0,0 +1,69 @@
1
+ ---
2
+ name: yss-distributed-id
3
+ description: Use when 用于 YSS 分布式 ID 组件的接入与排障。当用户提到 Leaf、CosId、号段模式、雪花算法、AutoIdInterceptor、MyBatis 自动注入 ID 或主键生成策略时调用。
4
+ ---
5
+
6
+ # yss-distributed-id
7
+
8
+ 用于处理 `yss-component-distributed-id` 的配置、接入和问题定位。
9
+
10
+ ## 何时使用
11
+
12
+ - 用户要启用分布式 ID。
13
+ - 用户提到 Leaf Segment、Snowflake、CosId、UUID。
14
+ - 用户反馈批量插入未自动注入 ID、ID 冲突、ID 类型不匹配。
15
+
16
+ ## 工作方式
17
+
18
+ 1. 先识别项目用的是哪种 ID 策略。
19
+ 2. 涉及真实类名、配置项、Leaf 服务或批量插入排障时,先读 `references/source-index.md`,再定位源码或文档。
20
+ 3. 再看实体注解、拦截器配置和底层表或注册中心依赖是否齐全。
21
+ 4. 修改时优先保持现有策略,不轻易切换算法。
22
+
23
+ ## 源码索引
24
+
25
+ - 源码位置不要假设固定目录;先按 `yss-source-index/references/source-location.md` 定位。
26
+ - 当前技能索引:`references/source-index.md`
27
+ - 重点源码入口通常包括 `EnableDistributedId`、`AutoIdInterceptor`、Leaf 配置、Leaf REST/Feign/gRPC 模块、ID 策略相关类。
28
+
29
+ 当组件源码变化后,用 `yss-source-index` 刷新索引;刷新或读取前先按源码定位策略确认真实位置。
30
+
31
+ ## 检查清单
32
+
33
+ - 启动类是否启用了分布式 ID 能力。
34
+ - 当前策略是否与部署条件匹配。
35
+ - 批量插入链路是否会经过拦截器。
36
+ - 实体主键类型与生成策略是否兼容。
37
+ - Leaf Segment 场景下 `leaf_alloc` 是否已初始化。
38
+ - MyBatis/MyBatis-Plus 的插入方法是否绕过了自动 ID 拦截逻辑。
39
+ - 多服务共享号段时,业务 tag/key 是否唯一且稳定。
40
+
41
+ ## 策略建议
42
+
43
+ - 追求稳定和趋势递增时,优先 Leaf Segment。
44
+ - 依赖 ZooKeeper 且要求高吞吐时,可考虑 Snowflake。
45
+ - 若项目已有 CosId 统一方案,沿用现有生态。
46
+ - 除非业务明确允许,否则不要把 Long 主键切到 String UUID。
47
+
48
+ ## 修改约束
49
+
50
+ - 不要混用多种主键生成策略而不说明边界。
51
+ - 不要仅改实体注解而忽略底层配置和依赖。
52
+ - 如果用户只是在做普通 MyBatis-Plus 主键配置,不要过度引入新组件。
53
+ - 不要在已有 Long 主键生态里随意改成 String UUID,除非调用方和数据库约束都确认兼容。
54
+
55
+ ## 排障顺序
56
+
57
+ 1. 确认启用注解和 starter 依赖。
58
+ 2. 确认实体主键类型、注解和插入方法。
59
+ 3. 确认拦截器是否参与 MyBatis 调用链。
60
+ 4. Leaf 场景确认服务、号段表和业务 key。
61
+ 5. Snowflake/CosId 场景确认机器号、时钟、注册中心或 worker 分配。
62
+ 6. 批量插入失败时确认是否调用了项目推荐批量方法。
63
+
64
+ ## 按需读取
65
+
66
+ - 源码索引:`references/source-index.md`
67
+ - 拦截器与自动注入:`assets/AutoIdInterceptor.java`
68
+ - 启用注解:`assets/EnableDistributedId.java`
69
+ - Leaf 配置相关:`assets/LeafConf.java`
@@ -0,0 +1,5 @@
1
+ version: 1
2
+ interface:
3
+ display_name: "YSS Distributed ID"
4
+ short_description: "Leaf、CosId 与分布式 ID 接入与配置规范"
5
+ default_prompt: "Use $yss-distributed-id to configure or debug distributed ID generation, Leaf, CosId, and MyBatis ID injection."
@@ -0,0 +1,246 @@
1
+ package com.yss.cloud.sankuai.mybatis;
2
+
3
+ import com.baomidou.mybatisplus.annotation.IdType;
4
+ import com.baomidou.mybatisplus.annotation.TableId;
5
+ import com.baomidou.mybatisplus.annotation.TableName;
6
+ import com.yss.cloud.exception.BizException;
7
+ import com.yss.cloud.sankuai.CosidSegmentContextHelper;
8
+ import com.yss.cloud.sankuai.GenerationTypeSeq;
9
+ import com.yss.cloud.sankuai.SegmentContextHelper;
10
+ import com.yss.cloud.sankuai.SnowflakeContextHelper;
11
+ import lombok.extern.slf4j.Slf4j;
12
+ import org.apache.commons.lang3.StringUtils;
13
+ import org.apache.ibatis.binding.BindingException;
14
+ import org.apache.ibatis.binding.MapperMethod;
15
+ import org.apache.ibatis.executor.statement.StatementHandler;
16
+ import org.apache.ibatis.mapping.BoundSql;
17
+ import org.apache.ibatis.plugin.Interceptor;
18
+ import org.apache.ibatis.plugin.Intercepts;
19
+ import org.apache.ibatis.plugin.Invocation;
20
+ import org.apache.ibatis.plugin.Signature;
21
+ import org.springframework.util.ObjectUtils;
22
+ import org.springframework.util.ReflectionUtils;
23
+
24
+ import javax.persistence.Entity;
25
+ import javax.persistence.GeneratedValue;
26
+ import javax.persistence.Table;
27
+ import java.lang.reflect.Field;
28
+ import java.sql.Connection;
29
+ import java.util.*;
30
+
31
+ @Intercepts(
32
+ {
33
+ @Signature(type = StatementHandler.class, method = "prepare", args = {Connection.class, Integer.class})
34
+ }
35
+ )
36
+ @Slf4j
37
+ public class AutoIdInterceptor implements Interceptor {
38
+
39
+ @Override
40
+ public Object intercept(Invocation invocation) throws Throwable {
41
+ StatementHandler statementHandler = (StatementHandler) invocation.getTarget();
42
+ BoundSql boundSql = statementHandler.getBoundSql();
43
+ String boundSqlStr = boundSql.getSql();
44
+ if (StringUtils.startsWithIgnoreCase(StringUtils.trim(boundSqlStr),"INSERT")){
45
+ processInsertStatement(statementHandler);
46
+ }
47
+
48
+ return invocation.proceed();
49
+ }
50
+
51
+ /**
52
+ * 1.处理插入的情况
53
+ *
54
+ * @apiNote 1.处理新增insert
55
+ * @param statementHandler 句柄
56
+ */
57
+ private void processInsertStatement(StatementHandler statementHandler) {
58
+ BoundSql boundSql = statementHandler.getBoundSql();
59
+ Object parameterObject = boundSql.getParameterObject();
60
+
61
+ if (parameterObject != null) {
62
+ processParameterObject(parameterObject);
63
+ }
64
+ }
65
+
66
+ /**
67
+ * 处理参数对象
68
+ *
69
+ * @apiNote 2.处理参数对象 mapper->entityList,plus->param1
70
+ * @param parameterObject 参数对象
71
+ */
72
+ private void processParameterObject(Object parameterObject) {
73
+ if (parameterObject instanceof MapperMethod.ParamMap<?>){
74
+ // 获取批量实体对象,若为空则为single 参数对象
75
+ Object entityList = null;
76
+ try {
77
+ entityList = ((MapperMethod.ParamMap<?>) parameterObject).get("entityList");
78
+ }catch (BindingException e){
79
+ log.warn("non entityList. info -> {}",e.getLocalizedMessage());
80
+ }
81
+ // 兼容mybatis默认参数 集合的场景
82
+ if (ObjectUtils.isEmpty(entityList)){
83
+ try {
84
+ entityList = ((MapperMethod.ParamMap<?>) parameterObject).get("collection");
85
+ }catch (BindingException e){
86
+ log.warn("non entityList & non collection. info -> {}",e.getLocalizedMessage());
87
+ }
88
+ }
89
+ // 兼容mybatis默认参数 数组的场景
90
+ if (ObjectUtils.isEmpty(entityList)){
91
+ try {
92
+ entityList = ((MapperMethod.ParamMap<?>) parameterObject).get("array");
93
+ }catch (BindingException e){
94
+ log.warn("non entityList & non collection & non array. info -> {}",e.getLocalizedMessage());
95
+ }
96
+ }
97
+ if (ObjectUtils.isEmpty(entityList)){
98
+ try {
99
+ entityList = ((MapperMethod.ParamMap<?>) parameterObject).get("param1");
100
+ }catch (BindingException e){
101
+ log.error("non param1. info -> {}",e.getLocalizedMessage());
102
+ throw new BizException("FeignAutoIdInterceptor run error");
103
+ }
104
+ }
105
+ if (entityList instanceof List) {
106
+ // 批量插入
107
+ List<?> el = (List<?>) entityList;
108
+ for (Object entity : el) {
109
+ processEntity(entity);
110
+ }
111
+ } else if (entityList.getClass().isArray()) {
112
+ // 批量插入
113
+ Object[] array = (Object[]) entityList;
114
+ for (Object entity : array) {
115
+ processEntity(entity);
116
+ }
117
+ }else {
118
+ // 单独插入
119
+ processEntity(entityList);
120
+ }
121
+ } else {
122
+ // 单独插入
123
+ processEntity(parameterObject);
124
+ }
125
+ }
126
+
127
+ /**
128
+ * 3.处理对象实体
129
+ *
130
+ * @apiNote 3.处理对象实体
131
+ * @param entity 对象实体
132
+ */
133
+ private void processEntity(Object entity) {
134
+ Class<?> entityClass = entity.getClass();
135
+ if (isEntityClass(entityClass)) {
136
+ autoIdSet(entity);
137
+ }
138
+ }
139
+
140
+ /**
141
+ * 4.自动为实体设置id
142
+ *
143
+ * @apiNote 4.自动为实体设置id
144
+ * @param entity 对象实体
145
+ */
146
+ private void autoIdSet(Object entity) {
147
+ Class<?> entityClass = entity.getClass();
148
+ List<Field> fields = getAllFields(entityClass);
149
+ for (Field field : fields) {
150
+
151
+ if (field.isAnnotationPresent(GeneratedValue.class)||
152
+ field.isAnnotationPresent(TableId.class)) {
153
+ processGeneratedValue(entity, field);
154
+ }
155
+ }
156
+ }
157
+
158
+ /**
159
+ * 5.设置id字段
160
+ *
161
+ * @param entity 实体对象
162
+ * @param field id字段
163
+ */
164
+ private void processGeneratedValue(Object entity, Field field) {
165
+ String genIdType = getGenIdType(field);
166
+
167
+ String tableName = getTableName(entity);
168
+
169
+ if (Objects.nonNull(genIdType)&&
170
+ Objects.nonNull(SegmentContextHelper.LeafConf())&&
171
+ SegmentContextHelper.LeafConf().isLeafSegmentEnable()&&
172
+ (genIdType.equals(GenerationTypeSeq.SEGMENT) || genIdType.equals(IdType.AUTO.name()) || genIdType.equals(IdType.ASSIGN_ID.name()))) {
173
+ long idValue = SegmentContextHelper.nextId(tableName);
174
+ setFieldValue(entity, field, idValue);
175
+ } else if (Objects.nonNull(genIdType)&&
176
+ Objects.nonNull(SnowflakeContextHelper.LeafConf())&&
177
+ SnowflakeContextHelper.LeafConf().isLeafSnowflakeEnable()
178
+ &&genIdType.equals(GenerationTypeSeq.SNOWFLAKE) ) {
179
+ long idValue = SnowflakeContextHelper.nextId();
180
+ setFieldValue(entity, field, idValue);
181
+ } else if (Objects.nonNull(genIdType)&&
182
+ (genIdType.equals(GenerationTypeSeq.UUID)|| genIdType.equals(IdType.ASSIGN_UUID.name()))) {
183
+ String idValue = UUID.randomUUID().toString();
184
+ setFieldValue(entity, field, idValue);
185
+ } else if (Objects.nonNull(genIdType) &&
186
+ genIdType.equals(GenerationTypeSeq.COSID_SEGMENT)) {
187
+ long idValue = CosidSegmentContextHelper.nextId(tableName);
188
+ setFieldValue(entity, field, idValue);
189
+ }
190
+ }
191
+
192
+ private void setFieldValue(Object entity, Field field, Object value) {
193
+ field.setAccessible(true);
194
+ // 如果value为null,则ID生成服务不可用,使用默认规则替代;有值则覆盖
195
+ if(!Objects.isNull(value)) {
196
+ if (field.getType() == String.class) {
197
+ ReflectionUtils.setField(field,entity,String.valueOf(value));
198
+ } else if (field.getType() == Integer.class) {
199
+ ReflectionUtils.setField(field,entity,Integer.valueOf(String.valueOf(value)));
200
+ } else {
201
+ ReflectionUtils.setField(field,entity,value);
202
+ }
203
+ }
204
+ }
205
+
206
+ private boolean isEntityClass(Class<?> clazz) {
207
+ return clazz.isAnnotationPresent(Entity.class)||clazz.isAnnotationPresent(TableName.class);
208
+ }
209
+
210
+ private String getTableName(Object entity){
211
+ Table table = entity.getClass().getAnnotation(Table.class);
212
+ if (Objects.nonNull(table)){
213
+ return table.name();
214
+ }
215
+
216
+ TableName tableName = entity.getClass().getAnnotation(TableName.class);
217
+
218
+ if (Objects.nonNull(tableName)){
219
+ return tableName.value();
220
+ }
221
+
222
+ return null;
223
+ }
224
+ private static List<Field> getAllFields(Class<?> clazz) {
225
+ List<Field> fields = new ArrayList<>();
226
+ while (clazz != null) {
227
+ Collections.addAll(fields, clazz.getDeclaredFields());
228
+ clazz = clazz.getSuperclass();
229
+ }
230
+ return fields;
231
+ }
232
+ private String getGenIdType(Field field){
233
+ GeneratedValue generatedValueAnnotation = field.getAnnotation(GeneratedValue.class);
234
+
235
+ if (Objects.nonNull(generatedValueAnnotation)){
236
+ return generatedValueAnnotation.generator();
237
+ }
238
+
239
+ TableId tableId = field.getAnnotation(TableId.class);
240
+
241
+ if (Objects.nonNull(tableId)){
242
+ return tableId.type().name();
243
+ }
244
+ return null;
245
+ }
246
+ }