@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
@@ -49,14 +49,14 @@ Step 2.5) --sub URL 확장
49
49
  - 포함: 같은 origin + 같은 locale prefix의 하위 메뉴 URL
50
50
  - 제외: 외부 링크, 언어 전환, 검색, TOP, 푸터 정책/문의/파트너/뉴스룸 링크
51
51
 
52
- Step 3) 스킬 진입
53
- clone 스킬 Phase 0부터 순차 실행
52
+ Step 3) 실행 진입
53
+ 아래 Execution Plan Phase 0부터 순차 실행
54
54
  → URL 다중 입력 시 각 URL마다 별도 feature 디렉토리 (URL path 기반 suffix)
55
55
  ```
56
56
 
57
57
  ## Execution Plan
58
58
 
59
- `clone` 스킬을 로드한 뒤 다음을 순차 실행한다. **Phase 단계 건너뛰기 금지**.
59
+ 다음을 순차 실행한다. **Phase 단계 건너뛰기 금지**.
60
60
 
61
61
  ```
62
62
  Phase 0: Setup
@@ -157,3 +157,295 @@ Claude 기본 행동:
157
157
  - robots.txt 차단 경로 → 명시적 --ignore-robots 없으면 거부
158
158
  - 사용자 의도가 사칭/기만이면 즉시 거부
159
159
  ```
160
+
161
+ ## Bundled implementation
162
+
163
+
164
+ # vibe.clone — Markup-Level Website Clone
165
+
166
+ ## Core Principles
167
+
168
+ ```
169
+ The rendered DOM is the source of truth for markup. Screenshots are for pixel verification only.
170
+
171
+ ✅ Puppeteer-rendered DOM (post-JS) → HTML structural mapping
172
+ ✅ Computed CSS → SCSS direct conversion (no guessing)
173
+ ✅ All remote assets (images, fonts) → downloaded locally and rewritten to project paths
174
+ ✅ Claude handles semantic decisions only: tag selection, component splitting, interactions
175
+ ✅ Screenshots are used for verification only, not generation
176
+ ```
177
+
178
+ ## Immutable Rules
179
+
180
+ ```
181
+ 1. Do NOT generate CSS values by guessing or eyeballing screenshots.
182
+ ✅ clone-to-scss.js output is a DRAFT (skeleton), not a frozen artifact. You MAY
183
+ rewrite SCSS values/selectors — but ONLY with evidence cited from computed.json /
184
+ states.json / behaviors.json (value correction, dedupe, selector restructuring).
185
+ ✅ clone-validate.js PASS is the sole judge of value correctness — not self-report.
186
+ ❌ Do NOT invent values with no extraction evidence ("looks like 18px" is forbidden).
187
+ ❌ Do NOT write CSS values directly inside scoped <style> blocks — style LOCATION
188
+ rule: all values live in styles/{feature}/ SCSS (value authority and style
189
+ location are separate rules; both hold).
190
+
191
+ 2. Do NOT hotlink remote assets. All images/fonts must be downloaded and rewritten.
192
+
193
+ 3. Do NOT skip the pixel verification loop (Phase 5). The clone is incomplete without it.
194
+
195
+ 4. Do NOT copy textual content verbatim from copyrighted sources for production use.
196
+ This skill is for layout/markup learning ("클론 코딩"). Replace text with placeholders
197
+ or user-provided copy when shipping a real product.
198
+ Exception: `--real-content` — the user confirms (once, explicitly) they own the site
199
+ or have permission. Then keep text verbatim; clone-spec.js is invoked with
200
+ `--real-content` so specs mark copy as verbatim.
201
+
202
+ 5. Do NOT build a section without confirming its interaction model. The model in
203
+ sections.json is a static-DOM heuristic — verify scroll-driven vs click-driven vs
204
+ time-driven vs hover against the live site. Misidentifying it is the #1 clone failure mode.
205
+
206
+ 6. Do NOT ship default-state-only. Implement every harvested state (hover/focus/active/open/
207
+ tab-switch) from states.json / the section spec.
208
+
209
+ 7. Do NOT ignore behaviors.json. The ACTIVE interaction sweep (scroll-state diffs,
210
+ click-driven tab content-swap detection, hover diffs, in-view entrance animations,
211
+ time-driven mutation candidates, smooth-scroll-lib detection) catches JS-set state
212
+ that static CSS harvesting is blind to. When the spec's "Dynamic behaviors" block
213
+ conflicts with the static interaction heuristic, the active capture wins.
214
+ ```
215
+
216
+ ## Full Flow
217
+
218
+ ```
219
+ Input: a URL (or multiple URLs for multi-page clones)
220
+
221
+ → Phase 0: Setup (stack detection, feature naming, working dir)
222
+ → Phase 1: Capture (Puppeteer → rendered HTML + computed CSS + screenshots + assets)
223
+ → Phase 2: Refine (DOM → sections.json per breakpoint; + interaction model + states)
224
+ → Phase 2.5: Foundation (fonts / favicon / OG / SVG icons — sequential, before any section)
225
+ → Phase 3: Scaffold (spec gate → SCSS draft + builder dispatch, parallel per section)
226
+ → Phase 3C: Responsive merge (clone-merge-responsive.js — mobile-first @media)
227
+ → Phase 4: Compile gate
228
+ → Phase 5: Pixel verification loop (BOTH viewports after merge)
229
+ ```
230
+
231
+ > Read `references/setup-and-layout.md` for the working-directory layout and code-output paths.
232
+
233
+ ---
234
+
235
+ ## Phase 0: Setup
236
+
237
+ > Read `references/setup-and-layout.md` for the full Phase 0 setup steps (stack detection, feature naming, directories, component indexing, design token scan).
238
+
239
+ ---
240
+
241
+ ## Phase 1: Capture ← Headless browser (parallel MO/PC)
242
+
243
+ **Coordinator pattern: run MO/PC capture as parallel workers.**
244
+
245
+ ### BLOCKING Command — Use only clone-extract.js for capture
246
+
247
+ ```bash
248
+ # [CLONE_SCRIPT] = {{VIBE_PATH}}/hooks/scripts/clone-extract.js
249
+
250
+ # Mobile (375×812)
251
+ node {{VIBE_PATH}}/hooks/scripts/clone-extract.js capture <URL> \
252
+ --out=/tmp/{feature}/mo/ \
253
+ --viewport=375x812 \
254
+ --bp=mo
255
+
256
+ # Desktop (1440×900)
257
+ node {{VIBE_PATH}}/hooks/scripts/clone-extract.js capture <URL> \
258
+ --out=/tmp/{feature}/pc/ \
259
+ --viewport=1440x900 \
260
+ --bp=pc
261
+ ```
262
+
263
+ ⛔ **Writing custom capture scripts (puppeteer-fetch.mjs, etc.) is forbidden.**
264
+ ⛔ **Do NOT use WebFetch or curl** — they cannot render JS-driven SPAs.
265
+ ✅ Use clone-extract.js. If output is unsatisfactory, modify the script.
266
+
267
+ > Read `references/capture-rules.md` for the full per-breakpoint output directory listing and the deterministic capture rule set (networkidle wait, asset resolution, states/behaviors harvesting, SEO asset harvest).
268
+
269
+ ---
270
+
271
+ ## Phase 2: Refine ← DOM → sections.json (independent per BP)
272
+
273
+ ### BLOCKING Command — Writing custom refine scripts is forbidden
274
+
275
+ ```bash
276
+ # MO (--states is optional — auto-resolved as states.json next to computed.json)
277
+ node {{VIBE_PATH}}/hooks/scripts/clone-refine.js \
278
+ /tmp/{feature}/mo/rendered.html \
279
+ /tmp/{feature}/mo/computed.json \
280
+ --out=/tmp/{feature}/mo/sections.json \
281
+ --states=/tmp/{feature}/mo/states.json \
282
+ --bp=mo
283
+
284
+ # PC
285
+ node {{VIBE_PATH}}/hooks/scripts/clone-refine.js \
286
+ /tmp/{feature}/pc/rendered.html \
287
+ /tmp/{feature}/pc/computed.json \
288
+ --out=/tmp/{feature}/pc/sections.json \
289
+ --states=/tmp/{feature}/pc/states.json \
290
+ --bp=pc
291
+ ```
292
+
293
+ ⛔ **Phase 3 is blocked until refine completes for all required BPs.**
294
+ ⛔ **Do NOT parse rendered.html with custom Python/Node scripts.**
295
+ ✅ Use clone-refine.js output as-is. If unsatisfactory, modify the script.
296
+
297
+ > Read `references/refine-rules.md` for the full refinement rule set and the sections.json output schema.
298
+
299
+ ---
300
+
301
+ ## Phase 2.5: Foundation ← sequential, BEFORE any section build
302
+
303
+ Nothing renders right until the foundation exists. Do this yourself (not delegated) — it
304
+ touches shared files:
305
+
306
+ ```
307
+ 1. Fonts: verify _base.scss @font-face srcs point at downloaded assets/fonts/ files.
308
+ Next.js stack → wire via next/font/local in the layout instead of raw @font-face.
309
+ 2. Favicon / OG / manifest: copy assets/seo/* → public/ (project convention path),
310
+ wire metadata (layout.tsx metadata / <head>) to the local files.
311
+ 3. SVG icons: collect inline <svg> from rendered.html, dedupe by path data,
312
+ emit one stack-appropriate icon module (e.g. components/{feature}/icons.tsx).
313
+ Name by visual function (SearchIcon, ArrowRightIcon, LogoIcon).
314
+ 4. Global behaviors from behaviors.json: scrollLib detected → install/wire page-level
315
+ (Lenis etc.); global keyframes/scroll-snap → styles/{feature}/_shared.scss.
316
+ 5. Verify: compile passes before moving on.
317
+ ```
318
+
319
+ ---
320
+
321
+ ## Phase 3: Scaffold ← stack-specific code generation
322
+
323
+ **⛔ Implement MO fully first → pass verification → then PC. No responsive conversion in this phase.**
324
+ **⛔ CSS values must use computed.json output as-is. No vw/clamp/@media in this phase.**
325
+
326
+ ### BLOCKING Command — SCSS must only use script output
327
+
328
+ ```bash
329
+ # Step 0: Generate per-section build-contract specs (run once per BP)
330
+ node {{VIBE_PATH}}/hooks/scripts/clone-spec.js \
331
+ /tmp/{feature}/{bp}/sections.json \
332
+ --out=/path/to/project/components/{feature}/_specs/{bp}/ \
333
+ --feature={feature} [--real-content]
334
+
335
+ # Step A: Auto-generate SCSS draft (run once per BP — note the per-BP out dir)
336
+ node {{VIBE_PATH}}/hooks/scripts/clone-to-scss.js \
337
+ /tmp/{feature}/{bp}/sections.json \
338
+ --out=/path/to/project/styles/{feature}/{bp}/ \
339
+ --token-file=/tmp/{feature}/project-tokens.json
340
+
341
+ # Step B: Per-section validation (after writing each section's component code)
342
+ node {{VIBE_PATH}}/hooks/scripts/clone-validate.js \
343
+ /path/to/project/styles/{feature}/{bp}/ \
344
+ /tmp/{feature}/{bp}/sections.json \
345
+ --section={SectionName}
346
+ ```
347
+
348
+ ⛔ **No section is built without a completed spec.** Step 0 emits `_specs/{Section}.spec.md`
349
+ (interaction model + **active-capture Dynamic behaviors** (scroll/tab/hover/in-view/
350
+ time-driven/scroll-lib) + states + computed CSS + assets + text + checklist).
351
+ clone-spec.js auto-loads `behaviors.json` from the sections.json dir and attaches matching
352
+ behaviors per section. Before dispatching a section's builder, Claude reviews its spec and
353
+ resolves every `TODO` (confirm interaction model, list states to implement, choose tags,
354
+ replace copyrighted text — skipped with --real-content). The spec is the contract AND the
355
+ audit trail — it forces extraction rigor before any code is written.
356
+ ⛔ **clone-to-scss.js must run first (Step A) — its output is the DRAFT every section starts
357
+ from.** After that, SCSS edits are allowed per Immutable Rule 1 (evidence-cited only);
358
+ clone-validate.js PASS is the judge.
359
+ ⛔ **Do NOT write custom SCSS / spec generation scripts.**
360
+ ⛔ **Do NOT proceed past a section without a clone-validate.js PASS for it.**
361
+
362
+ Phase 3A: MO Scaffold — parallel builder dispatch
363
+ Input: /tmp/{feature}/mo/sections.json
364
+ → Phase 4 (MO compile) → Phase 5 (MO pixel verification)
365
+
366
+ Phase 3B: PC Scaffold
367
+ Same process as MO, input /tmp/{feature}/pc/sections.json → styles/{feature}/pc/
368
+ → Phase 4 (PC compile) → Phase 5 (PC pixel verification)
369
+
370
+ Phase 3C: Responsive Integration (after both MO+PC pass Phase 5)
371
+ 1. node {{VIBE_PATH}}/hooks/scripts/clone-merge-responsive.js \
372
+ --mo=/path/to/project/styles/{feature}/mo/ \
373
+ --pc=/path/to/project/styles/{feature}/pc/ \
374
+ --out=/path/to/project/styles/{feature}/ \
375
+ [--breakpoint=1024]
376
+ → mobile-first merge: MO declarations = base, PC diffs → @media (min-width) block
377
+ → Phase 4 (compile) → Phase 5 at BOTH viewports against each BP's screenshot.
378
+ ⛔ The clone is NOT complete until the MERGED build passes Phase 5 at both.
379
+ ```
380
+
381
+ > Read `references/scaffold-phases.md` for the full Phase 3A prep/dispatch/merge builder contract (framework mapping, 150-line split rule, clone-validate.js PASS/FAIL loop detail), Phase 3C steps 2–3 (import switch, pc-only/mo-only selector review), and Claude's role checklist.
382
+
383
+ ---
384
+
385
+ ## Phase 4: Compile Gate
386
+
387
+ ```
388
+ No round cap. Loop until compile succeeds (or stuck → ask user).
389
+
390
+ 0. Capture baseline (before Phase 3): record existing tsc + build errors
391
+ → Phase 4 only fixes NEW errors
392
+
393
+ 1. TypeScript: vue-tsc / svelte-check / tsc --noEmit
394
+ 2. Build: npm run build (120s timeout)
395
+ 3. Dev server: npm run dev → detect port → polling
396
+
397
+ On error: parse → auto-fix → re-check
398
+ Termination:
399
+ ✅ Success: all checks pass → enter Phase 5
400
+ ⚠️ Stuck: same errors as previous round → ask user
401
+ 1. Direct fix instructions → retry
402
+ 2. "proceed" — record remaining errors as TODO, proceed to Phase 5
403
+ 3. "abort" — halt
404
+ ultrawork mode: on stuck, record TODO without prompting and proceed
405
+
406
+ ⛔ Must enter Phase 5 after Phase 4 passes. Do NOT output a "completion summary".
407
+ ```
408
+
409
+ ---
410
+
411
+ ## Phase 5: Pixel Verification Loop ← MANDATORY
412
+
413
+ **⛔ Phase 5 is mandatory, not optional. Enter automatically after Phase 4.**
414
+ **⛔ Skipping Phase 5 makes the entire clone "incomplete".**
415
+
416
+ ```
417
+ No round cap. Loop until P1=0 (or stuck → ask user).
418
+ Infrastructure: src/infra/lib/browser/ (Puppeteer + CDP) — same as figma Phase 6.
419
+
420
+ 1. Render scaffolded page in dev server at matching viewport
421
+ 2. Capture screenshot → pixelmatch comparison against /tmp/{feature}/{bp}/screenshot.png
422
+ diffRatio > 0.05 (clone target is tighter than figma) → P1
423
+ 3. CSS comparison: live computed CSS vs /tmp/{feature}/{bp}/computed.json
424
+ delta > 2px → P1, ≤ 2px → P2
425
+ 4. Asset audit: every <img>/background-image resolves to local public/images/ path → else P1
426
+ 5. Fix P1 first (refer to computed.json, no guessing) → revalidate compile → reload
427
+
428
+ Narrowing scope:
429
+ Round 1: P1+P2+P3
430
+ Round 2: P1+P2
431
+ Round 3+: P1 only
432
+
433
+ Termination:
434
+ ✅ P1=0 AND no new findings → complete
435
+ ⚠️ Stuck: same findings → ask user (resolve / proceed / abort)
436
+ ultrawork mode: on stuck, record TODO without prompting and complete
437
+
438
+ Responsive: after MO verification → change viewport → repeat against PC screenshot
439
+ Post-merge (Phase 3C): re-run at BOTH viewports (375×812 vs mo/screenshot.png,
440
+ 1440×900 vs pc/screenshot.png) — either failing means the merge regressed; fix the
441
+ merged SCSS (evidence: the per-BP sections.json), never by re-guessing values
442
+ Cleanup: shut down browser + dev server
443
+
444
+ ⛔ "Completion summary" output only allowed after Phase 5 completes.
445
+ ```
446
+
447
+ ---
448
+
449
+ ## Legal, Ethical & Error Recovery Reference
450
+
451
+ > Read `references/legal-and-error-recovery.md` for the full legal/ethical usage notes (intended use, prohibited use, --real-content flow) and the Error Recovery troubleshooting table.
@@ -1,5 +1,5 @@
1
1
  ---
2
- name: commerce-patterns
2
+ name: vibe.commerce-patterns
3
3
  invocation: [auto]
4
4
  tier: core
5
5
  description: "E-commerce domain patterns — cart management, payment processing (Toss/Stripe/PG), inventory tracking, and order state machines with transaction safety. Use when implementing any shopping cart, checkout flow, payment integration, stock management, or order lifecycle. Covers idempotency keys, double-charge prevention, stock reservation, and refund flows. Must use this skill when the codebase involves e-commerce — even for seemingly simple 'add to cart' features."
@@ -1,6 +1,6 @@
1
1
  ---
2
- name: commit-push-pr
3
- invocation: [auto, chain]
2
+ name: vibe.commit-push-pr
3
+ invocation: [auto]
4
4
  tier: optional
5
5
  description: "Commit, push, and create PR in one go. Auto-activates on commit, PR, push keywords."
6
6
  triggers: [commit, push, PR, pull request, merge]
@@ -1,5 +1,5 @@
1
1
  ---
2
- name: context7-usage
2
+ name: vibe.context7-usage
3
3
  invocation: [auto]
4
4
  tier: optional
5
5
  description: "Context7 plugin for latest library documentation. Auto-activates when docs, documentation, latest version, official docs, API reference, or library help is needed."
@@ -30,7 +30,7 @@ A contract = any **interface shape** that external consumers (clients, other ser
30
30
 
31
31
  ## Process
32
32
 
33
- Load skill `contract` with subcommand: `$ARGUMENTS`
33
+ Execute the bundled implementation below with subcommand: `$ARGUMENTS`
34
34
 
35
35
  **Core steps**:
36
36
 
@@ -105,3 +105,164 @@ Right after `/vibe.spec` finishes writing the SPEC, auto-invoke `/vibe.contract
105
105
  ---
106
106
 
107
107
  ARGUMENTS: $ARGUMENTS
108
+
109
+ ## Bundled implementation
110
+
111
+
112
+ # vibe.contract — API Contract Drift Detection
113
+
114
+ **Purpose**: catch divergence between the SPEC's external contract and the actual implementation. Passing tests ≠ contract preserved.
115
+
116
+ ## Why this exists
117
+
118
+ Hidden vibe-coding weakness: as the implementation grows, response shapes drift away from what the SPEC documents. Scenario tests still pass — but **external consumers break**. Manual SPEC-vs-code review is high-friction, so mechanize it.
119
+
120
+ ## Storage Contract
121
+
122
+ ```
123
+ .vibe/contracts/
124
+ <feature>.md # contract SSOT (extracted from SPEC)
125
+ <feature>.snapshot.md # implementation snapshot (last check)
126
+ ```
127
+
128
+ ### Contract frontmatter schema
129
+
130
+ ```yaml
131
+ ---
132
+ feature: string
133
+ extracted-from: .vibe/specs/<feature>.md
134
+ extracted-at: ISO-8601
135
+ source-spec-hash: sha256 # for change detection
136
+ endpoints:
137
+ - id: unique-kebab-id # e.g. get-user-by-id
138
+ kind: http | graphql | event | function
139
+ # http
140
+ method: GET | POST | PUT | DELETE | PATCH
141
+ path: /users/:id
142
+ request:
143
+ params: { name: type, ... }
144
+ query: { name: type, ... }
145
+ body: { field: type, ... } | null
146
+ required: [field, ...]
147
+ response:
148
+ statusCodes:
149
+ 200: { schema }
150
+ 404: { error: string }
151
+ required-fields:
152
+ 200: [id, email]
153
+ # graphql
154
+ operation: query | mutation
155
+ name: string
156
+ args: { ... }
157
+ returns: { ... }
158
+ # event
159
+ topic: string
160
+ payload: { ... }
161
+ # function
162
+ signature: "(a: string, b: number) => Promise<User>"
163
+ module: path/to/file.ts
164
+ ---
165
+ ```
166
+
167
+ ## Subcommands
168
+
169
+ ### 1. `extract <feature>` — pull contract out of the SPEC
170
+
171
+ **Steps**:
172
+ 1. Load SPEC file (single file or split folder)
173
+ 2. Search sections in this order:
174
+ - `## API` / `## Endpoints` / `## Interface` / `## Contract`
175
+ - Markdown tables (method/path/request/response headers)
176
+ - OpenAPI/JSON Schema snippets inside code blocks
177
+ 3. Extraction failure (no such section) → **exit cleanly with `no-contract` state**. Not every feature has an API.
178
+ 4. Success → convert to the frontmatter structure
179
+ 5. `source-spec-hash`: sha256 of SPEC content (for next extract to detect change)
180
+ 6. Save to `.vibe/contracts/<feature>.md` (no-op if file exists with the same hash)
181
+
182
+ **Caveat**: extraction is LLM-driven. Mark low-confidence fields with `# unconfirmed` so the user can review.
183
+
184
+ ### 2. `check <feature>` — contract vs implementation
185
+
186
+ **Steps**:
187
+ 1. Load `.vibe/contracts/<feature>.md`. If missing → **suggest extract first**.
188
+ 2. For each endpoint, find implementation:
189
+ - http: detect framework (Express, Fastify, Next.js API routes, Hono, ...)
190
+ - graphql: locate resolver files
191
+ - event: producer/consumer code
192
+ - function: module export
193
+ 3. Extract implementation signature/schema → compare against contract
194
+ 4. Classify drift (severity table in command file)
195
+ 5. Persist snapshot at `.vibe/contracts/<feature>.snapshot.md` (current implementation state)
196
+
197
+ ### 3. `diff <feature>` — changes since last snapshot
198
+
199
+ **Steps**:
200
+ 1. If `.snapshot.md` does not exist → say "first run" and exit
201
+ 2. Re-extract current implementation; compare to existing snapshot
202
+ 3. Output **only changed fields** in ASCII diff form:
203
+ ```
204
+ endpoints/get-user-by-id/response/200:
205
+ - email: string
206
+ + email: string | null ← nullability added (P1 breaking)
207
+ + phoneNumber: string ← new field (P3 safe)
208
+ ```
209
+ 4. On any drift, auto-call `/vibe.regress register --from-contract`
210
+
211
+ ## Drift Severity Matrix
212
+
213
+ (matches command file — keep both in sync on edits)
214
+
215
+ ## Integration Points
216
+
217
+ ### From /vibe.spec
218
+
219
+ Auto-invoke right after the SPEC is written:
220
+ ```
221
+ Load skill `vibe.contract` with: extract <feature>
222
+ ```
223
+ Failure does not stop `/vibe.spec` (extraction is optional). On success, `/vibe.run` references this contract.
224
+
225
+ ### From /vibe.verify
226
+
227
+ After all scenarios pass:
228
+ ```
229
+ Load skill `vibe.contract` with: check <feature>
230
+ ```
231
+ - no drift → verify still passes
232
+ - P1 drift → demote verify to fail; auto-register
233
+ - P2 / P3 drift → warning only; verify still passes
234
+
235
+ ### To /vibe.regress
236
+
237
+ On P1 drift:
238
+ ```
239
+ Load skill `vibe.regress` with:
240
+ subcommand: register --from-contract
241
+ feature: <feature>
242
+ symptom: "Contract drift: <endpoint-id> <drift-type>"
243
+ root-cause-tag: integration
244
+ ```
245
+
246
+ ## Framework Detection Rules
247
+
248
+ HTTP framework detection order:
249
+ 1. `package.json` dependencies: `next` → Next.js API routes
250
+ 2. `fastify` → Fastify
251
+ 3. `express` → Express
252
+ 4. `hono` → Hono
253
+ 5. `@nestjs/core` → NestJS
254
+ 6. None detected → ask user for manual mapping
255
+
256
+ After detection, grep for each framework's **route definition pattern** to map endpoints:
257
+ - Next.js: `pages/api/**` or `app/api/**/route.ts`
258
+ - Express: `app.get|post|put|delete|patch\(`
259
+ - Fastify: `fastify.get|post|...` or route configuration
260
+ - Hono: `app.get|post|...`
261
+
262
+ ## Done Criteria
263
+
264
+ - [ ] `extract` does not error on SPEC without an API section
265
+ - [ ] `source-spec-hash`-based re-extract is a no-op when unchanged
266
+ - [ ] `check` reports each drift with severity + location (file:line)
267
+ - [ ] P1 drift always invokes `/vibe.regress`
268
+ - [ ] On framework detection failure, ask the user — do not silently skip
@@ -1,11 +1,11 @@
1
1
  ---
2
- name: create-prd
2
+ name: vibe.create-prd
3
3
  invocation: [auto, chain]
4
4
  tier: standard
5
5
  description: "Create a Product Requirements Document using a comprehensive 8-section template covering problem, objectives, segments, value propositions, solution, and release planning."
6
6
  triggers: [prd, product requirements, feature spec, requirements document]
7
7
  priority: 60
8
- chain-next: [user-personas, prioritization-frameworks]
8
+ chain-next: [vibe.user-personas, vibe.prioritization]
9
9
  ---
10
10
 
11
11
  # Create a Product Requirements Document
@@ -1,5 +1,5 @@
1
1
  ---
2
- name: design-refine
2
+ name: vibe.design-refine
3
3
  user-invocable: true
4
4
  invocation: [command, auto]
5
5
  tier: standard
@@ -1,5 +1,5 @@
1
1
  ---
2
- name: design-review
2
+ name: vibe.design-review
3
3
  user-invocable: true
4
4
  invocation: [command, auto]
5
5
  tier: standard
@@ -1,5 +1,5 @@
1
1
  ---
2
- name: design-teach
2
+ name: vibe.design-teach
3
3
  user-invocable: false
4
4
  invocation: [auto]
5
5
  tier: standard
@@ -1,5 +1,5 @@
1
1
  ---
2
- name: devlog
2
+ name: vibe.devlog
3
3
  invocation: [auto]
4
4
  tier: standard
5
5
  description: "Auto-generate devlog posts from git commit history. Triggers every N commits, writes markdown to configured target repo."