@su-record/vibe 3.0.0 → 3.2.0

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 (455) hide show
  1. package/CLAUDE.md +2 -2
  2. package/README.en.md +6 -4
  3. package/README.md +5 -3
  4. package/dist/__tests__/wiring-integrity.test.d.ts +2 -0
  5. package/dist/__tests__/wiring-integrity.test.d.ts.map +1 -0
  6. package/dist/__tests__/wiring-integrity.test.js +160 -0
  7. package/dist/__tests__/wiring-integrity.test.js.map +1 -0
  8. package/dist/cli/commands/info.d.ts.map +1 -1
  9. package/dist/cli/commands/info.js +2 -1
  10. package/dist/cli/commands/info.js.map +1 -1
  11. package/dist/cli/commands/init.d.ts.map +1 -1
  12. package/dist/cli/commands/init.js +4 -2
  13. package/dist/cli/commands/init.js.map +1 -1
  14. package/dist/cli/index.js +102 -128
  15. package/dist/cli/index.js.map +1 -1
  16. package/dist/cli/postinstall/claude-agents.d.ts.map +1 -1
  17. package/dist/cli/postinstall/claude-agents.js +0 -5
  18. package/dist/cli/postinstall/claude-agents.js.map +1 -1
  19. package/dist/cli/postinstall/constants.d.ts +6 -0
  20. package/dist/cli/postinstall/constants.d.ts.map +1 -1
  21. package/dist/cli/postinstall/constants.js +42 -60
  22. package/dist/cli/postinstall/constants.js.map +1 -1
  23. package/dist/cli/postinstall/inline-skills.js +2 -2
  24. package/dist/cli/postinstall/inline-skills.js.map +1 -1
  25. package/dist/cli/postinstall/main.d.ts.map +1 -1
  26. package/dist/cli/postinstall/main.js +2 -0
  27. package/dist/cli/postinstall/main.js.map +1 -1
  28. package/dist/cli/postinstall.d.ts +6 -1
  29. package/dist/cli/postinstall.d.ts.map +1 -1
  30. package/dist/cli/postinstall.js +6 -1
  31. package/dist/cli/postinstall.js.map +1 -1
  32. package/dist/cli/setup/GlobalInstaller.d.ts +1 -15
  33. package/dist/cli/setup/GlobalInstaller.d.ts.map +1 -1
  34. package/dist/cli/setup/GlobalInstaller.js +16 -115
  35. package/dist/cli/setup/GlobalInstaller.js.map +1 -1
  36. package/dist/cli/setup/GlobalInstaller.test.d.ts +2 -0
  37. package/dist/cli/setup/GlobalInstaller.test.d.ts.map +1 -0
  38. package/dist/cli/setup/GlobalInstaller.test.js +16 -0
  39. package/dist/cli/setup/GlobalInstaller.test.js.map +1 -0
  40. package/dist/cli/setup/ProjectSetup.js +2 -2
  41. package/dist/cli/setup/ProjectSetup.js.map +1 -1
  42. package/dist/cli/setup.d.ts +1 -1
  43. package/dist/cli/setup.d.ts.map +1 -1
  44. package/dist/cli/setup.js +1 -1
  45. package/dist/cli/setup.js.map +1 -1
  46. package/dist/infra/lib/SkillRepository.js +1 -1
  47. package/dist/infra/lib/evolution/__tests__/integration.test.js +0 -42
  48. package/dist/infra/lib/evolution/__tests__/integration.test.js.map +1 -1
  49. package/hooks/scripts/__tests__/.vibe/command-log.txt +3 -78
  50. package/hooks/scripts/__tests__/clone-behaviors.test.js +97 -1
  51. package/hooks/scripts/__tests__/clone-merge-responsive.test.js +106 -0
  52. package/hooks/scripts/__tests__/code-check-memory-write.test.js +81 -0
  53. package/hooks/scripts/__tests__/step-counter.test.js +21 -0
  54. package/hooks/scripts/auto-format.js +2 -11
  55. package/hooks/scripts/auto-test.js +2 -11
  56. package/hooks/scripts/clone-extract.js +388 -38
  57. package/hooks/scripts/clone-merge-responsive.js +184 -0
  58. package/hooks/scripts/clone-spec.js +33 -8
  59. package/hooks/scripts/clone-validate.js +15 -9
  60. package/hooks/scripts/code-check.js +27 -55
  61. package/hooks/scripts/lib/glob.js +32 -0
  62. package/hooks/scripts/lib/hook-context.js +19 -2
  63. package/hooks/scripts/post-edit.js +2 -3
  64. package/hooks/scripts/prompt-dispatcher.js +1 -1
  65. package/hooks/scripts/scope-guard.js +3 -42
  66. package/hooks/scripts/sentinel-guard.js +5 -20
  67. package/hooks/scripts/session-start.js +2 -2
  68. package/hooks/scripts/step-counter.js +35 -57
  69. package/package.json +6 -4
  70. package/skills/clone/SKILL.md +74 -203
  71. package/skills/clone/references/capture-rules.md +48 -0
  72. package/skills/clone/references/legal-and-error-recovery.md +40 -0
  73. package/skills/clone/references/refine-rules.md +61 -0
  74. package/skills/clone/references/scaffold-phases.md +59 -0
  75. package/skills/clone/references/setup-and-layout.md +30 -0
  76. package/skills/docs/SKILL.md +39 -4
  77. package/skills/docs/references/api-docs-changelog.md +34 -0
  78. package/skills/docs/references/codemaps-output.md +23 -0
  79. package/{agents/diagrammer.md → skills/docs/references/diagram-spec.md} +2 -15
  80. package/skills/exec-plan/SKILL.md +1 -1
  81. package/skills/exec-plan/templates/plan.md +1 -1
  82. package/skills/handoff/SKILL.md +3 -3
  83. package/skills/handoff/templates/handoff.md +1 -1
  84. package/skills/vibe/SKILL.md +3 -2
  85. package/skills/vibe.analyze/SKILL.md +12 -249
  86. package/skills/vibe.analyze/references/output-templates.md +188 -0
  87. package/skills/vibe.analyze/references/quality-gate.md +93 -0
  88. package/skills/vibe.clone/SKILL.md +52 -19
  89. package/skills/vibe.continue/SKILL.md +32 -0
  90. package/skills/vibe.design/SKILL.md +23 -1
  91. package/skills/vibe.design/references/ui-preview.md +20 -0
  92. package/skills/vibe.docs/SKILL.md +4 -2
  93. package/skills/vibe.figma/SKILL.md +33 -260
  94. package/skills/vibe.figma/references/branch-phases.md +113 -0
  95. package/skills/vibe.figma/references/state-schema.md +42 -0
  96. package/skills/vibe.figma/references/step-algorithms.md +204 -0
  97. package/skills/vibe.image/SKILL.md +62 -0
  98. package/skills/vibe.image/references/image-generation-examples.md +39 -0
  99. package/skills/vibe.reason/SKILL.md +3 -183
  100. package/skills/vibe.reason/references/output-format-template.md +57 -0
  101. package/skills/vibe.reason/references/quality-rubrics.md +94 -0
  102. package/skills/vibe.reason/references/worked-example.md +45 -0
  103. package/skills/vibe.review/SKILL.md +13 -348
  104. package/skills/vibe.review/references/boundary-check.md +25 -0
  105. package/skills/vibe.review/references/output-template.md +74 -0
  106. package/skills/vibe.review/references/quality-gate.md +84 -0
  107. package/skills/vibe.review/references/race-mode.md +117 -0
  108. package/skills/vibe.review/references/worked-examples.md +94 -0
  109. package/vibe/templates/claudemd-template.md +1 -1
  110. package/agents/acceptance-tester.md +0 -56
  111. package/agents/documenter.md +0 -43
  112. package/agents/figma/figma-engineer.md +0 -76
  113. package/dist/cli/llm/gemini-commands.d.ts +0 -25
  114. package/dist/cli/llm/gemini-commands.d.ts.map +0 -1
  115. package/dist/cli/llm/gemini-commands.js +0 -143
  116. package/dist/cli/llm/gemini-commands.js.map +0 -1
  117. package/dist/cli/postinstall/codex-agents.d.ts +0 -24
  118. package/dist/cli/postinstall/codex-agents.d.ts.map +0 -1
  119. package/dist/cli/postinstall/codex-agents.js +0 -114
  120. package/dist/cli/postinstall/codex-agents.js.map +0 -1
  121. package/dist/cli/postinstall/codex-instruction.d.ts +0 -10
  122. package/dist/cli/postinstall/codex-instruction.d.ts.map +0 -1
  123. package/dist/cli/postinstall/codex-instruction.js +0 -56
  124. package/dist/cli/postinstall/codex-instruction.js.map +0 -1
  125. package/dist/cli/postinstall/gemini-agents.d.ts +0 -12
  126. package/dist/cli/postinstall/gemini-agents.d.ts.map +0 -1
  127. package/dist/cli/postinstall/gemini-agents.js +0 -80
  128. package/dist/cli/postinstall/gemini-agents.js.map +0 -1
  129. package/dist/cli/postinstall/gemini-instruction.d.ts +0 -10
  130. package/dist/cli/postinstall/gemini-instruction.d.ts.map +0 -1
  131. package/dist/cli/postinstall/gemini-instruction.js +0 -59
  132. package/dist/cli/postinstall/gemini-instruction.js.map +0 -1
  133. package/dist/cli/postinstall/index.d.ts +0 -23
  134. package/dist/cli/postinstall/index.d.ts.map +0 -1
  135. package/dist/cli/postinstall/index.js +0 -23
  136. package/dist/cli/postinstall/index.js.map +0 -1
  137. package/dist/cli/setup/index.d.ts +0 -9
  138. package/dist/cli/setup/index.d.ts.map +0 -1
  139. package/dist/cli/setup/index.js +0 -12
  140. package/dist/cli/setup/index.js.map +0 -1
  141. package/dist/infra/lib/ContextCompressor.d.ts +0 -104
  142. package/dist/infra/lib/ContextCompressor.d.ts.map +0 -1
  143. package/dist/infra/lib/ContextCompressor.js +0 -297
  144. package/dist/infra/lib/ContextCompressor.js.map +0 -1
  145. package/dist/infra/lib/ContextCompressor.test.d.ts +0 -2
  146. package/dist/infra/lib/ContextCompressor.test.d.ts.map +0 -1
  147. package/dist/infra/lib/ContextCompressor.test.js +0 -25
  148. package/dist/infra/lib/ContextCompressor.test.js.map +0 -1
  149. package/dist/infra/lib/ProgressTracker.d.ts +0 -73
  150. package/dist/infra/lib/ProgressTracker.d.ts.map +0 -1
  151. package/dist/infra/lib/ProgressTracker.js +0 -267
  152. package/dist/infra/lib/ProgressTracker.js.map +0 -1
  153. package/dist/infra/lib/TokenBudgetTracker.d.ts +0 -68
  154. package/dist/infra/lib/TokenBudgetTracker.d.ts.map +0 -1
  155. package/dist/infra/lib/TokenBudgetTracker.js +0 -191
  156. package/dist/infra/lib/TokenBudgetTracker.js.map +0 -1
  157. package/dist/infra/lib/autonomy/AuditStore.d.ts +0 -63
  158. package/dist/infra/lib/autonomy/AuditStore.d.ts.map +0 -1
  159. package/dist/infra/lib/autonomy/AuditStore.js +0 -185
  160. package/dist/infra/lib/autonomy/AuditStore.js.map +0 -1
  161. package/dist/infra/lib/autonomy/AutonomyConfig.d.ts +0 -84
  162. package/dist/infra/lib/autonomy/AutonomyConfig.d.ts.map +0 -1
  163. package/dist/infra/lib/autonomy/AutonomyConfig.js +0 -49
  164. package/dist/infra/lib/autonomy/AutonomyConfig.js.map +0 -1
  165. package/dist/infra/lib/autonomy/AutonomyOrchestrator.d.ts +0 -78
  166. package/dist/infra/lib/autonomy/AutonomyOrchestrator.d.ts.map +0 -1
  167. package/dist/infra/lib/autonomy/AutonomyOrchestrator.js +0 -246
  168. package/dist/infra/lib/autonomy/AutonomyOrchestrator.js.map +0 -1
  169. package/dist/infra/lib/autonomy/BackgroundMonitor.d.ts +0 -36
  170. package/dist/infra/lib/autonomy/BackgroundMonitor.d.ts.map +0 -1
  171. package/dist/infra/lib/autonomy/BackgroundMonitor.js +0 -138
  172. package/dist/infra/lib/autonomy/BackgroundMonitor.js.map +0 -1
  173. package/dist/infra/lib/autonomy/CollaborationProtocol.d.ts +0 -56
  174. package/dist/infra/lib/autonomy/CollaborationProtocol.d.ts.map +0 -1
  175. package/dist/infra/lib/autonomy/CollaborationProtocol.js +0 -122
  176. package/dist/infra/lib/autonomy/CollaborationProtocol.js.map +0 -1
  177. package/dist/infra/lib/autonomy/ConfirmationManager.d.ts +0 -42
  178. package/dist/infra/lib/autonomy/ConfirmationManager.d.ts.map +0 -1
  179. package/dist/infra/lib/autonomy/ConfirmationManager.js +0 -200
  180. package/dist/infra/lib/autonomy/ConfirmationManager.js.map +0 -1
  181. package/dist/infra/lib/autonomy/ConfirmationStore.d.ts +0 -55
  182. package/dist/infra/lib/autonomy/ConfirmationStore.d.ts.map +0 -1
  183. package/dist/infra/lib/autonomy/ConfirmationStore.js +0 -130
  184. package/dist/infra/lib/autonomy/ConfirmationStore.js.map +0 -1
  185. package/dist/infra/lib/autonomy/EventBus.d.ts +0 -20
  186. package/dist/infra/lib/autonomy/EventBus.d.ts.map +0 -1
  187. package/dist/infra/lib/autonomy/EventBus.js +0 -119
  188. package/dist/infra/lib/autonomy/EventBus.js.map +0 -1
  189. package/dist/infra/lib/autonomy/EventOutbox.d.ts +0 -32
  190. package/dist/infra/lib/autonomy/EventOutbox.d.ts.map +0 -1
  191. package/dist/infra/lib/autonomy/EventOutbox.js +0 -152
  192. package/dist/infra/lib/autonomy/EventOutbox.js.map +0 -1
  193. package/dist/infra/lib/autonomy/NotificationDispatcher.d.ts +0 -24
  194. package/dist/infra/lib/autonomy/NotificationDispatcher.d.ts.map +0 -1
  195. package/dist/infra/lib/autonomy/NotificationDispatcher.js +0 -112
  196. package/dist/infra/lib/autonomy/NotificationDispatcher.js.map +0 -1
  197. package/dist/infra/lib/autonomy/PolicyEngine.d.ts +0 -76
  198. package/dist/infra/lib/autonomy/PolicyEngine.d.ts.map +0 -1
  199. package/dist/infra/lib/autonomy/PolicyEngine.js +0 -208
  200. package/dist/infra/lib/autonomy/PolicyEngine.js.map +0 -1
  201. package/dist/infra/lib/autonomy/ProactiveAnalyzer.d.ts +0 -61
  202. package/dist/infra/lib/autonomy/ProactiveAnalyzer.d.ts.map +0 -1
  203. package/dist/infra/lib/autonomy/ProactiveAnalyzer.js +0 -236
  204. package/dist/infra/lib/autonomy/ProactiveAnalyzer.js.map +0 -1
  205. package/dist/infra/lib/autonomy/RiskClassifier.d.ts +0 -35
  206. package/dist/infra/lib/autonomy/RiskClassifier.d.ts.map +0 -1
  207. package/dist/infra/lib/autonomy/RiskClassifier.js +0 -147
  208. package/dist/infra/lib/autonomy/RiskClassifier.js.map +0 -1
  209. package/dist/infra/lib/autonomy/SecuritySentinel.d.ts +0 -51
  210. package/dist/infra/lib/autonomy/SecuritySentinel.d.ts.map +0 -1
  211. package/dist/infra/lib/autonomy/SecuritySentinel.js +0 -162
  212. package/dist/infra/lib/autonomy/SecuritySentinel.js.map +0 -1
  213. package/dist/infra/lib/autonomy/SuggestionStore.d.ts +0 -54
  214. package/dist/infra/lib/autonomy/SuggestionStore.d.ts.map +0 -1
  215. package/dist/infra/lib/autonomy/SuggestionStore.js +0 -144
  216. package/dist/infra/lib/autonomy/SuggestionStore.js.map +0 -1
  217. package/dist/infra/lib/autonomy/TaskDecomposer.d.ts +0 -38
  218. package/dist/infra/lib/autonomy/TaskDecomposer.d.ts.map +0 -1
  219. package/dist/infra/lib/autonomy/TaskDecomposer.js +0 -175
  220. package/dist/infra/lib/autonomy/TaskDecomposer.js.map +0 -1
  221. package/dist/infra/lib/autonomy/__tests__/audit-store.test.d.ts +0 -2
  222. package/dist/infra/lib/autonomy/__tests__/audit-store.test.d.ts.map +0 -1
  223. package/dist/infra/lib/autonomy/__tests__/audit-store.test.js +0 -198
  224. package/dist/infra/lib/autonomy/__tests__/audit-store.test.js.map +0 -1
  225. package/dist/infra/lib/autonomy/__tests__/event-bus.test.d.ts +0 -2
  226. package/dist/infra/lib/autonomy/__tests__/event-bus.test.d.ts.map +0 -1
  227. package/dist/infra/lib/autonomy/__tests__/event-bus.test.js +0 -225
  228. package/dist/infra/lib/autonomy/__tests__/event-bus.test.js.map +0 -1
  229. package/dist/infra/lib/autonomy/__tests__/event-core.test.d.ts +0 -2
  230. package/dist/infra/lib/autonomy/__tests__/event-core.test.d.ts.map +0 -1
  231. package/dist/infra/lib/autonomy/__tests__/event-core.test.js +0 -194
  232. package/dist/infra/lib/autonomy/__tests__/event-core.test.js.map +0 -1
  233. package/dist/infra/lib/autonomy/__tests__/governance.test.d.ts +0 -2
  234. package/dist/infra/lib/autonomy/__tests__/governance.test.d.ts.map +0 -1
  235. package/dist/infra/lib/autonomy/__tests__/governance.test.js +0 -540
  236. package/dist/infra/lib/autonomy/__tests__/governance.test.js.map +0 -1
  237. package/dist/infra/lib/autonomy/__tests__/integration.test.d.ts +0 -2
  238. package/dist/infra/lib/autonomy/__tests__/integration.test.d.ts.map +0 -1
  239. package/dist/infra/lib/autonomy/__tests__/integration.test.js +0 -480
  240. package/dist/infra/lib/autonomy/__tests__/integration.test.js.map +0 -1
  241. package/dist/infra/lib/autonomy/__tests__/proactive.test.d.ts +0 -2
  242. package/dist/infra/lib/autonomy/__tests__/proactive.test.d.ts.map +0 -1
  243. package/dist/infra/lib/autonomy/__tests__/proactive.test.js +0 -410
  244. package/dist/infra/lib/autonomy/__tests__/proactive.test.js.map +0 -1
  245. package/dist/infra/lib/autonomy/__tests__/sentinel.test.d.ts +0 -2
  246. package/dist/infra/lib/autonomy/__tests__/sentinel.test.d.ts.map +0 -1
  247. package/dist/infra/lib/autonomy/__tests__/sentinel.test.js +0 -486
  248. package/dist/infra/lib/autonomy/__tests__/sentinel.test.js.map +0 -1
  249. package/dist/infra/lib/autonomy/index.d.ts +0 -18
  250. package/dist/infra/lib/autonomy/index.d.ts.map +0 -1
  251. package/dist/infra/lib/autonomy/index.js +0 -22
  252. package/dist/infra/lib/autonomy/index.js.map +0 -1
  253. package/dist/infra/lib/autonomy/schemas.d.ts +0 -317
  254. package/dist/infra/lib/autonomy/schemas.d.ts.map +0 -1
  255. package/dist/infra/lib/autonomy/schemas.js +0 -90
  256. package/dist/infra/lib/autonomy/schemas.js.map +0 -1
  257. package/dist/infra/lib/claude/index.d.ts +0 -5
  258. package/dist/infra/lib/claude/index.d.ts.map +0 -1
  259. package/dist/infra/lib/claude/index.js +0 -5
  260. package/dist/infra/lib/claude/index.js.map +0 -1
  261. package/dist/infra/lib/claude/storage.d.ts +0 -12
  262. package/dist/infra/lib/claude/storage.d.ts.map +0 -1
  263. package/dist/infra/lib/claude/storage.js +0 -54
  264. package/dist/infra/lib/claude/storage.js.map +0 -1
  265. package/dist/infra/lib/gemini/auth.d.ts +0 -18
  266. package/dist/infra/lib/gemini/auth.d.ts.map +0 -1
  267. package/dist/infra/lib/gemini/auth.js +0 -32
  268. package/dist/infra/lib/gemini/auth.js.map +0 -1
  269. package/dist/infra/lib/gemini/capabilities.d.ts +0 -28
  270. package/dist/infra/lib/gemini/capabilities.d.ts.map +0 -1
  271. package/dist/infra/lib/gemini/capabilities.js +0 -178
  272. package/dist/infra/lib/gemini/capabilities.js.map +0 -1
  273. package/dist/infra/lib/gemini/chat.d.ts +0 -35
  274. package/dist/infra/lib/gemini/chat.d.ts.map +0 -1
  275. package/dist/infra/lib/gemini/chat.js +0 -161
  276. package/dist/infra/lib/gemini/chat.js.map +0 -1
  277. package/dist/infra/lib/gemini/completion.d.ts +0 -12
  278. package/dist/infra/lib/gemini/completion.d.ts.map +0 -1
  279. package/dist/infra/lib/gemini/completion.js +0 -13
  280. package/dist/infra/lib/gemini/completion.js.map +0 -1
  281. package/dist/infra/lib/gemini/constants.d.ts +0 -8
  282. package/dist/infra/lib/gemini/constants.d.ts.map +0 -1
  283. package/dist/infra/lib/gemini/constants.js +0 -11
  284. package/dist/infra/lib/gemini/constants.js.map +0 -1
  285. package/dist/infra/lib/gemini/index.d.ts +0 -13
  286. package/dist/infra/lib/gemini/index.d.ts.map +0 -1
  287. package/dist/infra/lib/gemini/index.js +0 -12
  288. package/dist/infra/lib/gemini/index.js.map +0 -1
  289. package/dist/infra/lib/gemini/models.d.ts +0 -11
  290. package/dist/infra/lib/gemini/models.d.ts.map +0 -1
  291. package/dist/infra/lib/gemini/models.js +0 -38
  292. package/dist/infra/lib/gemini/models.js.map +0 -1
  293. package/dist/infra/lib/gemini/orchestration.d.ts +0 -33
  294. package/dist/infra/lib/gemini/orchestration.d.ts.map +0 -1
  295. package/dist/infra/lib/gemini/orchestration.js +0 -62
  296. package/dist/infra/lib/gemini/orchestration.js.map +0 -1
  297. package/dist/infra/lib/gemini/types.d.ts +0 -115
  298. package/dist/infra/lib/gemini/types.d.ts.map +0 -1
  299. package/dist/infra/lib/gemini/types.js +0 -5
  300. package/dist/infra/lib/gemini/types.js.map +0 -1
  301. package/dist/infra/orchestrator/AgentAnnouncer.d.ts +0 -64
  302. package/dist/infra/orchestrator/AgentAnnouncer.d.ts.map +0 -1
  303. package/dist/infra/orchestrator/AgentAnnouncer.js +0 -127
  304. package/dist/infra/orchestrator/AgentAnnouncer.js.map +0 -1
  305. package/dist/infra/orchestrator/AgentAnnouncer.test.d.ts +0 -5
  306. package/dist/infra/orchestrator/AgentAnnouncer.test.d.ts.map +0 -1
  307. package/dist/infra/orchestrator/AgentAnnouncer.test.js +0 -119
  308. package/dist/infra/orchestrator/AgentAnnouncer.test.js.map +0 -1
  309. package/dist/infra/orchestrator/AgentExecutor.d.ts +0 -22
  310. package/dist/infra/orchestrator/AgentExecutor.d.ts.map +0 -1
  311. package/dist/infra/orchestrator/AgentExecutor.js +0 -272
  312. package/dist/infra/orchestrator/AgentExecutor.js.map +0 -1
  313. package/dist/infra/orchestrator/AgentManager.d.ts +0 -72
  314. package/dist/infra/orchestrator/AgentManager.d.ts.map +0 -1
  315. package/dist/infra/orchestrator/AgentManager.js +0 -183
  316. package/dist/infra/orchestrator/AgentManager.js.map +0 -1
  317. package/dist/infra/orchestrator/AgentManifestCache.d.ts +0 -54
  318. package/dist/infra/orchestrator/AgentManifestCache.d.ts.map +0 -1
  319. package/dist/infra/orchestrator/AgentManifestCache.js +0 -191
  320. package/dist/infra/orchestrator/AgentManifestCache.js.map +0 -1
  321. package/dist/infra/orchestrator/AgentRegistry.d.ts +0 -76
  322. package/dist/infra/orchestrator/AgentRegistry.d.ts.map +0 -1
  323. package/dist/infra/orchestrator/AgentRegistry.js +0 -217
  324. package/dist/infra/orchestrator/AgentRegistry.js.map +0 -1
  325. package/dist/infra/orchestrator/AgentRegistry.test.d.ts +0 -5
  326. package/dist/infra/orchestrator/AgentRegistry.test.d.ts.map +0 -1
  327. package/dist/infra/orchestrator/AgentRegistry.test.js +0 -122
  328. package/dist/infra/orchestrator/AgentRegistry.test.js.map +0 -1
  329. package/dist/infra/orchestrator/BackgroundManager.d.ts +0 -128
  330. package/dist/infra/orchestrator/BackgroundManager.d.ts.map +0 -1
  331. package/dist/infra/orchestrator/BackgroundManager.js +0 -620
  332. package/dist/infra/orchestrator/BackgroundManager.js.map +0 -1
  333. package/dist/infra/orchestrator/BackgroundManager.test.d.ts +0 -6
  334. package/dist/infra/orchestrator/BackgroundManager.test.d.ts.map +0 -1
  335. package/dist/infra/orchestrator/BackgroundManager.test.js +0 -162
  336. package/dist/infra/orchestrator/BackgroundManager.test.js.map +0 -1
  337. package/dist/infra/orchestrator/CheckpointManager.d.ts +0 -54
  338. package/dist/infra/orchestrator/CheckpointManager.d.ts.map +0 -1
  339. package/dist/infra/orchestrator/CheckpointManager.js +0 -121
  340. package/dist/infra/orchestrator/CheckpointManager.js.map +0 -1
  341. package/dist/infra/orchestrator/CodexAgentRuntime.d.ts +0 -12
  342. package/dist/infra/orchestrator/CodexAgentRuntime.d.ts.map +0 -1
  343. package/dist/infra/orchestrator/CodexAgentRuntime.js +0 -94
  344. package/dist/infra/orchestrator/CodexAgentRuntime.js.map +0 -1
  345. package/dist/infra/orchestrator/CodexAgentRuntime.test.d.ts +0 -2
  346. package/dist/infra/orchestrator/CodexAgentRuntime.test.d.ts.map +0 -1
  347. package/dist/infra/orchestrator/CodexAgentRuntime.test.js +0 -37
  348. package/dist/infra/orchestrator/CodexAgentRuntime.test.js.map +0 -1
  349. package/dist/infra/orchestrator/LLMCluster.d.ts +0 -82
  350. package/dist/infra/orchestrator/LLMCluster.d.ts.map +0 -1
  351. package/dist/infra/orchestrator/LLMCluster.js +0 -146
  352. package/dist/infra/orchestrator/LLMCluster.js.map +0 -1
  353. package/dist/infra/orchestrator/MultiLlmResearch.d.ts +0 -31
  354. package/dist/infra/orchestrator/MultiLlmResearch.d.ts.map +0 -1
  355. package/dist/infra/orchestrator/MultiLlmResearch.js +0 -160
  356. package/dist/infra/orchestrator/MultiLlmResearch.js.map +0 -1
  357. package/dist/infra/orchestrator/PhasePipeline.d.ts +0 -122
  358. package/dist/infra/orchestrator/PhasePipeline.d.ts.map +0 -1
  359. package/dist/infra/orchestrator/PhasePipeline.js +0 -385
  360. package/dist/infra/orchestrator/PhasePipeline.js.map +0 -1
  361. package/dist/infra/orchestrator/PhaseResultStore.d.ts +0 -39
  362. package/dist/infra/orchestrator/PhaseResultStore.d.ts.map +0 -1
  363. package/dist/infra/orchestrator/PhaseResultStore.js +0 -151
  364. package/dist/infra/orchestrator/PhaseResultStore.js.map +0 -1
  365. package/dist/infra/orchestrator/SessionStore.d.ts +0 -40
  366. package/dist/infra/orchestrator/SessionStore.d.ts.map +0 -1
  367. package/dist/infra/orchestrator/SessionStore.js +0 -116
  368. package/dist/infra/orchestrator/SessionStore.js.map +0 -1
  369. package/dist/infra/orchestrator/SmartRouter.d.ts +0 -90
  370. package/dist/infra/orchestrator/SmartRouter.d.ts.map +0 -1
  371. package/dist/infra/orchestrator/SmartRouter.js +0 -277
  372. package/dist/infra/orchestrator/SmartRouter.js.map +0 -1
  373. package/dist/infra/orchestrator/SmartRouter.test.d.ts +0 -5
  374. package/dist/infra/orchestrator/SmartRouter.test.d.ts.map +0 -1
  375. package/dist/infra/orchestrator/SmartRouter.test.js +0 -484
  376. package/dist/infra/orchestrator/SmartRouter.test.js.map +0 -1
  377. package/dist/infra/orchestrator/SwarmOrchestrator.d.ts +0 -143
  378. package/dist/infra/orchestrator/SwarmOrchestrator.d.ts.map +0 -1
  379. package/dist/infra/orchestrator/SwarmOrchestrator.js +0 -378
  380. package/dist/infra/orchestrator/SwarmOrchestrator.js.map +0 -1
  381. package/dist/infra/orchestrator/SwarmOrchestrator.test.d.ts +0 -5
  382. package/dist/infra/orchestrator/SwarmOrchestrator.test.d.ts.map +0 -1
  383. package/dist/infra/orchestrator/SwarmOrchestrator.test.js +0 -95
  384. package/dist/infra/orchestrator/SwarmOrchestrator.test.js.map +0 -1
  385. package/dist/infra/orchestrator/agentDiscovery.d.ts +0 -26
  386. package/dist/infra/orchestrator/agentDiscovery.d.ts.map +0 -1
  387. package/dist/infra/orchestrator/agentDiscovery.js +0 -175
  388. package/dist/infra/orchestrator/agentDiscovery.js.map +0 -1
  389. package/dist/infra/orchestrator/backgroundAgent.d.ts +0 -9
  390. package/dist/infra/orchestrator/backgroundAgent.d.ts.map +0 -1
  391. package/dist/infra/orchestrator/backgroundAgent.js +0 -10
  392. package/dist/infra/orchestrator/backgroundAgent.js.map +0 -1
  393. package/dist/infra/orchestrator/index.d.ts +0 -207
  394. package/dist/infra/orchestrator/index.d.ts.map +0 -1
  395. package/dist/infra/orchestrator/index.js +0 -362
  396. package/dist/infra/orchestrator/index.js.map +0 -1
  397. package/dist/infra/orchestrator/orchestrator.d.ts +0 -60
  398. package/dist/infra/orchestrator/orchestrator.d.ts.map +0 -1
  399. package/dist/infra/orchestrator/orchestrator.js +0 -214
  400. package/dist/infra/orchestrator/orchestrator.js.map +0 -1
  401. package/dist/infra/orchestrator/parallelResearch.d.ts +0 -27
  402. package/dist/infra/orchestrator/parallelResearch.d.ts.map +0 -1
  403. package/dist/infra/orchestrator/parallelResearch.js +0 -285
  404. package/dist/infra/orchestrator/parallelResearch.js.map +0 -1
  405. package/dist/infra/orchestrator/types.d.ts +0 -205
  406. package/dist/infra/orchestrator/types.d.ts.map +0 -1
  407. package/dist/infra/orchestrator/types.js +0 -87
  408. package/dist/infra/orchestrator/types.js.map +0 -1
  409. package/dist/infra/orchestrator/types.test.d.ts +0 -2
  410. package/dist/infra/orchestrator/types.test.d.ts.map +0 -1
  411. package/dist/infra/orchestrator/types.test.js +0 -57
  412. package/dist/infra/orchestrator/types.test.js.map +0 -1
  413. package/dist/tools/semantic/analyzeDependencyGraph.d.ts +0 -12
  414. package/dist/tools/semantic/analyzeDependencyGraph.d.ts.map +0 -1
  415. package/dist/tools/semantic/analyzeDependencyGraph.js +0 -359
  416. package/dist/tools/semantic/analyzeDependencyGraph.js.map +0 -1
  417. package/dist/tools/semantic/astGrep.d.ts +0 -25
  418. package/dist/tools/semantic/astGrep.d.ts.map +0 -1
  419. package/dist/tools/semantic/astGrep.js +0 -324
  420. package/dist/tools/semantic/astGrep.js.map +0 -1
  421. package/dist/tools/semantic/astGrep.test.d.ts +0 -2
  422. package/dist/tools/semantic/astGrep.test.d.ts.map +0 -1
  423. package/dist/tools/semantic/astGrep.test.js +0 -74
  424. package/dist/tools/semantic/astGrep.test.js.map +0 -1
  425. package/dist/tools/semantic/findReferences.d.ts +0 -9
  426. package/dist/tools/semantic/findReferences.d.ts.map +0 -1
  427. package/dist/tools/semantic/findReferences.js +0 -200
  428. package/dist/tools/semantic/findReferences.js.map +0 -1
  429. package/dist/tools/semantic/findSymbol.d.ts +0 -8
  430. package/dist/tools/semantic/findSymbol.d.ts.map +0 -1
  431. package/dist/tools/semantic/findSymbol.js +0 -204
  432. package/dist/tools/semantic/findSymbol.js.map +0 -1
  433. package/dist/tools/semantic/index.d.ts +0 -9
  434. package/dist/tools/semantic/index.d.ts.map +0 -1
  435. package/dist/tools/semantic/index.js +0 -11
  436. package/dist/tools/semantic/index.js.map +0 -1
  437. package/dist/tools/semantic/lsp.d.ts +0 -68
  438. package/dist/tools/semantic/lsp.d.ts.map +0 -1
  439. package/dist/tools/semantic/lsp.js +0 -561
  440. package/dist/tools/semantic/lsp.js.map +0 -1
  441. package/dist/tools/spec/e2eTestGenerator.d.ts +0 -61
  442. package/dist/tools/spec/e2eTestGenerator.d.ts.map +0 -1
  443. package/dist/tools/spec/e2eTestGenerator.js +0 -255
  444. package/dist/tools/spec/e2eTestGenerator.js.map +0 -1
  445. package/dist/tools/spec/specVersioning.d.ts +0 -76
  446. package/dist/tools/spec/specVersioning.d.ts.map +0 -1
  447. package/dist/tools/spec/specVersioning.js +0 -236
  448. package/dist/tools/spec/specVersioning.js.map +0 -1
  449. package/hooks/scripts/__tests__/.vibe/memories/memories.db +0 -0
  450. package/hooks/scripts/__tests__/.vibe/memories/memories.db-shm +0 -0
  451. package/hooks/scripts/__tests__/.vibe/memories/memories.db-wal +0 -0
  452. package/hooks/scripts/evolution-engine.js +0 -91
  453. package/hooks/scripts/hud-status.js +0 -321
  454. package/hooks/scripts/skill-injector.js +0 -83
  455. package/skills/vibe.utils/SKILL.md +0 -415
@@ -0,0 +1,48 @@
1
+ # Clone — Phase 1 Capture Output & Rules
2
+
3
+ > Loaded by vibe.clone SKILL.md Phase 1 (Capture) — full per-breakpoint output directory listing and the deterministic capture rule set.
4
+
5
+ ### Output per breakpoint
6
+
7
+ ```
8
+ /tmp/{feature}/{bp}/
9
+ ├── rendered.html — final DOM after JS execution
10
+ ├── computed.json — per-element computed CSS + bounding box
11
+ ├── screenshot.png — full-page screenshot
12
+ ├── states.json — non-default state rules (hover/focus/active/checked/tab/aria/data-state)
13
+ ├── behaviors.json — ACTIVE sweep: scroll / tab / hover / in-view / time-driven + scrollLib
14
+ ├── assets/
15
+ │ ├── images/ — all <img>, background-image, <picture> sources
16
+ │ ├── fonts/ — @font-face srcs
17
+ │ └── seo/ — favicons, apple-touch-icons, OG images, webmanifest
18
+ └── asset-map.json — remote URL → local path mapping
19
+ ```
20
+
21
+ ### Capture rules
22
+
23
+ ```
24
+ 1. Wait for `networkidle2` (no in-flight requests for 500ms) before snapshot
25
+ 2. Scroll to bottom slowly to trigger lazy-loaded content
26
+ 3. Resolve all <img src>, srcset, and computed background-image URLs
27
+ 4. Resolve @font-face src() URLs from all stylesheets
28
+ 5. Download assets in parallel (concurrency=8), preserve original extensions
29
+ 6. Rewrite asset URLs in rendered.html and computed.json to local paths
30
+ 7. Strip inline analytics/tracking scripts before saving rendered.html
31
+ 8. Harvest non-default state rules from all stylesheets → states.json
32
+ (deterministic: read :hover/:focus/:active/:checked/[aria-*]/[data-state]/.is-*/.active/
33
+ .scrolled/.sticky/.pinned/… declarations straight from CSS — NO scripted clicking)
34
+ 9. ACTIVE interaction sweep → behaviors.json (runs after lazy-load, before freeze).
35
+ Drives the live page to capture JS-set state that CSS harvesting can't see:
36
+ - Scroll-state diff: tag sticky/fixed/top-bar headers+nav, snapshot computed CSS at
37
+ scroll 0, scroll past threshold, re-snapshot, diff → {prop: {from, to}, triggerScrollY}
38
+ - Tab groups: click tab-like sibling sets, detect whether content swaps on click
39
+ - Hover diff: hover interactive elements (1 sample per tag+class signature, max 30),
40
+ diff computed styles → JS-set hover states that :hover harvesting misses
41
+ - In-view entrance: fresh reload, tag below-fold "waiting to animate" nodes
42
+ (opacity 0 / transform offset), scroll each into view, diff → fade-up/slide-in
43
+ - Time-driven: 3s no-input MutationObserver watch → carousel/auto-cycle candidates
44
+ - Scroll-lib detection: Lenis / Locomotive Scroll (native scrolling feels different —
45
+ the user spots it immediately; wire the lib page-level, not per-section)
46
+ Disable with --no-interact (restores the old fully-deterministic, screenshot-stable capture).
47
+ 10. SEO asset harvest: favicon / apple-touch-icon / webmanifest / og:image → assets/seo/
48
+ ```
@@ -0,0 +1,40 @@
1
+ # Clone — Legal & Ethical Notes + Error Recovery
2
+
3
+ > Loaded by vibe.clone SKILL.md — full legal/ethical usage notes and the Error Recovery troubleshooting table.
4
+
5
+ ## Legal & Ethical Notes
6
+
7
+ ```
8
+ This skill is intended for:
9
+ ✅ "Clone coding" learning exercises (markup/layout study)
10
+ ✅ Rebuilding the user's own previously-deployed sites
11
+ ✅ Authorized redesigns where the user has rights to the source
12
+
13
+ NOT intended for:
14
+ ❌ Republishing copyrighted content (text, images, logos) without permission
15
+ ❌ Deceptive look-alike sites (phishing, brand impersonation)
16
+ ❌ Bypassing robots.txt or rate-limiting protections
17
+
18
+ Claude must:
19
+ - Replace copyrighted text content with placeholders (e.g. "[Lorem ipsum]") by default
20
+ - --real-content: ask ONE explicit confirmation (site ownership / permission) before
21
+ Phase 3; on confirmation keep text verbatim (clone-spec.js --real-content)
22
+ - Skip and warn when robots.txt disallows fetching the target path
23
+ - Refuse if the user's stated intent is brand impersonation or deception
24
+ ```
25
+
26
+ ## Error Recovery
27
+
28
+ | Failure | Recovery |
29
+ |---------|----------|
30
+ | clone-extract.js Puppeteer launch failure | Verify Node ≥18 and that Chromium is installed (`npx puppeteer browsers install chrome`). Retry once. |
31
+ | Target site blocks headless (403/Cloudflare) | Retry with `--stealth` flag (uses puppeteer-extra stealth plugin). If still blocked, report to user. |
32
+ | Asset download 404 | Log to asset-map.json with `status: missing`. Use a 1×1 transparent placeholder. Continue. |
33
+ | robots.txt disallows path | Halt Phase 1. Inform user; require explicit `--ignore-robots` flag to proceed. |
34
+ | clone-refine.js produces empty sections | Site likely uses Shadow DOM or canvas rendering. Report and ask whether to fall back to screenshot-only mode. |
35
+ | Pixel diff stuck > 0.05 after 5 rounds | Likely font fallback or anti-aliasing. Report metric, allow user to accept threshold. |
36
+ | Interaction model guess wrong (Phase 5) | section.interaction is a static-DOM heuristic. Re-observe the live site, correct the model in the spec, rebuild the section for the confirmed model. |
37
+ | states.json empty but site has hover/tabs | States may be set via inline JS, not CSS rules. Check behaviors.json (active sweep captures scroll/tab JS state). If still missing, note in the spec and capture manually during Phase 5. |
38
+ | behaviors.json missing or empty | Active sweep was disabled (--no-interact), hit no sticky/tab elements, or errored (logged, non-fatal). Falls back to static states.json. Re-run without --no-interact to retry. |
39
+ | clone-merge-responsive.js reports many mo-only/pc-only selectors | Section detection diverged between BPs (layout differs structurally). Expected for hidden-on-mobile elements; verify each against the two sections.json trees and gate with the media query manually if needed. |
40
+ | Merged build fails Phase 5 at one viewport only | The merge dropped or mis-bucketed a declaration. Diff the failing viewport's computed CSS against its sections.json; fix in the merged SCSS with that evidence. |
@@ -0,0 +1,61 @@
1
+ # Clone — Phase 2 Refinement Rules & Output Schema
2
+
3
+ > Loaded by vibe.clone SKILL.md Phase 2 (Refine) — full refinement rule set and the sections.json output schema.
4
+
5
+ ### Refinement rules
6
+
7
+ ```
8
+ Refinement applied when converting rendered.html + computed.json → sections.json:
9
+ 1. Strip <script>, <noscript>, <style>, tracking pixels
10
+ 2. Strip nodes with display:none, visibility:hidden, opacity:0, size 0
11
+ 3. Detect sections: <header>, <nav>, top-level <section>/<main> children, <footer>
12
+ Fallback: top-level children of <body> with height > 100px
13
+ 4. Detect repeated patterns (sibling nodes with same tag+class signature, count >= 3)
14
+ → mark as component candidates
15
+ 5. Extract design tokens:
16
+ - colors: unique color/background-color values, sorted by frequency
17
+ - typography: font-family/size/weight combinations
18
+ - spacing: padding/margin values (px), bucketed to nearest 4px
19
+ 6. Background images (background-image: url) → images.bg
20
+ 7. Inline <img> → images.content
21
+ 8. Keep CSS subset: layout (display/flex/grid/position/inset/margin/padding/width/height/gap),
22
+ typography (font-*, line-height, letter-spacing, text-*, color),
23
+ decoration (background, border, border-radius, box-shadow, opacity),
24
+ transform/transition
25
+ 9. Classify interaction model per section (static-DOM heuristic) → section.interaction
26
+ = { model, confidence, signals[], note }. model ∈ static | click-driven | scroll-driven
27
+ | time-driven | hover. This is a best-guess + ranked SIGNALS, NOT a silent decision —
28
+ the builder confirms it against the live site (Phase 5). Misidentifying the interaction
29
+ model is the #1 clone failure mode (scroll-driven original built as a click UI, etc.).
30
+ 10. Attach matching state rules from states.json to each section → section.states
31
+ (rules whose selector references a class/leaf-tag inside that section's subtree)
32
+ ```
33
+
34
+ ### Output
35
+
36
+ ```
37
+ /tmp/{feature}/{bp}/sections.json:
38
+ {
39
+ meta: { feature, url, viewport, bp },
40
+ tokens: { colors: [...], typography: [...], spacing: [...] },
41
+ sections: [
42
+ {
43
+ name: "Header" | "Hero" | "Features" | ...,
44
+ nodeRef, tag, size, css,
45
+ interaction: { // static-DOM heuristic — builder confirms in Phase 5
46
+ model: "static" | "click-driven" | "scroll-driven" | "time-driven" | "hover",
47
+ confidence: "high" | "medium" | "low",
48
+ signals: [...], // ranked evidence (sticky, infinite animation, role=tab, …)
49
+ note
50
+ },
51
+ text, // text content (placeholder candidates)
52
+ components: [...], // detected repeated patterns
53
+ states: [ // non-default state rules scoped to this section
54
+ { selector, media, css }
55
+ ],
56
+ children: [...], // full recursive subtree
57
+ images: { bg, content: [...] }
58
+ }
59
+ ]
60
+ }
61
+ ```
@@ -0,0 +1,59 @@
1
+ # Clone — Phase 3A/3B/3C Builder Contract
2
+
3
+ > Loaded by vibe.clone SKILL.md Phase 3 (Scaffold) — full prep/dispatch/merge steps for MO/PC scaffold, the 150-line split rule, framework mapping, Phase 3C's import-switch/selector-review steps, and Claude's role checklist. Phase headers, Input lines, and script invocation commands stay in SKILL.md; this file covers the supporting detail only.
4
+
5
+ ```
6
+ Prep (sequential, once):
7
+ a. Step 0: clone-spec.js → emit _specs/mo/{Section}.spec.md for every section
8
+ b. Step A: clone-to-scss.js → SCSS draft in styles/{feature}/mo/ (computed values)
9
+ c. Orchestrator resolves every spec TODO BEFORE dispatch:
10
+ ├─ Confirm the interaction model (spec.interaction is a heuristic guess;
11
+ │ the spec's active-capture "Dynamic behaviors" block overrides it on conflict)
12
+ ├─ List the states to implement (spec.states + Dynamic behaviors)
13
+ ├─ Mark copyrighted text for placeholder replacement (skip with --real-content)
14
+ └─ Map component candidates against component-index.json (reuse vs create)
15
+ d. 150-line split rule (mechanical — wc -l, don't override with "but it's related"):
16
+ a completed spec over 150 lines means the section is too big for one builder →
17
+ split into sub-component specs (one per card variant / repeated pattern) + one
18
+ wrapper spec that imports them.
19
+ Dispatch (parallel):
20
+ ⛔ Every builder prompt embeds the FULL spec text INLINE — never "go read the file".
21
+ The spec file stays on disk as the audit trail; the prompt must be self-sufficient.
22
+ ⛔ Builders that write files in parallel run in worktree isolation; sub-component
23
+ builders complete before their wrapper builder starts.
24
+ Builder contract (each agent):
25
+ 1. Build HTML structure + semantic tags + framework-specific component file
26
+ ⛔ No CSS in <style> blocks — only @import/@use of styles/{feature}/mo/
27
+ ⛔ Build for the CONFIRMED interaction model in the spec; wire every state
28
+ Framework mapping:
29
+ - React/Next → .tsx with CSS Modules or styled-components per stack
30
+ - Vue/Nuxt → .vue with scoped <style lang="scss"> @import only
31
+ - Svelte → .svelte with <style> @import only
32
+ - Vanilla → .html + linked .scss
33
+ 2. Asset references → public/images/{feature}/ (already populated in Phase 1)
34
+ 3. SCSS edits per Immutable Rule 1 (evidence-cited only)
35
+ 4. Verify compile (tsc --noEmit or stack equivalent) before finishing
36
+ Merge (orchestrator, as builders complete):
37
+ 5. Merge worktrees; resolve conflicts (you have full context on every spec)
38
+ 6. clone-validate.js per section — Step B
39
+ ├─ PASS → section done
40
+ └─ FAIL → fix discrepancies → re-run step 6 (loop until P1=0, no round cap)
41
+
42
+ 2. Switch component style imports from styles/{feature}/{bp}/index.scss to the merged
43
+ styles/{feature}/index.scss
44
+ 3. Review pc-only/mo-only selectors in the merge report — hide/show them with the
45
+ media query if the original does (evidence: the two sections.json trees)
46
+
47
+ Claude's role:
48
+ ✅ Component candidates: decide which patterns become reusable components
49
+ ✅ HTML semantics: section/h1/p/button/nav tag selection
50
+ ✅ Text replacement: substitute copyrighted copy with placeholders or user-supplied text
51
+ ✅ Interaction model: confirm the spec's heuristic guess, then build for the real model
52
+ ✅ Interactions: implement every state in the spec (hover/focus/active/open), click handlers
53
+ ✅ SCSS value edits WITH cited evidence (computed.json/states.json/behaviors.json) —
54
+ clone-validate.js PASS is the judge
55
+ ❌ Do NOT invent CSS values without extraction evidence
56
+ ❌ Do NOT write CSS directly in <style> blocks
57
+ ❌ Do NOT hand-write vw/clamp/@media in Phase 3A/3B (responsive comes from Phase 3C merge)
58
+ ❌ Do NOT hotlink remote URLs — all assets must use local public/images/ paths
59
+ ```
@@ -0,0 +1,30 @@
1
+ # Clone — Setup Steps & Output Layout
2
+
3
+ > Loaded by vibe.clone SKILL.md Full Flow / Phase 0 (Setup) — working-directory + code-output layout and the full Phase 0 setup steps.
4
+
5
+ ```
6
+ Working directory:
7
+ /tmp/{feature}/
8
+ ├── mo/ (375×812) — rendered.html, computed.json, screenshot.png, assets/, sections.json
9
+ ├── pc/ (1440×900) — rendered.html, computed.json, screenshot.png, assets/, sections.json
10
+ └── tokens.json — extracted design tokens (colors/fonts/spacing)
11
+
12
+ Code output: placed directly in the project directory per detected stack
13
+ components/{feature}/, components/{feature}/_specs/{mo,pc}/,
14
+ styles/{feature}/{mo,pc}/ (per-BP drafts) → styles/{feature}/ (Phase 3C merged),
15
+ public/images/{feature}/, public/ (favicons/OG from assets/seo/)
16
+ ```
17
+
18
+ ```
19
+ 1. Stack detection:
20
+ - .vibe/config.json → stack (react/vue/next/svelte/vanilla, scss/tailwind/css-modules)
21
+ - Fallback: package.json deps
22
+ 2. Feature name: URL hostname → kebab-case (e.g. stripe.com → stripe-clone)
23
+ - User may override with --name=<custom>
24
+ 3. Directories:
25
+ - components/{feature}/, styles/{feature}/, public/images/{feature}/
26
+ 4. Component indexing → /tmp/{feature}/component-index.json
27
+ (scan up to 50 existing components, extract props/slots/classes, within 2 minutes)
28
+ 5. Design token scan → /tmp/{feature}/project-tokens.json
29
+ (SCSS > CSS Variables > Tailwind > CSS-in-JS)
30
+ ```
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: docs
3
- description: 프로젝트 문서 생성 본체 — README / 아키텍처 / 사용자 가이드 / 릴리즈 노트.
3
+ description: 프로젝트 문서 생성 본체 — README / 아키텍처 / 사용자 가이드 / 릴리즈 노트 / Mermaid 다이어그램 / codemaps.
4
4
  when_to_use: /vibe.docs 진입점에서 체인 호출. 직접 호출 금지.
5
5
  user-invocable: false
6
6
  tier: standard
@@ -179,6 +179,41 @@ Output: `RELEASE_NOTES.md` or append to `CHANGELOG.md`
179
179
  - refactor/docs/chore items
180
180
  ```
181
181
 
182
+ ### `/vibe.docs diagram` — Diagram Generation
183
+
184
+ Generate Mermaid diagrams for architecture, ERD, flowchart, or sequence
185
+ visualization directly (native capability — no dedicated agent). Ground the
186
+ diagram in sources first: folder structure and imports for architecture;
187
+ `models/`, `migrations/`, `schema.*`, ORM definitions for ERDs; the real
188
+ branch/return structure of the code for flowcharts.
189
+
190
+ **Options:**
191
+ - `/vibe.docs diagram` (default): Architecture overview
192
+ - `/vibe.docs diagram --er`: Entity-Relationship Diagram
193
+ - `/vibe.docs diagram --flow`: Flowchart
194
+ - `/vibe.docs diagram --seq`: Sequence Diagram
195
+
196
+ > Read `references/diagram-spec.md` for the full output conventions (Mermaid syntax per diagram type, save location, accuracy constraints).
197
+
198
+ **Example:**
199
+ ```
200
+ /vibe.docs diagram --er
201
+ ```
202
+
203
+ ### `/vibe.docs codemaps` — Codemaps Generation
204
+
205
+ Generate auto-documentation from codebase structure directly (native
206
+ capability — no dedicated agent).
207
+
208
+ **Output Location:** `docs/CODEMAPS/`
209
+
210
+ > Read `references/codemaps-output.md` for the full generated-files tree, per-file contents, and tools used.
211
+
212
+ **Example:**
213
+ ```
214
+ /vibe.docs codemaps
215
+ ```
216
+
182
217
  ## Pipeline Integration
183
218
 
184
219
  `/vibe.docs` completes the development pipeline:
@@ -202,9 +237,9 @@ When `/vibe.trace` completes with all scenarios passing, suggest:
202
237
  - Preserve existing documentation that's still accurate
203
238
  - Include concrete code examples from the actual project
204
239
  - Keep language consistent with project (Korean/English based on CLAUDE.md)
205
- - Use documenter agent (changelog mode) for `/vibe.docs release`
206
- - Use documenter agent (api-docs mode) for API-heavy projects
207
- - Use diagrammer agent for `/vibe.docs arch` Mermaid generation
240
+ - For `/vibe.docs release` (changelog mode), follow `references/api-docs-changelog.md` natively — no dedicated agent
241
+ - For API-heavy projects (api-docs mode), follow `references/api-docs-changelog.md` natively
242
+ - For `/vibe.docs arch` and `/vibe.docs diagram` Mermaid generation, follow `references/diagram-spec.md` natively
208
243
  - Use the `agents-md` skill for `/vibe.docs agent` — applies equally to CLAUDE.md and AGENTS.md
209
244
 
210
245
  ### DON'T
@@ -0,0 +1,34 @@
1
+ # docs — API Docs & Changelog Spec
2
+
3
+ > Loaded by docs SKILL.md for `/vibe.docs release` (changelog mode) and API-heavy projects (api-docs mode) — documentation rules for the two artifacts that go stale fastest: API docs and changelogs.
4
+
5
+ ## API Mode
6
+
7
+ Walk the route handlers/controllers in the given scope and document each
8
+ endpoint: method + path, auth requirement, parameters (path/query/body with
9
+ types, required vs optional, enum values), success and error responses (all
10
+ status codes actually returned), and a runnable example (curl or fetch). List
11
+ endpoints that exist in code but lack documentation — the gap list is as
12
+ valuable as the docs.
13
+
14
+ ## Changelog Mode
15
+
16
+ From `git diff` and `git log`, classify changes as breaking / added /
17
+ changed / fixed / performance / internal / dependencies. Recommend the
18
+ semantic version bump with a one-line reason. Every breaking change gets
19
+ migration steps; every fix states old vs new behavior.
20
+
21
+ ## Constraints
22
+
23
+ Return documentation as text output only — never create or write files; the
24
+ calling command decides where content lands. Descriptions are user-facing:
25
+ what changed for the consumer, not which internal function was refactored
26
+ (pure refactors go under Internal, briefly). Document what the code actually
27
+ does, not what comments claim — when they disagree, flag the discrepancy
28
+ rather than picking one silently.
29
+
30
+ ## Done
31
+
32
+ - API mode: every endpoint in scope documented or explicitly listed as an undocumented gap
33
+ - Changelog mode: all changes classified, version bump recommended with reason, breaking changes have migration steps
34
+ - Output is paste-ready text; zero files created
@@ -0,0 +1,23 @@
1
+ # docs — Codemaps: Generated Files & Contents
2
+
3
+ > Loaded by docs SKILL.md `codemaps` mode — full generated-files tree, per-file contents, and tools used.
4
+
5
+ **Generated Files:**
6
+ ```
7
+ docs/CODEMAPS/
8
+ ├── INDEX.md # Overview of all areas
9
+ ├── frontend.md # Frontend structure
10
+ ├── backend.md # API/backend structure
11
+ ├── database.md # Schema documentation
12
+ └── integrations.md # External services
13
+ ```
14
+
15
+ **Each file contains:**
16
+ - Module table (name, path, description)
17
+ - Data flow diagram (Mermaid)
18
+ - Dependencies list
19
+ - Related areas
20
+
21
+ **Tools Used:**
22
+ - ts-morph (TypeScript AST)
23
+ - madge (dependency graph)
@@ -1,19 +1,6 @@
1
- # Diagrammer Agent
1
+ # docs — Diagram Generation Spec
2
2
 
3
- Diagram generation specialistrenders architecture, data models, and flows
4
- as Mermaid.
5
-
6
- ## Role
7
-
8
- - Architecture diagrams from project structure and dependencies
9
- - ERD from database schemas and model definitions
10
- - Flowcharts of business logic and user flows
11
-
12
- ## Model
13
-
14
- **Haiku** — fast, structured output
15
-
16
- ## Goal
3
+ > Loaded by docs SKILL.md `diagram` mode Mermaid diagram generation rules (architecture, ERD, flowcharts, sequence).
17
4
 
18
5
  Produce a Mermaid diagram that reflects the actual code, not a generic
19
6
  picture. Ground it in sources first: folder structure and imports for
@@ -129,7 +129,7 @@ Ready to execute:
129
129
  /vibe.run "{feature-name}" ultrawork
130
130
 
131
131
  Or hand off to new session:
132
- /vibe.utils --continue
132
+ /vibe.continue
133
133
  → Load: .vibe/specs/{feature-name}-execplan.md
134
134
  ```
135
135
 
@@ -144,4 +144,4 @@ save_memory("execplan-{{FEATURE_NAME}}", {
144
144
  })
145
145
  ```
146
146
 
147
- Resume: `/vibe.utils --continue` → load this file.
147
+ Resume: `/vibe.continue` → load this file.
@@ -16,9 +16,9 @@ Record work status before session end so the next session can pick up immediatel
16
16
 
17
17
  A file that records the current work status before context reset. Reading this file in a new session allows immediate continuation.
18
18
 
19
- ### Difference from `/vibe.utils --continue`
19
+ ### Difference from `/vibe.continue`
20
20
 
21
- | Item | `/vibe.utils --continue` | Handoff |
21
+ | Item | `/vibe.continue` | Handoff |
22
22
  |------|--------------------------|---------|
23
23
  | Method | Automatic session context restore | Manual handover document |
24
24
  | Includes | Memory + session state | Work progress + notes + file list |
@@ -98,7 +98,7 @@ Read HANDOFF.md and continue working
98
98
  Or use alongside VIBE auto-restore:
99
99
 
100
100
  ```
101
- /vibe.utils --continue
101
+ /vibe.continue
102
102
  ```
103
103
 
104
104
  In this case, saved decisions are also restored via `core_recall_memory`.
@@ -86,7 +86,7 @@ Last commit: `{{LAST_COMMIT_HASH}}` — {{LAST_COMMIT_MESSAGE}}
86
86
 
87
87
  ```bash
88
88
  # 1. Load context
89
- /vibe.utils --continue
89
+ /vibe.continue
90
90
 
91
91
  # 2. Read this file if context is missing
92
92
  # cat HANDOFF.md
@@ -64,13 +64,14 @@ user-invocable: true
64
64
  | **regression fix** | "회귀", "테스트 깨졌", "다시 통과" | regress → run → verify |
65
65
  | **contract drift** | "API 변경", "계약 깨졌", "스펙 불일치" | contract → regress (P1만) |
66
66
  | **scaffold** | "프로젝트 만들기", "셋업", "초기 구조" | scaffold |
67
- | **docs sync** | "문서 갱신", "README", "AGENTS.md" | docs |
67
+ | **docs sync** | "문서 갱신", "README", "AGENTS.md", "다이어그램", "코드맵" | docs (diagram/codemaps 의도 포함) |
68
68
  | **analyze** | "분석", "조사", "이건 뭐야" + 파일/URL | analyze |
69
69
  | **reason** | "추론", "깊게 생각", "트레이드오프", "어떻게 접근" 등 복잡한 사고 요청 | reason |
70
70
  | **event** | "이벤트", "커뮤니티", "D-Day", "행사 자동화" | event |
71
71
  | **harness check** | "하네스", "환경 점검" | harness |
72
72
  | **test self** | "vibe 테스트", "CC ↔ Codex 비교" | test |
73
- | **utils** | "이어서", "메모리", "체크포인트" | utils |
73
+ | **session continue** | "이어서", "메모리", "체크포인트" | continue |
74
+ | **image generation** | "이미지 생성", "아이콘", "배너", "목업 이미지" | image |
74
75
 
75
76
  복수 의도면 우선순위: resume > figma-driven > new feature > 기타.
76
77