@su-record/vibe 3.2.1 → 3.2.2

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 (229) hide show
  1. package/CLAUDE.md +1 -1
  2. package/README.en.md +4 -4
  3. package/README.md +4 -4
  4. package/dist/__tests__/skill-namespace.test.d.ts +2 -0
  5. package/dist/__tests__/skill-namespace.test.d.ts.map +1 -0
  6. package/dist/__tests__/skill-namespace.test.js +60 -0
  7. package/dist/__tests__/skill-namespace.test.js.map +1 -0
  8. package/dist/__tests__/wiring-integrity.test.js +5 -5
  9. package/dist/__tests__/wiring-integrity.test.js.map +1 -1
  10. package/dist/cli/generate-release-notes.d.ts +3 -0
  11. package/dist/cli/generate-release-notes.d.ts.map +1 -0
  12. package/dist/cli/generate-release-notes.js +47 -0
  13. package/dist/cli/generate-release-notes.js.map +1 -0
  14. package/dist/cli/postinstall/constants.d.ts +6 -6
  15. package/dist/cli/postinstall/constants.d.ts.map +1 -1
  16. package/dist/cli/postinstall/constants.js +114 -46
  17. package/dist/cli/postinstall/constants.js.map +1 -1
  18. package/dist/cli/postinstall/fs-utils.d.ts +1 -0
  19. package/dist/cli/postinstall/fs-utils.d.ts.map +1 -1
  20. package/dist/cli/postinstall/fs-utils.js +25 -0
  21. package/dist/cli/postinstall/fs-utils.js.map +1 -1
  22. package/dist/cli/postinstall/fs-utils.test.js +46 -11
  23. package/dist/cli/postinstall/fs-utils.test.js.map +1 -1
  24. package/dist/cli/postinstall/main.d.ts.map +1 -1
  25. package/dist/cli/postinstall/main.js +3 -2
  26. package/dist/cli/postinstall/main.js.map +1 -1
  27. package/dist/tests/curated-release-notes.test.d.ts +2 -0
  28. package/dist/tests/curated-release-notes.test.d.ts.map +1 -0
  29. package/dist/tests/curated-release-notes.test.js +106 -0
  30. package/dist/tests/curated-release-notes.test.js.map +1 -0
  31. package/dist/tools/release/releaseNotes.d.ts +21 -0
  32. package/dist/tools/release/releaseNotes.d.ts.map +1 -0
  33. package/dist/tools/release/releaseNotes.js +105 -0
  34. package/dist/tools/release/releaseNotes.js.map +1 -0
  35. package/hooks/scripts/__tests__/.vibe/command-log.txt +3 -3
  36. package/package.json +2 -2
  37. package/skills/{agents-md → vibe.agents-md}/SKILL.md +1 -1
  38. package/skills/{brand-assets → vibe.brand-assets}/SKILL.md +1 -1
  39. package/skills/{capability-loop → vibe.capability-loop}/SKILL.md +1 -1
  40. package/skills/{chub-usage → vibe.chub-usage}/SKILL.md +1 -1
  41. package/skills/vibe.clone/SKILL.md +295 -3
  42. package/skills/{commerce-patterns → vibe.commerce-patterns}/SKILL.md +1 -1
  43. package/skills/{commit-push-pr → vibe.commit-push-pr}/SKILL.md +2 -2
  44. package/skills/{context7-usage → vibe.context7-usage}/SKILL.md +1 -1
  45. package/skills/vibe.contract/SKILL.md +162 -1
  46. package/skills/{create-prd → vibe.create-prd}/SKILL.md +2 -2
  47. package/skills/{design-refine → vibe.design-refine}/SKILL.md +1 -1
  48. package/skills/{design-review → vibe.design-review}/SKILL.md +1 -1
  49. package/skills/{design-teach → vibe.design-teach}/SKILL.md +1 -1
  50. package/skills/{devlog → vibe.devlog}/SKILL.md +1 -1
  51. package/skills/vibe.docs/SKILL.md +256 -1
  52. package/skills/{e2e-commerce → vibe.e2e-commerce}/SKILL.md +1 -1
  53. package/skills/vibe.educational-content/SKILL.md +157 -0
  54. package/skills/vibe.educational-content/references/learning-design.md +81 -0
  55. package/skills/vibe.educational-content/references/output-patterns.md +109 -0
  56. package/skills/vibe.educational-content/references/source-method.md +40 -0
  57. package/skills/{event-comms → vibe.event-comms}/SKILL.md +1 -1
  58. package/skills/{event-ops → vibe.event-ops}/SKILL.md +1 -1
  59. package/skills/{event-planning → vibe.event-planning}/SKILL.md +1 -1
  60. package/skills/vibe.figma/SKILL.md +473 -21
  61. package/skills/vibe.figma/references/branch-phases.md +1 -1
  62. package/skills/{git-worktree → vibe.git-worktree}/SKILL.md +1 -1
  63. package/skills/{handoff → vibe.handoff}/SKILL.md +1 -1
  64. package/skills/{parallel-research → vibe.parallel-research}/SKILL.md +2 -2
  65. package/skills/{presentation → vibe.presentation}/SKILL.md +1 -1
  66. package/skills/{prioritization-frameworks → vibe.prioritization}/SKILL.md +2 -2
  67. package/skills/{priority-todos → vibe.priority-todos}/SKILL.md +1 -1
  68. package/skills/{vercel-react-best-practices → vibe.react-best-practices}/SKILL.md +1 -1
  69. package/skills/vibe.regress/SKILL.md +182 -2
  70. package/skills/vibe.run/SKILL.md +388 -1
  71. package/skills/{arch-guard → vibe.run/internal/arch-guard}/templates/violation-report.md +1 -1
  72. package/skills/{seo-checklist → vibe.seo-checklist}/SKILL.md +1 -1
  73. package/skills/vibe.spec/SKILL.md +122 -1
  74. package/skills/vibe.test/SKILL.md +138 -2
  75. package/skills/{tool-fallback → vibe.tool-fallback}/SKILL.md +1 -1
  76. package/skills/{ui-ux-pro-max → vibe.ui-ux-pro-max}/SKILL.md +6 -6
  77. package/skills/{user-personas → vibe.user-personas}/SKILL.md +2 -2
  78. package/skills/vibe.verify/SKILL.md +2 -2
  79. package/skills/{video-production → vibe.video-production}/SKILL.md +1 -1
  80. package/skills/arch-guard/SKILL.md +0 -183
  81. package/skills/clone/SKILL.md +0 -296
  82. package/skills/contract/SKILL.md +0 -165
  83. package/skills/docs/SKILL.md +0 -259
  84. package/skills/exec-plan/SKILL.md +0 -151
  85. package/skills/figma/SKILL.md +0 -456
  86. package/skills/regress/SKILL.md +0 -184
  87. package/skills/restraint/SKILL.md +0 -72
  88. package/skills/spec/SKILL.md +0 -125
  89. package/skills/test/SKILL.md +0 -140
  90. /package/skills/{agents-md → vibe.agents-md}/rubrics/what-to-keep.md +0 -0
  91. /package/skills/{agents-md → vibe.agents-md}/templates/agents-md.md +0 -0
  92. /package/skills/{agents-md → vibe.agents-md}/templates/claude-md.md +0 -0
  93. /package/skills/{brand-assets → vibe.brand-assets}/rubrics/asset-checklist.md +0 -0
  94. /package/skills/{brand-assets → vibe.brand-assets}/templates/brand-guide.md +0 -0
  95. /package/skills/{capability-loop → vibe.capability-loop}/agents/capability-designer.md +0 -0
  96. /package/skills/{capability-loop → vibe.capability-loop}/agents/failure-analyst.md +0 -0
  97. /package/skills/{capability-loop → vibe.capability-loop}/agents/implementer.md +0 -0
  98. /package/skills/{capability-loop → vibe.capability-loop}/agents/tester.md +0 -0
  99. /package/skills/{capability-loop → vibe.capability-loop}/templates/capability-spec.md +0 -0
  100. /package/skills/{capability-loop → vibe.capability-loop}/templates/failure-analysis.md +0 -0
  101. /package/skills/{clone → vibe.clone}/references/capture-rules.md +0 -0
  102. /package/skills/{clone → vibe.clone}/references/legal-and-error-recovery.md +0 -0
  103. /package/skills/{clone → vibe.clone}/references/refine-rules.md +0 -0
  104. /package/skills/{clone → vibe.clone}/references/scaffold-phases.md +0 -0
  105. /package/skills/{clone → vibe.clone}/references/setup-and-layout.md +0 -0
  106. /package/skills/{commerce-patterns → vibe.commerce-patterns}/rubrics/checkout-flow.md +0 -0
  107. /package/skills/{commerce-patterns → vibe.commerce-patterns}/templates/product-schema.md +0 -0
  108. /package/skills/{commit-push-pr → vibe.commit-push-pr}/agents/change-analyzer.md +0 -0
  109. /package/skills/{commit-push-pr → vibe.commit-push-pr}/agents/message-writer.md +0 -0
  110. /package/skills/{commit-push-pr → vibe.commit-push-pr}/agents/pr-writer.md +0 -0
  111. /package/skills/{commit-push-pr → vibe.commit-push-pr}/agents/reviewer.md +0 -0
  112. /package/skills/{commit-push-pr → vibe.commit-push-pr}/rubrics/commit-message.md +0 -0
  113. /package/skills/{commit-push-pr → vibe.commit-push-pr}/templates/pr-body.md +0 -0
  114. /package/skills/{context7-usage → vibe.context7-usage}/rubrics/when-to-use.md +0 -0
  115. /package/skills/{create-prd → vibe.create-prd}/agents/edge-case-finder.md +0 -0
  116. /package/skills/{create-prd → vibe.create-prd}/agents/prioritizer.md +0 -0
  117. /package/skills/{create-prd → vibe.create-prd}/agents/requirements-writer.md +0 -0
  118. /package/skills/{create-prd → vibe.create-prd}/agents/researcher.md +0 -0
  119. /package/skills/{create-prd → vibe.create-prd}/agents/reviewer.md +0 -0
  120. /package/skills/{create-prd → vibe.create-prd}/frameworks/jobs-to-be-done.md +0 -0
  121. /package/skills/{create-prd → vibe.create-prd}/frameworks/rice-scoring.md +0 -0
  122. /package/skills/{create-prd → vibe.create-prd}/orchestrator.md +0 -0
  123. /package/skills/{create-prd → vibe.create-prd}/rubrics/completeness.md +0 -0
  124. /package/skills/{create-prd → vibe.create-prd}/templates/prd.md +0 -0
  125. /package/skills/{design-refine → vibe.design-refine}/rubrics/polish-checklist.md +0 -0
  126. /package/skills/{design-refine → vibe.design-refine}/rubrics/token-naming.md +0 -0
  127. /package/skills/{design-refine → vibe.design-refine}/templates/design-system.md +0 -0
  128. /package/skills/{design-refine → vibe.design-refine}/templates/polish-report.md +0 -0
  129. /package/skills/{design-refine → vibe.design-refine}/templates/token-audit.md +0 -0
  130. /package/skills/{design-review → vibe.design-review}/agents/a11y-auditor.md +0 -0
  131. /package/skills/{design-review → vibe.design-review}/agents/performance-auditor.md +0 -0
  132. /package/skills/{design-review → vibe.design-review}/agents/responsive-auditor.md +0 -0
  133. /package/skills/{design-review → vibe.design-review}/agents/scorer.md +0 -0
  134. /package/skills/{design-review → vibe.design-review}/agents/slop-detector.md +0 -0
  135. /package/skills/{design-review → vibe.design-review}/frameworks/core-web-vitals.md +0 -0
  136. /package/skills/{design-review → vibe.design-review}/frameworks/wcag-checklist.md +0 -0
  137. /package/skills/{design-review → vibe.design-review}/orchestrator.md +0 -0
  138. /package/skills/{design-review → vibe.design-review}/rubrics/ai-slop-patterns.md +0 -0
  139. /package/skills/{design-review → vibe.design-review}/rubrics/scoring.md +0 -0
  140. /package/skills/{design-review → vibe.design-review}/rubrics/ux-heuristics.md +0 -0
  141. /package/skills/{design-review → vibe.design-review}/templates/critique-report.md +0 -0
  142. /package/skills/{design-review → vibe.design-review}/templates/report.md +0 -0
  143. /package/skills/{design-teach → vibe.design-teach}/rubrics/brand-personality.md +0 -0
  144. /package/skills/{design-teach → vibe.design-teach}/templates/design-context.json +0 -0
  145. /package/skills/{docs → vibe.docs}/references/api-docs-changelog.md +0 -0
  146. /package/skills/{docs → vibe.docs}/references/codemaps-output.md +0 -0
  147. /package/skills/{docs → vibe.docs}/references/diagram-spec.md +0 -0
  148. /package/skills/{docs → vibe.docs}/templates/architecture.md +0 -0
  149. /package/skills/{docs → vibe.docs}/templates/behavioral-principles.md +0 -0
  150. /package/skills/{docs → vibe.docs}/templates/readme.md +0 -0
  151. /package/skills/{docs → vibe.docs}/templates/release-notes.md +0 -0
  152. /package/skills/{e2e-commerce → vibe.e2e-commerce}/templates/test-scenarios.md +0 -0
  153. /package/skills/{event-comms → vibe.event-comms}/templates/email-invite.md +0 -0
  154. /package/skills/{event-comms → vibe.event-comms}/templates/sns-post.md +0 -0
  155. /package/skills/{event-ops → vibe.event-ops}/rubrics/contingency.md +0 -0
  156. /package/skills/{event-ops → vibe.event-ops}/templates/d-day-checklist.md +0 -0
  157. /package/skills/{event-planning → vibe.event-planning}/rubrics/timeline.md +0 -0
  158. /package/skills/{event-planning → vibe.event-planning}/templates/event-plan.md +0 -0
  159. /package/skills/{figma → vibe.figma}/rubrics/conversion-rules.md +0 -0
  160. /package/skills/{figma → vibe.figma}/rubrics/css-mapping.md +0 -0
  161. /package/skills/{figma → vibe.figma}/rubrics/extraction-checklist.md +0 -0
  162. /package/skills/{figma → vibe.figma}/rubrics/image-rules.md +0 -0
  163. /package/skills/{figma → vibe.figma}/templates/component-index.md +0 -0
  164. /package/skills/{figma → vibe.figma}/templates/component-spec.md +0 -0
  165. /package/skills/{figma → vibe.figma}/templates/component.md +0 -0
  166. /package/skills/{figma → vibe.figma}/templates/figma-handoff.md +0 -0
  167. /package/skills/{figma → vibe.figma}/templates/remapped-tree.md +0 -0
  168. /package/skills/{git-worktree → vibe.git-worktree}/rubrics/when-to-use.md +0 -0
  169. /package/skills/{handoff → vibe.handoff}/agents/context-summarizer.md +0 -0
  170. /package/skills/{handoff → vibe.handoff}/agents/document-writer.md +0 -0
  171. /package/skills/{handoff → vibe.handoff}/agents/state-collector.md +0 -0
  172. /package/skills/{handoff → vibe.handoff}/agents/verifier.md +0 -0
  173. /package/skills/{handoff → vibe.handoff}/rubrics/completeness.md +0 -0
  174. /package/skills/{handoff → vibe.handoff}/templates/handoff.md +0 -0
  175. /package/skills/{parallel-research → vibe.parallel-research}/agents/best-practices.md +0 -0
  176. /package/skills/{parallel-research → vibe.parallel-research}/agents/codebase-patterns.md +0 -0
  177. /package/skills/{parallel-research → vibe.parallel-research}/agents/framework-docs.md +0 -0
  178. /package/skills/{parallel-research → vibe.parallel-research}/agents/security-advisory.md +0 -0
  179. /package/skills/{parallel-research → vibe.parallel-research}/agents/synthesizer.md +0 -0
  180. /package/skills/{parallel-research → vibe.parallel-research}/experts/best-practices.md +0 -0
  181. /package/skills/{parallel-research → vibe.parallel-research}/experts/codebase-patterns.md +0 -0
  182. /package/skills/{parallel-research → vibe.parallel-research}/experts/framework-docs.md +0 -0
  183. /package/skills/{parallel-research → vibe.parallel-research}/experts/security-advisory.md +0 -0
  184. /package/skills/{parallel-research → vibe.parallel-research}/orchestrator.md +0 -0
  185. /package/skills/{parallel-research → vibe.parallel-research}/templates/awesome-list.md +0 -0
  186. /package/skills/{parallel-research → vibe.parallel-research}/templates/paper.md +0 -0
  187. /package/skills/{parallel-research → vibe.parallel-research}/templates/synthesis.md +0 -0
  188. /package/skills/{presentation → vibe.presentation}/references/style-presets.md +0 -0
  189. /package/skills/{prioritization-frameworks → vibe.prioritization}/rubrics/frameworks.md +0 -0
  190. /package/skills/{prioritization-frameworks → vibe.prioritization}/templates/scoring-matrix.md +0 -0
  191. /package/skills/{priority-todos → vibe.priority-todos}/rubrics/prioritization.md +0 -0
  192. /package/skills/{priority-todos → vibe.priority-todos}/templates/todo-board.md +0 -0
  193. /package/skills/{vercel-react-best-practices → vibe.react-best-practices}/rubrics/performance.md +0 -0
  194. /package/skills/{vercel-react-best-practices → vibe.react-best-practices}/rubrics/server-components.md +0 -0
  195. /package/skills/{regress → vibe.regress}/templates/bug.md +0 -0
  196. /package/skills/{regress → vibe.regress}/templates/test-jest.md +0 -0
  197. /package/skills/{regress → vibe.regress}/templates/test-vitest.md +0 -0
  198. /package/skills/{arch-guard → vibe.run/internal/arch-guard}/agents/detector.md +0 -0
  199. /package/skills/{arch-guard → vibe.run/internal/arch-guard}/agents/reporter.md +0 -0
  200. /package/skills/{arch-guard → vibe.run/internal/arch-guard}/agents/rule-generator.md +0 -0
  201. /package/skills/{arch-guard → vibe.run/internal/arch-guard}/agents/violation-checker.md +0 -0
  202. /package/skills/{arch-guard → vibe.run/internal/arch-guard}/frameworks/clean-architecture.md +0 -0
  203. /package/skills/{arch-guard → vibe.run/internal/arch-guard}/frameworks/solid.md +0 -0
  204. /package/skills/{arch-guard → vibe.run/internal/arch-guard}/scripts/check-boundaries.js +0 -0
  205. /package/skills/{arch-guard → vibe.run/internal/arch-guard}/templates/arch-rules.json +0 -0
  206. /package/skills/{exec-plan → vibe.run/internal/exec-plan}/agents/decomposer.md +0 -0
  207. /package/skills/{exec-plan → vibe.run/internal/exec-plan}/agents/dependency-mapper.md +0 -0
  208. /package/skills/{exec-plan → vibe.run/internal/exec-plan}/agents/estimator.md +0 -0
  209. /package/skills/{exec-plan → vibe.run/internal/exec-plan}/agents/validator.md +0 -0
  210. /package/skills/{exec-plan → vibe.run/internal/exec-plan}/orchestrator.md +0 -0
  211. /package/skills/{exec-plan → vibe.run/internal/exec-plan}/rubrics/complexity-scoring.md +0 -0
  212. /package/skills/{exec-plan → vibe.run/internal/exec-plan}/templates/plan.md +0 -0
  213. /package/skills/{seo-checklist → vibe.seo-checklist}/frameworks/structured-data.md +0 -0
  214. /package/skills/{seo-checklist → vibe.seo-checklist}/rubrics/content-seo.md +0 -0
  215. /package/skills/{seo-checklist → vibe.seo-checklist}/rubrics/technical-seo.md +0 -0
  216. /package/skills/{tool-fallback → vibe.tool-fallback}/rubrics/fallback-chain.md +0 -0
  217. /package/skills/{ui-ux-pro-max → vibe.ui-ux-pro-max}/reference/color-and-contrast.md +0 -0
  218. /package/skills/{ui-ux-pro-max → vibe.ui-ux-pro-max}/reference/interaction-design.md +0 -0
  219. /package/skills/{ui-ux-pro-max → vibe.ui-ux-pro-max}/reference/motion-design.md +0 -0
  220. /package/skills/{ui-ux-pro-max → vibe.ui-ux-pro-max}/reference/responsive-design.md +0 -0
  221. /package/skills/{ui-ux-pro-max → vibe.ui-ux-pro-max}/reference/spatial-design.md +0 -0
  222. /package/skills/{ui-ux-pro-max → vibe.ui-ux-pro-max}/reference/typography.md +0 -0
  223. /package/skills/{ui-ux-pro-max → vibe.ui-ux-pro-max}/reference/ux-writing.md +0 -0
  224. /package/skills/{ui-ux-pro-max → vibe.ui-ux-pro-max}/rubrics/interaction-states.md +0 -0
  225. /package/skills/{ui-ux-pro-max → vibe.ui-ux-pro-max}/rubrics/responsive-breakpoints.md +0 -0
  226. /package/skills/{user-personas → vibe.user-personas}/rubrics/research-methods.md +0 -0
  227. /package/skills/{user-personas → vibe.user-personas}/templates/persona.md +0 -0
  228. /package/skills/{video-production → vibe.video-production}/rubrics/quality-checklist.md +0 -0
  229. /package/skills/{video-production → vibe.video-production}/templates/production-plan.md +0 -0
@@ -1,5 +1,5 @@
1
1
  ---
2
- name: vercel-react-best-practices
2
+ name: vibe.react-best-practices
3
3
  invocation: [auto]
4
4
  tier: core
5
5
  description: "React/Next.js performance gotchas from Vercel engineering. Non-intuitive pitfalls that LLMs commonly miss."
@@ -28,11 +28,11 @@ user-invocable: true
28
28
 
29
29
  ## Process
30
30
 
31
- Load skill `regress` with subcommand: `$ARGUMENTS`
31
+ Execute the bundled implementation below with subcommand: `$ARGUMENTS`
32
32
 
33
33
  The `regress` skill performs registration, generation, and clustering.
34
34
 
35
- **Core steps** (see `skills/regress/SKILL.md` for details):
35
+ **Core steps** (see `skills/vibe.regress/SKILL.md` for details):
36
36
 
37
37
  1. Parse subcommand
38
38
  2. Read/write `.vibe/regressions/<slug>.md` (frontmatter schema enforced)
@@ -73,3 +73,183 @@ feature: login
73
73
  ---
74
74
 
75
75
  ARGUMENTS: $ARGUMENTS
76
+
77
+ ## Bundled implementation
78
+
79
+
80
+ # vibe.regress — Regression Auto-Evolution
81
+
82
+ **Purpose**: never fix the same bug twice. Each fix grows a preventive test.
83
+
84
+ ## Why this exists
85
+
86
+ A classic vibe-coding weakness: LLMs reintroduce bugs of the same class. Regression tests are the only mechanical defense. But if the human has to write the test every time, it gets skipped — so automate.
87
+
88
+ ## Characterization — lock behavior first
89
+
90
+ Before modifying legacy or untested code whose behavior is uncertain (large files without tests, complex branching, API contracts), **lock current behavior first, then change**:
91
+
92
+ 1. Generate characterization tests over the public surface — snapshot the **actual** output (`toMatchSnapshot()`), not what you think it should be. Do NOT fix bugs while locking: a wrong value gets locked as-is; the goal is regression detection, not correctness.
93
+ 2. Run them — all must pass against the unmodified code. A failure means the characterization is wrong: fix the test, never the code.
94
+ 3. Make the change incrementally, re-running after each step. Unexpected failure = regression, stop and investigate.
95
+ 4. Reconcile: update snapshots only for **intentionally** changed behavior, and add new tests for the new behavior.
96
+
97
+ Skip this for code you just wrote, already-well-tested code, or trivial changes — write regular unit tests instead. Test file naming/stack detection follows `generate` (below).
98
+
99
+ ## Storage Contract
100
+
101
+ ```
102
+ .vibe/regressions/
103
+ <bug-slug>.md # one file per bug
104
+ _cluster-<tag>.md # shared-test design produced by `cluster`
105
+ ```
106
+
107
+ ### Frontmatter schema (strict)
108
+
109
+ ```yaml
110
+ slug: string # kebab-case, globally unique
111
+ symptom: string # one line, user-facing
112
+ root-cause-tag: enum # only the allowed tags below
113
+ fix-commit: string # git hash (or "pending")
114
+ test-path: string # generated test file path (or "pending")
115
+ status: open | test-generated | resolved
116
+ registered: YYYY-MM-DD
117
+ feature: string # related feature name (matches SPEC)
118
+ ```
119
+
120
+ ### Allowed `root-cause-tag` values
121
+
122
+ Clustering depends on this, so use **only the predefined set**:
123
+
124
+ - `timezone` — timezone / DST / off-by-one in time
125
+ - `nullability` — null / undefined / empty handling
126
+ - `concurrency` — race conditions
127
+ - `boundary` — off-by-one, edge values
128
+ - `encoding` — charset, URL encoding, escaping
129
+ - `validation` — missing input validation
130
+ - `auth` — authn/authz logic
131
+ - `state-sync` — client/server state mismatch
132
+ - `integration` — external API call failure
133
+ - `type-narrow` — TypeScript type narrowing mistake
134
+ - `other` — when nothing fits (add new tags later)
135
+
136
+ **Rule**: if a new tag is needed, do not force-fit into an existing one — register as `other`. Once `other` reaches 3 entries, propose adding a new tag.
137
+
138
+ ## Subcommands
139
+
140
+ ### 1. `register "<symptom>"` — manual registration
141
+
142
+ Most calls are automatic; manual use is rare (bugs found outside `/vibe.verify`, or production incidents).
143
+
144
+ **Steps**:
145
+ 1. `getCurrentTime` for today's date
146
+ 2. `git log -1 --format=%H` for current commit hash (fix-commit candidate)
147
+ 3. Conversation extracts:
148
+ - Reproduction steps (Given/When/Then)
149
+ - Root-cause paragraph
150
+ - Fix description
151
+ 4. `root-cause-tag` is **inferred from the allowed set, then confirmed with the user**. If unclear → `other`.
152
+ 5. Generate slug: kebab-case keywords from the symptom; on collision append `-2`
153
+ 6. Write `.vibe/regressions/<slug>.md` (status: `open`)
154
+
155
+ ### 2. `generate <slug>` — generate preventive test
156
+
157
+ **Steps**:
158
+ 1. Read bug file
159
+ 2. Detect test stack:
160
+ - From `package.json` `devDependencies`: prefer `vitest` over `jest`
161
+ - If neither → **ask user, then stop**
162
+ 3. Decide test location:
163
+ - Sibling `__tests__/` next to the implementation file, OR
164
+ - The project's existing test dir (vitest config `test.include`)
165
+ 4. File name: `<original-file>.regression.test.ts`
166
+ 5. Body: render `templates/test-vitest.md` or `templates/test-jest.md`
167
+ 6. Update bug frontmatter: `test-path`, `status: test-generated`
168
+ 7. **Run the test immediately** — should fail (if not yet fixed) or pass (if fixed). Record outcome in frontmatter.
169
+
170
+ ### 3. `list` — open items
171
+
172
+ ```
173
+ /vibe.regress list # status != resolved
174
+ /vibe.regress list --feature login # filter by feature
175
+ /vibe.regress list --tag timezone # filter by tag
176
+ ```
177
+
178
+ Terminal table:
179
+
180
+ ```
181
+ SLUG FEATURE TAG STATUS AGE
182
+ login-jwt-expiry-off-by-one login timezone test-generated 3d
183
+ cart-stock-race-double-deduct cart concurrency open 1d
184
+ ```
185
+
186
+ ### 4. `import` — backfill from git log
187
+
188
+ **Steps**:
189
+ 1. `git log --grep='^fix:' --format='%H|%s|%ci' --since=<last-import-date>`
190
+ - `last-import-date` lives in `.vibe/regressions/.import-cursor` (defaults to 90 days ago)
191
+ 2. For each commit:
192
+ - If a bug file with the same `fix-commit` already exists → **skip**
193
+ - Otherwise infer symptom + root-cause-tag from message/diff (LLM call)
194
+ - Write a new bug file (status: `resolved` — already fixed)
195
+ 3. Update `.import-cursor`
196
+ 4. Suggest `generate` for newly imported entries
197
+
198
+ **Note**: only `fix:` commits are considered. Projects not using Conventional Commits can override with `--grep-pattern`.
199
+
200
+ ### 5. `cluster` — promote recurring patterns
201
+
202
+ **Steps**:
203
+ 1. Aggregate `root-cause-tag` across all bug files
204
+ 2. **A tag with ≥3 entries** becomes a cluster candidate
205
+ 3. For each candidate:
206
+ - Feed the 3 reproductions to an LLM to extract the common cause and shared test cases
207
+ - Write `_cluster-<tag>.md` (links to the original bug slugs)
208
+ - Propose a shared test skeleton at `<project-test-dir>/_cluster-<tag>.regression.test.ts` (create only with user approval)
209
+ 4. Original bug files are **not deleted** — history preserved
210
+
211
+ **Important**: `cluster` is never automatic. Users invoke it explicitly to avoid premature abstraction.
212
+
213
+ ## Integration with /vibe.verify
214
+
215
+ When `/vibe.verify` fails it calls:
216
+
217
+ ```
218
+ Load skill `vibe.regress` with: register --from-verify
219
+ <feature>: {feature-name}
220
+ <scenario>: {failed-scenario}
221
+ <error>: {error-message}
222
+ <location>: {file:line}
223
+ ```
224
+
225
+ `--from-verify` behavior:
226
+ - symptom = scenario name + error summary
227
+ - feature = forwarded feature name
228
+ - root-cause-tag = inferred from error pattern (default `other` if unclear)
229
+ - status = `open`
230
+ - **Skip user confirmation** — the user is already attentive in a verify-failure context, and friction must be minimized
231
+
232
+ ## Integration with /vibe.run
233
+
234
+ At the start of `/vibe.run "<feature>"`:
235
+
236
+ 1. Filter `.vibe/regressions/*.md` for `feature: <feature-name>` + `status != resolved`
237
+ 2. If any open items:
238
+ ```
239
+ ⚠️ Open regressions for this feature:
240
+ - login-jwt-expiry-off-by-one (timezone, 3d old)
241
+ - login-session-leak (auth, 1w old)
242
+
243
+ Fix these before adding new behavior? [y/N]
244
+ ```
245
+ 3. `y` → chain to `/vibe.regress generate` for items not yet test-generated
246
+ 4. `N` → continue (ultrawork mode auto-`N`, records TODO)
247
+
248
+ ## Done Criteria
249
+
250
+ - [ ] Subcommand-less invocation prints usage
251
+ - [ ] Frontmatter schema strictly enforced (missing fields rejected)
252
+ - [ ] `root-cause-tag` outside the allowed set → warn + force `other`
253
+ - [ ] After `generate`, the test is **actually run** to verify
254
+ - [ ] `import` deduplicates by `fix-commit` hash
255
+ - [ ] `cluster` does nothing under 3 entries (false-positive guard)
@@ -46,7 +46,7 @@ Execute **Scenario-Driven Implementation** with automatic quality verification.
46
46
  ### Pre-Run Regression Check (MANDATORY, before implementation starts)
47
47
 
48
48
  ```
49
- Load skill `regress` with: list --feature "{feature-name}"
49
+ Load skill `vibe.regress` with: list --feature "{feature-name}"
50
50
  ```
51
51
 
52
52
  - Open regressions exist → automationLevel confirm: ask user; autonomous: auto-invoke `/vibe.regress generate <slug>`
@@ -452,3 +452,390 @@ Keep under 20 lines. Save key lessons via `core_save_memory`. Update `claude-pro
452
452
  ---
453
453
 
454
454
  ARGUMENTS: $ARGUMENTS
455
+
456
+ ## Bundled internal: arch-guard
457
+
458
+
459
+ # Arch Guard — Architecture Boundary Test Generator
460
+
461
+ > **Principle**: "Mechanical enforcement over documentation." If a rule exists only in docs, it will be violated. Turn architecture constraints into failing tests.
462
+
463
+ ## When to Use
464
+
465
+ | Scenario | Signal |
466
+ |----------|--------|
467
+ | `vibe init` / `vibe update` | Auto-generate for detected stack |
468
+ | New layer/module added | Boundaries need enforcement |
469
+ | Architecture violation found in review | Prevent recurrence with test |
470
+ | "Services should not import UI" type rules | Turn into automated check |
471
+
472
+ ## Core Flow
473
+
474
+ ```
475
+ DETECT → INFER → GENERATE → VERIFY
476
+ ```
477
+
478
+ ### Step 1: DETECT — Identify Project Architecture
479
+
480
+ Analyze the project to determine its layer structure:
481
+
482
+ ```
483
+ Parallel exploration:
484
+ - Agent 1: Scan directory structure (src/, app/, lib/, etc.)
485
+ - Agent 2: Read existing architecture docs (CLAUDE.md, README, ADR)
486
+ - Agent 3: Analyze import graph (which files import what)
487
+ ```
488
+
489
+ **Common patterns to detect:**
490
+
491
+ | Pattern | Layers | Typical Stacks |
492
+ |---------|--------|----------------|
493
+ | MVC | Controller → Service → Model | Rails, NestJS, Spring |
494
+ | Clean Architecture | UI → Application → Domain → Infrastructure | General |
495
+ | Feature-based | Feature A ↛ Feature B internals | Next.js, React |
496
+ | Hexagonal | Adapters → Ports → Domain | DDD projects |
497
+ | Component hierarchy | Page → Feature → Shared → UI Primitives | Frontend |
498
+
499
+ ### Step 2: INFER — Define Boundary Rules
500
+
501
+ From detected structure, generate rules:
502
+
503
+ ```typescript
504
+ // Rule format
505
+ interface ArchRule {
506
+ name: string; // "service-no-ui-import"
507
+ from: string; // Glob pattern: "src/services/**"
508
+ cannotImport: string[]; // ["src/components/**", "src/pages/**"]
509
+ canImport: string[]; // ["src/models/**", "src/utils/**"]
510
+ reason: string; // "Services must be UI-agnostic"
511
+ }
512
+ ```
513
+
514
+ **Default rules by stack:**
515
+
516
+ | Stack | Rule |
517
+ |-------|------|
518
+ | Next.js / React | `components/` cannot import from `pages/` or `app/` |
519
+ | Next.js / React | `lib/` cannot import from `components/` |
520
+ | NestJS | `*.service.ts` cannot import from `*.controller.ts` |
521
+ | NestJS | `*.module.ts` is the only valid cross-boundary import |
522
+ | General TS | `src/domain/` cannot import from `src/infra/` |
523
+ | General TS | No circular dependencies between top-level dirs |
524
+ | Python Django | `models.py` cannot import from `views.py` |
525
+ | Python FastAPI | `schemas/` cannot import from `routers/` |
526
+
527
+ ### Step 3: GENERATE — Create Test File
528
+
529
+ Output: `tests/arch-guard.test.ts` (or equivalent for stack)
530
+
531
+ ```typescript
532
+ /**
533
+ * Architecture Boundary Tests
534
+ * Generated by arch-guard skill
535
+ *
536
+ * These tests enforce architectural constraints mechanically.
537
+ * If a test fails, it means an import violates the intended architecture.
538
+ */
539
+ import { describe, it, expect } from 'vitest';
540
+ import fs from 'fs';
541
+ import path from 'path';
542
+
543
+ // Helper: extract imports from a file
544
+ function extractImports(filePath: string): string[] {
545
+ const content = fs.readFileSync(filePath, 'utf-8');
546
+ const importRegex = /(?:import|require)\s*\(?['"]([^'"]+)['"]\)?/g;
547
+ const imports: string[] = [];
548
+ let match;
549
+ while ((match = importRegex.exec(content)) !== null) {
550
+ imports.push(match[1]);
551
+ }
552
+ return imports;
553
+ }
554
+
555
+ // Helper: resolve relative import to absolute path
556
+ function resolveImport(fromFile: string, importPath: string): string {
557
+ if (importPath.startsWith('.')) {
558
+ return path.resolve(path.dirname(fromFile), importPath);
559
+ }
560
+ return importPath; // external package
561
+ }
562
+
563
+ // Helper: glob files matching pattern
564
+ function globFiles(pattern: string, baseDir: string): string[] {
565
+ // Use fast-glob or manual recursive scan
566
+ // Implementation depends on available dependencies
567
+ }
568
+
569
+ describe('Architecture Boundaries', () => {
570
+ // GENERATED RULES GO HERE
571
+ // Each rule becomes a test case:
572
+
573
+ it('services cannot import UI components', () => {
574
+ const serviceFiles = globFiles('src/services/**/*.ts', process.cwd());
575
+ const violations: string[] = [];
576
+
577
+ for (const file of serviceFiles) {
578
+ const imports = extractImports(file);
579
+ for (const imp of imports) {
580
+ const resolved = resolveImport(file, imp);
581
+ if (resolved.includes('/components/') || resolved.includes('/pages/')) {
582
+ violations.push(`${file} imports ${imp}`);
583
+ }
584
+ }
585
+ }
586
+
587
+ expect(violations).toEqual([]);
588
+ });
589
+ });
590
+ ```
591
+
592
+ ### Step 4: VERIFY — Run and Fix
593
+
594
+ 1. Run the generated tests: `npx vitest run tests/arch-guard.test.ts`
595
+ 2. If violations found:
596
+ - Report each violation with file:line
597
+ - Suggest fix (move shared code to appropriate layer)
598
+ - Do NOT auto-fix — violations need human review
599
+
600
+ ## Output Files
601
+
602
+ | File | Purpose |
603
+ |------|---------|
604
+ | `tests/arch-guard.test.ts` | Executable boundary tests |
605
+ | `.vibe/arch-rules.json` | Machine-readable rules (for CI) |
606
+
607
+ ## Customization
608
+
609
+ Users can add custom rules to `.vibe/arch-rules.json`:
610
+
611
+ ```json
612
+ {
613
+ "rules": [
614
+ {
615
+ "name": "no-direct-db-in-handlers",
616
+ "from": "src/handlers/**",
617
+ "cannotImport": ["src/db/**"],
618
+ "reason": "Handlers must use services, not direct DB access"
619
+ }
620
+ ]
621
+ }
622
+ ```
623
+
624
+ The test generator reads this file and adds custom rules to the test suite.
625
+
626
+ ## Integration
627
+
628
+ - `vibe init` → auto-detect and generate initial arch-guard tests
629
+ - `vibe update` → refresh rules if directory structure changed
630
+ - Pre-commit hook → run arch-guard tests before commit
631
+ - `vibe.review` (skill) → code-reviewer (focus: architecture) checks against arch-rules.json
632
+
633
+ ## Bundled internal: exec-plan
634
+
635
+
636
+ # ExecPlan — Self-Contained Execution Plan Generator
637
+
638
+ > **Principle**: "If the agent can't see it, it doesn't exist." Every decision, file path, pattern, and verification step must be explicit in the plan — no implicit knowledge allowed.
639
+
640
+ ## When to Use
641
+
642
+ Before `/vibe.run`, generate an ExecPlan to make execution deterministic:
643
+
644
+ | Scenario | Signal |
645
+ |----------|--------|
646
+ | Complex SPEC (3+ phases) | Agent needs long autonomous execution |
647
+ | Team/multi-agent execution | Multiple agents need shared understanding |
648
+ | Context window pressure | Plan survives `/new` session handoff |
649
+ | Unfamiliar codebase | Agent can't rely on implicit knowledge |
650
+
651
+ ## Core Flow
652
+
653
+ ```
654
+ SPEC + Feature → ANALYZE → RESOLVE → GENERATE → PERSIST
655
+ ```
656
+
657
+ ### Step 1: ANALYZE — Extract Everything Needed
658
+
659
+ Read the SPEC and Feature files, then extract:
660
+
661
+ ```
662
+ For each Phase → For each Scenario:
663
+ 1. Requirements (REQ-* IDs)
664
+ 2. Given/When/Then conditions
665
+ 3. Affected files (MUST exist — verify with Glob)
666
+ 4. Dependencies (imports, packages)
667
+ 5. Existing patterns to follow (read actual code, don't assume)
668
+ ```
669
+
670
+ **Parallel exploration** (3+ agents):
671
+ - Agent 1: Map all file paths mentioned/implied in SPEC → verify they exist
672
+ - Agent 2: For each affected file, extract current interfaces/types/exports
673
+ - Agent 3: Find existing patterns (naming conventions, error handling, test structure)
674
+
675
+ ### Step 2: RESOLVE — Eliminate All Ambiguity
676
+
677
+ For every decision point in the SPEC, resolve it NOW:
678
+
679
+ | Ambiguity | Resolution |
680
+ |-----------|------------|
681
+ | "Add validation" | → Which fields? What rules? What error messages? |
682
+ | "Handle errors" | → Which error codes? What response format? |
683
+ | "Follow existing pattern" | → Copy the ACTUAL pattern code into the plan |
684
+ | "Update tests" | → Which test file? What test framework? What assertions? |
685
+
686
+ **Rule**: If you'd need to "figure it out later", resolve it now. The plan must be executable by an agent with ZERO codebase knowledge.
687
+
688
+ ### Step 3: GENERATE — Write the ExecPlan
689
+
690
+ Output format: `.vibe/specs/{feature-name}-execplan.md`
691
+
692
+ ```markdown
693
+ # ExecPlan: {feature-name}
694
+
695
+ ## Meta
696
+ - SPEC: .vibe/specs/{name}.md
697
+ - Feature: .vibe/features/{name}.feature
698
+ - Generated: {timestamp}
699
+ - Phases: {count}
700
+ - Scenarios: {count}
701
+
702
+ ## Pre-flight Checks
703
+ - [ ] `npm run build` passes
704
+ - [ ] `npx vitest run` passes (baseline)
705
+ - [ ] Required files exist: {list}
706
+
707
+ ## Phase {N}: {phase-name}
708
+
709
+ ### Environment
710
+ - Files to modify: {exact paths}
711
+ - Files to create: {exact paths}
712
+ - Dependencies to add: {package@version}
713
+ - Patterns to follow: (inline code snippets from codebase)
714
+
715
+ ### Scenario {N}.{M}: {scenario-name}
716
+
717
+ **Given**: {precondition}
718
+ → Setup: {exact code/commands to establish precondition}
719
+
720
+ **When**: {action}
721
+ → Implement: {step-by-step implementation instructions}
722
+ - File: {path}
723
+ - Location: after line containing `{anchor text}`
724
+ - Code: (inline snippet)
725
+ - Imports needed: {list}
726
+
727
+ **Then**: {expected result}
728
+ → Verify:
729
+ - Command: `{test command}`
730
+ - Expected: {output/behavior}
731
+ - Fallback: {what to do if verification fails}
732
+
733
+ ### Phase {N} Gate
734
+ - [ ] Build: `npm run build`
735
+ - [ ] Tests: `npx vitest run {relevant-test-files}`
736
+ - [ ] Type check: `npx tsc --noEmit`
737
+
738
+ ## Completion Criteria
739
+ - Coverage threshold: ≥95%
740
+ - All scenarios passing
741
+ - No regressions in existing tests
742
+ - RTM: `generateTraceabilityMatrix("{feature-name}")`
743
+ ```
744
+
745
+ ### Step 4: PERSIST — Save and Link
746
+
747
+ 1. Save ExecPlan to `.vibe/specs/{feature-name}-execplan.md`
748
+ 2. Save session context: `save_memory("execplan-{feature}", {summary})`
749
+ 3. Output execution command:
750
+
751
+ ```
752
+ Ready to execute:
753
+ /vibe.run "{feature-name}" ultrawork
754
+
755
+ Or hand off to new session:
756
+ /vibe.continue
757
+ → Load: .vibe/specs/{feature-name}-execplan.md
758
+ ```
759
+
760
+ ## Quality Checks
761
+
762
+ | Check | Criteria |
763
+ |-------|----------|
764
+ | No implicit knowledge | Every file path verified with Glob |
765
+ | No "figure it out" | Every decision resolved with actual code |
766
+ | Survives handoff | Plan readable without any prior context |
767
+ | Inline patterns | Actual code snippets, not "follow existing pattern" |
768
+ | Verification steps | Every scenario has a concrete verification command |
769
+
770
+ ## Anti-patterns
771
+
772
+ - "See the existing implementation" → Copy the relevant code inline
773
+ - "Follow the pattern in X" → Show the actual pattern
774
+ - "Standard error handling" → Specify exact error codes and messages
775
+ - "Update tests accordingly" → Name the test file, framework, and assertions
776
+
777
+ ## Bundled internal: restraint
778
+
779
+
780
+ # Restraint — Don't Write It, Don't Tune It (Yet)
781
+
782
+ Two constraints, one gate:
783
+
784
+ - **No premature code.** New abstractions must be *pulled* by a demonstrated
785
+ need, never pushed by "might need it later." Once the code exists, deleting
786
+ it costs more than never writing it.
787
+ - **No premature optimization.** Performance work must be *pulled* by a
788
+ measurement, never by a hunch.
789
+
790
+ ## The YAGNI Ladder (code axis)
791
+
792
+ Satisfy the need at the **highest** rung that covers it; lower rungs are
793
+ blocked while a higher one applies:
794
+
795
+ 1. **Not needed** — the requirement doesn't ask for it → don't build it
796
+ 2. **Stdlib / built-ins** already do it (`crypto`, `Intl`, `pathlib`, …)
797
+ 3. **Native platform feature** does it (`<input type="date">`, CSS `:has()`, DB constraints)
798
+ 4. **Already-installed dependency** covers it — check the lockfile, don't guess
799
+ 5. **One line** — a single expression; no new file, no class
800
+ 6. **Minimal code** — only now, and nothing for "later"
801
+
802
+ Tie-break: native beats a one-liner; stdlib beats a dependency. Generalize
803
+ only when a *second* caller exists.
804
+
805
+ ## Pike's Rules (optimization axis)
806
+
807
+ - You can't tell where a program spends its time — bottlenecks surprise.
808
+ **Measure; don't guess.**
809
+ - Don't tune until one part *measurably* overwhelms the rest.
810
+ - Fancy algorithms are slow when n is small — and n is usually small.
811
+ Ask "what's n?" before "what's the Big-O?"
812
+ - Simple algorithms + the right data structures beat clever code. Data dominates.
813
+
814
+ Optimization is justified only when ALL hold: a measured bottleneck exists →
815
+ it dominates runtime → the fix is the simplest change addressing it → you
816
+ re-measure after.
817
+
818
+ ## Blocked Impulses
819
+
820
+ | Impulse | Constraint | Counter |
821
+ |---|---|---|
822
+ | helper / utility / wrapper / manager class | rungs 1–5 | a stdlib call or one line usually suffices |
823
+ | config system for one value | rung 1 | a `const` is the config |
824
+ | generic `Processor(strategy, validator…)` | rung 1 | one concrete function until a second caller exists |
825
+ | "add a cache here" / "parallelize this" | measure first | is this path even hot? Often it's I/O |
826
+ | swap in a B-tree / trie / skip list | what's n? | O(n²) with n=100 is microseconds |
827
+ | "this loop looks slow" | measure first | the bottleneck is probably elsewhere |
828
+
829
+ ## Overrides — Restraint Never Erodes These
830
+
831
+ 1. **Security and trust-boundary work are requirements**, not optional
832
+ complexity. Input validation, auth checks, escaping stay in — "one line"
833
+ is no excuse to drop them.
834
+ 2. **Deliberate simplifications get a comment + upgrade path**, so the next
835
+ reader sees a *choice*, not an oversight:
836
+
837
+ ```ts
838
+ // Global lock is enough at current throughput.
839
+ // Switch to per-account locking if write contention shows up.
840
+ const lock = new Mutex();
841
+ ```
@@ -48,6 +48,6 @@ For each violation, choose one:
48
48
  ## Next Steps
49
49
 
50
50
  1. Fix all violations in the table above
51
- 2. Re-run: `node skills/arch-guard/scripts/check-boundaries.js {{RULES_FILE}} {{SRC_DIR}}`
51
+ 2. Re-run: `node skills/vibe.arch-guard/scripts/check-boundaries.js {{RULES_FILE}} {{SRC_DIR}}`
52
52
  3. Commit clean state: `git commit -m "fix: resolve arch-guard boundary violations"`
53
53
  4. Add to CI: run check-boundaries.js in pre-commit or CI pipeline
@@ -1,5 +1,5 @@
1
1
  ---
2
- name: seo-checklist
2
+ name: vibe.seo-checklist
3
3
  invocation: [auto]
4
4
  tier: core
5
5
  description: "SEO gotchas for web development — easy-to-miss items that hurt search ranking. Covers meta tags, Open Graph, structured data (JSON-LD), sitemap, robots.txt, canonical URLs, and Naver/Google-specific requirements. Use when building or reviewing any public-facing web page, landing page, or marketing site. Must use this skill when user mentions SEO, search ranking, meta tags, or when deploying a web app that needs to be discoverable."