@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
@@ -75,15 +75,9 @@ Extract keywords from the user request:
75
75
 
76
76
  #### 2. Understand Project Structure
77
77
 
78
- Read `CLAUDE.md`, `package.json`, `pyproject.toml`, etc. to identify tech stack:
78
+ Read `CLAUDE.md`, `package.json`, `pyproject.toml`, etc. to identify tech stack.
79
79
 
80
- **Backend:**
81
- - FastAPI/Django: `app/api/`, `app/services/`, `app/models/`
82
- - Express/NestJS: `src/controllers/`, `src/services/`, `src/models/`
83
-
84
- **Frontend:**
85
- - React/Next.js: `src/components/`, `src/pages/`, `src/hooks/`
86
- - Flutter: `lib/screens/`, `lib/services/`, `lib/providers/`
80
+ > Read `references/output-templates.md` for the full backend/frontend stack → directory mapping.
87
81
 
88
82
  #### 3. Explore Related Code (Parallel Sub-Agents)
89
83
 
@@ -105,15 +99,7 @@ Agent(subagent_type="Explore", model="haiku",
105
99
  prompt="Find all [FEATURE] related data models, schemas, and database queries. Document relationships and key fields.")
106
100
  ```
107
101
 
108
- **Scale for large projects (6+ related files):**
109
-
110
- ```text
111
- Agent(subagent_type="Explore", model="haiku",
112
- prompt="Find all test files related to [FEATURE]. Identify tested vs untested paths.")
113
-
114
- Agent(subagent_type="Explore", model="haiku",
115
- prompt="Analyze [FEATURE] configuration, environment variables, and external integrations.")
116
- ```
102
+ > Read `references/output-templates.md` for the additional "Scale for large projects (6+ related files)" agent prompts.
117
103
 
118
104
  **After all agents return:**
119
105
  - Synthesize results → proceed to Flow Analysis
@@ -138,62 +124,13 @@ Agent(subagent_type="Explore", model="haiku",
138
124
 
139
125
  #### 5. Output
140
126
 
141
- ```markdown
142
- ## [feature-name] Analysis Results
143
-
144
- ### Overview
145
- - **Feature**: [one-line summary]
146
- - **Status**: [Complete / In progress / Not implemented]
147
- - **Files**: N related files
148
-
149
- ### Structure
150
-
151
- #### API Endpoints
152
- | Method | Path | Description | Auth |
153
- |--------|------|-------------|------|
154
- | POST | /api/v1/auth/login | User login | None |
155
-
156
- #### Core Services
157
- - `auth_service.py`: Authentication logic
158
- - `login()`: Processes login
159
- - `verify_token()`: Validates JWT
160
-
161
- #### Data Models
162
- - `User`: User table
163
- - Key fields: id, email, password_hash
164
- - Relationships: Session (1:N)
165
-
166
- ### Reference Files
167
- - src/api/auth/router.py:L10-50
168
- - src/services/auth_service.py:L1-100
169
- ```
127
+ > Read `references/output-templates.md` for the full Mode 1 output format.
170
128
 
171
129
  #### 6. Next Steps
172
130
 
173
- After analysis, suggest mode-specific follow-up actions:
174
-
175
- **After code/feature analysis:**
176
-
177
- | Task Scope | Approach |
178
- |------------|----------|
179
- | Simple fix (1-2 files) | Plan Mode |
180
- | Complex feature (3+ files) | `/vibe.spec` |
181
-
182
- **After document analysis:**
183
-
184
- | Goal | Approach |
185
- |------|----------|
186
- | Apply findings to project | `/vibe.spec "feature-name"` |
187
- | Derive improvement direction | Plan Mode |
188
- | Compare with another source | `/vibe.analyze [other target]` |
131
+ After analysis, suggest mode-specific follow-up actions.
189
132
 
190
- **After website analysis:**
191
-
192
- | Goal | Approach |
193
- |------|----------|
194
- | Build similar product | `/vibe.spec` |
195
- | Improve existing UI | `/vibe.figma` |
196
- | Compare with another site | `/vibe.analyze [other URL]` |
133
+ > Read `references/output-templates.md` for the full Next Steps decision tables (code/feature, document, website).
197
134
 
198
135
  Wait for user's choice before proceeding.
199
136
 
@@ -218,13 +155,7 @@ Analyze document **structure, key content, quality, and applicability** to:
218
155
 
219
156
  #### 2. Classify Document Type
220
157
 
221
- | Type | Analysis Focus |
222
- |------|---------------|
223
- | Technical spec | API definitions, data models, sequence diagrams |
224
- | Presentation/slides | Key claims, frameworks, case studies |
225
- | PRD/requirements | User stories, acceptance criteria, scope |
226
- | Business document | Strategy, decision points, action items |
227
- | Research/academic | Methodology, conclusions, applicability |
158
+ > Read `references/output-templates.md` for the full document-type → analysis-focus table.
228
159
 
229
160
  #### 3. Analyze Content (Parallel Sub-Agents)
230
161
 
@@ -244,33 +175,7 @@ Agent(subagent_type="general-purpose", model="haiku",
244
175
 
245
176
  #### 5. Output
246
177
 
247
- ```markdown
248
- ## [Document Name] Analysis
249
-
250
- ### Overview
251
- - **Type**: [Presentation / Technical spec / PRD / ...]
252
- - **Topic**: [one-line summary]
253
- - **Pages/Sections**: N
254
- - **Audience**: [Developers / PMs / Executives / ...]
255
-
256
- ### Key Content
257
- 1. **[Concept 1]**: Description
258
- 2. **[Concept 2]**: Description
259
-
260
- ### Frameworks/Models (if any)
261
- - [Systematic structure presented in the document]
262
-
263
- ### Project Relevance
264
- | Recommendation | Current State | Gap |
265
- |----------------|---------------|-----|
266
- | ... | ... | ... |
267
-
268
- ### Key Insights
269
- - [Most important takeaway]
270
-
271
- ### Suggested Actions
272
- 1. ...
273
- ```
178
+ > Read `references/output-templates.md` for the full Mode 2 output format.
274
179
 
275
180
  #### Fallback
276
181
 
@@ -319,40 +224,7 @@ If a Figma URL is detected, switch to **Figma-specific analysis**:
319
224
 
320
225
  #### 4. Output
321
226
 
322
- ```markdown
323
- ## [URL] Analysis
324
-
325
- ### Overview
326
- - **Site type**: [SaaS / E-commerce / Portfolio / ...]
327
- - **Tech stack**: [Next.js, Tailwind, ...]
328
- - **Overall score**: N/100
329
-
330
- ### Technical Analysis
331
- | Area | Detection | Details |
332
- |------|-----------|---------|
333
- | Framework | React/Next.js | SSR enabled |
334
- | CSS | Tailwind CSS | v3.4 |
335
-
336
- ### UX/UI Analysis
337
- - **Navigation**: [assessment]
338
- - **CTA placement**: [assessment]
339
- - **Responsive design**: [assessment]
340
-
341
- ### SEO Analysis (N/100)
342
- | Element | Status | Recommendation |
343
- |---------|--------|----------------|
344
- | Title | Present | Appropriate length |
345
- | Meta Description | Missing | Add description |
346
-
347
- ### Accessibility (WCAG 2.1 AA)
348
- - **Semantic HTML**: [assessment]
349
- - **Keyboard navigation**: [assessment]
350
- - **Screen reader support**: [assessment]
351
-
352
- ### Improvement Suggestions
353
- 1. [highest priority]
354
- 2. ...
355
- ```
227
+ > Read `references/output-templates.md` for the full Mode 3 output format.
356
228
 
357
229
  #### Fallback
358
230
 
@@ -393,30 +265,7 @@ If `WebFetch` fails:
393
265
 
394
266
  Save to `.vibe/reports/analysis-{date}.md`:
395
267
 
396
- ```markdown
397
- # Project Analysis Report
398
-
399
- ## Overview
400
- - Analysis date: YYYY-MM-DD HH:MM
401
- - Scope: Full / Code / Deps / Arch
402
-
403
- ## Code Quality (N/100)
404
- - Average complexity: N (good/warning/critical)
405
- - High complexity files: N
406
-
407
- ## Dependencies (N/100)
408
- - Total packages: N
409
- - Updates needed: N
410
- - Security issues: N
411
-
412
- ## Architecture (N/100)
413
- - Circular dependencies: N found
414
- - Layer violations: N
415
-
416
- ## Improvement Suggestions
417
- 1. ...
418
- 2. ...
419
- ```
268
+ > Read `references/output-templates.md` for the full Mode 4 report format.
420
269
 
421
270
  ## Core Tools (Semantic Analysis)
422
271
 
@@ -438,95 +287,9 @@ node -e "import('{{VIBE_PATH_URL}}/node_modules/@su-record/vibe/dist/tools/index
438
287
 
439
288
  ## Quality Gate (Mandatory)
440
289
 
441
- ### Mode-Specific Checklists
442
-
443
- **Code/Feature Analysis:**
444
-
445
- | Category | Check Item | Weight |
446
- |----------|------------|--------|
447
- | Completeness | All related files identified | 20% |
448
- | Completeness | All API endpoints documented | 15% |
449
- | Completeness | All data models mapped | 15% |
450
- | Accuracy | File paths verified to exist | 10% |
451
- | Accuracy | Line numbers accurate | 10% |
452
- | Depth | Business logic explained | 10% |
453
- | Depth | Dependencies mapped | 10% |
454
- | Actionability | Next steps clearly defined | 10% |
455
-
456
- **Document Analysis:**
457
-
458
- | Category | Check Item | Weight |
459
- |----------|------------|--------|
460
- | Completeness | Full document read | 20% |
461
- | Completeness | All key concepts extracted | 20% |
462
- | Structure | Section structure identified | 15% |
463
- | Depth | Project relevance analyzed | 15% |
464
- | Depth | Gap analysis performed | 15% |
465
- | Actionability | Specific follow-up actions suggested | 15% |
466
-
467
- **Website Analysis:**
468
-
469
- | Category | Check Item | Weight |
470
- |----------|------------|--------|
471
- | Completeness | HTML fetched and parsed | 15% |
472
- | Tech | Tech stack identified | 15% |
473
- | UX | UX/UI patterns analyzed | 15% |
474
- | SEO | SEO elements inspected | 15% |
475
- | A11y | Accessibility checked | 15% |
476
- | Performance | Performance hints analyzed | 10% |
477
- | Actionability | Improvements suggested | 15% |
478
-
479
- ### Score Calculation
480
-
481
- ```
482
- Score = sum(checked items * weight) / 100
483
-
484
- Grades:
485
- - 95-100: EXCELLENT — comprehensive analysis
486
- - 90-94: GOOD — minor gaps, additional exploration recommended
487
- - 80-89: FAIR — needs deeper exploration
488
- - 0-79: POOR — incomplete, re-analyze
489
- ```
490
-
491
- ### Depth Levels
492
-
493
- | Level | Scope | Output |
494
- |-------|-------|--------|
495
- | L1: Surface | File names, basic structure | File list |
496
- | L2: Structure | Functions, classes, imports | Structure map |
497
- | L3: Logic | Business logic, data flow | Flow analysis |
498
- | L4: Deep | Edge cases, dependencies, risks | Full analysis |
499
-
500
- **Minimum**: L3 for feature analysis, L2 for project overview.
501
-
502
- ### Forbidden Patterns
503
-
504
- | Pattern | Problem | Fix |
505
- |---------|---------|-----|
506
- | "and more..." | Incomplete | List all items |
507
- | "etc." | Vague | Be specific |
508
- | "related files" without paths | Missing detail | Provide file paths |
509
- | Missing line numbers | Hard to navigate | Use `:L10-50` format |
510
- | No auth info on endpoints | Security gap | Always specify auth |
511
-
512
- ### Quality Thresholds
513
-
514
- **Code (`--code`):**
515
-
516
- | Metric | Good | Warning | Critical |
517
- |--------|------|---------|----------|
518
- | Avg Complexity | ≤10 | 11-15 | >15 |
519
- | Max Function Length | ≤30 | 31-50 | >50 |
520
- | High Complexity Files | 0 | 1-3 | >3 |
521
- | Circular Dependencies | 0 | 1 | >1 |
522
-
523
- **Dependencies (`--deps`):**
290
+ Each mode has a weighted completeness checklist. Score = sum(checked items × weight) / 100. **Minimum depth: L3 for feature analysis, L2 for project overview.**
524
291
 
525
- | Metric | Good | Warning | Critical |
526
- |--------|------|---------|----------|
527
- | Outdated Packages | 0-3 | 4-10 | >10 |
528
- | Security Vulnerabilities | 0 | 1-2 (low) | Any high/critical |
529
- | Major Version Behind | 0 | 1-2 | >2 |
292
+ > Read `references/quality-gate.md` for the full mode-specific weighted checklists, score grades, depth-level table, forbidden-patterns table, and quality thresholds (code/deps).
530
293
 
531
294
  ---
532
295
 
@@ -0,0 +1,188 @@
1
+ # Analyze Output Templates — Full Reference
2
+
3
+ > Loaded by vibe.analyze SKILL.md for the Mode 1–4 output formats, the Mode 1 Next Steps decision tables, the Mode 1 stack directory mapping, and the Mode 2 document-type table.
4
+
5
+ ## Mode 1: Project Structure — Stack Directory Mapping
6
+
7
+ **Backend:**
8
+ - FastAPI/Django: `app/api/`, `app/services/`, `app/models/`
9
+ - Express/NestJS: `src/controllers/`, `src/services/`, `src/models/`
10
+
11
+ **Frontend:**
12
+ - React/Next.js: `src/components/`, `src/pages/`, `src/hooks/`
13
+ - Flutter: `lib/screens/`, `lib/services/`, `lib/providers/`
14
+
15
+ ## Mode 1: Scale for Large Projects (6+ related files) — Additional Agent Prompts
16
+
17
+ ```text
18
+ Agent(subagent_type="Explore", model="haiku",
19
+ prompt="Find all test files related to [FEATURE]. Identify tested vs untested paths.")
20
+
21
+ Agent(subagent_type="Explore", model="haiku",
22
+ prompt="Analyze [FEATURE] configuration, environment variables, and external integrations.")
23
+ ```
24
+
25
+ ## Mode 1: Feature/Module Analysis — Output
26
+
27
+ ```markdown
28
+ ## [feature-name] Analysis Results
29
+
30
+ ### Overview
31
+ - **Feature**: [one-line summary]
32
+ - **Status**: [Complete / In progress / Not implemented]
33
+ - **Files**: N related files
34
+
35
+ ### Structure
36
+
37
+ #### API Endpoints
38
+ | Method | Path | Description | Auth |
39
+ |--------|------|-------------|------|
40
+ | POST | /api/v1/auth/login | User login | None |
41
+
42
+ #### Core Services
43
+ - `auth_service.py`: Authentication logic
44
+ - `login()`: Processes login
45
+ - `verify_token()`: Validates JWT
46
+
47
+ #### Data Models
48
+ - `User`: User table
49
+ - Key fields: id, email, password_hash
50
+ - Relationships: Session (1:N)
51
+
52
+ ### Reference Files
53
+ - src/api/auth/router.py:L10-50
54
+ - src/services/auth_service.py:L1-100
55
+ ```
56
+
57
+ ## Mode 1: Next Steps — Decision Tables
58
+
59
+ After analysis, suggest mode-specific follow-up actions:
60
+
61
+ **After code/feature analysis:**
62
+
63
+ | Task Scope | Approach |
64
+ |------------|----------|
65
+ | Simple fix (1-2 files) | Plan Mode |
66
+ | Complex feature (3+ files) | `/vibe.spec` |
67
+
68
+ **After document analysis:**
69
+
70
+ | Goal | Approach |
71
+ |------|----------|
72
+ | Apply findings to project | `/vibe.spec "feature-name"` |
73
+ | Derive improvement direction | Plan Mode |
74
+ | Compare with another source | `/vibe.analyze [other target]` |
75
+
76
+ **After website analysis:**
77
+
78
+ | Goal | Approach |
79
+ |------|----------|
80
+ | Build similar product | `/vibe.spec` |
81
+ | Improve existing UI | `/vibe.figma` |
82
+ | Compare with another site | `/vibe.analyze [other URL]` |
83
+
84
+ ## Mode 2: Classify Document Type
85
+
86
+ | Type | Analysis Focus |
87
+ |------|---------------|
88
+ | Technical spec | API definitions, data models, sequence diagrams |
89
+ | Presentation/slides | Key claims, frameworks, case studies |
90
+ | PRD/requirements | User stories, acceptance criteria, scope |
91
+ | Business document | Strategy, decision points, action items |
92
+ | Research/academic | Methodology, conclusions, applicability |
93
+
94
+ ## Mode 2: Document Analysis — Output
95
+
96
+ ```markdown
97
+ ## [Document Name] Analysis
98
+
99
+ ### Overview
100
+ - **Type**: [Presentation / Technical spec / PRD / ...]
101
+ - **Topic**: [one-line summary]
102
+ - **Pages/Sections**: N
103
+ - **Audience**: [Developers / PMs / Executives / ...]
104
+
105
+ ### Key Content
106
+ 1. **[Concept 1]**: Description
107
+ 2. **[Concept 2]**: Description
108
+
109
+ ### Frameworks/Models (if any)
110
+ - [Systematic structure presented in the document]
111
+
112
+ ### Project Relevance
113
+ | Recommendation | Current State | Gap |
114
+ |----------------|---------------|-----|
115
+ | ... | ... | ... |
116
+
117
+ ### Key Insights
118
+ - [Most important takeaway]
119
+
120
+ ### Suggested Actions
121
+ 1. ...
122
+ ```
123
+
124
+ ## Mode 3: Website Analysis — Output
125
+
126
+ ```markdown
127
+ ## [URL] Analysis
128
+
129
+ ### Overview
130
+ - **Site type**: [SaaS / E-commerce / Portfolio / ...]
131
+ - **Tech stack**: [Next.js, Tailwind, ...]
132
+ - **Overall score**: N/100
133
+
134
+ ### Technical Analysis
135
+ | Area | Detection | Details |
136
+ |------|-----------|---------|
137
+ | Framework | React/Next.js | SSR enabled |
138
+ | CSS | Tailwind CSS | v3.4 |
139
+
140
+ ### UX/UI Analysis
141
+ - **Navigation**: [assessment]
142
+ - **CTA placement**: [assessment]
143
+ - **Responsive design**: [assessment]
144
+
145
+ ### SEO Analysis (N/100)
146
+ | Element | Status | Recommendation |
147
+ |---------|--------|----------------|
148
+ | Title | Present | Appropriate length |
149
+ | Meta Description | Missing | Add description |
150
+
151
+ ### Accessibility (WCAG 2.1 AA)
152
+ - **Semantic HTML**: [assessment]
153
+ - **Keyboard navigation**: [assessment]
154
+ - **Screen reader support**: [assessment]
155
+
156
+ ### Improvement Suggestions
157
+ 1. [highest priority]
158
+ 2. ...
159
+ ```
160
+
161
+ ## Mode 4: Project Quality Analysis — Report
162
+
163
+ Save to `.vibe/reports/analysis-{date}.md`:
164
+
165
+ ```markdown
166
+ # Project Analysis Report
167
+
168
+ ## Overview
169
+ - Analysis date: YYYY-MM-DD HH:MM
170
+ - Scope: Full / Code / Deps / Arch
171
+
172
+ ## Code Quality (N/100)
173
+ - Average complexity: N (good/warning/critical)
174
+ - High complexity files: N
175
+
176
+ ## Dependencies (N/100)
177
+ - Total packages: N
178
+ - Updates needed: N
179
+ - Security issues: N
180
+
181
+ ## Architecture (N/100)
182
+ - Circular dependencies: N found
183
+ - Layer violations: N
184
+
185
+ ## Improvement Suggestions
186
+ 1. ...
187
+ 2. ...
188
+ ```
@@ -0,0 +1,93 @@
1
+ # Analyze Quality Gate — Full Reference
2
+
3
+ > Loaded by vibe.analyze SKILL.md for the mode-specific weighted checklists, score calculation, depth levels, forbidden-patterns table, and quality thresholds.
4
+
5
+ ### Mode-Specific Checklists
6
+
7
+ **Code/Feature Analysis:**
8
+
9
+ | Category | Check Item | Weight |
10
+ |----------|------------|--------|
11
+ | Completeness | All related files identified | 20% |
12
+ | Completeness | All API endpoints documented | 15% |
13
+ | Completeness | All data models mapped | 15% |
14
+ | Accuracy | File paths verified to exist | 10% |
15
+ | Accuracy | Line numbers accurate | 10% |
16
+ | Depth | Business logic explained | 10% |
17
+ | Depth | Dependencies mapped | 10% |
18
+ | Actionability | Next steps clearly defined | 10% |
19
+
20
+ **Document Analysis:**
21
+
22
+ | Category | Check Item | Weight |
23
+ |----------|------------|--------|
24
+ | Completeness | Full document read | 20% |
25
+ | Completeness | All key concepts extracted | 20% |
26
+ | Structure | Section structure identified | 15% |
27
+ | Depth | Project relevance analyzed | 15% |
28
+ | Depth | Gap analysis performed | 15% |
29
+ | Actionability | Specific follow-up actions suggested | 15% |
30
+
31
+ **Website Analysis:**
32
+
33
+ | Category | Check Item | Weight |
34
+ |----------|------------|--------|
35
+ | Completeness | HTML fetched and parsed | 15% |
36
+ | Tech | Tech stack identified | 15% |
37
+ | UX | UX/UI patterns analyzed | 15% |
38
+ | SEO | SEO elements inspected | 15% |
39
+ | A11y | Accessibility checked | 15% |
40
+ | Performance | Performance hints analyzed | 10% |
41
+ | Actionability | Improvements suggested | 15% |
42
+
43
+ ### Score Calculation
44
+
45
+ ```
46
+ Score = sum(checked items * weight) / 100
47
+
48
+ Grades:
49
+ - 95-100: EXCELLENT — comprehensive analysis
50
+ - 90-94: GOOD — minor gaps, additional exploration recommended
51
+ - 80-89: FAIR — needs deeper exploration
52
+ - 0-79: POOR — incomplete, re-analyze
53
+ ```
54
+
55
+ ### Depth Levels
56
+
57
+ | Level | Scope | Output |
58
+ |-------|-------|--------|
59
+ | L1: Surface | File names, basic structure | File list |
60
+ | L2: Structure | Functions, classes, imports | Structure map |
61
+ | L3: Logic | Business logic, data flow | Flow analysis |
62
+ | L4: Deep | Edge cases, dependencies, risks | Full analysis |
63
+
64
+ **Minimum**: L3 for feature analysis, L2 for project overview.
65
+
66
+ ### Forbidden Patterns
67
+
68
+ | Pattern | Problem | Fix |
69
+ |---------|---------|-----|
70
+ | "and more..." | Incomplete | List all items |
71
+ | "etc." | Vague | Be specific |
72
+ | "related files" without paths | Missing detail | Provide file paths |
73
+ | Missing line numbers | Hard to navigate | Use `:L10-50` format |
74
+ | No auth info on endpoints | Security gap | Always specify auth |
75
+
76
+ ### Quality Thresholds
77
+
78
+ **Code (`--code`):**
79
+
80
+ | Metric | Good | Warning | Critical |
81
+ |--------|------|---------|----------|
82
+ | Avg Complexity | ≤10 | 11-15 | >15 |
83
+ | Max Function Length | ≤30 | 31-50 | >50 |
84
+ | High Complexity Files | 0 | 1-3 | >3 |
85
+ | Circular Dependencies | 0 | 1 | >1 |
86
+
87
+ **Dependencies (`--deps`):**
88
+
89
+ | Metric | Good | Warning | Critical |
90
+ |--------|------|---------|----------|
91
+ | Outdated Packages | 0-3 | 4-10 | >10 |
92
+ | Security Vulnerabilities | 0 | 1-2 (low) | Any high/critical |
93
+ | Major Version Behind | 0 | 1-2 | >2 |