create-yss-spec 3.5.3 → 3.5.5

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 (1728) hide show
  1. package/README.md +8 -0
  2. package/cli-core.lock.json +130 -0
  3. package/package.json +7 -3
  4. package/resources/upgrade-skill/SKILL.md +26 -0
  5. package/resources/upgrade-skill/protocol.md +40 -0
  6. package/resources/upgrade-skill/references/cli-families.md +14 -0
  7. package/src/cli/help.js +1 -0
  8. package/src/cli/index.js +12 -0
  9. package/src/filesystem/transaction-runner.js +27 -0
  10. package/src/template/asset-runtime.js +26 -5
  11. package/src/template/verification-runtime.js +9 -1
  12. package/template/.agents/skills/.strategic-design-skills-manifest.json +5 -5
  13. package/template/.agents/skills/archify/SKILL.md +4 -52
  14. package/template/.agents/skills/archify/references/authoring-notes.md +12 -0
  15. package/template/.agents/skills/archify/references/authoring-workflow.md +25 -0
  16. package/template/.agents/skills/archify/references/delivery-workflow.md +25 -0
  17. package/template/.agents/skills/archify/references/upstream-updates.md +12 -0
  18. package/template/.agents/skills/code-review/SKILL.md +3 -34
  19. package/template/.agents/skills/code-review/references/legacy-convergence.md +5 -0
  20. package/template/.agents/skills/code-review/references/review-axis-checklists.md +18 -0
  21. package/template/.agents/skills/code-review/references/smell-baseline.md +23 -0
  22. package/template/.agents/skills/diagnosing-bugs/SKILL.md +3 -91
  23. package/template/.agents/skills/diagnosing-bugs/references/feedback-loop.md +53 -0
  24. package/template/.agents/skills/diagnosing-bugs/references/investigation.md +49 -0
  25. package/template/.agents/skills/git-commit-core/agents/openai.yaml +2 -0
  26. package/template/.agents/skills/maintaining-skills/references/authoring.md +6 -0
  27. package/template/.agents/skills/prototype-review/SKILL.md +11 -0
  28. package/template/.agents/skills/prototype-review/references/component-qa.md +32 -0
  29. package/template/.agents/skills/setup-matt-pocock-skills/SKILL.md +3 -73
  30. package/template/.agents/skills/setup-matt-pocock-skills/references/configuration-decisions.md +42 -0
  31. package/template/.agents/skills/setup-matt-pocock-skills/references/write-configuration.md +42 -0
  32. package/template/.agents/skills/to-spec/SKILL.md +9 -62
  33. package/template/.agents/skills/to-tickets/SKILL.md +20 -86
  34. package/template/.agents/skills/using-git-worktrees/SKILL.md +5 -122
  35. package/template/.agents/skills/using-git-worktrees/references/git-fallback.md +46 -0
  36. package/template/.agents/skills/using-git-worktrees/references/setup-and-baseline.md +45 -0
  37. package/template/.agents/skills/using-git-worktrees/references/troubleshooting.md +47 -0
  38. package/template/.agents/skills/wayfinder/SKILL.md +7 -86
  39. package/template/.agents/skills/wayfinder/references/chart-map.md +14 -0
  40. package/template/.agents/skills/wayfinder/references/map-format.md +49 -0
  41. package/template/.agents/skills/wayfinder/references/scope-and-frontier.md +24 -0
  42. package/template/.agents/skills/wayfinder/references/ticket-types.md +12 -0
  43. package/template/.agents/skills/wayfinder/references/work-map.md +15 -0
  44. package/template/.agents/skills/writing-for-agents/SKILL-MECHANICS.md +20 -11
  45. package/template/.agents/skills/yedit-table-usage/SKILL.md +5 -172
  46. package/template/.agents/skills/yedit-table-usage/references/editable-table-example.md +141 -0
  47. package/template/.agents/skills/yedit-table-usage/references/select-and-filter-examples.md +38 -0
  48. package/template/.agents/skills/yss-ddd-scaffold-generator/SKILL.md +4 -25
  49. package/template/.agents/skills/yss-ddd-scaffold-generator/references/engineering-checks.md +11 -0
  50. package/template/.agents/skills/yss-ddd-scaffold-generator/references/generation-workflow.md +14 -0
  51. package/template/.agents/skills/yss-ddd-scaffold-generator/references/platform-selection.md +16 -0
  52. package/template/.agents/skills/yss-design-system/SKILL.md +13 -3
  53. package/template/.agents/skills/yss-design-system/assets/enterprise-craft/app.js +53 -0
  54. package/template/.agents/skills/yss-design-system/assets/enterprise-craft/index.html +2 -0
  55. package/template/.agents/skills/yss-design-system/assets/enterprise-craft/scenarios.js +14 -0
  56. package/template/.agents/skills/yss-design-system/assets/enterprise-craft/styles.css +32 -0
  57. package/template/.agents/skills/yss-design-system/references/data-quality-theme.md +2 -2
  58. package/template/.agents/skills/yss-design-system/references/design-qa-theme.md +1 -1
  59. package/template/.agents/skills/yss-design-system/references/design-system.md +3 -3
  60. package/template/.agents/skills/yss-design-system/references/enterprise-craft.md +33 -0
  61. package/template/.agents/skills/yss-design-system/references/page-composition.md +24 -0
  62. package/template/.agents/skills/yss-design-system/references/prototype-default-theme.md +26 -0
  63. package/template/.agents/skills/yss-design-system/references/search-date-theme.md +19 -0
  64. package/template/.agents/skills/yss-design-system/scripts/export-craft-examples.mjs +30 -0
  65. package/template/.agents/skills/yss-harness-upgrade/SKILL.md +26 -0
  66. package/template/.agents/skills/yss-harness-upgrade/references/cli-families.md +14 -0
  67. package/template/.agents/skills/yss-hook/SKILL.md +8 -102
  68. package/template/.agents/skills/yss-hook/references/async-actions.md +49 -0
  69. package/template/.agents/skills/yss-hook/references/list-pagination.md +46 -0
  70. package/template/.agents/skills/yss-hook/references/polling.md +20 -0
  71. package/template/.agents/skills/yss-implementation-contract-compiler/SKILL.md +6 -3
  72. package/template/.agents/skills/yss-implementation-contract-compiler/references/boundaries.md +1 -0
  73. package/template/.agents/skills/yss-implementation-contract-compiler/references/scaffold-compilation.md +7 -0
  74. package/template/.agents/skills/yss-openapi-draft-review/SKILL.md +2 -49
  75. package/template/.agents/skills/yss-openapi-draft-review/references/review-output.md +45 -0
  76. package/template/.agents/skills/yss-openapi-draft-review/references/semantic-review.md +16 -0
  77. package/template/.agents/skills/yss-openapi-governance/SKILL.md +2 -48
  78. package/template/.agents/skills/yss-openapi-governance/references/governance-workflow.md +38 -0
  79. package/template/.agents/skills/yss-openapi-governance/references/locked-toolchain.md +22 -0
  80. package/template/.agents/skills/yss-product-lifecycle/SKILL.md +29 -29
  81. package/template/.agents/skills/yss-product-lifecycle/references/orchestration-contract.yaml +415 -386
  82. package/template/.agents/skills/yss-product-lifecycle/references/plan-requirements.md +2 -0
  83. package/template/.agents/skills/yss-product-lifecycle/references/state-model.md +2 -2
  84. package/template/.agents/skills/yss-prototype-stage/SKILL.md +27 -8
  85. package/template/.agents/skills/yss-prototype-stage/assets/comparison/comparison.css +12 -0
  86. package/template/.agents/skills/yss-prototype-stage/assets/comparison/comparison.js +52 -0
  87. package/template/.agents/skills/yss-prototype-stage/assets/comparison/index.html +6 -0
  88. package/template/.agents/skills/yss-prototype-stage/assets/comparison/review-ready.js +2 -0
  89. package/template/.agents/skills/yss-prototype-stage/assets/low-fidelity-exercise/app.js +17 -0
  90. package/template/.agents/skills/yss-prototype-stage/assets/low-fidelity-exercise/index.html +1 -0
  91. package/template/.agents/skills/yss-prototype-stage/assets/low-fidelity-exercise/styles.css +1 -0
  92. package/template/.agents/skills/yss-prototype-stage/assets/native-workbench/app.js +12 -6
  93. package/template/.agents/skills/yss-prototype-stage/assets/native-workbench/index.html +1 -1
  94. package/template/.agents/skills/yss-prototype-stage/assets/native-workbench/scenarios.json +297 -0
  95. package/template/.agents/skills/yss-prototype-stage/assets/native-workbench/styles.css +2 -0
  96. package/template/.agents/skills/yss-prototype-stage/assets/offline-html/app.js +7 -5
  97. package/template/.agents/skills/yss-prototype-stage/assets/offline-html/scenarios.json +297 -0
  98. package/template/.agents/skills/yss-prototype-stage/assets/prototype-theme.css +92 -0
  99. package/template/.agents/skills/yss-prototype-stage/assets/scenario-runtime.js +22 -0
  100. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/SHADCN-LICENSE.txt +21 -0
  101. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/package.json +23 -0
  102. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/pnpm-lock.yaml +1278 -0
  103. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/registry-manifest.json +936 -0
  104. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/theme.css +107 -0
  105. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/alert/Alert.vue +21 -0
  106. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/alert/AlertDescription.vue +17 -0
  107. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/alert/AlertTitle.vue +17 -0
  108. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/alert/index.ts +24 -0
  109. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/alert-dialog/AlertDialog.vue +15 -0
  110. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/alert-dialog/AlertDialogAction.vue +18 -0
  111. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/alert-dialog/AlertDialogCancel.vue +25 -0
  112. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/alert-dialog/AlertDialogContent.vue +44 -0
  113. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/alert-dialog/AlertDialogDescription.vue +23 -0
  114. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/alert-dialog/AlertDialogFooter.vue +22 -0
  115. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/alert-dialog/AlertDialogHeader.vue +17 -0
  116. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/alert-dialog/AlertDialogTitle.vue +21 -0
  117. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/alert-dialog/AlertDialogTrigger.vue +12 -0
  118. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/alert-dialog/index.ts +9 -0
  119. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/badge/Badge.vue +26 -0
  120. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/badge/index.ts +26 -0
  121. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/breadcrumb/Breadcrumb.vue +17 -0
  122. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/breadcrumb/BreadcrumbEllipsis.vue +23 -0
  123. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/breadcrumb/BreadcrumbItem.vue +17 -0
  124. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/breadcrumb/BreadcrumbLink.vue +21 -0
  125. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/breadcrumb/BreadcrumbList.vue +17 -0
  126. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/breadcrumb/BreadcrumbPage.vue +20 -0
  127. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/breadcrumb/BreadcrumbSeparator.vue +22 -0
  128. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/breadcrumb/index.ts +7 -0
  129. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/button/Button.vue +31 -0
  130. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/button/index.ts +40 -0
  131. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/card/Card.vue +22 -0
  132. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/card/CardAction.vue +17 -0
  133. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/card/CardContent.vue +17 -0
  134. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/card/CardDescription.vue +17 -0
  135. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/card/CardFooter.vue +17 -0
  136. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/card/CardHeader.vue +17 -0
  137. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/card/CardTitle.vue +17 -0
  138. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/card/index.ts +7 -0
  139. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/checkbox/Checkbox.vue +35 -0
  140. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/checkbox/index.ts +1 -0
  141. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/combobox/Combobox.vue +19 -0
  142. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/combobox/ComboboxAnchor.vue +23 -0
  143. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/combobox/ComboboxEmpty.vue +21 -0
  144. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/combobox/ComboboxGroup.vue +27 -0
  145. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/combobox/ComboboxInput.vue +42 -0
  146. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/combobox/ComboboxItem.vue +24 -0
  147. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/combobox/ComboboxItemIndicator.vue +23 -0
  148. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/combobox/ComboboxList.vue +33 -0
  149. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/combobox/ComboboxSeparator.vue +21 -0
  150. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/combobox/ComboboxTrigger.vue +24 -0
  151. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/combobox/ComboboxViewport.vue +23 -0
  152. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/combobox/index.ts +13 -0
  153. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/dialog/Dialog.vue +19 -0
  154. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/dialog/DialogClose.vue +15 -0
  155. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/dialog/DialogContent.vue +53 -0
  156. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/dialog/DialogDescription.vue +23 -0
  157. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/dialog/DialogFooter.vue +27 -0
  158. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/dialog/DialogHeader.vue +17 -0
  159. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/dialog/DialogOverlay.vue +21 -0
  160. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/dialog/DialogScrollContent.vue +59 -0
  161. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/dialog/DialogTitle.vue +23 -0
  162. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/dialog/DialogTrigger.vue +15 -0
  163. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/dialog/index.ts +10 -0
  164. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/dropdown-menu/DropdownMenu.vue +19 -0
  165. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/dropdown-menu/DropdownMenuCheckboxItem.vue +39 -0
  166. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/dropdown-menu/DropdownMenuContent.vue +39 -0
  167. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/dropdown-menu/DropdownMenuGroup.vue +15 -0
  168. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/dropdown-menu/DropdownMenuItem.vue +31 -0
  169. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/dropdown-menu/DropdownMenuLabel.vue +23 -0
  170. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/dropdown-menu/DropdownMenuRadioGroup.vue +21 -0
  171. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/dropdown-menu/DropdownMenuRadioItem.vue +40 -0
  172. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/dropdown-menu/DropdownMenuSeparator.vue +23 -0
  173. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/dropdown-menu/DropdownMenuShortcut.vue +17 -0
  174. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/dropdown-menu/DropdownMenuSub.vue +18 -0
  175. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/dropdown-menu/DropdownMenuSubContent.vue +27 -0
  176. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/dropdown-menu/DropdownMenuSubTrigger.vue +31 -0
  177. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/dropdown-menu/DropdownMenuTrigger.vue +17 -0
  178. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/dropdown-menu/index.ts +16 -0
  179. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/empty/Empty.vue +20 -0
  180. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/empty/EmptyContent.vue +20 -0
  181. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/empty/EmptyDescription.vue +20 -0
  182. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/empty/EmptyHeader.vue +20 -0
  183. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/empty/EmptyMedia.vue +21 -0
  184. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/empty/EmptyTitle.vue +17 -0
  185. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/empty/index.ts +26 -0
  186. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/field/Field.vue +25 -0
  187. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/field/FieldContent.vue +20 -0
  188. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/field/FieldDescription.vue +22 -0
  189. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/field/FieldError.vue +53 -0
  190. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/field/FieldGroup.vue +20 -0
  191. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/field/FieldLabel.vue +23 -0
  192. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/field/FieldLegend.vue +24 -0
  193. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/field/FieldSeparator.vue +29 -0
  194. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/field/FieldSet.vue +21 -0
  195. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/field/FieldTitle.vue +20 -0
  196. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/field/index.ts +39 -0
  197. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/input/Input.vue +33 -0
  198. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/input/index.ts +1 -0
  199. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/input-group/InputGroup.vue +35 -0
  200. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/input-group/InputGroupAddon.vue +36 -0
  201. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/input-group/InputGroupButton.vue +29 -0
  202. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/input-group/InputGroupInput.vue +19 -0
  203. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/input-group/InputGroupText.vue +19 -0
  204. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/input-group/InputGroupTextarea.vue +19 -0
  205. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/input-group/index.ts +51 -0
  206. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/label/Label.vue +26 -0
  207. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/label/index.ts +1 -0
  208. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/pagination/Pagination.vue +26 -0
  209. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/pagination/PaginationContent.vue +22 -0
  210. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/pagination/PaginationEllipsis.vue +25 -0
  211. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/pagination/PaginationFirst.vue +33 -0
  212. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/pagination/PaginationItem.vue +34 -0
  213. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/pagination/PaginationLast.vue +33 -0
  214. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/pagination/PaginationNext.vue +33 -0
  215. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/pagination/PaginationPrevious.vue +33 -0
  216. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/pagination/index.ts +8 -0
  217. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/popover/Popover.vue +19 -0
  218. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/popover/PopoverAnchor.vue +15 -0
  219. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/popover/PopoverContent.vue +45 -0
  220. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/popover/PopoverTrigger.vue +15 -0
  221. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/popover/index.ts +4 -0
  222. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/range-calendar/RangeCalendar.vue +62 -0
  223. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/range-calendar/RangeCalendarCell.vue +23 -0
  224. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/range-calendar/RangeCalendarCellTrigger.vue +41 -0
  225. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/range-calendar/RangeCalendarGrid.vue +23 -0
  226. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/range-calendar/RangeCalendarGridBody.vue +15 -0
  227. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/range-calendar/RangeCalendarGridHead.vue +15 -0
  228. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/range-calendar/RangeCalendarGridRow.vue +22 -0
  229. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/range-calendar/RangeCalendarHeadCell.vue +23 -0
  230. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/range-calendar/RangeCalendarHeader.vue +23 -0
  231. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/range-calendar/RangeCalendarHeading.vue +30 -0
  232. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/range-calendar/RangeCalendarNextButton.vue +32 -0
  233. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/range-calendar/RangeCalendarPrevButton.vue +32 -0
  234. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/range-calendar/index.ts +12 -0
  235. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/select/Select.vue +19 -0
  236. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/select/SelectContent.vue +51 -0
  237. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/select/SelectGroup.vue +15 -0
  238. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/select/SelectItem.vue +44 -0
  239. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/select/SelectItemText.vue +15 -0
  240. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/select/SelectLabel.vue +17 -0
  241. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/select/SelectScrollDownButton.vue +26 -0
  242. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/select/SelectScrollUpButton.vue +26 -0
  243. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/select/SelectSeparator.vue +19 -0
  244. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/select/SelectTrigger.vue +33 -0
  245. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/select/SelectValue.vue +15 -0
  246. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/select/index.ts +11 -0
  247. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/separator/Separator.vue +29 -0
  248. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/separator/index.ts +1 -0
  249. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/sheet/Sheet.vue +19 -0
  250. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/sheet/SheetClose.vue +15 -0
  251. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/sheet/SheetContent.vue +62 -0
  252. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/sheet/SheetDescription.vue +21 -0
  253. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/sheet/SheetFooter.vue +16 -0
  254. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/sheet/SheetHeader.vue +15 -0
  255. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/sheet/SheetOverlay.vue +21 -0
  256. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/sheet/SheetTitle.vue +21 -0
  257. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/sheet/SheetTrigger.vue +15 -0
  258. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/sheet/index.ts +8 -0
  259. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/skeleton/Skeleton.vue +17 -0
  260. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/skeleton/index.ts +1 -0
  261. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/spinner/Spinner.vue +17 -0
  262. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/spinner/index.ts +1 -0
  263. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/table/Table.vue +16 -0
  264. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/table/TableBody.vue +17 -0
  265. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/table/TableCaption.vue +17 -0
  266. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/table/TableCell.vue +22 -0
  267. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/table/TableEmpty.vue +34 -0
  268. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/table/TableFooter.vue +17 -0
  269. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/table/TableHead.vue +17 -0
  270. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/table/TableHeader.vue +17 -0
  271. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/table/TableRow.vue +17 -0
  272. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/table/index.ts +9 -0
  273. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/tabs/Tabs.vue +24 -0
  274. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/tabs/TabsContent.vue +21 -0
  275. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/tabs/TabsList.vue +24 -0
  276. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/tabs/TabsTrigger.vue +26 -0
  277. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/tabs/index.ts +4 -0
  278. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/textarea/Textarea.vue +28 -0
  279. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/textarea/index.ts +1 -0
  280. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/tooltip/Tooltip.vue +19 -0
  281. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/tooltip/TooltipContent.vue +34 -0
  282. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/tooltip/TooltipProvider.vue +14 -0
  283. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/tooltip/TooltipTrigger.vue +15 -0
  284. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/tooltip/index.ts +4 -0
  285. package/template/.agents/skills/yss-prototype-stage/assets/shadcn-vue-authoring/utils.ts +7 -0
  286. package/template/.agents/skills/yss-prototype-stage/assets/vue-business-patterns/Analysis.vue +16 -0
  287. package/template/.agents/skills/yss-prototype-stage/assets/vue-business-patterns/Approval.vue +14 -0
  288. package/template/.agents/skills/yss-prototype-stage/assets/vue-business-patterns/CombinedQuery.vue +17 -0
  289. package/template/.agents/skills/yss-prototype-stage/assets/vue-business-patterns/ComponentStates.vue +41 -0
  290. package/template/.agents/skills/yss-prototype-stage/assets/vue-business-patterns/Conflict.vue +33 -0
  291. package/template/.agents/skills/yss-prototype-stage/assets/vue-business-patterns/DateRange.vue +29 -0
  292. package/template/.agents/skills/yss-prototype-stage/assets/vue-business-patterns/Frame.vue +7 -0
  293. package/template/.agents/skills/yss-prototype-stage/assets/vue-business-patterns/ListDetail.vue +47 -0
  294. package/template/.agents/skills/yss-prototype-stage/assets/vue-business-patterns/MultiStep.vue +24 -0
  295. package/template/.agents/skills/yss-prototype-stage/assets/vue-business-patterns/Notice.vue +5 -0
  296. package/template/.agents/skills/yss-prototype-stage/assets/vue-business-patterns/OwnerValidity.vue +26 -0
  297. package/template/.agents/skills/yss-prototype-stage/assets/vue-business-patterns/SearchSelect.vue +32 -0
  298. package/template/.agents/skills/yss-prototype-stage/assets/vue-business-patterns/Workspace.vue +174 -0
  299. package/template/.agents/skills/yss-prototype-stage/assets/vue-business-patterns/analysis-standard.config.json +6 -0
  300. package/template/.agents/skills/yss-prototype-stage/assets/vue-business-patterns/analysis-standard.ts +3 -0
  301. package/template/.agents/skills/yss-prototype-stage/assets/vue-business-patterns/analysis.scenarios.json +276 -0
  302. package/template/.agents/skills/yss-prototype-stage/assets/vue-business-patterns/approval-standard.config.json +6 -0
  303. package/template/.agents/skills/yss-prototype-stage/assets/vue-business-patterns/approval-standard.ts +3 -0
  304. package/template/.agents/skills/yss-prototype-stage/assets/vue-business-patterns/approval.scenarios.json +207 -0
  305. package/template/.agents/skills/yss-prototype-stage/assets/vue-business-patterns/business-controls.css +14 -0
  306. package/template/.agents/skills/yss-prototype-stage/assets/vue-business-patterns/business-controls.js +24 -0
  307. package/template/.agents/skills/yss-prototype-stage/assets/vue-business-patterns/combined-query-standard.config.json +6 -0
  308. package/template/.agents/skills/yss-prototype-stage/assets/vue-business-patterns/combined-query-standard.ts +3 -0
  309. package/template/.agents/skills/yss-prototype-stage/assets/vue-business-patterns/combined-query.scenarios.json +298 -0
  310. package/template/.agents/skills/yss-prototype-stage/assets/vue-business-patterns/component-states-standard.config.json +6 -0
  311. package/template/.agents/skills/yss-prototype-stage/assets/vue-business-patterns/component-states-standard.ts +3 -0
  312. package/template/.agents/skills/yss-prototype-stage/assets/vue-business-patterns/conflict-standard.config.json +6 -0
  313. package/template/.agents/skills/yss-prototype-stage/assets/vue-business-patterns/conflict-standard.ts +3 -0
  314. package/template/.agents/skills/yss-prototype-stage/assets/vue-business-patterns/conflict.scenarios.json +229 -0
  315. package/template/.agents/skills/yss-prototype-stage/assets/vue-business-patterns/list-detail-glass.config.json +6 -0
  316. package/template/.agents/skills/yss-prototype-stage/assets/vue-business-patterns/list-detail-glass.ts +3 -0
  317. package/template/.agents/skills/yss-prototype-stage/assets/vue-business-patterns/list-detail-standard.config.json +6 -0
  318. package/template/.agents/skills/yss-prototype-stage/assets/vue-business-patterns/list-detail-standard.ts +3 -0
  319. package/template/.agents/skills/yss-prototype-stage/assets/vue-business-patterns/list-detail.scenarios.json +185 -0
  320. package/template/.agents/skills/yss-prototype-stage/assets/vue-business-patterns/mount.ts +4 -0
  321. package/template/.agents/skills/yss-prototype-stage/assets/vue-business-patterns/multi-step-glass.config.json +6 -0
  322. package/template/.agents/skills/yss-prototype-stage/assets/vue-business-patterns/multi-step-glass.ts +3 -0
  323. package/template/.agents/skills/yss-prototype-stage/assets/vue-business-patterns/multi-step-standard.config.json +6 -0
  324. package/template/.agents/skills/yss-prototype-stage/assets/vue-business-patterns/multi-step-standard.ts +3 -0
  325. package/template/.agents/skills/yss-prototype-stage/assets/vue-business-patterns/multi-step.scenarios.json +188 -0
  326. package/template/.agents/skills/yss-prototype-stage/assets/vue-business-patterns/owner-validity-standard.config.json +6 -0
  327. package/template/.agents/skills/yss-prototype-stage/assets/vue-business-patterns/owner-validity-standard.ts +3 -0
  328. package/template/.agents/skills/yss-prototype-stage/assets/vue-business-patterns/owner-validity.scenarios.json +298 -0
  329. package/template/.agents/skills/yss-prototype-stage/assets/vue-business-patterns/patterns.css +26 -0
  330. package/template/.agents/skills/yss-prototype-stage/assets/vue-business-patterns/refinement.css +129 -0
  331. package/template/.agents/skills/yss-prototype-stage/assets/vue-business-patterns/workbench.ts +1 -0
  332. package/template/.agents/skills/yss-prototype-stage/assets/vue-business-patterns/workspace-definition.ts +40 -0
  333. package/template/.agents/skills/yss-prototype-stage/assets/vue-business-patterns/workspace-glass.config.json +6 -0
  334. package/template/.agents/skills/yss-prototype-stage/assets/vue-business-patterns/workspace-glass.ts +3 -0
  335. package/template/.agents/skills/yss-prototype-stage/assets/vue-business-patterns/workspace-model.js +75 -0
  336. package/template/.agents/skills/yss-prototype-stage/assets/vue-business-patterns/workspace-page.ts +18 -0
  337. package/template/.agents/skills/yss-prototype-stage/assets/vue-business-patterns/workspace-standard.config.json +6 -0
  338. package/template/.agents/skills/yss-prototype-stage/assets/vue-business-patterns/workspace-standard.ts +3 -0
  339. package/template/.agents/skills/yss-prototype-stage/assets/vue-business-patterns/workspace.css +101 -0
  340. package/template/.agents/skills/yss-prototype-stage/assets/vue-business-patterns/workspace.scenarios.json +2015 -0
  341. package/template/.agents/skills/yss-prototype-stage/assets/vue-business-patterns/workspace.ts +26 -0
  342. package/template/.agents/skills/yss-prototype-stage/references/business-patterns.md +42 -0
  343. package/template/.agents/skills/yss-prototype-stage/references/comparison-tool.md +48 -0
  344. package/template/.agents/skills/yss-prototype-stage/references/component-recipes.md +41 -0
  345. package/template/.agents/skills/yss-prototype-stage/references/concept-comparison.md +26 -0
  346. package/template/.agents/skills/yss-prototype-stage/references/enterprise-workspace.md +53 -0
  347. package/template/.agents/skills/yss-prototype-stage/references/low-fidelity-exercise.md +32 -0
  348. package/template/.agents/skills/yss-prototype-stage/references/product-design-adapter.md +11 -5
  349. package/template/.agents/skills/yss-prototype-stage/references/prototype-profile-routing.md +10 -6
  350. package/template/.agents/skills/yss-prototype-stage/references/prototype-verification.md +25 -0
  351. package/template/.agents/skills/yss-prototype-stage/references/resource-lifecycle.md +20 -0
  352. package/template/.agents/skills/yss-prototype-stage/references/search-date-patterns.md +28 -0
  353. package/template/.agents/skills/yss-prototype-stage/references/shadcn-integration.md +5 -0
  354. package/template/.agents/skills/yss-prototype-stage/references/shadcn-vue-integration.md +46 -0
  355. package/template/.agents/skills/yss-prototype-stage/references/usability-research.md +26 -0
  356. package/template/.agents/skills/yss-prototype-stage/scripts/browser-session.mjs +57 -0
  357. package/template/.agents/skills/yss-prototype-stage/scripts/build-shadcn-vue-prototype.mjs +137 -0
  358. package/template/.agents/skills/yss-prototype-stage/scripts/compose-workspace-scenarios.mjs +22 -0
  359. package/template/.agents/skills/yss-prototype-stage/scripts/export-business-patterns.mjs +7 -0
  360. package/template/.agents/skills/yss-prototype-stage/scripts/export-low-fidelity-exercise.mjs +18 -0
  361. package/template/.agents/skills/yss-prototype-stage/scripts/export-vue-patterns.mjs +21 -0
  362. package/template/.agents/skills/yss-prototype-stage/scripts/offline-html.mjs +60 -23
  363. package/template/.agents/skills/yss-prototype-stage/scripts/prototype-comparison.mjs +208 -0
  364. package/template/.agents/skills/yss-prototype-stage/scripts/prototype-contract.mjs +19 -14
  365. package/template/.agents/skills/yss-prototype-stage/scripts/scenario-contract.mjs +31 -0
  366. package/template/.agents/skills/yss-prototype-stage/scripts/verify-prototype-design.mjs +97 -0
  367. package/template/.agents/skills/yss-prototype-stage/tests/antd-reference.test.mjs +4 -24
  368. package/template/.agents/skills/yss-prototype-stage/tests/browser-harness.mjs +37 -0
  369. package/template/.agents/skills/yss-prototype-stage/tests/browser-visual.mjs +22 -0
  370. package/template/.agents/skills/yss-prototype-stage/tests/business-controls-browser.mjs +43 -0
  371. package/template/.agents/skills/yss-prototype-stage/tests/business-controls.test.mjs +20 -0
  372. package/template/.agents/skills/yss-prototype-stage/tests/compact-theme-browser.mjs +53 -0
  373. package/template/.agents/skills/yss-prototype-stage/tests/comparison-browser-smoke.mjs +77 -0
  374. package/template/.agents/skills/yss-prototype-stage/tests/comparison-fixture.mjs +16 -0
  375. package/template/.agents/skills/yss-prototype-stage/tests/comparison.test.mjs +46 -0
  376. package/template/.agents/skills/yss-prototype-stage/tests/components-browser.mjs +60 -0
  377. package/template/.agents/skills/yss-prototype-stage/tests/patterns-browser.mjs +84 -0
  378. package/template/.agents/skills/yss-prototype-stage/tests/reliability.test.mjs +34 -0
  379. package/template/.agents/skills/yss-prototype-stage/tests/retirement.test.mjs +8 -0
  380. package/template/.agents/skills/yss-prototype-stage/tests/run-scenarios.mjs +19 -2
  381. package/template/.agents/skills/yss-prototype-stage/tests/shadcn-vue.test.mjs +43 -0
  382. package/template/.agents/skills/yss-prototype-stage/tests/verification-entry.test.mjs +16 -0
  383. package/template/.agents/skills/yss-prototype-stage/tests/workbench-smoke.mjs +36 -21
  384. package/template/.agents/skills/yss-prototype-stage/tests/workspace-browser.mjs +50 -0
  385. package/template/.agents/skills/yss-prototype-stage/tests/workspace.test.mjs +70 -0
  386. package/template/.agents/skills/yss-prototype-stage/tests/zoom-browser.mjs +26 -0
  387. package/template/.agents/skills/yss-stage-decision/SKILL.md +5 -0
  388. package/template/.agents/skills/yss-stage-decision/scripts/validate-domain-strategy.mjs +8 -4
  389. package/template/.agents/skills/yss-stage-decision/scripts/validate-stage-decision-package.mjs +8 -4
  390. package/template/.agents/skills/yss-stage-decision/tests/run-scenarios.mjs +13 -1
  391. package/template/.agents/skills/yss-technical-design/SKILL.md +4 -0
  392. package/template/.agents/skills/yss-ui-business-page-generation/SKILL.md +4 -61
  393. package/template/.agents/skills/yss-ui-business-page-generation/references/page-composition-example.md +50 -0
  394. package/template/.agents/skills/yss-ui-business-page-generation/references/page-layout-example.md +19 -0
  395. package/template/.agents/skills/ytable-usage/SKILL.md +3 -191
  396. package/template/.agents/skills/ytable-usage/references/selection-and-batch.md +30 -0
  397. package/template/.agents/skills/ytable-usage/references/table-pagination-examples.md +170 -0
  398. package/template/.codex/skills/archify/SKILL.md +4 -52
  399. package/template/.codex/skills/archify/references/authoring-notes.md +12 -0
  400. package/template/.codex/skills/archify/references/authoring-workflow.md +25 -0
  401. package/template/.codex/skills/archify/references/delivery-workflow.md +25 -0
  402. package/template/.codex/skills/archify/references/upstream-updates.md +12 -0
  403. package/template/.codex/skills/code-review/SKILL.md +3 -34
  404. package/template/.codex/skills/code-review/references/legacy-convergence.md +5 -0
  405. package/template/.codex/skills/code-review/references/review-axis-checklists.md +18 -0
  406. package/template/.codex/skills/code-review/references/smell-baseline.md +23 -0
  407. package/template/.codex/skills/diagnosing-bugs/SKILL.md +3 -91
  408. package/template/.codex/skills/diagnosing-bugs/references/feedback-loop.md +53 -0
  409. package/template/.codex/skills/diagnosing-bugs/references/investigation.md +49 -0
  410. package/template/.codex/skills/git-commit-core/agents/openai.yaml +2 -0
  411. package/template/.codex/skills/maintaining-skills/references/authoring.md +6 -0
  412. package/template/.codex/skills/prototype-review/SKILL.md +11 -0
  413. package/template/.codex/skills/prototype-review/references/component-qa.md +32 -0
  414. package/template/.codex/skills/setup-matt-pocock-skills/SKILL.md +3 -73
  415. package/template/.codex/skills/setup-matt-pocock-skills/references/configuration-decisions.md +42 -0
  416. package/template/.codex/skills/setup-matt-pocock-skills/references/write-configuration.md +42 -0
  417. package/template/.codex/skills/to-spec/SKILL.md +9 -62
  418. package/template/.codex/skills/to-tickets/SKILL.md +20 -86
  419. package/template/.codex/skills/using-git-worktrees/SKILL.md +5 -122
  420. package/template/.codex/skills/using-git-worktrees/references/git-fallback.md +46 -0
  421. package/template/.codex/skills/using-git-worktrees/references/setup-and-baseline.md +45 -0
  422. package/template/.codex/skills/using-git-worktrees/references/troubleshooting.md +47 -0
  423. package/template/.codex/skills/wayfinder/SKILL.md +7 -86
  424. package/template/.codex/skills/wayfinder/references/chart-map.md +14 -0
  425. package/template/.codex/skills/wayfinder/references/map-format.md +49 -0
  426. package/template/.codex/skills/wayfinder/references/scope-and-frontier.md +24 -0
  427. package/template/.codex/skills/wayfinder/references/ticket-types.md +12 -0
  428. package/template/.codex/skills/wayfinder/references/work-map.md +15 -0
  429. package/template/.codex/skills/writing-for-agents/SKILL-MECHANICS.md +20 -11
  430. package/template/.codex/skills/yedit-table-usage/SKILL.md +5 -172
  431. package/template/.codex/skills/yedit-table-usage/references/editable-table-example.md +141 -0
  432. package/template/.codex/skills/yedit-table-usage/references/select-and-filter-examples.md +38 -0
  433. package/template/.codex/skills/yss-ddd-scaffold-generator/SKILL.md +4 -25
  434. package/template/.codex/skills/yss-ddd-scaffold-generator/references/engineering-checks.md +11 -0
  435. package/template/.codex/skills/yss-ddd-scaffold-generator/references/generation-workflow.md +14 -0
  436. package/template/.codex/skills/yss-ddd-scaffold-generator/references/platform-selection.md +16 -0
  437. package/template/.codex/skills/yss-design-system/SKILL.md +13 -3
  438. package/template/.codex/skills/yss-design-system/assets/enterprise-craft/app.js +53 -0
  439. package/template/.codex/skills/yss-design-system/assets/enterprise-craft/index.html +2 -0
  440. package/template/.codex/skills/yss-design-system/assets/enterprise-craft/scenarios.js +14 -0
  441. package/template/.codex/skills/yss-design-system/assets/enterprise-craft/styles.css +32 -0
  442. package/template/.codex/skills/yss-design-system/references/data-quality-theme.md +2 -2
  443. package/template/.codex/skills/yss-design-system/references/design-qa-theme.md +1 -1
  444. package/template/.codex/skills/yss-design-system/references/design-system.md +3 -3
  445. package/template/.codex/skills/yss-design-system/references/enterprise-craft.md +33 -0
  446. package/template/.codex/skills/yss-design-system/references/page-composition.md +24 -0
  447. package/template/.codex/skills/yss-design-system/references/prototype-default-theme.md +26 -0
  448. package/template/.codex/skills/yss-design-system/references/search-date-theme.md +19 -0
  449. package/template/.codex/skills/yss-design-system/scripts/export-craft-examples.mjs +30 -0
  450. package/template/.codex/skills/yss-harness-upgrade/SKILL.md +26 -0
  451. package/template/.codex/skills/yss-harness-upgrade/references/cli-families.md +14 -0
  452. package/template/.codex/skills/yss-hook/SKILL.md +8 -102
  453. package/template/.codex/skills/yss-hook/references/async-actions.md +49 -0
  454. package/template/.codex/skills/yss-hook/references/list-pagination.md +46 -0
  455. package/template/.codex/skills/yss-hook/references/polling.md +20 -0
  456. package/template/.codex/skills/yss-implementation-contract-compiler/SKILL.md +6 -3
  457. package/template/.codex/skills/yss-implementation-contract-compiler/references/boundaries.md +1 -0
  458. package/template/.codex/skills/yss-implementation-contract-compiler/references/scaffold-compilation.md +7 -0
  459. package/template/.codex/skills/yss-openapi-draft-review/SKILL.md +2 -49
  460. package/template/.codex/skills/yss-openapi-draft-review/references/review-output.md +45 -0
  461. package/template/.codex/skills/yss-openapi-draft-review/references/semantic-review.md +16 -0
  462. package/template/.codex/skills/yss-openapi-governance/SKILL.md +2 -48
  463. package/template/.codex/skills/yss-openapi-governance/references/governance-workflow.md +38 -0
  464. package/template/.codex/skills/yss-openapi-governance/references/locked-toolchain.md +22 -0
  465. package/template/.codex/skills/yss-product-lifecycle/SKILL.md +29 -29
  466. package/template/.codex/skills/yss-product-lifecycle/references/orchestration-contract.yaml +415 -386
  467. package/template/.codex/skills/yss-product-lifecycle/references/plan-requirements.md +2 -0
  468. package/template/.codex/skills/yss-product-lifecycle/references/state-model.md +2 -2
  469. package/template/.codex/skills/yss-prototype-stage/SKILL.md +27 -8
  470. package/template/.codex/skills/yss-prototype-stage/assets/comparison/comparison.css +12 -0
  471. package/template/.codex/skills/yss-prototype-stage/assets/comparison/comparison.js +52 -0
  472. package/template/.codex/skills/yss-prototype-stage/assets/comparison/index.html +6 -0
  473. package/template/.codex/skills/yss-prototype-stage/assets/comparison/review-ready.js +2 -0
  474. package/template/.codex/skills/yss-prototype-stage/assets/low-fidelity-exercise/app.js +17 -0
  475. package/template/.codex/skills/yss-prototype-stage/assets/low-fidelity-exercise/index.html +1 -0
  476. package/template/.codex/skills/yss-prototype-stage/assets/low-fidelity-exercise/styles.css +1 -0
  477. package/template/.codex/skills/yss-prototype-stage/assets/native-workbench/app.js +12 -6
  478. package/template/.codex/skills/yss-prototype-stage/assets/native-workbench/index.html +1 -1
  479. package/template/.codex/skills/yss-prototype-stage/assets/native-workbench/scenarios.json +297 -0
  480. package/template/.codex/skills/yss-prototype-stage/assets/native-workbench/styles.css +2 -0
  481. package/template/.codex/skills/yss-prototype-stage/assets/offline-html/app.js +7 -5
  482. package/template/.codex/skills/yss-prototype-stage/assets/offline-html/scenarios.json +297 -0
  483. package/template/.codex/skills/yss-prototype-stage/assets/prototype-theme.css +92 -0
  484. package/template/.codex/skills/yss-prototype-stage/assets/scenario-runtime.js +22 -0
  485. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/SHADCN-LICENSE.txt +21 -0
  486. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/package.json +23 -0
  487. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/pnpm-lock.yaml +1278 -0
  488. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/registry-manifest.json +936 -0
  489. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/theme.css +107 -0
  490. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/alert/Alert.vue +21 -0
  491. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/alert/AlertDescription.vue +17 -0
  492. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/alert/AlertTitle.vue +17 -0
  493. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/alert/index.ts +24 -0
  494. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/alert-dialog/AlertDialog.vue +15 -0
  495. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/alert-dialog/AlertDialogAction.vue +18 -0
  496. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/alert-dialog/AlertDialogCancel.vue +25 -0
  497. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/alert-dialog/AlertDialogContent.vue +44 -0
  498. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/alert-dialog/AlertDialogDescription.vue +23 -0
  499. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/alert-dialog/AlertDialogFooter.vue +22 -0
  500. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/alert-dialog/AlertDialogHeader.vue +17 -0
  501. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/alert-dialog/AlertDialogTitle.vue +21 -0
  502. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/alert-dialog/AlertDialogTrigger.vue +12 -0
  503. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/alert-dialog/index.ts +9 -0
  504. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/badge/Badge.vue +26 -0
  505. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/badge/index.ts +26 -0
  506. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/breadcrumb/Breadcrumb.vue +17 -0
  507. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/breadcrumb/BreadcrumbEllipsis.vue +23 -0
  508. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/breadcrumb/BreadcrumbItem.vue +17 -0
  509. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/breadcrumb/BreadcrumbLink.vue +21 -0
  510. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/breadcrumb/BreadcrumbList.vue +17 -0
  511. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/breadcrumb/BreadcrumbPage.vue +20 -0
  512. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/breadcrumb/BreadcrumbSeparator.vue +22 -0
  513. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/breadcrumb/index.ts +7 -0
  514. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/button/Button.vue +31 -0
  515. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/button/index.ts +40 -0
  516. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/card/Card.vue +22 -0
  517. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/card/CardAction.vue +17 -0
  518. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/card/CardContent.vue +17 -0
  519. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/card/CardDescription.vue +17 -0
  520. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/card/CardFooter.vue +17 -0
  521. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/card/CardHeader.vue +17 -0
  522. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/card/CardTitle.vue +17 -0
  523. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/card/index.ts +7 -0
  524. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/checkbox/Checkbox.vue +35 -0
  525. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/checkbox/index.ts +1 -0
  526. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/combobox/Combobox.vue +19 -0
  527. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/combobox/ComboboxAnchor.vue +23 -0
  528. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/combobox/ComboboxEmpty.vue +21 -0
  529. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/combobox/ComboboxGroup.vue +27 -0
  530. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/combobox/ComboboxInput.vue +42 -0
  531. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/combobox/ComboboxItem.vue +24 -0
  532. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/combobox/ComboboxItemIndicator.vue +23 -0
  533. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/combobox/ComboboxList.vue +33 -0
  534. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/combobox/ComboboxSeparator.vue +21 -0
  535. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/combobox/ComboboxTrigger.vue +24 -0
  536. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/combobox/ComboboxViewport.vue +23 -0
  537. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/combobox/index.ts +13 -0
  538. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/dialog/Dialog.vue +19 -0
  539. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/dialog/DialogClose.vue +15 -0
  540. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/dialog/DialogContent.vue +53 -0
  541. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/dialog/DialogDescription.vue +23 -0
  542. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/dialog/DialogFooter.vue +27 -0
  543. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/dialog/DialogHeader.vue +17 -0
  544. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/dialog/DialogOverlay.vue +21 -0
  545. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/dialog/DialogScrollContent.vue +59 -0
  546. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/dialog/DialogTitle.vue +23 -0
  547. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/dialog/DialogTrigger.vue +15 -0
  548. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/dialog/index.ts +10 -0
  549. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/dropdown-menu/DropdownMenu.vue +19 -0
  550. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/dropdown-menu/DropdownMenuCheckboxItem.vue +39 -0
  551. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/dropdown-menu/DropdownMenuContent.vue +39 -0
  552. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/dropdown-menu/DropdownMenuGroup.vue +15 -0
  553. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/dropdown-menu/DropdownMenuItem.vue +31 -0
  554. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/dropdown-menu/DropdownMenuLabel.vue +23 -0
  555. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/dropdown-menu/DropdownMenuRadioGroup.vue +21 -0
  556. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/dropdown-menu/DropdownMenuRadioItem.vue +40 -0
  557. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/dropdown-menu/DropdownMenuSeparator.vue +23 -0
  558. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/dropdown-menu/DropdownMenuShortcut.vue +17 -0
  559. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/dropdown-menu/DropdownMenuSub.vue +18 -0
  560. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/dropdown-menu/DropdownMenuSubContent.vue +27 -0
  561. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/dropdown-menu/DropdownMenuSubTrigger.vue +31 -0
  562. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/dropdown-menu/DropdownMenuTrigger.vue +17 -0
  563. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/dropdown-menu/index.ts +16 -0
  564. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/empty/Empty.vue +20 -0
  565. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/empty/EmptyContent.vue +20 -0
  566. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/empty/EmptyDescription.vue +20 -0
  567. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/empty/EmptyHeader.vue +20 -0
  568. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/empty/EmptyMedia.vue +21 -0
  569. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/empty/EmptyTitle.vue +17 -0
  570. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/empty/index.ts +26 -0
  571. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/field/Field.vue +25 -0
  572. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/field/FieldContent.vue +20 -0
  573. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/field/FieldDescription.vue +22 -0
  574. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/field/FieldError.vue +53 -0
  575. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/field/FieldGroup.vue +20 -0
  576. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/field/FieldLabel.vue +23 -0
  577. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/field/FieldLegend.vue +24 -0
  578. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/field/FieldSeparator.vue +29 -0
  579. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/field/FieldSet.vue +21 -0
  580. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/field/FieldTitle.vue +20 -0
  581. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/field/index.ts +39 -0
  582. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/input/Input.vue +33 -0
  583. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/input/index.ts +1 -0
  584. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/input-group/InputGroup.vue +35 -0
  585. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/input-group/InputGroupAddon.vue +36 -0
  586. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/input-group/InputGroupButton.vue +29 -0
  587. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/input-group/InputGroupInput.vue +19 -0
  588. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/input-group/InputGroupText.vue +19 -0
  589. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/input-group/InputGroupTextarea.vue +19 -0
  590. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/input-group/index.ts +51 -0
  591. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/label/Label.vue +26 -0
  592. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/label/index.ts +1 -0
  593. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/pagination/Pagination.vue +26 -0
  594. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/pagination/PaginationContent.vue +22 -0
  595. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/pagination/PaginationEllipsis.vue +25 -0
  596. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/pagination/PaginationFirst.vue +33 -0
  597. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/pagination/PaginationItem.vue +34 -0
  598. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/pagination/PaginationLast.vue +33 -0
  599. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/pagination/PaginationNext.vue +33 -0
  600. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/pagination/PaginationPrevious.vue +33 -0
  601. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/pagination/index.ts +8 -0
  602. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/popover/Popover.vue +19 -0
  603. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/popover/PopoverAnchor.vue +15 -0
  604. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/popover/PopoverContent.vue +45 -0
  605. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/popover/PopoverTrigger.vue +15 -0
  606. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/popover/index.ts +4 -0
  607. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/range-calendar/RangeCalendar.vue +62 -0
  608. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/range-calendar/RangeCalendarCell.vue +23 -0
  609. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/range-calendar/RangeCalendarCellTrigger.vue +41 -0
  610. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/range-calendar/RangeCalendarGrid.vue +23 -0
  611. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/range-calendar/RangeCalendarGridBody.vue +15 -0
  612. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/range-calendar/RangeCalendarGridHead.vue +15 -0
  613. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/range-calendar/RangeCalendarGridRow.vue +22 -0
  614. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/range-calendar/RangeCalendarHeadCell.vue +23 -0
  615. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/range-calendar/RangeCalendarHeader.vue +23 -0
  616. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/range-calendar/RangeCalendarHeading.vue +30 -0
  617. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/range-calendar/RangeCalendarNextButton.vue +32 -0
  618. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/range-calendar/RangeCalendarPrevButton.vue +32 -0
  619. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/range-calendar/index.ts +12 -0
  620. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/select/Select.vue +19 -0
  621. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/select/SelectContent.vue +51 -0
  622. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/select/SelectGroup.vue +15 -0
  623. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/select/SelectItem.vue +44 -0
  624. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/select/SelectItemText.vue +15 -0
  625. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/select/SelectLabel.vue +17 -0
  626. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/select/SelectScrollDownButton.vue +26 -0
  627. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/select/SelectScrollUpButton.vue +26 -0
  628. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/select/SelectSeparator.vue +19 -0
  629. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/select/SelectTrigger.vue +33 -0
  630. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/select/SelectValue.vue +15 -0
  631. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/select/index.ts +11 -0
  632. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/separator/Separator.vue +29 -0
  633. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/separator/index.ts +1 -0
  634. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/sheet/Sheet.vue +19 -0
  635. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/sheet/SheetClose.vue +15 -0
  636. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/sheet/SheetContent.vue +62 -0
  637. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/sheet/SheetDescription.vue +21 -0
  638. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/sheet/SheetFooter.vue +16 -0
  639. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/sheet/SheetHeader.vue +15 -0
  640. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/sheet/SheetOverlay.vue +21 -0
  641. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/sheet/SheetTitle.vue +21 -0
  642. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/sheet/SheetTrigger.vue +15 -0
  643. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/sheet/index.ts +8 -0
  644. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/skeleton/Skeleton.vue +17 -0
  645. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/skeleton/index.ts +1 -0
  646. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/spinner/Spinner.vue +17 -0
  647. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/spinner/index.ts +1 -0
  648. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/table/Table.vue +16 -0
  649. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/table/TableBody.vue +17 -0
  650. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/table/TableCaption.vue +17 -0
  651. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/table/TableCell.vue +22 -0
  652. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/table/TableEmpty.vue +34 -0
  653. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/table/TableFooter.vue +17 -0
  654. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/table/TableHead.vue +17 -0
  655. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/table/TableHeader.vue +17 -0
  656. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/table/TableRow.vue +17 -0
  657. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/table/index.ts +9 -0
  658. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/tabs/Tabs.vue +24 -0
  659. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/tabs/TabsContent.vue +21 -0
  660. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/tabs/TabsList.vue +24 -0
  661. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/tabs/TabsTrigger.vue +26 -0
  662. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/tabs/index.ts +4 -0
  663. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/textarea/Textarea.vue +28 -0
  664. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/textarea/index.ts +1 -0
  665. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/tooltip/Tooltip.vue +19 -0
  666. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/tooltip/TooltipContent.vue +34 -0
  667. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/tooltip/TooltipProvider.vue +14 -0
  668. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/tooltip/TooltipTrigger.vue +15 -0
  669. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/tooltip/index.ts +4 -0
  670. package/template/.codex/skills/yss-prototype-stage/assets/shadcn-vue-authoring/utils.ts +7 -0
  671. package/template/.codex/skills/yss-prototype-stage/assets/vue-business-patterns/Analysis.vue +16 -0
  672. package/template/.codex/skills/yss-prototype-stage/assets/vue-business-patterns/Approval.vue +14 -0
  673. package/template/.codex/skills/yss-prototype-stage/assets/vue-business-patterns/CombinedQuery.vue +17 -0
  674. package/template/.codex/skills/yss-prototype-stage/assets/vue-business-patterns/ComponentStates.vue +41 -0
  675. package/template/.codex/skills/yss-prototype-stage/assets/vue-business-patterns/Conflict.vue +33 -0
  676. package/template/.codex/skills/yss-prototype-stage/assets/vue-business-patterns/DateRange.vue +29 -0
  677. package/template/.codex/skills/yss-prototype-stage/assets/vue-business-patterns/Frame.vue +7 -0
  678. package/template/.codex/skills/yss-prototype-stage/assets/vue-business-patterns/ListDetail.vue +47 -0
  679. package/template/.codex/skills/yss-prototype-stage/assets/vue-business-patterns/MultiStep.vue +24 -0
  680. package/template/.codex/skills/yss-prototype-stage/assets/vue-business-patterns/Notice.vue +5 -0
  681. package/template/.codex/skills/yss-prototype-stage/assets/vue-business-patterns/OwnerValidity.vue +26 -0
  682. package/template/.codex/skills/yss-prototype-stage/assets/vue-business-patterns/SearchSelect.vue +32 -0
  683. package/template/.codex/skills/yss-prototype-stage/assets/vue-business-patterns/Workspace.vue +174 -0
  684. package/template/.codex/skills/yss-prototype-stage/assets/vue-business-patterns/analysis-standard.config.json +6 -0
  685. package/template/.codex/skills/yss-prototype-stage/assets/vue-business-patterns/analysis-standard.ts +3 -0
  686. package/template/.codex/skills/yss-prototype-stage/assets/vue-business-patterns/analysis.scenarios.json +276 -0
  687. package/template/.codex/skills/yss-prototype-stage/assets/vue-business-patterns/approval-standard.config.json +6 -0
  688. package/template/.codex/skills/yss-prototype-stage/assets/vue-business-patterns/approval-standard.ts +3 -0
  689. package/template/.codex/skills/yss-prototype-stage/assets/vue-business-patterns/approval.scenarios.json +207 -0
  690. package/template/.codex/skills/yss-prototype-stage/assets/vue-business-patterns/business-controls.css +14 -0
  691. package/template/.codex/skills/yss-prototype-stage/assets/vue-business-patterns/business-controls.js +24 -0
  692. package/template/.codex/skills/yss-prototype-stage/assets/vue-business-patterns/combined-query-standard.config.json +6 -0
  693. package/template/.codex/skills/yss-prototype-stage/assets/vue-business-patterns/combined-query-standard.ts +3 -0
  694. package/template/.codex/skills/yss-prototype-stage/assets/vue-business-patterns/combined-query.scenarios.json +298 -0
  695. package/template/.codex/skills/yss-prototype-stage/assets/vue-business-patterns/component-states-standard.config.json +6 -0
  696. package/template/.codex/skills/yss-prototype-stage/assets/vue-business-patterns/component-states-standard.ts +3 -0
  697. package/template/.codex/skills/yss-prototype-stage/assets/vue-business-patterns/conflict-standard.config.json +6 -0
  698. package/template/.codex/skills/yss-prototype-stage/assets/vue-business-patterns/conflict-standard.ts +3 -0
  699. package/template/.codex/skills/yss-prototype-stage/assets/vue-business-patterns/conflict.scenarios.json +229 -0
  700. package/template/.codex/skills/yss-prototype-stage/assets/vue-business-patterns/list-detail-glass.config.json +6 -0
  701. package/template/.codex/skills/yss-prototype-stage/assets/vue-business-patterns/list-detail-glass.ts +3 -0
  702. package/template/.codex/skills/yss-prototype-stage/assets/vue-business-patterns/list-detail-standard.config.json +6 -0
  703. package/template/.codex/skills/yss-prototype-stage/assets/vue-business-patterns/list-detail-standard.ts +3 -0
  704. package/template/.codex/skills/yss-prototype-stage/assets/vue-business-patterns/list-detail.scenarios.json +185 -0
  705. package/template/.codex/skills/yss-prototype-stage/assets/vue-business-patterns/mount.ts +4 -0
  706. package/template/.codex/skills/yss-prototype-stage/assets/vue-business-patterns/multi-step-glass.config.json +6 -0
  707. package/template/.codex/skills/yss-prototype-stage/assets/vue-business-patterns/multi-step-glass.ts +3 -0
  708. package/template/.codex/skills/yss-prototype-stage/assets/vue-business-patterns/multi-step-standard.config.json +6 -0
  709. package/template/.codex/skills/yss-prototype-stage/assets/vue-business-patterns/multi-step-standard.ts +3 -0
  710. package/template/.codex/skills/yss-prototype-stage/assets/vue-business-patterns/multi-step.scenarios.json +188 -0
  711. package/template/.codex/skills/yss-prototype-stage/assets/vue-business-patterns/owner-validity-standard.config.json +6 -0
  712. package/template/.codex/skills/yss-prototype-stage/assets/vue-business-patterns/owner-validity-standard.ts +3 -0
  713. package/template/.codex/skills/yss-prototype-stage/assets/vue-business-patterns/owner-validity.scenarios.json +298 -0
  714. package/template/.codex/skills/yss-prototype-stage/assets/vue-business-patterns/patterns.css +26 -0
  715. package/template/.codex/skills/yss-prototype-stage/assets/vue-business-patterns/refinement.css +129 -0
  716. package/template/.codex/skills/yss-prototype-stage/assets/vue-business-patterns/workbench.ts +1 -0
  717. package/template/.codex/skills/yss-prototype-stage/assets/vue-business-patterns/workspace-definition.ts +40 -0
  718. package/template/.codex/skills/yss-prototype-stage/assets/vue-business-patterns/workspace-glass.config.json +6 -0
  719. package/template/.codex/skills/yss-prototype-stage/assets/vue-business-patterns/workspace-glass.ts +3 -0
  720. package/template/.codex/skills/yss-prototype-stage/assets/vue-business-patterns/workspace-model.js +75 -0
  721. package/template/.codex/skills/yss-prototype-stage/assets/vue-business-patterns/workspace-page.ts +18 -0
  722. package/template/.codex/skills/yss-prototype-stage/assets/vue-business-patterns/workspace-standard.config.json +6 -0
  723. package/template/.codex/skills/yss-prototype-stage/assets/vue-business-patterns/workspace-standard.ts +3 -0
  724. package/template/.codex/skills/yss-prototype-stage/assets/vue-business-patterns/workspace.css +101 -0
  725. package/template/.codex/skills/yss-prototype-stage/assets/vue-business-patterns/workspace.scenarios.json +2015 -0
  726. package/template/.codex/skills/yss-prototype-stage/assets/vue-business-patterns/workspace.ts +26 -0
  727. package/template/.codex/skills/yss-prototype-stage/references/business-patterns.md +42 -0
  728. package/template/.codex/skills/yss-prototype-stage/references/comparison-tool.md +48 -0
  729. package/template/.codex/skills/yss-prototype-stage/references/component-recipes.md +41 -0
  730. package/template/.codex/skills/yss-prototype-stage/references/concept-comparison.md +26 -0
  731. package/template/.codex/skills/yss-prototype-stage/references/enterprise-workspace.md +53 -0
  732. package/template/.codex/skills/yss-prototype-stage/references/low-fidelity-exercise.md +32 -0
  733. package/template/.codex/skills/yss-prototype-stage/references/product-design-adapter.md +11 -5
  734. package/template/.codex/skills/yss-prototype-stage/references/prototype-profile-routing.md +10 -6
  735. package/template/.codex/skills/yss-prototype-stage/references/prototype-verification.md +25 -0
  736. package/template/.codex/skills/yss-prototype-stage/references/resource-lifecycle.md +20 -0
  737. package/template/.codex/skills/yss-prototype-stage/references/search-date-patterns.md +28 -0
  738. package/template/.codex/skills/yss-prototype-stage/references/shadcn-integration.md +5 -0
  739. package/template/.codex/skills/yss-prototype-stage/references/shadcn-vue-integration.md +46 -0
  740. package/template/.codex/skills/yss-prototype-stage/references/usability-research.md +26 -0
  741. package/template/.codex/skills/yss-prototype-stage/scripts/browser-session.mjs +57 -0
  742. package/template/.codex/skills/yss-prototype-stage/scripts/build-shadcn-vue-prototype.mjs +137 -0
  743. package/template/.codex/skills/yss-prototype-stage/scripts/compose-workspace-scenarios.mjs +22 -0
  744. package/template/.codex/skills/yss-prototype-stage/scripts/export-business-patterns.mjs +7 -0
  745. package/template/.codex/skills/yss-prototype-stage/scripts/export-low-fidelity-exercise.mjs +18 -0
  746. package/template/.codex/skills/yss-prototype-stage/scripts/export-vue-patterns.mjs +21 -0
  747. package/template/.codex/skills/yss-prototype-stage/scripts/offline-html.mjs +60 -23
  748. package/template/.codex/skills/yss-prototype-stage/scripts/prototype-comparison.mjs +208 -0
  749. package/template/.codex/skills/yss-prototype-stage/scripts/prototype-contract.mjs +19 -14
  750. package/template/.codex/skills/yss-prototype-stage/scripts/scenario-contract.mjs +31 -0
  751. package/template/.codex/skills/yss-prototype-stage/scripts/verify-prototype-design.mjs +97 -0
  752. package/template/.codex/skills/yss-prototype-stage/tests/antd-reference.test.mjs +4 -24
  753. package/template/.codex/skills/yss-prototype-stage/tests/browser-harness.mjs +37 -0
  754. package/template/.codex/skills/yss-prototype-stage/tests/browser-visual.mjs +22 -0
  755. package/template/.codex/skills/yss-prototype-stage/tests/business-controls-browser.mjs +43 -0
  756. package/template/.codex/skills/yss-prototype-stage/tests/business-controls.test.mjs +20 -0
  757. package/template/.codex/skills/yss-prototype-stage/tests/compact-theme-browser.mjs +53 -0
  758. package/template/.codex/skills/yss-prototype-stage/tests/comparison-browser-smoke.mjs +77 -0
  759. package/template/.codex/skills/yss-prototype-stage/tests/comparison-fixture.mjs +16 -0
  760. package/template/.codex/skills/yss-prototype-stage/tests/comparison.test.mjs +46 -0
  761. package/template/.codex/skills/yss-prototype-stage/tests/components-browser.mjs +60 -0
  762. package/template/.codex/skills/yss-prototype-stage/tests/patterns-browser.mjs +84 -0
  763. package/template/.codex/skills/yss-prototype-stage/tests/reliability.test.mjs +34 -0
  764. package/template/.codex/skills/yss-prototype-stage/tests/retirement.test.mjs +8 -0
  765. package/template/.codex/skills/yss-prototype-stage/tests/run-scenarios.mjs +19 -2
  766. package/template/.codex/skills/yss-prototype-stage/tests/shadcn-vue.test.mjs +43 -0
  767. package/template/.codex/skills/yss-prototype-stage/tests/verification-entry.test.mjs +16 -0
  768. package/template/.codex/skills/yss-prototype-stage/tests/workbench-smoke.mjs +36 -21
  769. package/template/.codex/skills/yss-prototype-stage/tests/workspace-browser.mjs +50 -0
  770. package/template/.codex/skills/yss-prototype-stage/tests/workspace.test.mjs +70 -0
  771. package/template/.codex/skills/yss-prototype-stage/tests/zoom-browser.mjs +26 -0
  772. package/template/.codex/skills/yss-stage-decision/SKILL.md +5 -0
  773. package/template/.codex/skills/yss-stage-decision/scripts/validate-domain-strategy.mjs +8 -4
  774. package/template/.codex/skills/yss-stage-decision/scripts/validate-stage-decision-package.mjs +8 -4
  775. package/template/.codex/skills/yss-stage-decision/tests/run-scenarios.mjs +13 -1
  776. package/template/.codex/skills/yss-technical-design/SKILL.md +4 -0
  777. package/template/.codex/skills/yss-ui-business-page-generation/SKILL.md +4 -61
  778. package/template/.codex/skills/yss-ui-business-page-generation/references/page-composition-example.md +50 -0
  779. package/template/.codex/skills/yss-ui-business-page-generation/references/page-layout-example.md +19 -0
  780. package/template/.codex/skills/ytable-usage/SKILL.md +3 -191
  781. package/template/.codex/skills/ytable-usage/references/selection-and-batch.md +30 -0
  782. package/template/.codex/skills/ytable-usage/references/table-pagination-examples.md +170 -0
  783. package/template/.cursor/skills/archify/SKILL.md +4 -52
  784. package/template/.cursor/skills/archify/references/authoring-notes.md +12 -0
  785. package/template/.cursor/skills/archify/references/authoring-workflow.md +25 -0
  786. package/template/.cursor/skills/archify/references/delivery-workflow.md +25 -0
  787. package/template/.cursor/skills/archify/references/upstream-updates.md +12 -0
  788. package/template/.cursor/skills/code-review/SKILL.md +3 -34
  789. package/template/.cursor/skills/code-review/references/legacy-convergence.md +5 -0
  790. package/template/.cursor/skills/code-review/references/review-axis-checklists.md +18 -0
  791. package/template/.cursor/skills/code-review/references/smell-baseline.md +23 -0
  792. package/template/.cursor/skills/diagnosing-bugs/SKILL.md +3 -91
  793. package/template/.cursor/skills/diagnosing-bugs/references/feedback-loop.md +53 -0
  794. package/template/.cursor/skills/diagnosing-bugs/references/investigation.md +49 -0
  795. package/template/.cursor/skills/git-commit-core/agents/openai.yaml +2 -0
  796. package/template/.cursor/skills/maintaining-skills/references/authoring.md +6 -0
  797. package/template/.cursor/skills/prototype-review/SKILL.md +11 -0
  798. package/template/.cursor/skills/prototype-review/references/component-qa.md +32 -0
  799. package/template/.cursor/skills/setup-matt-pocock-skills/SKILL.md +3 -73
  800. package/template/.cursor/skills/setup-matt-pocock-skills/references/configuration-decisions.md +42 -0
  801. package/template/.cursor/skills/setup-matt-pocock-skills/references/write-configuration.md +42 -0
  802. package/template/.cursor/skills/to-spec/SKILL.md +9 -62
  803. package/template/.cursor/skills/to-tickets/SKILL.md +20 -86
  804. package/template/.cursor/skills/using-git-worktrees/SKILL.md +5 -122
  805. package/template/.cursor/skills/using-git-worktrees/references/git-fallback.md +46 -0
  806. package/template/.cursor/skills/using-git-worktrees/references/setup-and-baseline.md +45 -0
  807. package/template/.cursor/skills/using-git-worktrees/references/troubleshooting.md +47 -0
  808. package/template/.cursor/skills/wayfinder/SKILL.md +7 -86
  809. package/template/.cursor/skills/wayfinder/references/chart-map.md +14 -0
  810. package/template/.cursor/skills/wayfinder/references/map-format.md +49 -0
  811. package/template/.cursor/skills/wayfinder/references/scope-and-frontier.md +24 -0
  812. package/template/.cursor/skills/wayfinder/references/ticket-types.md +12 -0
  813. package/template/.cursor/skills/wayfinder/references/work-map.md +15 -0
  814. package/template/.cursor/skills/writing-for-agents/SKILL-MECHANICS.md +20 -11
  815. package/template/.cursor/skills/yedit-table-usage/SKILL.md +5 -172
  816. package/template/.cursor/skills/yedit-table-usage/references/editable-table-example.md +141 -0
  817. package/template/.cursor/skills/yedit-table-usage/references/select-and-filter-examples.md +38 -0
  818. package/template/.cursor/skills/yss-ddd-scaffold-generator/SKILL.md +4 -25
  819. package/template/.cursor/skills/yss-ddd-scaffold-generator/references/engineering-checks.md +11 -0
  820. package/template/.cursor/skills/yss-ddd-scaffold-generator/references/generation-workflow.md +14 -0
  821. package/template/.cursor/skills/yss-ddd-scaffold-generator/references/platform-selection.md +16 -0
  822. package/template/.cursor/skills/yss-design-system/SKILL.md +13 -3
  823. package/template/.cursor/skills/yss-design-system/assets/enterprise-craft/app.js +53 -0
  824. package/template/.cursor/skills/yss-design-system/assets/enterprise-craft/index.html +2 -0
  825. package/template/.cursor/skills/yss-design-system/assets/enterprise-craft/scenarios.js +14 -0
  826. package/template/.cursor/skills/yss-design-system/assets/enterprise-craft/styles.css +32 -0
  827. package/template/.cursor/skills/yss-design-system/references/data-quality-theme.md +2 -2
  828. package/template/.cursor/skills/yss-design-system/references/design-qa-theme.md +1 -1
  829. package/template/.cursor/skills/yss-design-system/references/design-system.md +3 -3
  830. package/template/.cursor/skills/yss-design-system/references/enterprise-craft.md +33 -0
  831. package/template/.cursor/skills/yss-design-system/references/page-composition.md +24 -0
  832. package/template/.cursor/skills/yss-design-system/references/prototype-default-theme.md +26 -0
  833. package/template/.cursor/skills/yss-design-system/references/search-date-theme.md +19 -0
  834. package/template/.cursor/skills/yss-design-system/scripts/export-craft-examples.mjs +30 -0
  835. package/template/.cursor/skills/yss-harness-upgrade/SKILL.md +26 -0
  836. package/template/.cursor/skills/yss-harness-upgrade/references/cli-families.md +14 -0
  837. package/template/.cursor/skills/yss-hook/SKILL.md +8 -102
  838. package/template/.cursor/skills/yss-hook/references/async-actions.md +49 -0
  839. package/template/.cursor/skills/yss-hook/references/list-pagination.md +46 -0
  840. package/template/.cursor/skills/yss-hook/references/polling.md +20 -0
  841. package/template/.cursor/skills/yss-implementation-contract-compiler/SKILL.md +6 -3
  842. package/template/.cursor/skills/yss-implementation-contract-compiler/references/boundaries.md +1 -0
  843. package/template/.cursor/skills/yss-implementation-contract-compiler/references/scaffold-compilation.md +7 -0
  844. package/template/.cursor/skills/yss-openapi-draft-review/SKILL.md +2 -49
  845. package/template/.cursor/skills/yss-openapi-draft-review/references/review-output.md +45 -0
  846. package/template/.cursor/skills/yss-openapi-draft-review/references/semantic-review.md +16 -0
  847. package/template/.cursor/skills/yss-openapi-governance/SKILL.md +2 -48
  848. package/template/.cursor/skills/yss-openapi-governance/references/governance-workflow.md +38 -0
  849. package/template/.cursor/skills/yss-openapi-governance/references/locked-toolchain.md +22 -0
  850. package/template/.cursor/skills/yss-product-lifecycle/SKILL.md +29 -29
  851. package/template/.cursor/skills/yss-product-lifecycle/references/orchestration-contract.yaml +415 -386
  852. package/template/.cursor/skills/yss-product-lifecycle/references/plan-requirements.md +2 -0
  853. package/template/.cursor/skills/yss-product-lifecycle/references/state-model.md +2 -2
  854. package/template/.cursor/skills/yss-prototype-stage/SKILL.md +27 -8
  855. package/template/.cursor/skills/yss-prototype-stage/assets/comparison/comparison.css +12 -0
  856. package/template/.cursor/skills/yss-prototype-stage/assets/comparison/comparison.js +52 -0
  857. package/template/.cursor/skills/yss-prototype-stage/assets/comparison/index.html +6 -0
  858. package/template/.cursor/skills/yss-prototype-stage/assets/comparison/review-ready.js +2 -0
  859. package/template/.cursor/skills/yss-prototype-stage/assets/low-fidelity-exercise/app.js +17 -0
  860. package/template/.cursor/skills/yss-prototype-stage/assets/low-fidelity-exercise/index.html +1 -0
  861. package/template/.cursor/skills/yss-prototype-stage/assets/low-fidelity-exercise/styles.css +1 -0
  862. package/template/.cursor/skills/yss-prototype-stage/assets/native-workbench/app.js +12 -6
  863. package/template/.cursor/skills/yss-prototype-stage/assets/native-workbench/index.html +1 -1
  864. package/template/.cursor/skills/yss-prototype-stage/assets/native-workbench/scenarios.json +297 -0
  865. package/template/.cursor/skills/yss-prototype-stage/assets/native-workbench/styles.css +2 -0
  866. package/template/.cursor/skills/yss-prototype-stage/assets/offline-html/app.js +7 -5
  867. package/template/.cursor/skills/yss-prototype-stage/assets/offline-html/scenarios.json +297 -0
  868. package/template/.cursor/skills/yss-prototype-stage/assets/prototype-theme.css +92 -0
  869. package/template/.cursor/skills/yss-prototype-stage/assets/scenario-runtime.js +22 -0
  870. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/SHADCN-LICENSE.txt +21 -0
  871. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/package.json +23 -0
  872. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/pnpm-lock.yaml +1278 -0
  873. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/registry-manifest.json +936 -0
  874. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/theme.css +107 -0
  875. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/alert/Alert.vue +21 -0
  876. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/alert/AlertDescription.vue +17 -0
  877. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/alert/AlertTitle.vue +17 -0
  878. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/alert/index.ts +24 -0
  879. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/alert-dialog/AlertDialog.vue +15 -0
  880. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/alert-dialog/AlertDialogAction.vue +18 -0
  881. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/alert-dialog/AlertDialogCancel.vue +25 -0
  882. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/alert-dialog/AlertDialogContent.vue +44 -0
  883. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/alert-dialog/AlertDialogDescription.vue +23 -0
  884. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/alert-dialog/AlertDialogFooter.vue +22 -0
  885. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/alert-dialog/AlertDialogHeader.vue +17 -0
  886. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/alert-dialog/AlertDialogTitle.vue +21 -0
  887. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/alert-dialog/AlertDialogTrigger.vue +12 -0
  888. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/alert-dialog/index.ts +9 -0
  889. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/badge/Badge.vue +26 -0
  890. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/badge/index.ts +26 -0
  891. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/breadcrumb/Breadcrumb.vue +17 -0
  892. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/breadcrumb/BreadcrumbEllipsis.vue +23 -0
  893. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/breadcrumb/BreadcrumbItem.vue +17 -0
  894. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/breadcrumb/BreadcrumbLink.vue +21 -0
  895. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/breadcrumb/BreadcrumbList.vue +17 -0
  896. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/breadcrumb/BreadcrumbPage.vue +20 -0
  897. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/breadcrumb/BreadcrumbSeparator.vue +22 -0
  898. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/breadcrumb/index.ts +7 -0
  899. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/button/Button.vue +31 -0
  900. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/button/index.ts +40 -0
  901. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/card/Card.vue +22 -0
  902. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/card/CardAction.vue +17 -0
  903. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/card/CardContent.vue +17 -0
  904. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/card/CardDescription.vue +17 -0
  905. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/card/CardFooter.vue +17 -0
  906. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/card/CardHeader.vue +17 -0
  907. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/card/CardTitle.vue +17 -0
  908. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/card/index.ts +7 -0
  909. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/checkbox/Checkbox.vue +35 -0
  910. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/checkbox/index.ts +1 -0
  911. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/combobox/Combobox.vue +19 -0
  912. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/combobox/ComboboxAnchor.vue +23 -0
  913. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/combobox/ComboboxEmpty.vue +21 -0
  914. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/combobox/ComboboxGroup.vue +27 -0
  915. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/combobox/ComboboxInput.vue +42 -0
  916. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/combobox/ComboboxItem.vue +24 -0
  917. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/combobox/ComboboxItemIndicator.vue +23 -0
  918. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/combobox/ComboboxList.vue +33 -0
  919. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/combobox/ComboboxSeparator.vue +21 -0
  920. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/combobox/ComboboxTrigger.vue +24 -0
  921. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/combobox/ComboboxViewport.vue +23 -0
  922. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/combobox/index.ts +13 -0
  923. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/dialog/Dialog.vue +19 -0
  924. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/dialog/DialogClose.vue +15 -0
  925. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/dialog/DialogContent.vue +53 -0
  926. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/dialog/DialogDescription.vue +23 -0
  927. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/dialog/DialogFooter.vue +27 -0
  928. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/dialog/DialogHeader.vue +17 -0
  929. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/dialog/DialogOverlay.vue +21 -0
  930. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/dialog/DialogScrollContent.vue +59 -0
  931. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/dialog/DialogTitle.vue +23 -0
  932. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/dialog/DialogTrigger.vue +15 -0
  933. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/dialog/index.ts +10 -0
  934. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/dropdown-menu/DropdownMenu.vue +19 -0
  935. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/dropdown-menu/DropdownMenuCheckboxItem.vue +39 -0
  936. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/dropdown-menu/DropdownMenuContent.vue +39 -0
  937. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/dropdown-menu/DropdownMenuGroup.vue +15 -0
  938. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/dropdown-menu/DropdownMenuItem.vue +31 -0
  939. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/dropdown-menu/DropdownMenuLabel.vue +23 -0
  940. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/dropdown-menu/DropdownMenuRadioGroup.vue +21 -0
  941. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/dropdown-menu/DropdownMenuRadioItem.vue +40 -0
  942. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/dropdown-menu/DropdownMenuSeparator.vue +23 -0
  943. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/dropdown-menu/DropdownMenuShortcut.vue +17 -0
  944. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/dropdown-menu/DropdownMenuSub.vue +18 -0
  945. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/dropdown-menu/DropdownMenuSubContent.vue +27 -0
  946. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/dropdown-menu/DropdownMenuSubTrigger.vue +31 -0
  947. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/dropdown-menu/DropdownMenuTrigger.vue +17 -0
  948. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/dropdown-menu/index.ts +16 -0
  949. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/empty/Empty.vue +20 -0
  950. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/empty/EmptyContent.vue +20 -0
  951. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/empty/EmptyDescription.vue +20 -0
  952. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/empty/EmptyHeader.vue +20 -0
  953. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/empty/EmptyMedia.vue +21 -0
  954. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/empty/EmptyTitle.vue +17 -0
  955. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/empty/index.ts +26 -0
  956. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/field/Field.vue +25 -0
  957. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/field/FieldContent.vue +20 -0
  958. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/field/FieldDescription.vue +22 -0
  959. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/field/FieldError.vue +53 -0
  960. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/field/FieldGroup.vue +20 -0
  961. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/field/FieldLabel.vue +23 -0
  962. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/field/FieldLegend.vue +24 -0
  963. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/field/FieldSeparator.vue +29 -0
  964. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/field/FieldSet.vue +21 -0
  965. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/field/FieldTitle.vue +20 -0
  966. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/field/index.ts +39 -0
  967. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/input/Input.vue +33 -0
  968. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/input/index.ts +1 -0
  969. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/input-group/InputGroup.vue +35 -0
  970. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/input-group/InputGroupAddon.vue +36 -0
  971. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/input-group/InputGroupButton.vue +29 -0
  972. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/input-group/InputGroupInput.vue +19 -0
  973. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/input-group/InputGroupText.vue +19 -0
  974. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/input-group/InputGroupTextarea.vue +19 -0
  975. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/input-group/index.ts +51 -0
  976. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/label/Label.vue +26 -0
  977. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/label/index.ts +1 -0
  978. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/pagination/Pagination.vue +26 -0
  979. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/pagination/PaginationContent.vue +22 -0
  980. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/pagination/PaginationEllipsis.vue +25 -0
  981. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/pagination/PaginationFirst.vue +33 -0
  982. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/pagination/PaginationItem.vue +34 -0
  983. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/pagination/PaginationLast.vue +33 -0
  984. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/pagination/PaginationNext.vue +33 -0
  985. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/pagination/PaginationPrevious.vue +33 -0
  986. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/pagination/index.ts +8 -0
  987. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/popover/Popover.vue +19 -0
  988. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/popover/PopoverAnchor.vue +15 -0
  989. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/popover/PopoverContent.vue +45 -0
  990. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/popover/PopoverTrigger.vue +15 -0
  991. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/popover/index.ts +4 -0
  992. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/range-calendar/RangeCalendar.vue +62 -0
  993. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/range-calendar/RangeCalendarCell.vue +23 -0
  994. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/range-calendar/RangeCalendarCellTrigger.vue +41 -0
  995. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/range-calendar/RangeCalendarGrid.vue +23 -0
  996. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/range-calendar/RangeCalendarGridBody.vue +15 -0
  997. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/range-calendar/RangeCalendarGridHead.vue +15 -0
  998. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/range-calendar/RangeCalendarGridRow.vue +22 -0
  999. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/range-calendar/RangeCalendarHeadCell.vue +23 -0
  1000. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/range-calendar/RangeCalendarHeader.vue +23 -0
  1001. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/range-calendar/RangeCalendarHeading.vue +30 -0
  1002. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/range-calendar/RangeCalendarNextButton.vue +32 -0
  1003. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/range-calendar/RangeCalendarPrevButton.vue +32 -0
  1004. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/range-calendar/index.ts +12 -0
  1005. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/select/Select.vue +19 -0
  1006. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/select/SelectContent.vue +51 -0
  1007. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/select/SelectGroup.vue +15 -0
  1008. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/select/SelectItem.vue +44 -0
  1009. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/select/SelectItemText.vue +15 -0
  1010. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/select/SelectLabel.vue +17 -0
  1011. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/select/SelectScrollDownButton.vue +26 -0
  1012. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/select/SelectScrollUpButton.vue +26 -0
  1013. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/select/SelectSeparator.vue +19 -0
  1014. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/select/SelectTrigger.vue +33 -0
  1015. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/select/SelectValue.vue +15 -0
  1016. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/select/index.ts +11 -0
  1017. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/separator/Separator.vue +29 -0
  1018. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/separator/index.ts +1 -0
  1019. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/sheet/Sheet.vue +19 -0
  1020. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/sheet/SheetClose.vue +15 -0
  1021. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/sheet/SheetContent.vue +62 -0
  1022. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/sheet/SheetDescription.vue +21 -0
  1023. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/sheet/SheetFooter.vue +16 -0
  1024. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/sheet/SheetHeader.vue +15 -0
  1025. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/sheet/SheetOverlay.vue +21 -0
  1026. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/sheet/SheetTitle.vue +21 -0
  1027. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/sheet/SheetTrigger.vue +15 -0
  1028. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/sheet/index.ts +8 -0
  1029. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/skeleton/Skeleton.vue +17 -0
  1030. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/skeleton/index.ts +1 -0
  1031. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/spinner/Spinner.vue +17 -0
  1032. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/spinner/index.ts +1 -0
  1033. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/table/Table.vue +16 -0
  1034. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/table/TableBody.vue +17 -0
  1035. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/table/TableCaption.vue +17 -0
  1036. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/table/TableCell.vue +22 -0
  1037. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/table/TableEmpty.vue +34 -0
  1038. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/table/TableFooter.vue +17 -0
  1039. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/table/TableHead.vue +17 -0
  1040. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/table/TableHeader.vue +17 -0
  1041. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/table/TableRow.vue +17 -0
  1042. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/table/index.ts +9 -0
  1043. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/tabs/Tabs.vue +24 -0
  1044. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/tabs/TabsContent.vue +21 -0
  1045. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/tabs/TabsList.vue +24 -0
  1046. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/tabs/TabsTrigger.vue +26 -0
  1047. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/tabs/index.ts +4 -0
  1048. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/textarea/Textarea.vue +28 -0
  1049. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/textarea/index.ts +1 -0
  1050. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/tooltip/Tooltip.vue +19 -0
  1051. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/tooltip/TooltipContent.vue +34 -0
  1052. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/tooltip/TooltipProvider.vue +14 -0
  1053. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/tooltip/TooltipTrigger.vue +15 -0
  1054. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/tooltip/index.ts +4 -0
  1055. package/template/.cursor/skills/yss-prototype-stage/assets/shadcn-vue-authoring/utils.ts +7 -0
  1056. package/template/.cursor/skills/yss-prototype-stage/assets/vue-business-patterns/Analysis.vue +16 -0
  1057. package/template/.cursor/skills/yss-prototype-stage/assets/vue-business-patterns/Approval.vue +14 -0
  1058. package/template/.cursor/skills/yss-prototype-stage/assets/vue-business-patterns/CombinedQuery.vue +17 -0
  1059. package/template/.cursor/skills/yss-prototype-stage/assets/vue-business-patterns/ComponentStates.vue +41 -0
  1060. package/template/.cursor/skills/yss-prototype-stage/assets/vue-business-patterns/Conflict.vue +33 -0
  1061. package/template/.cursor/skills/yss-prototype-stage/assets/vue-business-patterns/DateRange.vue +29 -0
  1062. package/template/.cursor/skills/yss-prototype-stage/assets/vue-business-patterns/Frame.vue +7 -0
  1063. package/template/.cursor/skills/yss-prototype-stage/assets/vue-business-patterns/ListDetail.vue +47 -0
  1064. package/template/.cursor/skills/yss-prototype-stage/assets/vue-business-patterns/MultiStep.vue +24 -0
  1065. package/template/.cursor/skills/yss-prototype-stage/assets/vue-business-patterns/Notice.vue +5 -0
  1066. package/template/.cursor/skills/yss-prototype-stage/assets/vue-business-patterns/OwnerValidity.vue +26 -0
  1067. package/template/.cursor/skills/yss-prototype-stage/assets/vue-business-patterns/SearchSelect.vue +32 -0
  1068. package/template/.cursor/skills/yss-prototype-stage/assets/vue-business-patterns/Workspace.vue +174 -0
  1069. package/template/.cursor/skills/yss-prototype-stage/assets/vue-business-patterns/analysis-standard.config.json +6 -0
  1070. package/template/.cursor/skills/yss-prototype-stage/assets/vue-business-patterns/analysis-standard.ts +3 -0
  1071. package/template/.cursor/skills/yss-prototype-stage/assets/vue-business-patterns/analysis.scenarios.json +276 -0
  1072. package/template/.cursor/skills/yss-prototype-stage/assets/vue-business-patterns/approval-standard.config.json +6 -0
  1073. package/template/.cursor/skills/yss-prototype-stage/assets/vue-business-patterns/approval-standard.ts +3 -0
  1074. package/template/.cursor/skills/yss-prototype-stage/assets/vue-business-patterns/approval.scenarios.json +207 -0
  1075. package/template/.cursor/skills/yss-prototype-stage/assets/vue-business-patterns/business-controls.css +14 -0
  1076. package/template/.cursor/skills/yss-prototype-stage/assets/vue-business-patterns/business-controls.js +24 -0
  1077. package/template/.cursor/skills/yss-prototype-stage/assets/vue-business-patterns/combined-query-standard.config.json +6 -0
  1078. package/template/.cursor/skills/yss-prototype-stage/assets/vue-business-patterns/combined-query-standard.ts +3 -0
  1079. package/template/.cursor/skills/yss-prototype-stage/assets/vue-business-patterns/combined-query.scenarios.json +298 -0
  1080. package/template/.cursor/skills/yss-prototype-stage/assets/vue-business-patterns/component-states-standard.config.json +6 -0
  1081. package/template/.cursor/skills/yss-prototype-stage/assets/vue-business-patterns/component-states-standard.ts +3 -0
  1082. package/template/.cursor/skills/yss-prototype-stage/assets/vue-business-patterns/conflict-standard.config.json +6 -0
  1083. package/template/.cursor/skills/yss-prototype-stage/assets/vue-business-patterns/conflict-standard.ts +3 -0
  1084. package/template/.cursor/skills/yss-prototype-stage/assets/vue-business-patterns/conflict.scenarios.json +229 -0
  1085. package/template/.cursor/skills/yss-prototype-stage/assets/vue-business-patterns/list-detail-glass.config.json +6 -0
  1086. package/template/.cursor/skills/yss-prototype-stage/assets/vue-business-patterns/list-detail-glass.ts +3 -0
  1087. package/template/.cursor/skills/yss-prototype-stage/assets/vue-business-patterns/list-detail-standard.config.json +6 -0
  1088. package/template/.cursor/skills/yss-prototype-stage/assets/vue-business-patterns/list-detail-standard.ts +3 -0
  1089. package/template/.cursor/skills/yss-prototype-stage/assets/vue-business-patterns/list-detail.scenarios.json +185 -0
  1090. package/template/.cursor/skills/yss-prototype-stage/assets/vue-business-patterns/mount.ts +4 -0
  1091. package/template/.cursor/skills/yss-prototype-stage/assets/vue-business-patterns/multi-step-glass.config.json +6 -0
  1092. package/template/.cursor/skills/yss-prototype-stage/assets/vue-business-patterns/multi-step-glass.ts +3 -0
  1093. package/template/.cursor/skills/yss-prototype-stage/assets/vue-business-patterns/multi-step-standard.config.json +6 -0
  1094. package/template/.cursor/skills/yss-prototype-stage/assets/vue-business-patterns/multi-step-standard.ts +3 -0
  1095. package/template/.cursor/skills/yss-prototype-stage/assets/vue-business-patterns/multi-step.scenarios.json +188 -0
  1096. package/template/.cursor/skills/yss-prototype-stage/assets/vue-business-patterns/owner-validity-standard.config.json +6 -0
  1097. package/template/.cursor/skills/yss-prototype-stage/assets/vue-business-patterns/owner-validity-standard.ts +3 -0
  1098. package/template/.cursor/skills/yss-prototype-stage/assets/vue-business-patterns/owner-validity.scenarios.json +298 -0
  1099. package/template/.cursor/skills/yss-prototype-stage/assets/vue-business-patterns/patterns.css +26 -0
  1100. package/template/.cursor/skills/yss-prototype-stage/assets/vue-business-patterns/refinement.css +129 -0
  1101. package/template/.cursor/skills/yss-prototype-stage/assets/vue-business-patterns/workbench.ts +1 -0
  1102. package/template/.cursor/skills/yss-prototype-stage/assets/vue-business-patterns/workspace-definition.ts +40 -0
  1103. package/template/.cursor/skills/yss-prototype-stage/assets/vue-business-patterns/workspace-glass.config.json +6 -0
  1104. package/template/.cursor/skills/yss-prototype-stage/assets/vue-business-patterns/workspace-glass.ts +3 -0
  1105. package/template/.cursor/skills/yss-prototype-stage/assets/vue-business-patterns/workspace-model.js +75 -0
  1106. package/template/.cursor/skills/yss-prototype-stage/assets/vue-business-patterns/workspace-page.ts +18 -0
  1107. package/template/.cursor/skills/yss-prototype-stage/assets/vue-business-patterns/workspace-standard.config.json +6 -0
  1108. package/template/.cursor/skills/yss-prototype-stage/assets/vue-business-patterns/workspace-standard.ts +3 -0
  1109. package/template/.cursor/skills/yss-prototype-stage/assets/vue-business-patterns/workspace.css +101 -0
  1110. package/template/.cursor/skills/yss-prototype-stage/assets/vue-business-patterns/workspace.scenarios.json +2015 -0
  1111. package/template/.cursor/skills/yss-prototype-stage/assets/vue-business-patterns/workspace.ts +26 -0
  1112. package/template/.cursor/skills/yss-prototype-stage/references/business-patterns.md +42 -0
  1113. package/template/.cursor/skills/yss-prototype-stage/references/comparison-tool.md +48 -0
  1114. package/template/.cursor/skills/yss-prototype-stage/references/component-recipes.md +41 -0
  1115. package/template/.cursor/skills/yss-prototype-stage/references/concept-comparison.md +26 -0
  1116. package/template/.cursor/skills/yss-prototype-stage/references/enterprise-workspace.md +53 -0
  1117. package/template/.cursor/skills/yss-prototype-stage/references/low-fidelity-exercise.md +32 -0
  1118. package/template/.cursor/skills/yss-prototype-stage/references/product-design-adapter.md +11 -5
  1119. package/template/.cursor/skills/yss-prototype-stage/references/prototype-profile-routing.md +10 -6
  1120. package/template/.cursor/skills/yss-prototype-stage/references/prototype-verification.md +25 -0
  1121. package/template/.cursor/skills/yss-prototype-stage/references/resource-lifecycle.md +20 -0
  1122. package/template/.cursor/skills/yss-prototype-stage/references/search-date-patterns.md +28 -0
  1123. package/template/.cursor/skills/yss-prototype-stage/references/shadcn-integration.md +5 -0
  1124. package/template/.cursor/skills/yss-prototype-stage/references/shadcn-vue-integration.md +46 -0
  1125. package/template/.cursor/skills/yss-prototype-stage/references/usability-research.md +26 -0
  1126. package/template/.cursor/skills/yss-prototype-stage/scripts/browser-session.mjs +57 -0
  1127. package/template/.cursor/skills/yss-prototype-stage/scripts/build-shadcn-vue-prototype.mjs +137 -0
  1128. package/template/.cursor/skills/yss-prototype-stage/scripts/compose-workspace-scenarios.mjs +22 -0
  1129. package/template/.cursor/skills/yss-prototype-stage/scripts/export-business-patterns.mjs +7 -0
  1130. package/template/.cursor/skills/yss-prototype-stage/scripts/export-low-fidelity-exercise.mjs +18 -0
  1131. package/template/.cursor/skills/yss-prototype-stage/scripts/export-vue-patterns.mjs +21 -0
  1132. package/template/.cursor/skills/yss-prototype-stage/scripts/offline-html.mjs +60 -23
  1133. package/template/.cursor/skills/yss-prototype-stage/scripts/prototype-comparison.mjs +208 -0
  1134. package/template/.cursor/skills/yss-prototype-stage/scripts/prototype-contract.mjs +19 -14
  1135. package/template/.cursor/skills/yss-prototype-stage/scripts/scenario-contract.mjs +31 -0
  1136. package/template/.cursor/skills/yss-prototype-stage/scripts/verify-prototype-design.mjs +97 -0
  1137. package/template/.cursor/skills/yss-prototype-stage/tests/antd-reference.test.mjs +4 -24
  1138. package/template/.cursor/skills/yss-prototype-stage/tests/browser-harness.mjs +37 -0
  1139. package/template/.cursor/skills/yss-prototype-stage/tests/browser-visual.mjs +22 -0
  1140. package/template/.cursor/skills/yss-prototype-stage/tests/business-controls-browser.mjs +43 -0
  1141. package/template/.cursor/skills/yss-prototype-stage/tests/business-controls.test.mjs +20 -0
  1142. package/template/.cursor/skills/yss-prototype-stage/tests/compact-theme-browser.mjs +53 -0
  1143. package/template/.cursor/skills/yss-prototype-stage/tests/comparison-browser-smoke.mjs +77 -0
  1144. package/template/.cursor/skills/yss-prototype-stage/tests/comparison-fixture.mjs +16 -0
  1145. package/template/.cursor/skills/yss-prototype-stage/tests/comparison.test.mjs +46 -0
  1146. package/template/.cursor/skills/yss-prototype-stage/tests/components-browser.mjs +60 -0
  1147. package/template/.cursor/skills/yss-prototype-stage/tests/patterns-browser.mjs +84 -0
  1148. package/template/.cursor/skills/yss-prototype-stage/tests/reliability.test.mjs +34 -0
  1149. package/template/.cursor/skills/yss-prototype-stage/tests/retirement.test.mjs +8 -0
  1150. package/template/.cursor/skills/yss-prototype-stage/tests/run-scenarios.mjs +19 -2
  1151. package/template/.cursor/skills/yss-prototype-stage/tests/shadcn-vue.test.mjs +43 -0
  1152. package/template/.cursor/skills/yss-prototype-stage/tests/verification-entry.test.mjs +16 -0
  1153. package/template/.cursor/skills/yss-prototype-stage/tests/workbench-smoke.mjs +36 -21
  1154. package/template/.cursor/skills/yss-prototype-stage/tests/workspace-browser.mjs +50 -0
  1155. package/template/.cursor/skills/yss-prototype-stage/tests/workspace.test.mjs +70 -0
  1156. package/template/.cursor/skills/yss-prototype-stage/tests/zoom-browser.mjs +26 -0
  1157. package/template/.cursor/skills/yss-stage-decision/SKILL.md +5 -0
  1158. package/template/.cursor/skills/yss-stage-decision/scripts/validate-domain-strategy.mjs +8 -4
  1159. package/template/.cursor/skills/yss-stage-decision/scripts/validate-stage-decision-package.mjs +8 -4
  1160. package/template/.cursor/skills/yss-stage-decision/tests/run-scenarios.mjs +13 -1
  1161. package/template/.cursor/skills/yss-technical-design/SKILL.md +4 -0
  1162. package/template/.cursor/skills/yss-ui-business-page-generation/SKILL.md +4 -61
  1163. package/template/.cursor/skills/yss-ui-business-page-generation/references/page-composition-example.md +50 -0
  1164. package/template/.cursor/skills/yss-ui-business-page-generation/references/page-layout-example.md +19 -0
  1165. package/template/.cursor/skills/ytable-usage/SKILL.md +3 -191
  1166. package/template/.cursor/skills/ytable-usage/references/selection-and-batch.md +30 -0
  1167. package/template/.cursor/skills/ytable-usage/references/table-pagination-examples.md +170 -0
  1168. package/template/.pi/skills/archify/SKILL.md +4 -52
  1169. package/template/.pi/skills/archify/references/authoring-notes.md +12 -0
  1170. package/template/.pi/skills/archify/references/authoring-workflow.md +25 -0
  1171. package/template/.pi/skills/archify/references/delivery-workflow.md +25 -0
  1172. package/template/.pi/skills/archify/references/upstream-updates.md +12 -0
  1173. package/template/.pi/skills/code-review/SKILL.md +3 -34
  1174. package/template/.pi/skills/code-review/references/legacy-convergence.md +5 -0
  1175. package/template/.pi/skills/code-review/references/review-axis-checklists.md +18 -0
  1176. package/template/.pi/skills/code-review/references/smell-baseline.md +23 -0
  1177. package/template/.pi/skills/diagnosing-bugs/SKILL.md +3 -91
  1178. package/template/.pi/skills/diagnosing-bugs/references/feedback-loop.md +53 -0
  1179. package/template/.pi/skills/diagnosing-bugs/references/investigation.md +49 -0
  1180. package/template/.pi/skills/git-commit-core/agents/openai.yaml +2 -0
  1181. package/template/.pi/skills/maintaining-skills/references/authoring.md +6 -0
  1182. package/template/.pi/skills/prototype-review/SKILL.md +11 -0
  1183. package/template/.pi/skills/prototype-review/references/component-qa.md +32 -0
  1184. package/template/.pi/skills/setup-matt-pocock-skills/SKILL.md +3 -73
  1185. package/template/.pi/skills/setup-matt-pocock-skills/references/configuration-decisions.md +42 -0
  1186. package/template/.pi/skills/setup-matt-pocock-skills/references/write-configuration.md +42 -0
  1187. package/template/.pi/skills/to-spec/SKILL.md +9 -62
  1188. package/template/.pi/skills/to-tickets/SKILL.md +20 -86
  1189. package/template/.pi/skills/using-git-worktrees/SKILL.md +5 -122
  1190. package/template/.pi/skills/using-git-worktrees/references/git-fallback.md +46 -0
  1191. package/template/.pi/skills/using-git-worktrees/references/setup-and-baseline.md +45 -0
  1192. package/template/.pi/skills/using-git-worktrees/references/troubleshooting.md +47 -0
  1193. package/template/.pi/skills/wayfinder/SKILL.md +7 -86
  1194. package/template/.pi/skills/wayfinder/references/chart-map.md +14 -0
  1195. package/template/.pi/skills/wayfinder/references/map-format.md +49 -0
  1196. package/template/.pi/skills/wayfinder/references/scope-and-frontier.md +24 -0
  1197. package/template/.pi/skills/wayfinder/references/ticket-types.md +12 -0
  1198. package/template/.pi/skills/wayfinder/references/work-map.md +15 -0
  1199. package/template/.pi/skills/writing-for-agents/SKILL-MECHANICS.md +20 -11
  1200. package/template/.pi/skills/yedit-table-usage/SKILL.md +5 -172
  1201. package/template/.pi/skills/yedit-table-usage/references/editable-table-example.md +141 -0
  1202. package/template/.pi/skills/yedit-table-usage/references/select-and-filter-examples.md +38 -0
  1203. package/template/.pi/skills/yss-ddd-scaffold-generator/SKILL.md +4 -25
  1204. package/template/.pi/skills/yss-ddd-scaffold-generator/references/engineering-checks.md +11 -0
  1205. package/template/.pi/skills/yss-ddd-scaffold-generator/references/generation-workflow.md +14 -0
  1206. package/template/.pi/skills/yss-ddd-scaffold-generator/references/platform-selection.md +16 -0
  1207. package/template/.pi/skills/yss-design-system/SKILL.md +13 -3
  1208. package/template/.pi/skills/yss-design-system/assets/enterprise-craft/app.js +53 -0
  1209. package/template/.pi/skills/yss-design-system/assets/enterprise-craft/index.html +2 -0
  1210. package/template/.pi/skills/yss-design-system/assets/enterprise-craft/scenarios.js +14 -0
  1211. package/template/.pi/skills/yss-design-system/assets/enterprise-craft/styles.css +32 -0
  1212. package/template/.pi/skills/yss-design-system/references/data-quality-theme.md +2 -2
  1213. package/template/.pi/skills/yss-design-system/references/design-qa-theme.md +1 -1
  1214. package/template/.pi/skills/yss-design-system/references/design-system.md +3 -3
  1215. package/template/.pi/skills/yss-design-system/references/enterprise-craft.md +33 -0
  1216. package/template/.pi/skills/yss-design-system/references/page-composition.md +24 -0
  1217. package/template/.pi/skills/yss-design-system/references/prototype-default-theme.md +26 -0
  1218. package/template/.pi/skills/yss-design-system/references/search-date-theme.md +19 -0
  1219. package/template/.pi/skills/yss-design-system/scripts/export-craft-examples.mjs +30 -0
  1220. package/template/.pi/skills/yss-harness-upgrade/SKILL.md +26 -0
  1221. package/template/.pi/skills/yss-harness-upgrade/references/cli-families.md +14 -0
  1222. package/template/.pi/skills/yss-hook/SKILL.md +8 -102
  1223. package/template/.pi/skills/yss-hook/references/async-actions.md +49 -0
  1224. package/template/.pi/skills/yss-hook/references/list-pagination.md +46 -0
  1225. package/template/.pi/skills/yss-hook/references/polling.md +20 -0
  1226. package/template/.pi/skills/yss-implementation-contract-compiler/SKILL.md +6 -3
  1227. package/template/.pi/skills/yss-implementation-contract-compiler/references/boundaries.md +1 -0
  1228. package/template/.pi/skills/yss-implementation-contract-compiler/references/scaffold-compilation.md +7 -0
  1229. package/template/.pi/skills/yss-openapi-draft-review/SKILL.md +2 -49
  1230. package/template/.pi/skills/yss-openapi-draft-review/references/review-output.md +45 -0
  1231. package/template/.pi/skills/yss-openapi-draft-review/references/semantic-review.md +16 -0
  1232. package/template/.pi/skills/yss-openapi-governance/SKILL.md +2 -48
  1233. package/template/.pi/skills/yss-openapi-governance/references/governance-workflow.md +38 -0
  1234. package/template/.pi/skills/yss-openapi-governance/references/locked-toolchain.md +22 -0
  1235. package/template/.pi/skills/yss-product-lifecycle/SKILL.md +29 -29
  1236. package/template/.pi/skills/yss-product-lifecycle/references/orchestration-contract.yaml +415 -386
  1237. package/template/.pi/skills/yss-product-lifecycle/references/plan-requirements.md +2 -0
  1238. package/template/.pi/skills/yss-product-lifecycle/references/state-model.md +2 -2
  1239. package/template/.pi/skills/yss-prototype-stage/SKILL.md +27 -8
  1240. package/template/.pi/skills/yss-prototype-stage/assets/comparison/comparison.css +12 -0
  1241. package/template/.pi/skills/yss-prototype-stage/assets/comparison/comparison.js +52 -0
  1242. package/template/.pi/skills/yss-prototype-stage/assets/comparison/index.html +6 -0
  1243. package/template/.pi/skills/yss-prototype-stage/assets/comparison/review-ready.js +2 -0
  1244. package/template/.pi/skills/yss-prototype-stage/assets/low-fidelity-exercise/app.js +17 -0
  1245. package/template/.pi/skills/yss-prototype-stage/assets/low-fidelity-exercise/index.html +1 -0
  1246. package/template/.pi/skills/yss-prototype-stage/assets/low-fidelity-exercise/styles.css +1 -0
  1247. package/template/.pi/skills/yss-prototype-stage/assets/native-workbench/app.js +12 -6
  1248. package/template/.pi/skills/yss-prototype-stage/assets/native-workbench/index.html +1 -1
  1249. package/template/.pi/skills/yss-prototype-stage/assets/native-workbench/scenarios.json +297 -0
  1250. package/template/.pi/skills/yss-prototype-stage/assets/native-workbench/styles.css +2 -0
  1251. package/template/.pi/skills/yss-prototype-stage/assets/offline-html/app.js +7 -5
  1252. package/template/.pi/skills/yss-prototype-stage/assets/offline-html/scenarios.json +297 -0
  1253. package/template/.pi/skills/yss-prototype-stage/assets/prototype-theme.css +92 -0
  1254. package/template/.pi/skills/yss-prototype-stage/assets/scenario-runtime.js +22 -0
  1255. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/SHADCN-LICENSE.txt +21 -0
  1256. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/package.json +23 -0
  1257. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/pnpm-lock.yaml +1278 -0
  1258. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/registry-manifest.json +936 -0
  1259. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/theme.css +107 -0
  1260. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/alert/Alert.vue +21 -0
  1261. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/alert/AlertDescription.vue +17 -0
  1262. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/alert/AlertTitle.vue +17 -0
  1263. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/alert/index.ts +24 -0
  1264. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/alert-dialog/AlertDialog.vue +15 -0
  1265. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/alert-dialog/AlertDialogAction.vue +18 -0
  1266. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/alert-dialog/AlertDialogCancel.vue +25 -0
  1267. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/alert-dialog/AlertDialogContent.vue +44 -0
  1268. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/alert-dialog/AlertDialogDescription.vue +23 -0
  1269. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/alert-dialog/AlertDialogFooter.vue +22 -0
  1270. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/alert-dialog/AlertDialogHeader.vue +17 -0
  1271. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/alert-dialog/AlertDialogTitle.vue +21 -0
  1272. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/alert-dialog/AlertDialogTrigger.vue +12 -0
  1273. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/alert-dialog/index.ts +9 -0
  1274. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/badge/Badge.vue +26 -0
  1275. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/badge/index.ts +26 -0
  1276. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/breadcrumb/Breadcrumb.vue +17 -0
  1277. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/breadcrumb/BreadcrumbEllipsis.vue +23 -0
  1278. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/breadcrumb/BreadcrumbItem.vue +17 -0
  1279. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/breadcrumb/BreadcrumbLink.vue +21 -0
  1280. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/breadcrumb/BreadcrumbList.vue +17 -0
  1281. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/breadcrumb/BreadcrumbPage.vue +20 -0
  1282. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/breadcrumb/BreadcrumbSeparator.vue +22 -0
  1283. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/breadcrumb/index.ts +7 -0
  1284. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/button/Button.vue +31 -0
  1285. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/button/index.ts +40 -0
  1286. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/card/Card.vue +22 -0
  1287. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/card/CardAction.vue +17 -0
  1288. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/card/CardContent.vue +17 -0
  1289. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/card/CardDescription.vue +17 -0
  1290. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/card/CardFooter.vue +17 -0
  1291. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/card/CardHeader.vue +17 -0
  1292. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/card/CardTitle.vue +17 -0
  1293. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/card/index.ts +7 -0
  1294. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/checkbox/Checkbox.vue +35 -0
  1295. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/checkbox/index.ts +1 -0
  1296. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/combobox/Combobox.vue +19 -0
  1297. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/combobox/ComboboxAnchor.vue +23 -0
  1298. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/combobox/ComboboxEmpty.vue +21 -0
  1299. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/combobox/ComboboxGroup.vue +27 -0
  1300. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/combobox/ComboboxInput.vue +42 -0
  1301. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/combobox/ComboboxItem.vue +24 -0
  1302. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/combobox/ComboboxItemIndicator.vue +23 -0
  1303. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/combobox/ComboboxList.vue +33 -0
  1304. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/combobox/ComboboxSeparator.vue +21 -0
  1305. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/combobox/ComboboxTrigger.vue +24 -0
  1306. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/combobox/ComboboxViewport.vue +23 -0
  1307. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/combobox/index.ts +13 -0
  1308. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/dialog/Dialog.vue +19 -0
  1309. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/dialog/DialogClose.vue +15 -0
  1310. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/dialog/DialogContent.vue +53 -0
  1311. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/dialog/DialogDescription.vue +23 -0
  1312. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/dialog/DialogFooter.vue +27 -0
  1313. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/dialog/DialogHeader.vue +17 -0
  1314. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/dialog/DialogOverlay.vue +21 -0
  1315. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/dialog/DialogScrollContent.vue +59 -0
  1316. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/dialog/DialogTitle.vue +23 -0
  1317. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/dialog/DialogTrigger.vue +15 -0
  1318. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/dialog/index.ts +10 -0
  1319. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/dropdown-menu/DropdownMenu.vue +19 -0
  1320. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/dropdown-menu/DropdownMenuCheckboxItem.vue +39 -0
  1321. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/dropdown-menu/DropdownMenuContent.vue +39 -0
  1322. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/dropdown-menu/DropdownMenuGroup.vue +15 -0
  1323. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/dropdown-menu/DropdownMenuItem.vue +31 -0
  1324. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/dropdown-menu/DropdownMenuLabel.vue +23 -0
  1325. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/dropdown-menu/DropdownMenuRadioGroup.vue +21 -0
  1326. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/dropdown-menu/DropdownMenuRadioItem.vue +40 -0
  1327. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/dropdown-menu/DropdownMenuSeparator.vue +23 -0
  1328. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/dropdown-menu/DropdownMenuShortcut.vue +17 -0
  1329. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/dropdown-menu/DropdownMenuSub.vue +18 -0
  1330. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/dropdown-menu/DropdownMenuSubContent.vue +27 -0
  1331. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/dropdown-menu/DropdownMenuSubTrigger.vue +31 -0
  1332. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/dropdown-menu/DropdownMenuTrigger.vue +17 -0
  1333. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/dropdown-menu/index.ts +16 -0
  1334. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/empty/Empty.vue +20 -0
  1335. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/empty/EmptyContent.vue +20 -0
  1336. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/empty/EmptyDescription.vue +20 -0
  1337. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/empty/EmptyHeader.vue +20 -0
  1338. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/empty/EmptyMedia.vue +21 -0
  1339. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/empty/EmptyTitle.vue +17 -0
  1340. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/empty/index.ts +26 -0
  1341. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/field/Field.vue +25 -0
  1342. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/field/FieldContent.vue +20 -0
  1343. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/field/FieldDescription.vue +22 -0
  1344. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/field/FieldError.vue +53 -0
  1345. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/field/FieldGroup.vue +20 -0
  1346. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/field/FieldLabel.vue +23 -0
  1347. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/field/FieldLegend.vue +24 -0
  1348. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/field/FieldSeparator.vue +29 -0
  1349. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/field/FieldSet.vue +21 -0
  1350. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/field/FieldTitle.vue +20 -0
  1351. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/field/index.ts +39 -0
  1352. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/input/Input.vue +33 -0
  1353. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/input/index.ts +1 -0
  1354. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/input-group/InputGroup.vue +35 -0
  1355. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/input-group/InputGroupAddon.vue +36 -0
  1356. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/input-group/InputGroupButton.vue +29 -0
  1357. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/input-group/InputGroupInput.vue +19 -0
  1358. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/input-group/InputGroupText.vue +19 -0
  1359. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/input-group/InputGroupTextarea.vue +19 -0
  1360. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/input-group/index.ts +51 -0
  1361. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/label/Label.vue +26 -0
  1362. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/label/index.ts +1 -0
  1363. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/pagination/Pagination.vue +26 -0
  1364. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/pagination/PaginationContent.vue +22 -0
  1365. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/pagination/PaginationEllipsis.vue +25 -0
  1366. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/pagination/PaginationFirst.vue +33 -0
  1367. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/pagination/PaginationItem.vue +34 -0
  1368. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/pagination/PaginationLast.vue +33 -0
  1369. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/pagination/PaginationNext.vue +33 -0
  1370. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/pagination/PaginationPrevious.vue +33 -0
  1371. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/pagination/index.ts +8 -0
  1372. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/popover/Popover.vue +19 -0
  1373. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/popover/PopoverAnchor.vue +15 -0
  1374. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/popover/PopoverContent.vue +45 -0
  1375. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/popover/PopoverTrigger.vue +15 -0
  1376. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/popover/index.ts +4 -0
  1377. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/range-calendar/RangeCalendar.vue +62 -0
  1378. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/range-calendar/RangeCalendarCell.vue +23 -0
  1379. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/range-calendar/RangeCalendarCellTrigger.vue +41 -0
  1380. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/range-calendar/RangeCalendarGrid.vue +23 -0
  1381. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/range-calendar/RangeCalendarGridBody.vue +15 -0
  1382. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/range-calendar/RangeCalendarGridHead.vue +15 -0
  1383. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/range-calendar/RangeCalendarGridRow.vue +22 -0
  1384. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/range-calendar/RangeCalendarHeadCell.vue +23 -0
  1385. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/range-calendar/RangeCalendarHeader.vue +23 -0
  1386. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/range-calendar/RangeCalendarHeading.vue +30 -0
  1387. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/range-calendar/RangeCalendarNextButton.vue +32 -0
  1388. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/range-calendar/RangeCalendarPrevButton.vue +32 -0
  1389. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/range-calendar/index.ts +12 -0
  1390. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/select/Select.vue +19 -0
  1391. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/select/SelectContent.vue +51 -0
  1392. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/select/SelectGroup.vue +15 -0
  1393. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/select/SelectItem.vue +44 -0
  1394. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/select/SelectItemText.vue +15 -0
  1395. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/select/SelectLabel.vue +17 -0
  1396. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/select/SelectScrollDownButton.vue +26 -0
  1397. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/select/SelectScrollUpButton.vue +26 -0
  1398. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/select/SelectSeparator.vue +19 -0
  1399. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/select/SelectTrigger.vue +33 -0
  1400. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/select/SelectValue.vue +15 -0
  1401. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/select/index.ts +11 -0
  1402. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/separator/Separator.vue +29 -0
  1403. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/separator/index.ts +1 -0
  1404. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/sheet/Sheet.vue +19 -0
  1405. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/sheet/SheetClose.vue +15 -0
  1406. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/sheet/SheetContent.vue +62 -0
  1407. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/sheet/SheetDescription.vue +21 -0
  1408. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/sheet/SheetFooter.vue +16 -0
  1409. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/sheet/SheetHeader.vue +15 -0
  1410. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/sheet/SheetOverlay.vue +21 -0
  1411. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/sheet/SheetTitle.vue +21 -0
  1412. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/sheet/SheetTrigger.vue +15 -0
  1413. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/sheet/index.ts +8 -0
  1414. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/skeleton/Skeleton.vue +17 -0
  1415. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/skeleton/index.ts +1 -0
  1416. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/spinner/Spinner.vue +17 -0
  1417. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/spinner/index.ts +1 -0
  1418. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/table/Table.vue +16 -0
  1419. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/table/TableBody.vue +17 -0
  1420. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/table/TableCaption.vue +17 -0
  1421. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/table/TableCell.vue +22 -0
  1422. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/table/TableEmpty.vue +34 -0
  1423. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/table/TableFooter.vue +17 -0
  1424. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/table/TableHead.vue +17 -0
  1425. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/table/TableHeader.vue +17 -0
  1426. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/table/TableRow.vue +17 -0
  1427. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/table/index.ts +9 -0
  1428. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/tabs/Tabs.vue +24 -0
  1429. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/tabs/TabsContent.vue +21 -0
  1430. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/tabs/TabsList.vue +24 -0
  1431. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/tabs/TabsTrigger.vue +26 -0
  1432. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/tabs/index.ts +4 -0
  1433. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/textarea/Textarea.vue +28 -0
  1434. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/textarea/index.ts +1 -0
  1435. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/tooltip/Tooltip.vue +19 -0
  1436. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/tooltip/TooltipContent.vue +34 -0
  1437. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/tooltip/TooltipProvider.vue +14 -0
  1438. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/tooltip/TooltipTrigger.vue +15 -0
  1439. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/ui/tooltip/index.ts +4 -0
  1440. package/template/.pi/skills/yss-prototype-stage/assets/shadcn-vue-authoring/utils.ts +7 -0
  1441. package/template/.pi/skills/yss-prototype-stage/assets/vue-business-patterns/Analysis.vue +16 -0
  1442. package/template/.pi/skills/yss-prototype-stage/assets/vue-business-patterns/Approval.vue +14 -0
  1443. package/template/.pi/skills/yss-prototype-stage/assets/vue-business-patterns/CombinedQuery.vue +17 -0
  1444. package/template/.pi/skills/yss-prototype-stage/assets/vue-business-patterns/ComponentStates.vue +41 -0
  1445. package/template/.pi/skills/yss-prototype-stage/assets/vue-business-patterns/Conflict.vue +33 -0
  1446. package/template/.pi/skills/yss-prototype-stage/assets/vue-business-patterns/DateRange.vue +29 -0
  1447. package/template/.pi/skills/yss-prototype-stage/assets/vue-business-patterns/Frame.vue +7 -0
  1448. package/template/.pi/skills/yss-prototype-stage/assets/vue-business-patterns/ListDetail.vue +47 -0
  1449. package/template/.pi/skills/yss-prototype-stage/assets/vue-business-patterns/MultiStep.vue +24 -0
  1450. package/template/.pi/skills/yss-prototype-stage/assets/vue-business-patterns/Notice.vue +5 -0
  1451. package/template/.pi/skills/yss-prototype-stage/assets/vue-business-patterns/OwnerValidity.vue +26 -0
  1452. package/template/.pi/skills/yss-prototype-stage/assets/vue-business-patterns/SearchSelect.vue +32 -0
  1453. package/template/.pi/skills/yss-prototype-stage/assets/vue-business-patterns/Workspace.vue +174 -0
  1454. package/template/.pi/skills/yss-prototype-stage/assets/vue-business-patterns/analysis-standard.config.json +6 -0
  1455. package/template/.pi/skills/yss-prototype-stage/assets/vue-business-patterns/analysis-standard.ts +3 -0
  1456. package/template/.pi/skills/yss-prototype-stage/assets/vue-business-patterns/analysis.scenarios.json +276 -0
  1457. package/template/.pi/skills/yss-prototype-stage/assets/vue-business-patterns/approval-standard.config.json +6 -0
  1458. package/template/.pi/skills/yss-prototype-stage/assets/vue-business-patterns/approval-standard.ts +3 -0
  1459. package/template/.pi/skills/yss-prototype-stage/assets/vue-business-patterns/approval.scenarios.json +207 -0
  1460. package/template/.pi/skills/yss-prototype-stage/assets/vue-business-patterns/business-controls.css +14 -0
  1461. package/template/.pi/skills/yss-prototype-stage/assets/vue-business-patterns/business-controls.js +24 -0
  1462. package/template/.pi/skills/yss-prototype-stage/assets/vue-business-patterns/combined-query-standard.config.json +6 -0
  1463. package/template/.pi/skills/yss-prototype-stage/assets/vue-business-patterns/combined-query-standard.ts +3 -0
  1464. package/template/.pi/skills/yss-prototype-stage/assets/vue-business-patterns/combined-query.scenarios.json +298 -0
  1465. package/template/.pi/skills/yss-prototype-stage/assets/vue-business-patterns/component-states-standard.config.json +6 -0
  1466. package/template/.pi/skills/yss-prototype-stage/assets/vue-business-patterns/component-states-standard.ts +3 -0
  1467. package/template/.pi/skills/yss-prototype-stage/assets/vue-business-patterns/conflict-standard.config.json +6 -0
  1468. package/template/.pi/skills/yss-prototype-stage/assets/vue-business-patterns/conflict-standard.ts +3 -0
  1469. package/template/.pi/skills/yss-prototype-stage/assets/vue-business-patterns/conflict.scenarios.json +229 -0
  1470. package/template/.pi/skills/yss-prototype-stage/assets/vue-business-patterns/list-detail-glass.config.json +6 -0
  1471. package/template/.pi/skills/yss-prototype-stage/assets/vue-business-patterns/list-detail-glass.ts +3 -0
  1472. package/template/.pi/skills/yss-prototype-stage/assets/vue-business-patterns/list-detail-standard.config.json +6 -0
  1473. package/template/.pi/skills/yss-prototype-stage/assets/vue-business-patterns/list-detail-standard.ts +3 -0
  1474. package/template/.pi/skills/yss-prototype-stage/assets/vue-business-patterns/list-detail.scenarios.json +185 -0
  1475. package/template/.pi/skills/yss-prototype-stage/assets/vue-business-patterns/mount.ts +4 -0
  1476. package/template/.pi/skills/yss-prototype-stage/assets/vue-business-patterns/multi-step-glass.config.json +6 -0
  1477. package/template/.pi/skills/yss-prototype-stage/assets/vue-business-patterns/multi-step-glass.ts +3 -0
  1478. package/template/.pi/skills/yss-prototype-stage/assets/vue-business-patterns/multi-step-standard.config.json +6 -0
  1479. package/template/.pi/skills/yss-prototype-stage/assets/vue-business-patterns/multi-step-standard.ts +3 -0
  1480. package/template/.pi/skills/yss-prototype-stage/assets/vue-business-patterns/multi-step.scenarios.json +188 -0
  1481. package/template/.pi/skills/yss-prototype-stage/assets/vue-business-patterns/owner-validity-standard.config.json +6 -0
  1482. package/template/.pi/skills/yss-prototype-stage/assets/vue-business-patterns/owner-validity-standard.ts +3 -0
  1483. package/template/.pi/skills/yss-prototype-stage/assets/vue-business-patterns/owner-validity.scenarios.json +298 -0
  1484. package/template/.pi/skills/yss-prototype-stage/assets/vue-business-patterns/patterns.css +26 -0
  1485. package/template/.pi/skills/yss-prototype-stage/assets/vue-business-patterns/refinement.css +129 -0
  1486. package/template/.pi/skills/yss-prototype-stage/assets/vue-business-patterns/workbench.ts +1 -0
  1487. package/template/.pi/skills/yss-prototype-stage/assets/vue-business-patterns/workspace-definition.ts +40 -0
  1488. package/template/.pi/skills/yss-prototype-stage/assets/vue-business-patterns/workspace-glass.config.json +6 -0
  1489. package/template/.pi/skills/yss-prototype-stage/assets/vue-business-patterns/workspace-glass.ts +3 -0
  1490. package/template/.pi/skills/yss-prototype-stage/assets/vue-business-patterns/workspace-model.js +75 -0
  1491. package/template/.pi/skills/yss-prototype-stage/assets/vue-business-patterns/workspace-page.ts +18 -0
  1492. package/template/.pi/skills/yss-prototype-stage/assets/vue-business-patterns/workspace-standard.config.json +6 -0
  1493. package/template/.pi/skills/yss-prototype-stage/assets/vue-business-patterns/workspace-standard.ts +3 -0
  1494. package/template/.pi/skills/yss-prototype-stage/assets/vue-business-patterns/workspace.css +101 -0
  1495. package/template/.pi/skills/yss-prototype-stage/assets/vue-business-patterns/workspace.scenarios.json +2015 -0
  1496. package/template/.pi/skills/yss-prototype-stage/assets/vue-business-patterns/workspace.ts +26 -0
  1497. package/template/.pi/skills/yss-prototype-stage/references/business-patterns.md +42 -0
  1498. package/template/.pi/skills/yss-prototype-stage/references/comparison-tool.md +48 -0
  1499. package/template/.pi/skills/yss-prototype-stage/references/component-recipes.md +41 -0
  1500. package/template/.pi/skills/yss-prototype-stage/references/concept-comparison.md +26 -0
  1501. package/template/.pi/skills/yss-prototype-stage/references/enterprise-workspace.md +53 -0
  1502. package/template/.pi/skills/yss-prototype-stage/references/low-fidelity-exercise.md +32 -0
  1503. package/template/.pi/skills/yss-prototype-stage/references/product-design-adapter.md +11 -5
  1504. package/template/.pi/skills/yss-prototype-stage/references/prototype-profile-routing.md +10 -6
  1505. package/template/.pi/skills/yss-prototype-stage/references/prototype-verification.md +25 -0
  1506. package/template/.pi/skills/yss-prototype-stage/references/resource-lifecycle.md +20 -0
  1507. package/template/.pi/skills/yss-prototype-stage/references/search-date-patterns.md +28 -0
  1508. package/template/.pi/skills/yss-prototype-stage/references/shadcn-integration.md +5 -0
  1509. package/template/.pi/skills/yss-prototype-stage/references/shadcn-vue-integration.md +46 -0
  1510. package/template/.pi/skills/yss-prototype-stage/references/usability-research.md +26 -0
  1511. package/template/.pi/skills/yss-prototype-stage/scripts/browser-session.mjs +57 -0
  1512. package/template/.pi/skills/yss-prototype-stage/scripts/build-shadcn-vue-prototype.mjs +137 -0
  1513. package/template/.pi/skills/yss-prototype-stage/scripts/compose-workspace-scenarios.mjs +22 -0
  1514. package/template/.pi/skills/yss-prototype-stage/scripts/export-business-patterns.mjs +7 -0
  1515. package/template/.pi/skills/yss-prototype-stage/scripts/export-low-fidelity-exercise.mjs +18 -0
  1516. package/template/.pi/skills/yss-prototype-stage/scripts/export-vue-patterns.mjs +21 -0
  1517. package/template/.pi/skills/yss-prototype-stage/scripts/offline-html.mjs +60 -23
  1518. package/template/.pi/skills/yss-prototype-stage/scripts/prototype-comparison.mjs +208 -0
  1519. package/template/.pi/skills/yss-prototype-stage/scripts/prototype-contract.mjs +19 -14
  1520. package/template/.pi/skills/yss-prototype-stage/scripts/scenario-contract.mjs +31 -0
  1521. package/template/.pi/skills/yss-prototype-stage/scripts/verify-prototype-design.mjs +97 -0
  1522. package/template/.pi/skills/yss-prototype-stage/tests/antd-reference.test.mjs +4 -24
  1523. package/template/.pi/skills/yss-prototype-stage/tests/browser-harness.mjs +37 -0
  1524. package/template/.pi/skills/yss-prototype-stage/tests/browser-visual.mjs +22 -0
  1525. package/template/.pi/skills/yss-prototype-stage/tests/business-controls-browser.mjs +43 -0
  1526. package/template/.pi/skills/yss-prototype-stage/tests/business-controls.test.mjs +20 -0
  1527. package/template/.pi/skills/yss-prototype-stage/tests/compact-theme-browser.mjs +53 -0
  1528. package/template/.pi/skills/yss-prototype-stage/tests/comparison-browser-smoke.mjs +77 -0
  1529. package/template/.pi/skills/yss-prototype-stage/tests/comparison-fixture.mjs +16 -0
  1530. package/template/.pi/skills/yss-prototype-stage/tests/comparison.test.mjs +46 -0
  1531. package/template/.pi/skills/yss-prototype-stage/tests/components-browser.mjs +60 -0
  1532. package/template/.pi/skills/yss-prototype-stage/tests/patterns-browser.mjs +84 -0
  1533. package/template/.pi/skills/yss-prototype-stage/tests/reliability.test.mjs +34 -0
  1534. package/template/.pi/skills/yss-prototype-stage/tests/retirement.test.mjs +8 -0
  1535. package/template/.pi/skills/yss-prototype-stage/tests/run-scenarios.mjs +19 -2
  1536. package/template/.pi/skills/yss-prototype-stage/tests/shadcn-vue.test.mjs +43 -0
  1537. package/template/.pi/skills/yss-prototype-stage/tests/verification-entry.test.mjs +16 -0
  1538. package/template/.pi/skills/yss-prototype-stage/tests/workbench-smoke.mjs +36 -21
  1539. package/template/.pi/skills/yss-prototype-stage/tests/workspace-browser.mjs +50 -0
  1540. package/template/.pi/skills/yss-prototype-stage/tests/workspace.test.mjs +70 -0
  1541. package/template/.pi/skills/yss-prototype-stage/tests/zoom-browser.mjs +26 -0
  1542. package/template/.pi/skills/yss-stage-decision/SKILL.md +5 -0
  1543. package/template/.pi/skills/yss-stage-decision/scripts/validate-domain-strategy.mjs +8 -4
  1544. package/template/.pi/skills/yss-stage-decision/scripts/validate-stage-decision-package.mjs +8 -4
  1545. package/template/.pi/skills/yss-stage-decision/tests/run-scenarios.mjs +13 -1
  1546. package/template/.pi/skills/yss-technical-design/SKILL.md +4 -0
  1547. package/template/.pi/skills/yss-ui-business-page-generation/SKILL.md +4 -61
  1548. package/template/.pi/skills/yss-ui-business-page-generation/references/page-composition-example.md +50 -0
  1549. package/template/.pi/skills/yss-ui-business-page-generation/references/page-layout-example.md +19 -0
  1550. package/template/.pi/skills/ytable-usage/SKILL.md +3 -191
  1551. package/template/.pi/skills/ytable-usage/references/selection-and-batch.md +30 -0
  1552. package/template/.pi/skills/ytable-usage/references/table-pagination-examples.md +170 -0
  1553. package/template/.template-spec/agents/digital-human-roles.yaml +2 -2
  1554. package/template/.template-spec/agents/issue-tracker.md +10 -1
  1555. package/template/.template-spec/agents/yss-skill-registry.yaml +50 -1
  1556. package/template/.template-spec/design/README.md +7 -2
  1557. package/template/.template-spec/design/design.md +30 -35
  1558. package/template/.template-spec/design/templates/examples/model-publishing-interaction.example.md +2 -2
  1559. package/template/.template-spec/design/templates/interaction-spec-template.md +24 -0
  1560. package/template/.template-spec/design/templates/prototype-evidence-template.yaml +18 -5
  1561. package/template/.template-spec/design/templates/prototype-review-checklist.md +8 -0
  1562. package/template/.template-spec/design/tokens/.design-md-projection.json +2 -2
  1563. package/template/.template-spec/design/tokens/variables.css +162 -0
  1564. package/template/.template-spec/plan/templates/plan-template.md +25 -1
  1565. package/template/.template-spec/process/business-tickets.md +48 -0
  1566. package/template/.template-spec/process/checkpoint-boundary.yaml +73 -0
  1567. package/template/.template-spec/process/contract-reading.md +36 -1
  1568. package/template/.template-spec/process/document-writing.md +14 -0
  1569. package/template/.template-spec/process/feature-assets.md +38 -0
  1570. package/template/.template-spec/process/harness-upgrade.md +40 -0
  1571. package/template/.template-spec/process/lifecycle-artifact-map.md +3 -2
  1572. package/template/.template-spec/process/lifecycle-registry-baseline.json +9 -5
  1573. package/template/.template-spec/process/lifecycle-registry.yaml +18 -6
  1574. package/template/.template-spec/process/plan-spec-quality.md +69 -0
  1575. package/template/.template-spec/process/project-ci.md +21 -0
  1576. package/template/.template-spec/process/reading-policy.yaml +4 -0
  1577. package/template/.template-spec/process/schemas/approval-record.schema.json +23 -0
  1578. package/template/.template-spec/process/schemas/business-tickets-v1.schema.json +449 -0
  1579. package/template/.template-spec/process/schemas/domain-strategy-reading.schema.json +216 -0
  1580. package/template/.template-spec/process/schemas/lifecycle-checkpoint.schema.json +203 -11
  1581. package/template/.template-spec/process/schemas/reading-manifest.schema.json +14 -0
  1582. package/template/.template-spec/process/schemas/reading-policy.schema.json +10 -0
  1583. package/template/.template-spec/process/schemas/stage-decision-package-reading.schema.json +148 -0
  1584. package/template/.template-spec/process/stage-tracking.md +10 -2
  1585. package/template/.template-spec/process/strategic-handoff-package.md +3 -1
  1586. package/template/.template-spec/process/structured-assets.md +35 -0
  1587. package/template/.template-spec/process/templates/lifecycle-checkpoint-template.json +48 -0
  1588. package/template/.template-spec/process/templates/stage-checkpoint-template.md +6 -1
  1589. package/template/.template-spec/templates/approval-record-template.json +23 -0
  1590. package/template/.template-spec/templates/business-ticket-review-template.yaml +11 -0
  1591. package/template/.template-spec/templates/business-ticket-set-template.yaml +16 -0
  1592. package/template/.template-spec/templates/business-ticket-template.md +38 -0
  1593. package/template/.template-spec/templates/examples/lifecycle-writing-examples.md +16 -0
  1594. package/template/.template-spec/templates/examples/plan-spec/complex-defective.md +38 -0
  1595. package/template/.template-spec/templates/examples/plan-spec/complex-source.md +12 -0
  1596. package/template/.template-spec/templates/examples/plan-spec/complex-valid.md +38 -0
  1597. package/template/.template-spec/templates/examples/plan-spec/expectations.json +46 -0
  1598. package/template/.template-spec/templates/examples/plan-spec/high-risk-before.md +32 -0
  1599. package/template/.template-spec/templates/examples/plan-spec/high-risk-defective.md +39 -0
  1600. package/template/.template-spec/templates/examples/plan-spec/high-risk-source.md +11 -0
  1601. package/template/.template-spec/templates/examples/plan-spec/high-risk-valid.md +39 -0
  1602. package/template/.template-spec/templates/examples/plan-spec/ordinary-defective.md +36 -0
  1603. package/template/.template-spec/templates/examples/plan-spec/ordinary-plan.md +27 -0
  1604. package/template/.template-spec/templates/examples/plan-spec/ordinary-source.md +14 -0
  1605. package/template/.template-spec/templates/examples/plan-spec/ordinary-valid.md +36 -0
  1606. package/template/.template-spec/templates/local-parent-ticket-template.md +23 -15
  1607. package/template/.template-spec/templates/spec-delta-template.md +7 -5
  1608. package/template/.template-spec/templates/spec-template.md +31 -15
  1609. package/template/.template-spec/templates/vertical-slice-ticket-template.md +4 -0
  1610. package/template/AGENTS.md +1 -1
  1611. package/template/CONTEXT.md +1 -0
  1612. package/template/DESIGN.md +23 -4
  1613. package/template/scripts/check-plan-stage-coverage +12 -0
  1614. package/template/scripts/contract +20 -2
  1615. package/template/scripts/feature-assets +23 -0
  1616. package/template/scripts/inspect-plan-spec +32 -0
  1617. package/template/scripts/inspect-skill-discovery +24 -0
  1618. package/template/scripts/lib/approval-record.mjs +4 -3
  1619. package/template/scripts/lib/asset-command.mjs +35 -0
  1620. package/template/scripts/lib/asset-migration.mjs +101 -0
  1621. package/template/scripts/lib/asset-transactions.mjs +235 -0
  1622. package/template/scripts/lib/business-ticket-lifecycle.mjs +34 -0
  1623. package/template/scripts/lib/business-tickets.mjs +273 -0
  1624. package/template/scripts/lib/checkpoint-boundary.mjs +43 -0
  1625. package/template/scripts/lib/contract-views.mjs +27 -8
  1626. package/template/scripts/lib/feature-assets.mjs +274 -0
  1627. package/template/scripts/lib/governance-io.mjs +40 -0
  1628. package/template/scripts/lib/json-schema.mjs +43 -4
  1629. package/template/scripts/lib/lifecycle-context-query.mjs +7 -0
  1630. package/template/scripts/lib/lifecycle-presentation.mjs +77 -0
  1631. package/template/scripts/lib/lifecycle-status.mjs +33 -2
  1632. package/template/scripts/lib/lifecycle-transition.mjs +12 -3
  1633. package/template/scripts/lib/plan-spec-markdown.mjs +97 -0
  1634. package/template/scripts/lib/plan-spec-quality.mjs +289 -0
  1635. package/template/scripts/lib/plan-stage-coverage.mjs +40 -0
  1636. package/template/scripts/lib/project-ci-install.mjs +98 -0
  1637. package/template/scripts/lib/project-governance.mjs +189 -0
  1638. package/template/scripts/lib/reading-view-adapters.mjs +62 -0
  1639. package/template/scripts/lib/reading-view-bundle.mjs +202 -0
  1640. package/template/scripts/lib/reading-view-diff.mjs +29 -0
  1641. package/template/scripts/lib/reading-view-markdown.mjs +41 -0
  1642. package/template/scripts/lib/reading-view-model.mjs +13 -0
  1643. package/template/scripts/lib/reading-view-policy.mjs +16 -0
  1644. package/template/scripts/lib/skill-discovery.mjs +150 -0
  1645. package/template/scripts/lib/skill-registry.mjs +41 -1
  1646. package/template/scripts/lib/skill-supply-chain.mjs +1 -1
  1647. package/template/scripts/lib/slice-contract-preparation.mjs +8 -2
  1648. package/template/scripts/lib/slice-contract.mjs +15 -1
  1649. package/template/scripts/lib/stage-tracking-migration.mjs +20 -4
  1650. package/template/scripts/lib/stage-tracking.mjs +10 -5
  1651. package/template/scripts/lib/strategic-handoff-consumption.mjs +14 -2
  1652. package/template/scripts/lib/strategic-handoff-io.mjs +6 -2
  1653. package/template/scripts/lib/strategic-handoff.mjs +26 -5
  1654. package/template/scripts/lib/structured-assets.mjs +81 -0
  1655. package/template/scripts/lib/task-package.mjs +18 -4
  1656. package/template/scripts/lib/testing/user-decision-fixture.mjs +33 -0
  1657. package/template/scripts/lib/user-decision-reuse.mjs +1 -1
  1658. package/template/scripts/lifecycle-status +16 -3
  1659. package/template/scripts/project-ci +20 -0
  1660. package/template/scripts/project-ci-transition +13 -0
  1661. package/template/scripts/query-lifecycle-context +4 -0
  1662. package/template/scripts/stage-tracking +1 -0
  1663. package/template/scripts/vendor/NOTICES.md +237 -0
  1664. package/template/scripts/vendor/manifest.json +1216 -65
  1665. package/template/scripts/vendor/markdown.mjs +11783 -0
  1666. package/template/scripts/verify-approval-record +4 -1
  1667. package/template/scripts/verify-business-tickets +11 -0
  1668. package/template/scripts/verify-context-contract +4 -1
  1669. package/template/scripts/verify-digital-human-task-package +4 -1
  1670. package/template/scripts/verify-lifecycle-checkpoint +24 -6
  1671. package/template/scripts/verify-prototype-design +3 -0
  1672. package/template/skills-lock.json +46 -34
  1673. package/template.manifest.json +3 -1
  1674. package/template.snapshot.json +5 -5
  1675. package/vendor/cli-core/build.mjs +302 -0
  1676. package/vendor/cli-core/bundle.mjs +198 -0
  1677. package/vendor/cli-core/cli.mjs +182 -0
  1678. package/vendor/cli-core/command-runner.mjs +107 -0
  1679. package/vendor/cli-core/engine.mjs +239 -0
  1680. package/vendor/cli-core/family.mjs +28 -0
  1681. package/vendor/cli-core/gitignore.mjs +15 -0
  1682. package/vendor/cli-core/identity.mjs +274 -0
  1683. package/vendor/cli-core/io.mjs +153 -0
  1684. package/vendor/cli-core/layout-migration.mjs +64 -0
  1685. package/vendor/cli-core/legacy.mjs +19 -0
  1686. package/vendor/cli-core/migrate.mjs +237 -0
  1687. package/vendor/cli-core/migration-adapter.mjs +19 -0
  1688. package/vendor/cli-core/package.json +13 -0
  1689. package/vendor/cli-core/scaffold.mjs +117 -0
  1690. package/vendor/cli-core/spec-migration-adapter.mjs +83 -0
  1691. package/vendor/cli-core/tests/build.test.mjs +40 -0
  1692. package/vendor/cli-core/tests/cli.test.mjs +1065 -0
  1693. package/vendor/cli-core/tests/migration-version.test.mjs +8 -0
  1694. package/vendor/cli-core/tests/package-contract.mjs +75 -0
  1695. package/vendor/cli-core/transaction.mjs +529 -0
  1696. package/vendor/cli-core/update.mjs +79 -0
  1697. package/vendor/cli-core/vendor/NOTICES.md +6 -0
  1698. package/vendor/cli-core/vendor/yaml.LICENSE +13 -0
  1699. package/vendor/cli-core/vendor/yaml.mjs +6311 -0
  1700. package/vendor/cli-core/verification.mjs +131 -0
  1701. package/template/.agents/skills/yss-prototype-stage/assets/antd-authoring/package.json +0 -16
  1702. package/template/.agents/skills/yss-prototype-stage/assets/antd-authoring/pnpm-lock.yaml +0 -1678
  1703. package/template/.agents/skills/yss-prototype-stage/assets/antd-authoring/workbench.jsx +0 -23
  1704. package/template/.agents/skills/yss-prototype-stage/references/antd-component-catalog.json +0 -736
  1705. package/template/.agents/skills/yss-prototype-stage/references/antd-integration.md +0 -61
  1706. package/template/.agents/skills/yss-prototype-stage/scripts/build-antd-prototype.mjs +0 -71
  1707. package/template/.agents/skills/yss-prototype-stage/scripts/collect-antd-reference.mjs +0 -26
  1708. package/template/.codex/skills/yss-prototype-stage/assets/antd-authoring/package.json +0 -16
  1709. package/template/.codex/skills/yss-prototype-stage/assets/antd-authoring/pnpm-lock.yaml +0 -1678
  1710. package/template/.codex/skills/yss-prototype-stage/assets/antd-authoring/workbench.jsx +0 -23
  1711. package/template/.codex/skills/yss-prototype-stage/references/antd-component-catalog.json +0 -736
  1712. package/template/.codex/skills/yss-prototype-stage/references/antd-integration.md +0 -61
  1713. package/template/.codex/skills/yss-prototype-stage/scripts/build-antd-prototype.mjs +0 -71
  1714. package/template/.codex/skills/yss-prototype-stage/scripts/collect-antd-reference.mjs +0 -26
  1715. package/template/.cursor/skills/yss-prototype-stage/assets/antd-authoring/package.json +0 -16
  1716. package/template/.cursor/skills/yss-prototype-stage/assets/antd-authoring/pnpm-lock.yaml +0 -1678
  1717. package/template/.cursor/skills/yss-prototype-stage/assets/antd-authoring/workbench.jsx +0 -23
  1718. package/template/.cursor/skills/yss-prototype-stage/references/antd-component-catalog.json +0 -736
  1719. package/template/.cursor/skills/yss-prototype-stage/references/antd-integration.md +0 -61
  1720. package/template/.cursor/skills/yss-prototype-stage/scripts/build-antd-prototype.mjs +0 -71
  1721. package/template/.cursor/skills/yss-prototype-stage/scripts/collect-antd-reference.mjs +0 -26
  1722. package/template/.pi/skills/yss-prototype-stage/assets/antd-authoring/package.json +0 -16
  1723. package/template/.pi/skills/yss-prototype-stage/assets/antd-authoring/pnpm-lock.yaml +0 -1678
  1724. package/template/.pi/skills/yss-prototype-stage/assets/antd-authoring/workbench.jsx +0 -23
  1725. package/template/.pi/skills/yss-prototype-stage/references/antd-component-catalog.json +0 -736
  1726. package/template/.pi/skills/yss-prototype-stage/references/antd-integration.md +0 -61
  1727. package/template/.pi/skills/yss-prototype-stage/scripts/build-antd-prototype.mjs +0 -71
  1728. package/template/.pi/skills/yss-prototype-stage/scripts/collect-antd-reference.mjs +0 -26
@@ -0,0 +1,1065 @@
1
+ import { test } from "node:test";
2
+ import assert from "node:assert/strict";
3
+ import * as fs from "node:fs";
4
+ import path from "node:path";
5
+ import os from "node:os";
6
+ import { createHash } from "node:crypto";
7
+ import { spawnSync } from "node:child_process";
8
+ import { fileURLToPath } from "node:url";
9
+ const entry = fileURLToPath(new URL("../cli.mjs", import.meta.url));
10
+ const hash = (b) => createHash("sha256").update(b).digest("hex");
11
+ const json = (x) => JSON.stringify(x, null, 2) + "\n";
12
+ function put(root, ref, content) {
13
+ fs.mkdirSync(path.dirname(path.join(root, ref)), { recursive: true });
14
+ fs.writeFileSync(path.join(root, ref), content);
15
+ }
16
+ function fixture(t, side = "backend") {
17
+ const root = fs.realpathSync(
18
+ fs.mkdtempSync(path.join(os.tmpdir(), "dedicated-cli-")),
19
+ );
20
+ t.after(() => fs.rmSync(root, { recursive: true, force: true }));
21
+ const pkg = path.join(root, "package"),
22
+ target = path.join(root, "project");
23
+ const family = {
24
+ side,
25
+ packageName: `create-yss-harness-${side}`,
26
+ profileId: side === "design" ? "harness.business-ddd-strategy-handoff" : `harness.${side}-delivery`,
27
+ metadataFile: `.yss-harness-${side}.json`,
28
+ templateName: `yss-harness-${side}-agent`,
29
+ templateSource: `github:iloveZzz/yss-harness-${side}-agent`,
30
+ };
31
+ put(
32
+ pkg,
33
+ "package.json",
34
+ json({ name: family.packageName, version: "0.1.0", type: "module" }),
35
+ );
36
+ put(pkg, "config/family.json", json(family));
37
+ put(
38
+ pkg,
39
+ "bin.mjs",
40
+ `import {main} from ${JSON.stringify("file://" + entry)}; await main(${JSON.stringify(pkg)});`,
41
+ );
42
+ const files = {
43
+ "README.md": "# {{PROJECT_NAME}}\n",
44
+ "CONTEXT.md": "# Context\n",
45
+ "AGENTS.md": "Read CONTEXT.md\n",
46
+ "yss-project.yaml": "schema_version: 1\nrepository_mode: template-source\n",
47
+ ".template-spec/process/harness-profile.yaml": `schema_version: 1\nprofile_id: ${family.profileId}\ninstantiation:\n cli_package: ${family.packageName}\n metadata_file: ${family.metadataFile}\n template_source: ${family.templateSource}\n`,
48
+ ".template-spec/process/rule.md": "rule v1\n",
49
+ "scripts/check": "#!/bin/sh\nexit 0\n",
50
+ };
51
+ function bundle(changes = {}) {
52
+ Object.assign(files, changes);
53
+ const entries = {};
54
+ for (const [ref, content] of Object.entries(files).sort()) {
55
+ if (content === null) continue;
56
+ const digest = hash(content);
57
+ entries[ref] = {
58
+ type: "file",
59
+ digest,
60
+ mode: ref === "scripts/check" ? 493 : 420,
61
+ blob: `blobs/${digest}`,
62
+ };
63
+ put(pkg, `template/blobs/${digest}`, content);
64
+ }
65
+ const manifest = {
66
+ schemaVersion: 1,
67
+ renderPaths: ["README.md", "yss-project.yaml"],
68
+ exampleDocPaths: [],
69
+ };
70
+ put(pkg, "template.manifest.json", json(manifest));
71
+ put(
72
+ pkg,
73
+ "template.snapshot.json",
74
+ json({
75
+ schemaVersion: 1,
76
+ ...family,
77
+ templateCommit: "a".repeat(40),
78
+ sourceState: "working-tree",
79
+ manifestHash: hash(json(manifest)),
80
+ files: entries,
81
+ snapshotHash: hash(JSON.stringify(entries)),
82
+ }),
83
+ );
84
+ put(
85
+ pkg,
86
+ "cli-core.lock.json",
87
+ json({
88
+ schemaVersion: 1,
89
+ coreVersion: "0.1.0",
90
+ protocolVersion: 1,
91
+ sourceRevision: "b".repeat(40),
92
+ sourceState: "working-tree",
93
+ digest: "c".repeat(64),
94
+ files: {},
95
+ }),
96
+ );
97
+ }
98
+ bundle();
99
+ const run = (...args) => {
100
+ const r = spawnSync(
101
+ process.execPath,
102
+ [path.join(pkg, "bin.mjs"), ...args, ...(side === "design" && args[0] === "init" ? ["--project-name","测试","--business-domain","测试"] : []), "--target-dir", target, "--json"],
103
+ { encoding: "utf8" },
104
+ );
105
+ return {
106
+ ...r,
107
+ data: (() => {
108
+ try {
109
+ return JSON.parse(r.stdout);
110
+ } catch {
111
+ return null;
112
+ }
113
+ })(),
114
+ };
115
+ };
116
+ return { root, pkg, target, family, run, bundle, files };
117
+ }
118
+ test("迁移计划不写项目,应用后可整体回退且保留业务改动", t => {
119
+ const f = fixture(t);
120
+ assert.equal(f.run('init').status, 0);
121
+ const rule = path.join(f.target, '.template-spec/process/rule.md');
122
+ const metadata = fs.readFileSync(path.join(f.target, f.family.metadataFile));
123
+ put(f.target, 'src/business.txt', 'uncommitted business');
124
+ f.bundle({'.template-spec/process/rule.md':'rule v2\n'});
125
+ const plan = path.join(f.root, 'upgrade.json');
126
+ const preview = f.run('migrate', 'plan', '--output', plan, '--archive-dir', path.join(f.root,'archive'));
127
+ assert.equal(preview.status, 0, preview.stderr);
128
+ assert.equal(fs.readFileSync(rule,'utf8'), 'rule v1\n');
129
+ assert.deepEqual(fs.readFileSync(path.join(f.target,f.family.metadataFile)),metadata);
130
+ const applied = f.run('migrate','apply','--plan',plan);
131
+ assert.equal(applied.status,0,applied.stderr);
132
+ assert.equal(fs.readFileSync(rule,'utf8'),'rule v2\n');
133
+ const rollback = f.run('migrate','rollback','--apply');
134
+ assert.equal(rollback.status,0,rollback.stderr);
135
+ assert.equal(fs.readFileSync(rule,'utf8'),'rule v1\n');
136
+ assert.deepEqual(fs.readFileSync(path.join(f.target,f.family.metadataFile)),metadata);
137
+ assert.equal(fs.readFileSync(path.join(f.target,'src/business.txt'),'utf8'),'uncommitted business');
138
+ });
139
+ test("两家族从离线固定包创建空目录实例,记录新版基线并保留可执行 mode", (t) => {
140
+ for (const side of ["backend", "frontend"]) {
141
+ const f = fixture(t, side);
142
+ const r = f.run("init", "--project-name", "订单服务");
143
+ assert.equal(r.status, 0, r.stderr);
144
+ assert.equal(r.data.status, "applied");
145
+ const meta = JSON.parse(
146
+ fs.readFileSync(path.join(f.target, f.family.metadataFile)),
147
+ );
148
+ assert.equal(meta.metadataSchemaVersion, 2);
149
+ assert.equal(meta.profileId, f.family.profileId);
150
+ assert.equal(meta.templateSourceState, "working-tree");
151
+ assert.equal(meta.coreSourceState, "working-tree");
152
+ assert.match(
153
+ fs.readFileSync(path.join(f.target, "README.md"), "utf8"),
154
+ /订单服务/,
155
+ );
156
+ assert.match(
157
+ fs.readFileSync(path.join(f.target, "yss-project.yaml"), "utf8"),
158
+ /project-instance/,
159
+ );
160
+ assert.equal(
161
+ fs.statSync(path.join(f.target, "scripts/check")).mode & 511,
162
+ 493,
163
+ );
164
+ }
165
+ });
166
+ test("旧治理目录仅在显式迁移时转入新目录,保留项目 tracker 配置", (t) => {
167
+ const f = fixture(t, "backend");
168
+ f.bundle({".template-spec/agents/issue-tracker.md":"default\n"});
169
+ fs.mkdirSync(f.target);
170
+ assert.equal(f.run("attach", "--apply").status, 0);
171
+ const metadataPath = path.join(f.target, f.family.metadataFile);
172
+ const metadata = JSON.parse(fs.readFileSync(metadataPath, "utf8"));
173
+ for (const suffix of ["process/harness-profile.yaml", "process/rule.md", "agents/issue-tracker.md"]) {
174
+ const to = `.template-spec/${suffix}`, from = `docs/${suffix}`;
175
+ fs.mkdirSync(path.dirname(path.join(f.target, from)), {recursive:true});
176
+ fs.renameSync(path.join(f.target, to), path.join(f.target, from));
177
+ metadata.managedFiles[from] = metadata.managedFiles[to];
178
+ delete metadata.managedFiles[to];
179
+ }
180
+ fs.writeFileSync(path.join(f.target, "docs/agents/issue-tracker.md"), "custom-project-tracker\n");
181
+ metadata.baselineDigest = hash(JSON.stringify(metadata.managedFiles));
182
+ fs.writeFileSync(metadataPath, json(metadata));
183
+ const blocked = f.run("sync", "--apply", "--force");
184
+ assert.equal(blocked.status, 1);
185
+ const preview = f.run("sync", "--migrate-layout", "--plan");
186
+ assert.equal(preview.status, 0, preview.stderr);
187
+ assert.equal(preview.data.migrationRequired, true);
188
+ assert.equal(f.run("sync", "--migrate-layout", "--apply").status, 0);
189
+ assert.equal(fs.readFileSync(path.join(f.target, ".template-spec/agents/issue-tracker.md"), "utf8"), "custom-project-tracker\n");
190
+ assert.equal(fs.existsSync(path.join(f.target, "docs/agents/issue-tracker.md")), false);
191
+ assert.equal(f.run("sync", "--apply").status, 0);
192
+ });
193
+ test("显式迁移不覆盖已修改的旧治理文件", (t) => {
194
+ const f = fixture(t, "frontend");
195
+ fs.mkdirSync(f.target);
196
+ assert.equal(f.run("attach", "--apply").status, 0);
197
+ const metadataPath = path.join(f.target, f.family.metadataFile);
198
+ const metadata = JSON.parse(fs.readFileSync(metadataPath, "utf8"));
199
+ const old = "docs/process/rule.md", current = ".template-spec/process/rule.md";
200
+ fs.mkdirSync(path.dirname(path.join(f.target, old)), {recursive:true});
201
+ fs.renameSync(path.join(f.target, current), path.join(f.target, old));
202
+ metadata.managedFiles[old] = metadata.managedFiles[current];
203
+ delete metadata.managedFiles[current];
204
+ metadata.baselineDigest = hash(JSON.stringify(metadata.managedFiles));
205
+ fs.writeFileSync(metadataPath, json(metadata));
206
+ fs.writeFileSync(path.join(f.target, old), "user changes\n");
207
+ const result = f.run("sync", "--migrate-layout", "--apply", "--force");
208
+ assert.equal(result.status, 1);
209
+ assert.equal(result.data.code, "LAYOUT");
210
+ assert.equal(fs.readFileSync(path.join(f.target, old), "utf8"), "user changes\n");
211
+ });
212
+ test("已初始化实例升级到 Harness profile schema v2 后仍可同步", (t) => {
213
+ for (const side of ["backend", "frontend"]) {
214
+ const f = fixture(t, side);
215
+ const initialized = f.run("init", "--project-name", "订单服务");
216
+ assert.equal(initialized.status, 0, initialized.stderr);
217
+ const profilePath = path.join(
218
+ f.target,
219
+ ".template-spec/process/harness-profile.yaml",
220
+ );
221
+ fs.writeFileSync(
222
+ profilePath,
223
+ fs.readFileSync(profilePath, "utf8").replace(
224
+ "schema_version: 1",
225
+ "schema_version: 2",
226
+ ),
227
+ );
228
+
229
+ const synced = f.run("sync");
230
+ assert.equal(synced.status, 0, synced.stderr);
231
+ assert.equal(synced.data.status, "preview");
232
+ }
233
+ });
234
+ export { fixture, put, json };
235
+ test('通用命令只读、README 保留、退出分发必须显式 prune', t => {
236
+ for (const side of ['design', 'backend', 'frontend']) {
237
+ const f = fixture(t, side);
238
+ put(f.target, 'README.md', 'user readme');
239
+ assert.equal(f.run('attach', '--apply').status, 0);
240
+ assert.equal(fs.readFileSync(path.join(f.target, 'README.md'), 'utf8'), 'user readme');
241
+ const before = tree(f.target);
242
+ for (const command of ['doctor', 'diff', 'recover']) {
243
+ const r = f.run(command);
244
+ assert.equal(r.status, 0, r.stderr);
245
+ assert.deepEqual(tree(f.target), before);
246
+ }
247
+ f.bundle({'.template-spec/process/rule.md': null});
248
+ assert.equal(f.run('sync', '--apply').status, 0);
249
+ assert.ok(fs.existsSync(path.join(f.target, '.template-spec/process/rule.md')));
250
+ const prunePlan=f.run('sync','--plan','--prune');assert.equal(prunePlan.status,0);assert.deepEqual(prunePlan.data.pruned,[]);assert.ok(prunePlan.data.prunable.includes('.template-spec/process/rule.md'));
251
+ assert.equal(f.run('sync', '--apply', '--prune').status, 0);
252
+ assert.equal(fs.existsSync(path.join(f.target, '.template-spec/process/rule.md')), false);
253
+ }
254
+ });
255
+ function tree(root) {
256
+ if (!fs.existsSync(root)) return null;
257
+ const result = {};
258
+ for (const ent of fs.readdirSync(root, { withFileTypes: true })) {
259
+ const p = path.join(root, ent.name);
260
+ result[ent.name] = ent.isSymbolicLink()
261
+ ? { link: fs.readlinkSync(p) }
262
+ : ent.isDirectory()
263
+ ? tree(p)
264
+ : {
265
+ bytes: fs.readFileSync(p).toString("base64"),
266
+ mode: fs.statSync(p).mode & 511,
267
+ };
268
+ }
269
+ return result;
270
+ }
271
+ test("attach 默认与 dry-run 零写入,碰撞整次暂停,force 备份且业务文件保持原样", (t) => {
272
+ const f = fixture(t);
273
+ put(f.target, "src/main.js", "business");
274
+ put(f.target, "package.json", '{"name":"existing"}');
275
+ put(f.target, "README.md", "local README");
276
+ put(f.target, "AGENTS.md", "local governance");
277
+ const before = tree(f.target);
278
+ for (const args of [[], ["--dry-run"], ["--apply"]]) {
279
+ const r = f.run("attach", ...args);
280
+ assert.equal(r.status, 1);
281
+ assert.equal(r.data.code, "CONFLICT");
282
+ assert.deepEqual(tree(f.target), before);
283
+ }
284
+ const r = f.run("attach", "--apply", "--force");
285
+ assert.equal(r.status, 0, r.stderr);
286
+ assert.equal(
287
+ fs.readFileSync(path.join(f.target, "src/main.js"), "utf8"),
288
+ "business",
289
+ );
290
+ assert.equal(
291
+ fs.readFileSync(path.join(f.target, "package.json"), "utf8"),
292
+ '{"name":"existing"}',
293
+ );
294
+ assert.ok(r.data.backupPath);
295
+ assert.ok(fs.existsSync(path.join(r.data.backupPath, "journal.json")));
296
+ assert.equal(f.run("attach", "--apply", "--force").status, 1);
297
+ });
298
+ test("普通无碰撞仓 attach 预览可应用计划但不创建状态目录", (t) => {
299
+ const f = fixture(t);
300
+ put(f.target, "src/app.js", "business");
301
+ const before = tree(f.target);
302
+ const r = f.run("attach");
303
+ assert.equal(r.status, 0, r.stderr);
304
+ assert.equal(r.data.status, "preview");
305
+ assert.deepEqual(tree(f.target), before);
306
+ });
307
+ test("旧格式、旧 profile、异族、多身份、未知schema和链接拒绝且 force 无法绕过", (t) => {
308
+ for (const kind of [
309
+ "legacy",
310
+ "profile",
311
+ "foreign",
312
+ "mixed",
313
+ "schema",
314
+ "symlink",
315
+ ]) {
316
+ const f = fixture(t);
317
+ put(f.target, "business.txt", "keep");
318
+ if (kind === "legacy")
319
+ put(
320
+ f.target,
321
+ f.family.metadataFile,
322
+ json({
323
+ schema_version: 1,
324
+ profile_id: f.family.profileId,
325
+ template_commit: "a".repeat(40),
326
+ }),
327
+ );
328
+ if (kind === "profile")
329
+ put(
330
+ f.target,
331
+ ".template-spec/process/harness-profile.yaml",
332
+ `schema_version: 1\nprofile_id: ${f.family.profileId}\ninstantiation:\n cli_package: repository-local\n`,
333
+ );
334
+ if (kind === "foreign" || kind === "mixed")
335
+ put(f.target, ".yss-harness-dev.json", "{}");
336
+ if (kind === "mixed" || kind === "schema")
337
+ put(f.target, f.family.metadataFile, json({ metadataSchemaVersion: 99 }));
338
+ if (kind === "symlink") {
339
+ put(f.root, "outside", "{}");
340
+ fs.symlinkSync(
341
+ path.join(f.root, "outside"),
342
+ path.join(f.target, f.family.metadataFile),
343
+ );
344
+ }
345
+ const before = tree(f.target);
346
+ for (const cmd of ["attach", "sync"]) {
347
+ const r = f.run(cmd, "--apply", "--force");
348
+ assert.equal(r.status, 1, kind);
349
+ assert.deepEqual(tree(f.target), before, kind);
350
+ }
351
+ }
352
+ });
353
+ test("sync 三方规则:本地保留、模板升级、新增、删除和冲突整次暂停", (t) => {
354
+ const f = fixture(t);
355
+ assert.equal(f.run("init").status, 0);
356
+ put(f.target, ".template-spec/process/rule.md", "local edit\n");
357
+ const before = tree(f.target);
358
+ let r = f.run("sync");
359
+ assert.equal(r.status, 0, r.stderr);
360
+ assert.ok(
361
+ r.data.changes.some(
362
+ (x) => x.path === ".template-spec/process/rule.md" && x.action === "preserve",
363
+ ),
364
+ );
365
+ assert.deepEqual(tree(f.target), before);
366
+ f.bundle({
367
+ ".template-spec/process/rule.md": "upstream v2\n",
368
+ "docs/new.md": "new\n",
369
+ "scripts/check": null,
370
+ });
371
+ r = f.run("sync", "--apply");
372
+ assert.equal(r.data.code, "CONFLICT");
373
+ assert.deepEqual(tree(f.target), before);
374
+ r = f.run("sync", "--apply", "--force", "--prune");
375
+ assert.equal(r.status, 0, r.stderr);
376
+ assert.equal(
377
+ fs.readFileSync(path.join(f.target, ".template-spec/process/rule.md"), "utf8"),
378
+ "upstream v2\n",
379
+ );
380
+ assert.equal(fs.existsSync(path.join(f.target, "scripts/check")), false);
381
+ assert.ok(fs.existsSync(path.join(f.target, "docs/new.md")));
382
+ const m = JSON.parse(
383
+ fs.readFileSync(path.join(f.target, f.family.metadataFile)),
384
+ );
385
+ assert.equal(m.lastTransactionId, r.data.transactionId);
386
+ r = f.run("sync");
387
+ assert.equal(r.status, 0, r.stderr);
388
+ assert.ok(r.data.changes.every((x) => ["unchanged","preserve"].includes(x.action)));
389
+ });
390
+ test("init dry-run 无写入;非空目录、未知基线、目录碰撞、嵌套仓库和快照越界均拒绝", (t) => {
391
+ const f = fixture(t);
392
+ assert.equal(f.run("init", "--dry-run").status, 0);
393
+ assert.equal(fs.existsSync(f.target), false);
394
+ put(f.target, "keep", "x");
395
+ assert.equal(f.run("init", "--force").status, 1);
396
+ assert.equal(f.run("attach", "--apply").status, 0);
397
+ let m = JSON.parse(
398
+ fs.readFileSync(path.join(f.target, f.family.metadataFile)),
399
+ );
400
+ delete m.managedFiles;
401
+ put(f.target, f.family.metadataFile, json(m));
402
+ let before = tree(f.target);
403
+ assert.equal(f.run("sync", "--apply", "--force").data.code, "BASELINE");
404
+ assert.deepEqual(tree(f.target), before);
405
+ for (const kind of ["dir", "link", "repo", "snapshot"]) {
406
+ const x = fixture(t);
407
+ put(x.target, "keep", "x");
408
+ if (kind === "dir") fs.mkdirSync(path.join(x.target, "README.md"));
409
+ if (kind === "link") {
410
+ put(x.root, "external", "x");
411
+ fs.symlinkSync(
412
+ path.join(x.root, "external"),
413
+ path.join(x.target, "README.md"),
414
+ );
415
+ }
416
+ if (kind === "repo") put(x.target, ".template-spec/.git", "gitdir: elsewhere");
417
+ if (kind === "snapshot") x.bundle({ "../escape": "bad" });
418
+ before = tree(x.target);
419
+ const r = x.run("attach", "--apply", "--force");
420
+ assert.equal(r.status, 1, kind);
421
+ assert.deepEqual(tree(x.target), before);
422
+ }
423
+ });
424
+ function injected(f, code, command = "sync", extra = []) {
425
+ const hook = path.join(f.root, "fault.mjs");
426
+ fs.writeFileSync(
427
+ hook,
428
+ `import fs from 'node:fs';import {syncBuiltinESMExports} from 'node:module';\n${code}\nsyncBuiltinESMExports();`,
429
+ );
430
+ return spawnSync(
431
+ process.execPath,
432
+ [
433
+ "--import",
434
+ hook,
435
+ path.join(f.pkg, "bin.mjs"),
436
+ command,
437
+ "--target-dir",
438
+ f.target,
439
+ ...(command === "init" ? [] : ["--apply"]),
440
+ ...extra,
441
+ "--json",
442
+ ],
443
+ { encoding: "utf8" },
444
+ );
445
+ }
446
+ test("写入失败自动恢复内容与 metadata,备份失败不应用计划", (t) => {
447
+ for (const boundary of ["write", "backup"]) {
448
+ const f = fixture(t);
449
+ assert.equal(f.run("init").status, 0);
450
+ f.bundle({ "docs/new.md": "new", ".template-spec/process/rule.md": "v2" });
451
+ const meta = fs.readFileSync(
452
+ path.join(f.target, f.family.metadataFile),
453
+ "utf8",
454
+ );
455
+ const r = injected(
456
+ f,
457
+ `const original=fs.renameSync;let failed=false;fs.renameSync=(a,b)=>{if(!failed&&String(b).includes(${JSON.stringify(boundary === "write" ? "/.template-spec/process/rule.md" : "/backup/")})){failed=true;throw new Error('injected disk error')}return original(a,b)};`,
458
+ );
459
+ assert.equal(r.status, 1, r.stderr);
460
+ assert.equal(
461
+ fs.readFileSync(path.join(f.target, ".template-spec/process/rule.md"), "utf8"),
462
+ "rule v1\n",
463
+ );
464
+ assert.equal(
465
+ fs.readFileSync(path.join(f.target, f.family.metadataFile), "utf8"),
466
+ meta,
467
+ );
468
+ assert.equal(fs.existsSync(path.join(f.target, "docs/new.md")), false);
469
+ }
470
+ });
471
+ test("进程中断后预览只诊断;下次 apply 恢复再允许重试", (t) => {
472
+ const f = fixture(t);
473
+ assert.equal(f.run("init").status, 0);
474
+ f.bundle({ "docs/new.md": "new", ".template-spec/process/rule.md": "v2" });
475
+ const meta = fs.readFileSync(
476
+ path.join(f.target, f.family.metadataFile),
477
+ "utf8",
478
+ );
479
+ const r = injected(
480
+ f,
481
+ `const original=fs.renameSync;fs.renameSync=(a,b)=>{original(a,b);if(String(b).endsWith('/docs/new.md'))process.kill(process.pid,'SIGKILL')};`,
482
+ );
483
+ assert.equal(r.signal, "SIGKILL");
484
+ const before = tree(f.target);
485
+ assert.equal(f.run("sync").data.code, "INTERRUPTED");
486
+ assert.deepEqual(tree(f.target), before);
487
+ const recovered = f.run("sync", "--apply");
488
+ assert.equal(recovered.status, 0, recovered.stderr);
489
+ assert.equal(recovered.data.status, "recovered");
490
+ assert.equal(fs.existsSync(path.join(f.target, "docs/new.md")), false);
491
+ assert.equal(
492
+ fs.readFileSync(path.join(f.target, f.family.metadataFile), "utf8"),
493
+ meta,
494
+ );
495
+ assert.equal(f.run("sync", "--apply").status, 0);
496
+ });
497
+ test("update/upgrade 使用固定包名检查新版,源码安装仅输出指引且实例不变", (t) => {
498
+ const f = fixture(t);
499
+ assert.equal(f.run("init").status, 0);
500
+ const before = tree(f.target);
501
+ const bindir = path.join(f.root, "fake-bin");
502
+ put(
503
+ bindir,
504
+ "npm",
505
+ '#!/bin/sh\nif [ "$1" = "view" ]; then echo 0.2.0; elif [ "$1" = "prefix" ]; then echo /nonexistent; else exit 77; fi\n',
506
+ );
507
+ fs.chmodSync(path.join(bindir, "npm"), 0o755);
508
+ for (const cmd of ["update", "upgrade"]) {
509
+ const r = spawnSync(
510
+ process.execPath,
511
+ [path.join(f.pkg, "bin.mjs"), cmd, "--dry-run", "--json"],
512
+ {
513
+ cwd: f.target,
514
+ env: {
515
+ ...process.env,
516
+ PATH: bindir + path.delimiter + process.env.PATH,
517
+ },
518
+ encoding: "utf8",
519
+ },
520
+ );
521
+ assert.equal(r.status, 0, r.stderr);
522
+ const d = JSON.parse(r.stdout);
523
+ assert.equal(d.latestVersion, "0.2.0");
524
+ assert.equal(d.packageName, f.family.packageName);
525
+ assert.match(d.advice, /create-yss-harness-backend@latest/);
526
+ assert.deepEqual(tree(f.target), before);
527
+ }
528
+ });
529
+ test("init --git-init 创建独立 Git;非法参数不留下项目", (t) => {
530
+ const f = fixture(t);
531
+ assert.equal(f.run("init", "--git-init").status, 0);
532
+ assert.ok(fs.existsSync(path.join(f.target, ".git/HEAD")));
533
+ const x = fixture(t);
534
+ assert.equal(x.run("attach", "--git-init").status, 1);
535
+ assert.equal(x.run("init", "--issue-tracker", "bad").status, 1);
536
+ assert.equal(fs.existsSync(x.target), false);
537
+ });
538
+ test("未检出的声明 gitlink、硬链接、未知状态目录和跨家族恢复保持零写入", (t) => {
539
+ for (const kind of ["gitlink", "hardlink", "state"]) {
540
+ const f = fixture(t);
541
+ put(f.target, "keep", "x");
542
+ if (kind === "gitlink")
543
+ put(
544
+ f.target,
545
+ ".gitmodules",
546
+ '[submodule "rules"]\n path = .template-spec\n url = https://example.invalid/rules.git\n',
547
+ );
548
+ if (kind === "hardlink")
549
+ fs.linkSync(
550
+ path.join(f.target, "keep"),
551
+ path.join(f.target, "README.md"),
552
+ );
553
+ if (kind === "state") put(f.target, ".yss-harness-state/unknown", "x");
554
+ const before = tree(f.target);
555
+ const r = f.run("attach", "--apply", "--force");
556
+ assert.equal(r.status, 1, kind);
557
+ assert.deepEqual(tree(f.target), before);
558
+ }
559
+ });
560
+ test("并发修改和恢复失败保留外部修改,明确报告未恢复路径", (t) => {
561
+ const f = fixture(t);
562
+ assert.equal(f.run("init").status, 0);
563
+ f.bundle({ "docs/new.md": "new", ".template-spec/process/rule.md": "v2" });
564
+ const r = injected(
565
+ f,
566
+ `const original=fs.renameSync;fs.renameSync=(a,b)=>{original(a,b);if(String(b).endsWith('/docs/new.md')){fs.writeFileSync(${JSON.stringify(path.join(f.target, "docs/new.md"))},'concurrent');throw new Error('injected verify failure')}};`,
567
+ );
568
+ assert.equal(r.status, 1);
569
+ assert.equal(JSON.parse(r.stdout).code, "RECOVERY_FAILED");
570
+ assert.equal(
571
+ fs.readFileSync(path.join(f.target, "docs/new.md"), "utf8"),
572
+ "concurrent",
573
+ );
574
+ assert.equal(
575
+ fs.readFileSync(path.join(f.target, ".template-spec/process/rule.md"), "utf8"),
576
+ "rule v1\n",
577
+ );
578
+ });
579
+ test("中断恢复前拒绝旧身份、嵌套仓库、声明gitlink及损坏备份,整次零写入", (t) => {
580
+ for (const kind of ["legacy", "repo", "gitlink", "backup"]) {
581
+ const f = fixture(t);
582
+ assert.equal(f.run("init").status, 0);
583
+ f.bundle({ "docs/new.md": "new", ".template-spec/process/rule.md": "v2" });
584
+ const r = injected(
585
+ f,
586
+ `const original=fs.renameSync;fs.renameSync=(a,b)=>{original(a,b);if(String(b).endsWith('/.template-spec/process/rule.md'))process.kill(process.pid,'SIGKILL')};`,
587
+ );
588
+ assert.equal(r.signal, "SIGKILL");
589
+ if (kind === "legacy")
590
+ put(
591
+ f.target,
592
+ f.family.metadataFile,
593
+ json({ schema_version: 1, profile_id: f.family.profileId }),
594
+ );
595
+ if (kind === "repo") put(f.target, ".template-spec/.git", "gitdir: elsewhere");
596
+ if (kind === "gitlink")
597
+ put(
598
+ f.target,
599
+ ".gitmodules",
600
+ '[submodule "rules"]\n path = .template-spec\n url = https://example.invalid/repo.git\n',
601
+ );
602
+ if (kind === "backup") {
603
+ const dir = path.join(
604
+ f.target,
605
+ ".yss-harness-state/backend/transactions",
606
+ );
607
+ for (const id of fs.readdirSync(dir)) {
608
+ const j = JSON.parse(
609
+ fs.readFileSync(path.join(dir, id, "journal.json")),
610
+ );
611
+ if (j.phase !== "committed")
612
+ for (const file of fs.readdirSync(path.join(dir, id, "backup")))
613
+ fs.writeFileSync(path.join(dir, id, "backup", file), "corrupt");
614
+ }
615
+ }
616
+ const before = tree(f.target);
617
+ const recovered = f.run("sync", "--apply", "--force");
618
+ assert.equal(recovered.status, 1, kind);
619
+ assert.deepEqual(tree(f.target), before, kind);
620
+ }
621
+ });
622
+ test("实际入口尾斜杠的全局安装识别保留 -g,upgrade 不降级", (t) => {
623
+ const f = fixture(t);
624
+ const global = path.join(f.root, "global"),
625
+ installed = path.join(global, "lib/node_modules", f.family.packageName);
626
+ fs.cpSync(f.pkg, installed, { recursive: true });
627
+ put(
628
+ installed,
629
+ "entry.mjs",
630
+ `import {fileURLToPath} from 'node:url';import {main} from ${JSON.stringify("file://" + entry)};await main(fileURLToPath(new URL('.',import.meta.url)));`,
631
+ );
632
+ const bin = path.join(f.root, "bin");
633
+ put(
634
+ bin,
635
+ "npm",
636
+ `#!/bin/sh\nif [ "$1" = "view" ]; then echo 0.2.0; elif [ "$1" = "prefix" ]; then echo '${global}'; else exit 77; fi\n`,
637
+ );
638
+ fs.chmodSync(path.join(bin, "npm"), 0o755);
639
+ const r = spawnSync(
640
+ process.execPath,
641
+ [path.join(installed, "entry.mjs"), "upgrade", "--dry-run", "--json"],
642
+ {
643
+ encoding: "utf8",
644
+ env: { ...process.env, PATH: bin + path.delimiter + process.env.PATH },
645
+ },
646
+ );
647
+ assert.equal(r.status, 0, r.stderr);
648
+ const plan = JSON.parse(r.stdout);
649
+ assert.equal(plan.installKind, "global");
650
+ assert.deepEqual(plan.commandLine, [
651
+ "npm",
652
+ "install",
653
+ "-g",
654
+ f.family.packageName + "@latest",
655
+ ]);
656
+ });
657
+ test("重复身份字段不能通过 force 同步", (t) => {
658
+ const f = fixture(t);
659
+ assert.equal(f.run("init").status, 0);
660
+ const ref = path.join(f.target, f.family.metadataFile),
661
+ meta = fs.readFileSync(ref, "utf8");
662
+ fs.writeFileSync(
663
+ ref,
664
+ meta.replace(
665
+ '"metadataSchemaVersion": 2',
666
+ '"metadataSchemaVersion": 99, "metadataSchemaVersion": 2',
667
+ ),
668
+ );
669
+ const before = tree(f.target);
670
+ assert.equal(f.run("sync", "--apply", "--force").status, 1);
671
+ assert.deepEqual(tree(f.target), before);
672
+ });
673
+ test("真实入口禁止在 CLI 包内子目录初始化,不破坏受锁核心", (t) => {
674
+ const f = fixture(t);
675
+ put(
676
+ f.pkg,
677
+ "actual.mjs",
678
+ `import {fileURLToPath} from 'node:url';import {main} from ${JSON.stringify("file://" + entry)};await main(fileURLToPath(new URL('.',import.meta.url)));`,
679
+ );
680
+ const target = path.join(f.pkg, "vendor/cli-core/new-project"),
681
+ before = tree(f.pkg);
682
+ const r = spawnSync(
683
+ process.execPath,
684
+ [path.join(f.pkg, "actual.mjs"), "init", "--target-dir", target, "--json"],
685
+ { encoding: "utf8" },
686
+ );
687
+ assert.equal(r.status, 1);
688
+ assert.deepEqual(tree(f.pkg), before);
689
+ });
690
+ test("update --force 不把较新 CLI 降级到 registry 的旧版本", (t) => {
691
+ const f = fixture(t);
692
+ const bin = path.join(f.root, "bin");
693
+ put(
694
+ bin,
695
+ "npm",
696
+ '#!/bin/sh\nif [ "$1" = "view" ]; then echo 0.0.9; else exit 77; fi\n',
697
+ );
698
+ fs.chmodSync(path.join(bin, "npm"), 0o755);
699
+ const r = spawnSync(
700
+ process.execPath,
701
+ [path.join(f.pkg, "bin.mjs"), "update", "--force", "--json"],
702
+ {
703
+ env: { ...process.env, PATH: bin + path.delimiter + process.env.PATH },
704
+ encoding: "utf8",
705
+ },
706
+ );
707
+ assert.equal(r.status, 0, r.stderr);
708
+ assert.equal(JSON.parse(r.stdout).status, "current");
709
+ });
710
+
711
+ test("技能退役清理空目录,但保留用户文件;失败后恢复技能", (t) => {
712
+ for (const rollback of [false, true]) {
713
+ const f = fixture(t);
714
+ const canonical = ".agents/skills/retired/SKILL.md";
715
+ const projection = ".codex/skills/retired/SKILL.md";
716
+ f.bundle({[canonical]: "old", [projection]: "old"});
717
+ assert.equal(f.run("init").status, 0);
718
+ put(f.target, ".codex/skills/retired/user-notes.md", "keep");
719
+ f.bundle({[canonical]: null, [projection]: null});
720
+ const result = rollback ? injected(f,
721
+ `const original=fs.rmdirSync;let failed=false;fs.rmdirSync=(p,...args)=>{const result=original(p,...args);if(!failed&&String(p).endsWith('/.agents/skills/retired')){failed=true;throw new Error('after prune')}return result;};`, 'sync', ['--prune']
722
+ ) : f.run("sync", "--apply", "--prune");
723
+ assert.equal(result.status, rollback ? 1 : 0, result.stderr);
724
+ assert.equal(fs.existsSync(path.join(f.target, ".agents/skills/retired")), rollback);
725
+ assert.equal(fs.readFileSync(path.join(f.target, ".codex/skills/retired/user-notes.md"), "utf8"), "keep");
726
+ assert.equal(fs.existsSync(path.join(f.target, projection)), rollback);
727
+ if (rollback) assert.equal(fs.readFileSync(path.join(f.target, canonical), "utf8"), "old");
728
+ }
729
+ });
730
+
731
+ test('同步与接入保留已有业务词汇表,即使模板同时更新且传入 force', t => {
732
+ for (const side of ['design', 'backend', 'frontend']) {
733
+ const f = fixture(t, side);
734
+ assert.equal(f.run('init').status, 0);
735
+ put(f.target, 'CONTEXT.md', '# 真实业务词汇\n');
736
+ f.bundle({ 'CONTEXT.md': '# 新模板流程词汇\n', '.template-spec/process/rule.md': 'rule v2\n' });
737
+ const before = tree(f.target);
738
+ const preview = f.run('sync', '--dry-run');
739
+ assert.equal(preview.status, 0, preview.stderr);
740
+ assert.equal(preview.data.changes.find(x => x.path === 'CONTEXT.md').action, 'preserve');
741
+ assert.deepEqual(tree(f.target), before);
742
+ const applied = f.run('sync', '--apply', '--force');
743
+ assert.equal(applied.status, 0, applied.stderr);
744
+ assert.equal(fs.readFileSync(path.join(f.target, 'CONTEXT.md'), 'utf8'), '# 真实业务词汇\n');
745
+ assert.equal(fs.readFileSync(path.join(f.target, '.template-spec/process/rule.md'), 'utf8'), 'rule v2\n');
746
+ const attached = fixture(t, side);
747
+ put(attached.target, 'CONTEXT.md', '# 已有项目词汇\n');
748
+ const adopted = attached.run('attach', '--apply');
749
+ assert.equal(adopted.status, 0, adopted.stderr);
750
+ assert.equal(fs.readFileSync(path.join(attached.target, 'CONTEXT.md'), 'utf8'), '# 已有项目词汇\n');
751
+ }
752
+ });
753
+
754
+ test("WAL 兼容旧 progress 恢复,忽略未完成尾部且拒绝完整损坏记录", t => {
755
+ for (const kind of ["legacy", "torn-tail", "corrupt-record"]) {
756
+ const f = fixture(t);
757
+ assert.equal(f.run("init").status, 0);
758
+ f.bundle({ "docs/new.md": "new", ".template-spec/process/rule.md": "v2" });
759
+ const r = injected(f, `const original=fs.renameSync;fs.renameSync=(a,b)=>{original(a,b);if(String(b).endsWith('/docs/new.md'))process.kill(process.pid,'SIGKILL')};`);
760
+ assert.equal(r.signal, "SIGKILL");
761
+ const transactions = path.join(f.target, ".yss-harness-state/backend/transactions");
762
+ const pending = fs.readdirSync(transactions).map(name => path.join(transactions,name)).find(dir => JSON.parse(fs.readFileSync(path.join(dir,"journal.json"))).phase === "apply");
763
+ const journalPath=path.join(pending,"journal.json"), walPath=path.join(pending,"intent.wal");
764
+ const journal=JSON.parse(fs.readFileSync(journalPath));
765
+ assert.equal(journal.schemaVersion, 2);
766
+ const records=fs.readFileSync(walPath,"utf8").trim().split("\n").map(JSON.parse);
767
+ if(kind === "legacy") {
768
+ journal.schemaVersion=1;for(const op of journal.operations){delete op.temporaryPath;delete op.temporaryCreated;}fs.writeFileSync(journalPath,json(journal));
769
+ fs.writeFileSync(path.join(pending,"progress.json"),json({index:records.at(-1).index,createdDirectories:records.flatMap(x=>x.createdDirectories)}));
770
+ fs.unlinkSync(walPath);
771
+ } else fs.appendFileSync(walPath, kind === "torn-tail" ? '{"index":' : 'broken\n');
772
+ const recovered=f.run("sync","--apply");
773
+ assert.equal(recovered.status,kind === "corrupt-record" ? 1 : 0,recovered.stderr);
774
+ if(kind !== "corrupt-record") {
775
+ assert.equal(recovered.data.status,"recovered");
776
+ assert.equal(fs.existsSync(path.join(f.target,"docs/new.md")),false);
777
+ assert.equal(fs.readFileSync(path.join(f.target,".template-spec/process/rule.md"),"utf8"),"rule v1\n");
778
+ }
779
+ }
780
+ });
781
+
782
+ test("WAL 和目标持久化阶段失败均回滚且不推进 metadata", t => {
783
+ const hooks = [
784
+ `const open=fs.openSync,sync=fs.fsyncSync;let wal;fs.openSync=(p,...args)=>{const fd=open(p,...args);if(String(p).endsWith('/intent.wal')&&args[0]==='a')wal=fd;return fd};let hit=false;fs.fsyncSync=fd=>{if(fd===wal&&!hit){hit=true;throw Error('wal-fsync-fault')}return sync(fd)};`,
785
+ `const rename=fs.renameSync;let hit=false;fs.renameSync=(a,b)=>{if(!hit&&String(b).endsWith('/docs/new.md')){hit=true;throw Error('rename-fault')}return rename(a,b)};`,
786
+ `const open=fs.openSync,sync=fs.fsyncSync;let targetFd,hit=false;fs.openSync=(p,...args)=>{const fd=open(p,...args);if(String(p).includes('/docs/new.md.')&&String(p).endsWith('.tmp'))targetFd=fd;return fd};fs.fsyncSync=fd=>{if(fd===targetFd&&!hit){hit=true;throw Error('target-fsync-fault')}return sync(fd)};`,
787
+ `const open=fs.openSync,sync=fs.fsyncSync;let dirFd,hit=false;fs.openSync=(p,...args)=>{const fd=open(p,...args);if(String(p).endsWith('/docs')&&args[0]==='r')dirFd=fd;return fd};fs.fsyncSync=fd=>{if(fd===dirFd&&!hit){hit=true;throw Error('directory-fsync-fault')}return sync(fd)};`,
788
+ ];
789
+ for(const hook of hooks) {
790
+ const f=fixture(t);assert.equal(f.run("init").status,0);
791
+ const before=tree(f.target); delete before[".yss-harness-state"];
792
+ f.bundle({"docs/new.md":"new",".template-spec/process/rule.md":"v2"});
793
+ const failed=injected(f,hook);
794
+ assert.equal(failed.status,1,failed.stderr);
795
+ const after=tree(f.target); delete after[".yss-harness-state"];
796
+ assert.deepEqual(after,before);
797
+ const journals=fs.readdirSync(path.join(f.target,".yss-harness-state/backend/transactions")).map(id=>JSON.parse(fs.readFileSync(path.join(f.target,".yss-harness-state/backend/transactions",id,"journal.json"))));
798
+ assert.equal(journals.filter(j=>j.phase === "rolled-back").length,1);
799
+ assert.equal(f.run("sync","--apply").status,0);
800
+ }
801
+ });
802
+
803
+ test("持久化模型:目录项未落盘时恢复接受 before/after 混合状态", t => {
804
+ const f=fixture(t);assert.equal(f.run("init").status,0);
805
+ const old=fs.readFileSync(path.join(f.target,".template-spec/process/rule.md"));
806
+ f.bundle({"docs/new.md":"new",".template-spec/process/rule.md":"v2"});
807
+ const r=injected(f,`const original=fs.renameSync;fs.renameSync=(a,b)=>{original(a,b);if(String(b).endsWith('/.template-spec/process/rule.md'))process.kill(process.pid,'SIGKILL')};`);
808
+ assert.equal(r.signal,"SIGKILL");
809
+ // Model the lost unflushed renames independently; this is not a physical power cut.
810
+ fs.writeFileSync(path.join(f.target,".template-spec/process/rule.md"),old);
811
+ if (fs.existsSync(path.join(f.target,"docs/new.md"))) fs.unlinkSync(path.join(f.target,"docs/new.md"));
812
+ const recovered=f.run("sync","--apply");
813
+ assert.equal(recovered.status,0,recovered.stderr);
814
+ assert.deepEqual(fs.readFileSync(path.join(f.target,".template-spec/process/rule.md")),old);
815
+ });
816
+
817
+ test("持久化顺序:WAL 与文件 fsync 先于 rename,目录屏障先于 metadata", t => {
818
+ const f=fixture(t);assert.equal(f.run("init").status,0);
819
+ f.bundle({"docs/new.md":"new",".template-spec/process/rule.md":"v2"});
820
+ const log=path.join(f.root,"durability-events.json");
821
+ const result=injected(f,`const opened=new Map(),events=[];const open=fs.openSync,sync=fs.fsyncSync,rename=fs.renameSync;fs.openSync=(p,...args)=>{const fd=open(p,...args);opened.set(fd,String(p));return fd};fs.fsyncSync=fd=>{sync(fd);events.push(['sync',opened.get(fd)])};fs.renameSync=(a,b)=>{rename(a,b);events.push(['rename',String(a),String(b)])};process.on('exit',()=>fs.writeFileSync(${JSON.stringify(log)},JSON.stringify(events)));`);
822
+ assert.equal(result.status,0,result.stderr);
823
+ const events=JSON.parse(fs.readFileSync(log));
824
+ for(const ref of ['docs/new.md','.template-spec/process/rule.md',f.family.metadataFile]) {
825
+ const position=events.findIndex(e=>e[0]==='rename'&&e[2]===path.join(f.target,ref));
826
+ assert.ok(position>0);
827
+ assert.ok(events.slice(0,position).some(e=>e[0]==='sync'&&e[1]===events[position][1]),'目标临时文件须先 fsync');
828
+ assert.ok(events.slice(0,position).some(e=>e[0]==='sync'&&e[1]?.endsWith('/intent.wal')),'WAL 须先 fsync');
829
+ }
830
+ const metadata=events.findIndex(e=>e[0]==='rename'&&e[2]===path.join(f.target,f.family.metadataFile));
831
+ const child=events.findLastIndex((e,i)=>i<metadata&&e[0]==='sync'&&e[1]===path.join(f.target,'docs'));
832
+ const parent=events.findLastIndex((e,i)=>i<metadata&&e[0]==='sync'&&e[1]===f.target);
833
+ assert.ok(child>=0&&parent>child,'子目录持久化先于父目录和 metadata');
834
+ });
835
+
836
+ test("初始化先持久化新目标的父目录;父目录刷盘失败不写入业务文件", t => {
837
+ for (const fail of [false, true]) {
838
+ const f = fixture(t), log = path.join(f.root, "target-parent-events.json");
839
+ const result = injected(f, `const opened=new Map(),events=[];let failed=false;const open=fs.openSync,sync=fs.fsyncSync,rename=fs.renameSync;fs.openSync=(p,...args)=>{const fd=open(p,...args);opened.set(fd,String(p));return fd};fs.fsyncSync=fd=>{const p=opened.get(fd);if(${fail}&&!failed&&p===${JSON.stringify(f.root)}){failed=true;throw Error('new-target-parent-fsync')};sync(fd);events.push(['sync',p])};fs.renameSync=(a,b)=>{rename(a,b);events.push(['rename',String(b)])};process.on('exit',()=>fs.writeFileSync(${JSON.stringify(log)},JSON.stringify(events)));`, "init");
840
+ assert.equal(result.status, fail ? 1 : 0, result.stderr);
841
+ const events = JSON.parse(fs.readFileSync(log));
842
+ const firstWrite = events.findIndex(e => e[0] === "rename" && e[1] === path.join(f.target, "AGENTS.md"));
843
+ if (fail) {
844
+ assert.equal(firstWrite, -1);
845
+ assert.equal(fs.existsSync(path.join(f.target, f.family.metadataFile)), false);
846
+ } else {
847
+ const parentSync = events.findIndex(e => e[0] === "sync" && e[1] === f.root);
848
+ assert.ok(parentSync >= 0 && firstWrite > parentSync);
849
+ }
850
+ }
851
+ });
852
+
853
+ test("持久化边界矩阵:异常与进程中断都保留可证明的恢复状态", async t => {
854
+ for (const boundary of ["backup", "wal-write", "wal-fsync", "target-fsync", "rename", "directory", "commit"]) {
855
+ for (const fault of ["throw", "kill"]) await t.test(`${boundary}/${fault}`, () => {
856
+ const f = fixture(t); assert.equal(f.run("init").status, 0);
857
+ const before = tree(f.target); delete before[".yss-harness-state"];
858
+ f.bundle({ "docs/new/nested.md": "new", ".template-spec/process/rule.md": "v2" });
859
+ const result = injected(f, `const opened=new Map();let fired=false;const hit=label=>{if(!fired&&label===${JSON.stringify(boundary)}){fired=true;${fault === "kill" ? "process.kill(process.pid,'SIGKILL')" : "throw Error('boundary-fault')"}}};const open=fs.openSync,write=fs.writeFileSync,sync=fs.fsyncSync,rename=fs.renameSync;fs.openSync=(p,...args)=>{const fd=open(p,...args);opened.set(fd,String(p));return fd};fs.writeFileSync=(fd,...args)=>{const r=write(fd,...args);if(opened.get(fd)?.endsWith('/intent.wal')&&String(args[0]).includes('index'))hit('wal-write');return r};fs.fsyncSync=fd=>{sync(fd);const p=opened.get(fd)||'';if(p.endsWith('/intent.wal'))hit('wal-fsync');if(p.includes('/docs/new/nested.md.')&&p.endsWith('.tmp'))hit('target-fsync');if(p===${JSON.stringify(path.join(f.target, "docs"))})hit('directory')};fs.renameSync=(a,b)=>{rename(a,b);b=String(b);if(b.includes('/backup/'))hit('backup');if(b.endsWith('/docs/new/nested.md'))hit('rename');if(b.endsWith('/journal.json')&&JSON.parse(fs.readFileSync(b)).phase==='committed')hit('commit')};`);
860
+ if (fault === "kill") {
861
+ assert.equal(result.signal, "SIGKILL", result.stderr);
862
+ const recovered = f.run("sync", "--apply"); assert.equal(recovered.status, 0, recovered.stderr);
863
+ if (boundary === "commit") {
864
+ assert.equal(fs.readFileSync(path.join(f.target, ".template-spec/process/rule.md"), "utf8"), "v2");
865
+ return;
866
+ }
867
+ assert.equal(recovered.data.status, "recovered");
868
+ } else assert.equal(result.status, 1, result.stderr);
869
+ const after = tree(f.target); delete after[".yss-harness-state"];
870
+ assert.deepEqual(after, before);
871
+ });
872
+ }
873
+ });
874
+
875
+ test("临时文件被用户修改或在独占创建前抢占时保留恢复清单", t => {
876
+ for (const kind of ["after-kill", "open-race"]) {
877
+ const f = fixture(t); assert.equal(f.run("init").status, 0);
878
+ f.bundle({ "docs/new.md": "new" });
879
+ const hook = kind === "after-kill"
880
+ ? `const opened=new Map(),open=fs.openSync,sync=fs.fsyncSync;fs.openSync=(p,...args)=>{const fd=open(p,...args);opened.set(fd,String(p));return fd};fs.fsyncSync=fd=>{sync(fd);const p=opened.get(fd)||'';if(p.includes('/docs/new.md.')&&p.endsWith('.tmp'))process.kill(process.pid,'SIGKILL')};`
881
+ : `const open=fs.openSync;let hit=false;fs.openSync=(p,...args)=>{if(!hit&&String(p).includes('/docs/new.md.')&&args[0]==='wx'){hit=true;fs.writeFileSync(p,'user edit')}return open(p,...args)};`;
882
+ const failed = injected(f, hook);
883
+ assert.equal(kind === "after-kill" ? failed.signal : JSON.parse(failed.stdout).code, kind === "after-kill" ? "SIGKILL" : "RECOVERY_FAILED", failed.stderr);
884
+ const transactions = path.join(f.target, ".yss-harness-state/backend/transactions");
885
+ const journal = fs.readdirSync(transactions).map(id => JSON.parse(fs.readFileSync(path.join(transactions, id, "journal.json")))).find(j => !["committed", "rolled-back"].includes(j.phase));
886
+ const temp = path.join(f.target, journal.operations.find(op => op.path === "docs/new.md").temporaryPath);
887
+ if (kind === "after-kill") fs.writeFileSync(temp, "user edit");
888
+ const before = tree(f.target), recovered = f.run("sync", "--apply");
889
+ assert.equal(recovered.status, 1); assert.equal(recovered.data.code, "RECOVERY_FAILED");
890
+ assert.deepEqual(tree(f.target), before);
891
+ assert.equal(fs.readFileSync(temp, "utf8"), "user edit");
892
+ }
893
+ });
894
+
895
+ test('三家族 .gitignore 区块保留用户字节,损坏标记阻断,prune 不删修改文件', t => {
896
+ for(const side of ['design','backend','frontend']) {
897
+ const f=fixture(t,side);f.bundle({'.gitignore':'node_modules/\n'});
898
+ put(f.target,'.gitignore','private\r\n');put(f.target,'approved.yaml','decision: approved\n');
899
+ assert.equal(f.run('attach','--apply').status,0);
900
+ const ignored=path.join(f.target,'.gitignore');const current=fs.readFileSync(ignored,'utf8');
901
+ assert.ok(current.startsWith('private\r\n'));assert.match(current,/\.yss-harness-state\//);
902
+ fs.appendFileSync(ignored,'outside\n');assert.equal(f.run('sync','--apply').status,0);
903
+ assert.ok(fs.readFileSync(ignored,'utf8').endsWith('outside\n'));
904
+ put(f.target,'.template-spec/process/rule.md','local');f.bundle({'.template-spec/process/rule.md':null});
905
+ const r=f.run('sync','--apply','--prune',...(side==='design'?[]:['--force']));assert.equal(r.status,0,r.stderr);
906
+ assert.equal(fs.readFileSync(path.join(f.target,'.template-spec/process/rule.md'),'utf8'),'local');
907
+ const before=tree(f.target);fs.appendFileSync(ignored,`# >>> ${f.family.packageName} managed rules\n`);
908
+ const broken=tree(f.target);assert.equal(f.run('sync','--apply').data.code,'GITIGNORE');assert.deepEqual(tree(f.target),broken);
909
+ assert.equal(before['approved.yaml'].bytes,Buffer.from('decision: approved\n').toString('base64'));
910
+ }
911
+ });
912
+
913
+ test('三家族手册退出分发仅由 prune 删除未修改 baseline', t => {
914
+ for(const side of ['design','backend','frontend']) {
915
+ const f=fixture(t,side);f.bundle({'.template-spec/user-guide/retired.md':'retired\n','.template-spec/user-guide/retained.md':'retained\n'});
916
+ assert.equal(f.run('init').status,0);
917
+ fs.appendFileSync(path.join(f.target,'.template-spec/user-guide/retained.md'),'用户修改\n');
918
+ f.bundle({'.template-spec/user-guide/retired.md':null,'.template-spec/user-guide/retained.md':null});
919
+ const normal=f.run('sync','--apply');assert.equal(normal.status,0,normal.stderr);
920
+ assert.ok(fs.existsSync(path.join(f.target,'.template-spec/user-guide/retired.md')));
921
+ const plan=f.run('sync','--plan','--prune');assert.equal(plan.status,0,plan.stderr);
922
+ assert.ok(plan.data.prunable.includes('.template-spec/user-guide/retired.md'));
923
+ assert.ok(plan.data.retainedRemoved.includes('.template-spec/user-guide/retained.md'));
924
+ const applied=f.run('sync','--apply','--prune');assert.equal(applied.status,0,applied.stderr);
925
+ assert.ok(!fs.existsSync(path.join(f.target,'.template-spec/user-guide/retired.md')));
926
+ assert.match(fs.readFileSync(path.join(f.target,'.template-spec/user-guide/retained.md'),'utf8'),/用户修改/);
927
+ }
928
+ });
929
+
930
+ test('三家族参数、异族、硬链接和嵌套仓库不能经新命令绕过', t => {
931
+ for(const side of ['design','backend','frontend']) {
932
+ const f=fixture(t,side);assert.equal(f.run('init').status,0);
933
+ for(const [command,...args] of [['doctor','--apply'],['diff','--apply'],['recover','--force'],['sync','--apply','--plan'],['attach','--prune'],['sync','--project-name','ignored']]) {
934
+ const before=tree(f.target);assert.equal(f.run(command,...args).status,1);assert.deepEqual(tree(f.target),before);
935
+ }
936
+ for(const ref of ['.yss-template.json','.yss-harness-dev.json',...['design','backend','frontend'].filter(x=>x!==side).map(x=>`.yss-harness-${x}.json`)]) {
937
+ put(f.target,ref,'{}');const before=tree(f.target);
938
+ for(const command of ['doctor','diff','recover'])assert.equal(f.run(command).status,1);
939
+ assert.deepEqual(tree(f.target),before);fs.unlinkSync(path.join(f.target,ref));
940
+ }
941
+ const rule=path.join(f.target,'.template-spec/process/rule.md');fs.linkSync(rule,path.join(f.target,'linked'));
942
+ assert.equal(f.run('diff').status,1);assert.equal(f.run('doctor').status,1);fs.unlinkSync(path.join(f.target,'linked'));
943
+ put(f.target,'.template-spec/.git/config','');assert.equal(f.run('diff').status,1);assert.equal(f.run('doctor').status,1);
944
+ }
945
+ });
946
+
947
+ test('战略 v1 缺少证据不迁移,合法来源仅在 apply 转换,未知 mode 不授予 prune',t=>{
948
+ const f=fixture(t,'design');assert.equal(f.run('init').status,0);
949
+ const metadata=path.join(f.target,f.family.metadataFile), modern=JSON.parse(fs.readFileSync(metadata));
950
+ const legacy={metadataSchemaVersion:1,profileId:f.family.profileId,templateName:f.family.templateName,templateSource:f.family.templateSource,templateCommit:modern.templateCommit,templateSourceState:modern.templateSourceState,snapshotHash:modern.snapshotHash,managedFilesManifestVersion:modern.manifestHash,variables:modern.variables,managedFiles:Object.fromEntries(Object.entries(modern.managedFiles).map(([p,r])=>[p,{type:'copy',contentHash:r.baseline.digest}]))};
951
+ for(const field of ['snapshotHash','templateCommit','variables','managedFilesManifestVersion']){
952
+ const bad={...legacy};delete bad[field];fs.writeFileSync(metadata,json(bad));const before=tree(f.target);
953
+ assert.equal(f.run('sync','--apply').status,1);assert.deepEqual(tree(f.target),before);
954
+ }
955
+ put(f.target,'scripts/instantiate-harness','legacy script');legacy.managedFiles['scripts/instantiate-harness']={type:'copy',contentHash:hash('legacy script')};
956
+ fs.writeFileSync(metadata,json(legacy));const before=fs.readFileSync(metadata);assert.equal(f.run('diff').data.migrationRequired,true);assert.deepEqual(fs.readFileSync(metadata),before);
957
+ f.bundle({'.template-spec/process/rule.md':null});const r=f.run('sync','--prune','--apply');assert.equal(r.status,0,r.stderr);
958
+ assert.ok(fs.existsSync(path.join(f.target,'.template-spec/process/rule.md')));assert.equal(JSON.parse(fs.readFileSync(metadata)).metadataSchemaVersion,2);assert.equal(fs.readFileSync(path.join(f.target,'scripts/instantiate-harness'),'utf8'),'legacy script');
959
+ assert.equal(f.run('sync','--prune','--apply').status,0);assert.ok(fs.existsSync(path.join(f.target,'.template-spec/process/rule.md')));
960
+ });
961
+
962
+ test('三家族真实写入、中断、备份损坏、并发修改及校验失败均保持恢复边界',t=>{
963
+ for(const side of ['design','backend','frontend']) for(const failure of ['write','kill','backup-corrupt','concurrent','verify']) {
964
+ const f=fixture(t,side);
965
+ if(failure==='verify')f.bundle({'skills-lock.json':json({version:3,skills:{shared:{}},projectionRoots:[]}), 'scripts/update-skill-lock':'process.exit(0);', 'scripts/verify-context-contract':'process.exit(0);','scripts/verify-harness-profile':'process.exit(0);','scripts/verify-governance-layout':'process.exit(0);'});
966
+ assert.equal(f.run('init').status,0);
967
+ const metadata=path.join(f.target,f.family.metadataFile),before=fs.readFileSync(metadata);
968
+ f.bundle({'.template-spec/process/rule.md':'updated'});
969
+ let code;
970
+ if(failure==='verify') code=`import cp from 'node:child_process';const original=cp.spawnSync;cp.spawnSync=(cmd,args,opts)=>opts?.cwd===${JSON.stringify(f.target)}?{status:1,stderr:'injected validator failure'}:original(cmd,args,opts);`;
971
+ else code=`const original=fs.renameSync;fs.renameSync=(a,b)=>{original(a,b);if(String(b).endsWith('/.template-spec/process/rule.md')){${failure==='write'?"throw new Error('injected write failure')":"process.kill(process.pid,'SIGKILL')"}}};`;
972
+ const result=injected(f,code);
973
+ if(['write','verify'].includes(failure)) {assert.equal(result.status,1,result.stderr);assert.deepEqual(fs.readFileSync(metadata),before);assert.equal(fs.readFileSync(path.join(f.target,'.template-spec/process/rule.md'),'utf8'),'rule v1\n');continue;}
974
+ assert.equal(result.signal,'SIGKILL',result.stderr);
975
+ const transactions=path.join(f.target,'.yss-harness-state',side,'transactions');
976
+ const dir=fs.readdirSync(transactions).find(id=>JSON.parse(fs.readFileSync(path.join(transactions,id,'journal.json'))).phase!=='committed');
977
+ const base=path.join(transactions,dir),journal=JSON.parse(fs.readFileSync(path.join(base,'journal.json')));
978
+ if(failure==='backup-corrupt') {const index=journal.operations.findIndex(op=>op.path==='.template-spec/process/rule.md');fs.writeFileSync(path.join(base,'backup',String(index)),'corrupt');}
979
+ if(failure==='concurrent') fs.writeFileSync(path.join(f.target,'.template-spec/process/rule.md'),'user subsequent edit');
980
+ const recoveryBefore=tree(f.target),preview=f.run('recover');
981
+ assert.deepEqual(tree(f.target),recoveryBefore);
982
+ const recovered=f.run('recover','--apply');
983
+ if(failure==='kill'){assert.equal(preview.status,0,preview.stderr);assert.equal(recovered.status,0,recovered.stderr);assert.deepEqual(fs.readFileSync(metadata),before);}
984
+ else {assert.equal(preview.status,1);assert.equal(recovered.status,1);assert.deepEqual(tree(f.target),recoveryBefore);}
985
+ }
986
+ });
987
+
988
+ test('tracker remains project-owned on sync and force; new init enables stage tracking', t => {
989
+ const x = fixture(t);
990
+ const old = '---\ntracker:\n platform: local-markdown\n---\n# 旧项目\n';
991
+ x.bundle({ '.template-spec/agents/issue-tracker.md': old });
992
+ assert.equal(x.run('init').status, 0);
993
+ x.bundle({ '.template-spec/agents/issue-tracker.md': old.replace(' platform:', ' lifecycle_tracking_version: 1\n platform:') });
994
+ assert.equal(x.run('sync', '--apply', '--force').status, 0);
995
+ assert.equal(fs.readFileSync(path.join(x.target, '.template-spec/agents/issue-tracker.md'), 'utf8'), old);
996
+ });
997
+
998
+ test('三家族迁移拒绝漂移和重签篡改;冲突仅接受逐项决议', t => {
999
+ for(const side of ['design','backend','frontend']) {
1000
+ const f=fixture(t,side);assert.equal(f.run('init').status,0);
1001
+ const rule='.template-spec/process/rule.md',file=path.join(f.target,rule);
1002
+ f.bundle({[rule]:'rule v2\n'});fs.writeFileSync(file,'local customization\n');
1003
+ const plan=path.join(f.root,'plan.json'),archive=path.join(f.root,'archive');
1004
+ const blocked=f.run('migrate','plan','--output',plan,'--archive-dir',archive);
1005
+ assert.equal(blocked.status,1);assert.equal(blocked.data.code,'CONFLICT');assert.equal(fs.existsSync(plan),false);
1006
+ const resolutions=path.join(f.root,'resolutions.json');
1007
+ put(f.root,'resolutions.json',json({[rule]:{action:'merge',beforeDigest:hash('local customization\n'),templateDigest:hash('rule v2\n'),contentBase64:Buffer.from('merged customization v2\n').toString('base64')}}));
1008
+ const p=f.run('migrate','plan','--output',plan,'--archive-dir',archive,'--resolutions',resolutions);assert.equal(p.status,0,p.stderr);
1009
+ const original=fs.readFileSync(plan);
1010
+ const edited=JSON.parse(original);edited.operations.find(o=>o.path===rule).contentBase64=Buffer.from('tampered\n').toString('base64');edited.operations.find(o=>o.path===rule).after.digest=hash('tampered\n');delete edited.planDigest;edited.planDigest=hash(JSON.stringify(edited));fs.writeFileSync(plan,json(edited));
1011
+ assert.equal(f.run('migrate','apply','--plan',plan).status,1);assert.equal(fs.readFileSync(file,'utf8'),'local customization\n');
1012
+ fs.writeFileSync(plan,original);put(f.target,'business-note.txt','new work');
1013
+ const stale=f.run('migrate','apply','--plan',plan);assert.equal(stale.status,1);assert.equal(stale.data.code,'STALE_PLAN');fs.unlinkSync(path.join(f.target,'business-note.txt'));
1014
+ const applied=f.run('migrate','apply','--plan',plan);assert.equal(applied.status,0,applied.stderr);assert.equal(fs.readFileSync(file,'utf8'),'merged customization v2\n');
1015
+ assert.equal(f.run('migrate','apply','--plan',plan).data.reused,true);
1016
+ fs.writeFileSync(file,'later work');const refused=f.run('migrate','rollback','--apply');assert.equal(refused.status,1);assert.equal(fs.readFileSync(file,'utf8'),'later work');
1017
+ fs.writeFileSync(file,'merged customization v2\n');
1018
+ const count=fs.readdirSync(path.join(f.target,'.yss-harness-state',side,'transactions')).length;
1019
+ assert.equal(f.run('migrate','rollback').status,0);assert.equal(fs.readdirSync(path.join(f.target,'.yss-harness-state',side,'transactions')).length,count);
1020
+ assert.equal(f.run('migrate','rollback','--apply').status,0);assert.equal(fs.readFileSync(file,'utf8'),'local customization\n');
1021
+ }
1022
+ });
1023
+
1024
+ test('迁移进程中断后可恢复,回退前完整检查归档', t => {
1025
+ const f=fixture(t);assert.equal(f.run('init').status,0);
1026
+ const rule='.template-spec/process/rule.md',file=path.join(f.target,rule),before=fs.readFileSync(path.join(f.target,f.family.metadataFile));
1027
+ f.bundle({[rule]:'rule v2\n'});
1028
+ const plan=path.join(f.root,'plan.json'),archive=path.join(f.root,'archive');
1029
+ assert.equal(f.run('migrate','plan','--output',plan,'--archive-dir',archive).status,0);
1030
+ const hook=path.join(f.root,'crash.mjs');
1031
+ fs.writeFileSync(hook,`import fs from 'node:fs';import {syncBuiltinESMExports} from 'node:module';const rename=fs.renameSync;fs.renameSync=(a,b)=>{rename(a,b);if(b===${JSON.stringify(file)})process.exit(73)};syncBuiltinESMExports();`);
1032
+ const crashed=spawnSync(process.execPath,['--import',hook,path.join(f.pkg,'bin.mjs'),'migrate','apply','--plan',plan,'--target-dir',f.target,'--json'],{encoding:'utf8'});
1033
+ assert.equal(crashed.status,73,crashed.stderr);
1034
+ assert.equal(f.run('migrate','recover').status,0);
1035
+ const recovered=f.run('migrate','recover','--apply');assert.equal(recovered.status,0,recovered.stderr);
1036
+ assert.equal(fs.readFileSync(file,'utf8'),'rule v1\n');assert.deepEqual(fs.readFileSync(path.join(f.target,f.family.metadataFile)),before);
1037
+ assert.equal(f.run('migrate','recover','--apply').status,0);
1038
+ const next=path.join(f.root,'next.json'),nextArchive=path.join(f.root,'next-archive');
1039
+ assert.equal(f.run('migrate','plan','--output',next,'--archive-dir',nextArchive).status,0);
1040
+ assert.equal(f.run('migrate','apply','--plan',next).status,0);
1041
+ const p=JSON.parse(fs.readFileSync(next)),i=p.operations.findIndex(o=>o.before);
1042
+ fs.writeFileSync(path.join(nextArchive,'before',String(i)),'damaged backup');
1043
+ const rejected=f.run('migrate','rollback','--apply');assert.equal(rejected.status,1);assert.equal(fs.readFileSync(file,'utf8'),'rule v2\n');
1044
+ });
1045
+
1046
+ test('迁移只读入口、受保护路径及回退中断恢复', t => {
1047
+ const f=fixture(t);assert.equal(f.run('init').status,0);
1048
+ let before=tree(f.target);
1049
+ for(const command of ['status','recover'])assert.equal(f.run('migrate',command).status,0);
1050
+ assert.deepEqual(tree(f.target),before);
1051
+ const rule='.template-spec/process/rule.md',file=path.join(f.target,rule);f.bundle({[rule]:'rule v2\n'});
1052
+ fs.renameSync(file,file+'.saved');fs.symlinkSync(file+'.saved',file);before=tree(f.target);
1053
+ assert.equal(f.run('migrate','plan','--output',path.join(f.root,'link.json')).status,1);assert.deepEqual(tree(f.target),before);
1054
+ fs.unlinkSync(file);fs.renameSync(file+'.saved',file);
1055
+ put(f.target,'.template-spec/.git/config','');before=tree(f.target);
1056
+ assert.equal(f.run('migrate','plan','--output',path.join(f.root,'nested.json')).status,1);assert.deepEqual(tree(f.target),before);fs.rmSync(path.join(f.target,'.template-spec/.git'),{recursive:true});
1057
+ const plan=path.join(f.root,'plan.json');assert.equal(f.run('migrate','plan','--output',plan,'--archive-dir',path.join(f.root,'archive')).status,0);assert.equal(f.run('migrate','apply','--plan',plan).status,0);
1058
+ const after=fs.readFileSync(path.join(f.target,f.family.metadataFile));
1059
+ const hook=path.join(f.root,'crash-rollback.mjs');fs.writeFileSync(hook,`import fs from 'node:fs';import {syncBuiltinESMExports} from 'node:module';const rename=fs.renameSync;fs.renameSync=(a,b)=>{rename(a,b);if(b===${JSON.stringify(file)})process.exit(73)};syncBuiltinESMExports();`);
1060
+ const crash=spawnSync(process.execPath,['--import',hook,path.join(f.pkg,'bin.mjs'),'migrate','rollback','--apply','--target-dir',f.target,'--json'],{encoding:'utf8'});assert.equal(crash.status,73,crash.stderr);
1061
+ before=tree(f.target);assert.equal(f.run('migrate','recover').status,0);assert.deepEqual(tree(f.target),before);
1062
+ assert.equal(f.run('migrate','recover','--apply').status,0);assert.equal(fs.readFileSync(file,'utf8'),'rule v2\n');assert.deepEqual(fs.readFileSync(path.join(f.target,f.family.metadataFile)),after);
1063
+ assert.equal(f.run('migrate','rollback','--apply').status,0);assert.equal(fs.readFileSync(file,'utf8'),'rule v1\n');
1064
+ assert.equal(f.run('migrate','rollback','--apply').status,1);
1065
+ });