@su-record/vibe 2.16.3 → 3.0.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 (353) hide show
  1. package/.env.example +15 -0
  2. package/CLAUDE.md +8 -8
  3. package/README.en.md +46 -29
  4. package/README.md +41 -24
  5. package/agents/acceptance-tester.md +56 -0
  6. package/agents/architect.md +25 -67
  7. package/agents/build-error-resolver.md +28 -97
  8. package/agents/code-reviewer.md +89 -0
  9. package/agents/diagrammer.md +34 -165
  10. package/agents/documenter.md +43 -0
  11. package/agents/e2e-tester.md +46 -277
  12. package/agents/event/event-ops.md +54 -77
  13. package/agents/event/event-planner.md +63 -0
  14. package/agents/figma/figma-engineer.md +76 -0
  15. package/agents/implementer.md +26 -41
  16. package/agents/security-reviewer.md +56 -0
  17. package/agents/tester.md +37 -33
  18. package/agents/ui/design-reviewer.md +62 -0
  19. package/agents/ui/design-system-gen.md +63 -0
  20. package/dist/__tests__/agent-model-sync.test.d.ts +2 -0
  21. package/dist/__tests__/agent-model-sync.test.d.ts.map +1 -0
  22. package/dist/__tests__/agent-model-sync.test.js +71 -0
  23. package/dist/__tests__/agent-model-sync.test.js.map +1 -0
  24. package/dist/cli/auth.d.ts.map +1 -1
  25. package/dist/cli/auth.js +8 -1
  26. package/dist/cli/auth.js.map +1 -1
  27. package/dist/cli/commands/index.d.ts +1 -0
  28. package/dist/cli/commands/index.d.ts.map +1 -1
  29. package/dist/cli/commands/index.js +1 -0
  30. package/dist/cli/commands/index.js.map +1 -1
  31. package/dist/cli/commands/info.d.ts.map +1 -1
  32. package/dist/cli/commands/info.js +2 -0
  33. package/dist/cli/commands/info.js.map +1 -1
  34. package/dist/cli/commands/llm.d.ts +11 -0
  35. package/dist/cli/commands/llm.d.ts.map +1 -0
  36. package/dist/cli/commands/llm.js +62 -0
  37. package/dist/cli/commands/llm.js.map +1 -0
  38. package/dist/cli/commands/remove.d.ts.map +1 -1
  39. package/dist/cli/commands/remove.js +8 -10
  40. package/dist/cli/commands/remove.js.map +1 -1
  41. package/dist/cli/commands/setup.d.ts.map +1 -1
  42. package/dist/cli/commands/setup.js +35 -1
  43. package/dist/cli/commands/setup.js.map +1 -1
  44. package/dist/cli/index.d.ts +0 -4
  45. package/dist/cli/index.d.ts.map +1 -1
  46. package/dist/cli/index.js +59 -6
  47. package/dist/cli/index.js.map +1 -1
  48. package/dist/cli/llm/config.d.ts.map +1 -1
  49. package/dist/cli/llm/config.js +7 -0
  50. package/dist/cli/llm/config.js.map +1 -1
  51. package/dist/cli/llm/index.d.ts +1 -0
  52. package/dist/cli/llm/index.d.ts.map +1 -1
  53. package/dist/cli/llm/index.js +1 -0
  54. package/dist/cli/llm/index.js.map +1 -1
  55. package/dist/cli/llm/model-refresh.d.ts +29 -0
  56. package/dist/cli/llm/model-refresh.d.ts.map +1 -0
  57. package/dist/cli/llm/model-refresh.js +139 -0
  58. package/dist/cli/llm/model-refresh.js.map +1 -0
  59. package/dist/cli/llm/zai-commands.d.ts +15 -0
  60. package/dist/cli/llm/zai-commands.d.ts.map +1 -0
  61. package/dist/cli/llm/zai-commands.js +64 -0
  62. package/dist/cli/llm/zai-commands.js.map +1 -0
  63. package/dist/cli/postinstall/claude-agents.d.ts.map +1 -1
  64. package/dist/cli/postinstall/claude-agents.js +16 -77
  65. package/dist/cli/postinstall/claude-agents.js.map +1 -1
  66. package/dist/cli/postinstall/constants.d.ts.map +1 -1
  67. package/dist/cli/postinstall/constants.js +81 -296
  68. package/dist/cli/postinstall/constants.js.map +1 -1
  69. package/dist/cli/postinstall/cursor-agents.d.ts +5 -0
  70. package/dist/cli/postinstall/cursor-agents.d.ts.map +1 -1
  71. package/dist/cli/postinstall/cursor-agents.js +26 -68
  72. package/dist/cli/postinstall/cursor-agents.js.map +1 -1
  73. package/dist/cli/postinstall/cursor-skills.d.ts.map +1 -1
  74. package/dist/cli/postinstall/cursor-skills.js +26 -30
  75. package/dist/cli/postinstall/cursor-skills.js.map +1 -1
  76. package/dist/cli/postinstall/main.d.ts.map +1 -1
  77. package/dist/cli/postinstall/main.js +0 -2
  78. package/dist/cli/postinstall/main.js.map +1 -1
  79. package/dist/cli/setup/Provisioner.d.ts.map +1 -1
  80. package/dist/cli/setup/Provisioner.js +19 -21
  81. package/dist/cli/setup/Provisioner.js.map +1 -1
  82. package/dist/cli/types.d.ts +15 -0
  83. package/dist/cli/types.d.ts.map +1 -1
  84. package/dist/cli/utils.d.ts +4 -1
  85. package/dist/cli/utils.d.ts.map +1 -1
  86. package/dist/cli/utils.js +4 -1
  87. package/dist/cli/utils.js.map +1 -1
  88. package/dist/infra/lib/FrameworkDetector.js +4 -4
  89. package/dist/infra/lib/FrameworkDetector.js.map +1 -1
  90. package/dist/infra/lib/OrchestrateWorkflow.js +2 -2
  91. package/dist/infra/lib/OrchestrateWorkflow.js.map +1 -1
  92. package/dist/infra/lib/browser/launch.js +1 -1
  93. package/dist/infra/lib/browser/launch.js.map +1 -1
  94. package/dist/infra/lib/browser/types.d.ts +1 -1
  95. package/dist/infra/lib/browser/types.js +1 -1
  96. package/dist/infra/lib/config/GlobalConfigManager.d.ts +2 -0
  97. package/dist/infra/lib/config/GlobalConfigManager.d.ts.map +1 -1
  98. package/dist/infra/lib/config/GlobalConfigManager.js +6 -0
  99. package/dist/infra/lib/config/GlobalConfigManager.js.map +1 -1
  100. package/dist/infra/lib/constants.d.ts +1 -1
  101. package/dist/infra/lib/constants.d.ts.map +1 -1
  102. package/dist/infra/lib/constants.js +4 -5
  103. package/dist/infra/lib/constants.js.map +1 -1
  104. package/dist/infra/lib/evolution/__tests__/integration.test.js +7 -7
  105. package/dist/infra/lib/evolution/__tests__/integration.test.js.map +1 -1
  106. package/dist/infra/lib/llm-availability.d.ts +4 -0
  107. package/dist/infra/lib/llm-availability.d.ts.map +1 -1
  108. package/dist/infra/lib/llm-availability.js +9 -1
  109. package/dist/infra/lib/llm-availability.js.map +1 -1
  110. package/dist/infra/lib/memory/index.d.ts +0 -2
  111. package/dist/infra/lib/memory/index.d.ts.map +1 -1
  112. package/dist/infra/lib/memory/index.js +0 -2
  113. package/dist/infra/lib/memory/index.js.map +1 -1
  114. package/dist/infra/lib/telemetry/SkillTelemetry.test.js +1 -1
  115. package/dist/infra/lib/telemetry/SkillTelemetry.test.js.map +1 -1
  116. package/dist/infra/lib/zai/client.d.ts +30 -0
  117. package/dist/infra/lib/zai/client.d.ts.map +1 -0
  118. package/dist/infra/lib/zai/client.js +124 -0
  119. package/dist/infra/lib/zai/client.js.map +1 -0
  120. package/dist/infra/lib/zai/index.d.ts +11 -0
  121. package/dist/infra/lib/zai/index.d.ts.map +1 -0
  122. package/dist/infra/lib/zai/index.js +10 -0
  123. package/dist/infra/lib/zai/index.js.map +1 -0
  124. package/dist/infra/lib/zai/orchestration.d.ts +15 -0
  125. package/dist/infra/lib/zai/orchestration.d.ts.map +1 -0
  126. package/dist/infra/lib/zai/orchestration.js +54 -0
  127. package/dist/infra/lib/zai/orchestration.js.map +1 -0
  128. package/dist/infra/lib/zai/types.d.ts +40 -0
  129. package/dist/infra/lib/zai/types.d.ts.map +1 -0
  130. package/dist/infra/lib/zai/types.js +5 -0
  131. package/dist/infra/lib/zai/types.js.map +1 -0
  132. package/dist/infra/orchestrator/SmartRouter.d.ts.map +1 -1
  133. package/dist/infra/orchestrator/SmartRouter.js +16 -34
  134. package/dist/infra/orchestrator/SmartRouter.js.map +1 -1
  135. package/dist/infra/orchestrator/index.d.ts +1 -0
  136. package/dist/infra/orchestrator/index.d.ts.map +1 -1
  137. package/dist/infra/orchestrator/index.js +11 -9
  138. package/dist/infra/orchestrator/index.js.map +1 -1
  139. package/dist/infra/orchestrator/types.d.ts +32 -9
  140. package/dist/infra/orchestrator/types.d.ts.map +1 -1
  141. package/dist/infra/orchestrator/types.js +68 -37
  142. package/dist/infra/orchestrator/types.js.map +1 -1
  143. package/dist/infra/orchestrator/types.test.d.ts +2 -0
  144. package/dist/infra/orchestrator/types.test.d.ts.map +1 -0
  145. package/dist/infra/orchestrator/types.test.js +57 -0
  146. package/dist/infra/orchestrator/types.test.js.map +1 -0
  147. package/dist/tools/index.d.ts +0 -4
  148. package/dist/tools/index.d.ts.map +1 -1
  149. package/dist/tools/index.js +0 -4
  150. package/dist/tools/index.js.map +1 -1
  151. package/dist/tools/memory/autoSaveContext.d.ts +0 -1
  152. package/dist/tools/memory/autoSaveContext.d.ts.map +1 -1
  153. package/dist/tools/memory/autoSaveContext.js +13 -27
  154. package/dist/tools/memory/autoSaveContext.js.map +1 -1
  155. package/hooks/scripts/__tests__/code-check-detectors.test.js +2 -2
  156. package/hooks/scripts/__tests__/run-ledger.test.js +1 -1
  157. package/hooks/scripts/__tests__/scope-from-spec.test.js +12 -12
  158. package/hooks/scripts/__tests__/step-counter.test.js +1 -1
  159. package/hooks/scripts/code-check.js +16 -203
  160. package/hooks/scripts/context-save.js +0 -11
  161. package/hooks/scripts/lib/scope-from-spec.js +9 -6
  162. package/hooks/scripts/llm-orchestrate.js +49 -0
  163. package/hooks/scripts/post-edit-dispatcher.js +1 -1
  164. package/hooks/scripts/prompt-dispatcher.js +7 -18
  165. package/hooks/scripts/session-start.js +25 -35
  166. package/package.json +4 -4
  167. package/skills/agents-md/SKILL.md +62 -15
  168. package/skills/arch-guard/SKILL.md +1 -1
  169. package/skills/brand-assets/SKILL.md +2 -2
  170. package/skills/capability-loop/SKILL.md +1 -1
  171. package/skills/chub-usage/SKILL.md +1 -1
  172. package/skills/commerce-patterns/SKILL.md +2 -2
  173. package/skills/commit-push-pr/SKILL.md +0 -1
  174. package/skills/context7-usage/SKILL.md +1 -1
  175. package/skills/create-prd/agents/edge-case-finder.md +4 -4
  176. package/skills/create-prd/agents/prioritizer.md +4 -4
  177. package/skills/create-prd/agents/requirements-writer.md +3 -3
  178. package/skills/create-prd/agents/researcher.md +3 -3
  179. package/skills/create-prd/agents/reviewer.md +3 -3
  180. package/skills/create-prd/orchestrator.md +2 -0
  181. package/skills/design-refine/SKILL.md +140 -0
  182. package/skills/{design-polish → design-refine}/templates/polish-report.md +1 -1
  183. package/skills/{design-normalize → design-refine}/templates/token-audit.md +3 -3
  184. package/skills/design-review/SKILL.md +143 -0
  185. package/skills/{design-audit → design-review}/agents/a11y-auditor.md +1 -1
  186. package/skills/{design-audit → design-review}/agents/performance-auditor.md +1 -1
  187. package/skills/{design-audit → design-review}/agents/responsive-auditor.md +1 -1
  188. package/skills/{design-audit → design-review}/agents/slop-detector.md +1 -1
  189. package/skills/{design-audit → design-review}/frameworks/core-web-vitals.md +1 -1
  190. package/skills/{design-audit → design-review}/frameworks/wcag-checklist.md +1 -1
  191. package/skills/{design-audit → design-review}/orchestrator.md +5 -3
  192. package/skills/{design-critique → design-review}/templates/critique-report.md +3 -3
  193. package/skills/{design-audit → design-review}/templates/report.md +3 -3
  194. package/skills/design-teach/SKILL.md +11 -11
  195. package/skills/docs/SKILL.md +14 -16
  196. package/skills/e2e-commerce/SKILL.md +1 -1
  197. package/skills/event-comms/SKILL.md +1 -1
  198. package/skills/event-ops/SKILL.md +2 -2
  199. package/skills/event-planning/SKILL.md +1 -1
  200. package/skills/exec-plan/SKILL.md +2 -2
  201. package/skills/exec-plan/orchestrator.md +2 -0
  202. package/skills/figma/SKILL.md +240 -148
  203. package/skills/figma/rubrics/css-mapping.md +125 -0
  204. package/skills/git-worktree/SKILL.md +1 -1
  205. package/skills/handoff/SKILL.md +1 -1
  206. package/skills/parallel-research/SKILL.md +14 -28
  207. package/skills/parallel-research/orchestrator.md +2 -0
  208. package/skills/priority-todos/SKILL.md +1 -1
  209. package/skills/regress/SKILL.md +11 -0
  210. package/skills/restraint/SKILL.md +72 -0
  211. package/skills/seo-checklist/SKILL.md +2 -2
  212. package/skills/spec/SKILL.md +65 -836
  213. package/skills/test/SKILL.md +3 -3
  214. package/skills/tool-fallback/SKILL.md +2 -2
  215. package/skills/vercel-react-best-practices/SKILL.md +1 -1
  216. package/skills/vibe/SKILL.md +20 -35
  217. package/skills/vibe.analyze/SKILL.md +7 -9
  218. package/skills/vibe.docs/SKILL.md +1 -1
  219. package/skills/vibe.event/SKILL.md +27 -27
  220. package/skills/vibe.figma/SKILL.md +14 -18
  221. package/skills/vibe.harness/SKILL.md +5 -5
  222. package/skills/vibe.llm/SKILL.md +50 -0
  223. package/skills/vibe.reason/SKILL.md +0 -2
  224. package/skills/vibe.review/SKILL.md +45 -49
  225. package/skills/vibe.run/SKILL.md +2 -5
  226. package/skills/vibe.run/references/parallel-agents.md +33 -98
  227. package/skills/vibe.spec/SKILL.md +38 -535
  228. package/skills/vibe.utils/SKILL.md +3 -3
  229. package/skills/vibe.verify/SKILL.md +70 -542
  230. package/skills/video-production/SKILL.md +1 -1
  231. package/vibe/rules/orchestrator-contract.md +57 -0
  232. package/vibe/rules/quality/performance.md +1 -1
  233. package/vibe/templates/claudemd-template.md +1 -1
  234. package/vibe/templates/spec-template.md +35 -185
  235. package/agents/architect-low.md +0 -41
  236. package/agents/architect-medium.md +0 -59
  237. package/agents/compounder.md +0 -261
  238. package/agents/docs/api-documenter.md +0 -99
  239. package/agents/docs/changelog-writer.md +0 -93
  240. package/agents/event/event-comms.md +0 -78
  241. package/agents/event/event-content.md +0 -68
  242. package/agents/event/event-image.md +0 -95
  243. package/agents/event/event-scheduler.md +0 -69
  244. package/agents/event/event-speaker.md +0 -86
  245. package/agents/explorer-low.md +0 -42
  246. package/agents/explorer-medium.md +0 -59
  247. package/agents/explorer.md +0 -48
  248. package/agents/figma/figma-analyst.md +0 -52
  249. package/agents/figma/figma-architect.md +0 -112
  250. package/agents/figma/figma-auditor.md +0 -82
  251. package/agents/figma/figma-builder.md +0 -100
  252. package/agents/implementer-low.md +0 -43
  253. package/agents/implementer-medium.md +0 -52
  254. package/agents/junior-mentor.md +0 -141
  255. package/agents/planning/requirements-analyst.md +0 -84
  256. package/agents/planning/ux-advisor.md +0 -83
  257. package/agents/qa/acceptance-tester.md +0 -86
  258. package/agents/qa/edge-case-finder.md +0 -93
  259. package/agents/qa/qa-coordinator.md +0 -131
  260. package/agents/refactor-cleaner.md +0 -143
  261. package/agents/research/best-practices.md +0 -199
  262. package/agents/research/codebase-patterns.md +0 -157
  263. package/agents/research/framework-docs.md +0 -188
  264. package/agents/research/security-advisory.md +0 -213
  265. package/agents/review/architecture-reviewer.md +0 -107
  266. package/agents/review/complexity-reviewer.md +0 -116
  267. package/agents/review/data-integrity-reviewer.md +0 -88
  268. package/agents/review/git-history-reviewer.md +0 -103
  269. package/agents/review/performance-reviewer.md +0 -86
  270. package/agents/review/python-reviewer.md +0 -150
  271. package/agents/review/rails-reviewer.md +0 -139
  272. package/agents/review/react-reviewer.md +0 -144
  273. package/agents/review/security-reviewer.md +0 -80
  274. package/agents/review/simplicity-reviewer.md +0 -140
  275. package/agents/review/test-coverage-reviewer.md +0 -116
  276. package/agents/review/typescript-reviewer.md +0 -127
  277. package/agents/searcher.md +0 -54
  278. package/agents/simplifier.md +0 -120
  279. package/agents/teams/debug-team.md +0 -70
  280. package/agents/teams/dev-team.md +0 -88
  281. package/agents/teams/docs-team.md +0 -80
  282. package/agents/teams/figma-team.md +0 -85
  283. package/agents/teams/fullstack-team.md +0 -83
  284. package/agents/teams/lite-team.md +0 -69
  285. package/agents/teams/migration-team.md +0 -78
  286. package/agents/teams/refactor-team.md +0 -94
  287. package/agents/teams/research-team.md +0 -86
  288. package/agents/teams/review-debate-team.md +0 -125
  289. package/agents/teams/security-team.md +0 -81
  290. package/agents/ui/ui-a11y-auditor.md +0 -93
  291. package/agents/ui/ui-antipattern-detector.md +0 -102
  292. package/agents/ui/ui-dataviz-advisor.md +0 -69
  293. package/agents/ui/ui-design-system-gen.md +0 -57
  294. package/agents/ui/ui-industry-analyzer.md +0 -49
  295. package/agents/ui/ui-layout-architect.md +0 -65
  296. package/agents/ui/ui-stack-implementer.md +0 -68
  297. package/agents/ui/ux-compliance-reviewer.md +0 -81
  298. package/agents/ui-previewer.md +0 -258
  299. package/hooks/scripts/__tests__/keyword-detector.test.js +0 -242
  300. package/hooks/scripts/keyword-detector.js +0 -226
  301. package/skills/characterization-test/SKILL.md +0 -209
  302. package/skills/characterization-test/agents/behavior-capturer.md +0 -50
  303. package/skills/characterization-test/agents/coverage-checker.md +0 -54
  304. package/skills/characterization-test/agents/reporter.md +0 -50
  305. package/skills/characterization-test/agents/test-writer.md +0 -49
  306. package/skills/characterization-test/rubrics/coverage-criteria.md +0 -53
  307. package/skills/characterization-test/templates/test-template.ts +0 -101
  308. package/skills/claude-md-guide/SKILL.md +0 -353
  309. package/skills/claude-md-guide/rubrics/anti-patterns.md +0 -88
  310. package/skills/design-audit/SKILL.md +0 -154
  311. package/skills/design-critique/SKILL.md +0 -140
  312. package/skills/design-distill/SKILL.md +0 -131
  313. package/skills/design-normalize/SKILL.md +0 -135
  314. package/skills/design-polish/SKILL.md +0 -132
  315. package/skills/figma-convert/SKILL.md +0 -236
  316. package/skills/figma-extract/SKILL.md +0 -242
  317. package/skills/interview/SKILL.md +0 -358
  318. package/skills/interview/checklists/api.md +0 -101
  319. package/skills/interview/checklists/feature.md +0 -88
  320. package/skills/interview/checklists/library.md +0 -95
  321. package/skills/interview/checklists/mobile.md +0 -89
  322. package/skills/interview/checklists/webapp.md +0 -97
  323. package/skills/interview/checklists/website.md +0 -99
  324. package/skills/plan/SKILL.md +0 -254
  325. package/skills/rob-pike/SKILL.md +0 -66
  326. package/skills/spec/references/askuser-examples.md +0 -57
  327. package/skills/spec/references/example-session.md +0 -87
  328. package/skills/spec/references/templates.md +0 -194
  329. package/skills/spec-review/SKILL.md +0 -725
  330. package/skills/systematic-debugging/SKILL.md +0 -142
  331. package/skills/techdebt/SKILL.md +0 -126
  332. package/skills/techdebt/agents/analyzer.md +0 -50
  333. package/skills/techdebt/agents/fixer.md +0 -41
  334. package/skills/techdebt/agents/reviewer.md +0 -47
  335. package/skills/techdebt/agents/scanner.md +0 -44
  336. package/skills/techdebt/orchestrator.md +0 -70
  337. package/skills/techdebt/rubrics/severity.md +0 -51
  338. package/skills/techdebt/scripts/scan.js +0 -90
  339. package/skills/techdebt/templates/report.md +0 -86
  340. package/skills/typescript-advanced-types/SKILL.md +0 -68
  341. package/skills/typescript-advanced-types/rubrics/type-patterns.md +0 -109
  342. package/skills/yagni-ladder/SKILL.md +0 -90
  343. /package/skills/{claude-md-guide → agents-md}/templates/claude-md.md +0 -0
  344. /package/skills/{design-polish → design-refine}/rubrics/polish-checklist.md +0 -0
  345. /package/skills/{design-normalize → design-refine}/rubrics/token-naming.md +0 -0
  346. /package/skills/{design-distill → design-refine}/templates/design-system.md +0 -0
  347. /package/skills/{design-audit → design-review}/agents/scorer.md +0 -0
  348. /package/skills/{design-audit → design-review}/rubrics/ai-slop-patterns.md +0 -0
  349. /package/skills/{design-audit → design-review}/rubrics/scoring.md +0 -0
  350. /package/skills/{design-critique → design-review}/rubrics/ux-heuristics.md +0 -0
  351. /package/skills/{figma-convert → figma}/rubrics/conversion-rules.md +0 -0
  352. /package/skills/{figma-extract → figma}/rubrics/image-rules.md +0 -0
  353. /package/skills/{figma-convert → figma}/templates/component.md +0 -0
@@ -1,143 +0,0 @@
1
- # Refactor Cleaner Agent
2
-
3
- Dead code detection and safe removal specialist.
4
-
5
- ## Role
6
-
7
- - Detect unused code (exports, files, dependencies)
8
- - Safe removal with audit trail
9
- - Maintain DELETION_LOG.md
10
-
11
- ## Model
12
-
13
- **Sonnet 4** - Thorough analysis with safe execution
14
-
15
- ## Analysis Tools
16
-
17
- ### 3-Tool Analysis Strategy
18
-
19
- 1. **knip** - Unused exports, files, dependencies
20
- ```bash
21
- npx knip --reporter json
22
- ```
23
-
24
- 2. **depcheck** - Unused npm packages
25
- ```bash
26
- npx depcheck --json
27
- ```
28
-
29
- 3. **ts-prune** - Unused TypeScript exports
30
- ```bash
31
- npx ts-prune
32
- ```
33
-
34
- 4. **Manual grep verification** - Confirm no dynamic usage
35
-
36
- ## Safety Protocol
37
-
38
- | Risk Level | Category | Action |
39
- |------------|----------|--------|
40
- | SAFE | Unused private functions | Delete immediately |
41
- | SAFE | Unused local variables | Delete immediately |
42
- | SAFE | Unused dependencies | Remove from package.json |
43
- | CAREFUL | Unused exports | Verify no dynamic imports |
44
- | CAREFUL | Unused files | Check for lazy loading |
45
- | RISKY | Public API exports | Do NOT delete without explicit approval |
46
- | RISKY | Shared utilities | Do NOT delete without explicit approval |
47
-
48
- ## Usage
49
-
50
- Call via Task tool:
51
- ```
52
- Task(model: "sonnet", prompt: "Find and remove dead code, maintain DELETION_LOG")
53
- ```
54
-
55
- ## Process
56
-
57
- 1. Run all 3 analysis tools
58
- 2. Cross-reference results
59
- 3. Categorize by risk level
60
- 4. For SAFE items: delete and log
61
- 5. For CAREFUL items: grep verify then delete
62
- 6. For RISKY items: report only, don't delete
63
- 7. Update DELETION_LOG.md
64
-
65
- ## DELETION_LOG Format
66
-
67
- Create/update `.vibe/DELETION_LOG.md`:
68
-
69
- ```markdown
70
- # Deletion Log
71
-
72
- ## 2026-01-20
73
-
74
- ### Removed Files
75
- - `src/utils/deprecated.ts` - No imports found
76
- - `src/components/OldButton.tsx` - Replaced by NewButton
77
-
78
- ### Removed Exports
79
- - `src/api.ts:fetchLegacy` - No usage in codebase
80
- - `src/helpers.ts:formatOld` - Replaced by formatNew
81
-
82
- ### Removed Dependencies
83
- - `lodash` - Only used for `_.get`, replaced with optional chaining
84
- - `moment` - Replaced with date-fns
85
-
86
- ### Verification
87
- - grep search: 0 matches
88
- - knip: clean
89
- - build: PASS
90
- - tests: PASS
91
- ```
92
-
93
- ## Output Format
94
-
95
- ```markdown
96
- ## Refactor Clean Results
97
-
98
- ### Analysis Summary
99
- - Files analyzed: 142
100
- - Unused items found: 23
101
- - Safe to remove: 18
102
- - Needs review: 5
103
-
104
- ### Removed (SAFE)
105
- 1. `src/old/legacy.ts` - Entire file unused
106
- 2. `src/utils.ts:deprecatedHelper` - No references
107
- 3. `package.json:lodash` - Unused dependency
108
-
109
- ### Flagged for Review (CAREFUL/RISKY)
110
- 1. `src/api.ts:internalFetch` - May be dynamically imported
111
- 2. `src/types/index.ts:LegacyUser` - Exported from package
112
-
113
- ### DELETION_LOG Updated
114
- - Added 18 entries
115
- - Location: .vibe/DELETION_LOG.md
116
- ```
117
-
118
- ## Anti-Patterns
119
-
120
- ```typescript
121
- // DON'T: Delete without verification
122
- // This might be dynamically imported
123
- export function lazyLoad() { ... } // grep shows 0 matches but...
124
-
125
- // Check for dynamic imports:
126
- const module = await import(`./modules/${name}`)
127
- module.lazyLoad() // Won't show in static grep!
128
-
129
- // DON'T: Delete public API
130
- // package.json exports this
131
- export function publicApi() { ... } // External packages may use this
132
-
133
- // DON'T: Delete shared utilities without checking all consumers
134
- // This might be used in other repos/packages
135
- export function sharedHelper() { ... }
136
- ```
137
-
138
- ## Rules Reference
139
-
140
- Must follow `~/.claude/vibe/rules/`:
141
-
142
- - `core/development-philosophy.md` - Surgical precision
143
- - `quality/checklist.md` - Verification requirements
@@ -1,199 +0,0 @@
1
- # Best Practices Research Agent
2
-
3
- <!-- Industry Best Practices Research Agent -->
4
-
5
- ## Role
6
-
7
- - Industry standards research
8
- - Best practices collection
9
- - Recommended pattern suggestions
10
- - Anti-pattern warnings
11
-
12
- ## Model
13
-
14
- **Haiku** (inherit) - Fast research
15
-
16
- ## ⚠️ CRITICAL: NO FILE CREATION
17
-
18
- **THIS AGENT MUST NEVER CREATE FILES.**
19
-
20
- - ❌ DO NOT use Write tool
21
- - ❌ DO NOT create any files in project root
22
- - ❌ DO NOT create *_RESEARCH.md or *_SUMMARY.md files
23
- - ✅ ONLY return research results as text output
24
- - ✅ Results will be merged into SPEC by core.spec command
25
-
26
- ## Usage
27
-
28
- Automatically called in parallel when `/vibe.spec` is executed
29
-
30
- ```
31
- Task(
32
- model: "haiku",
33
- subagent_type: "Explore",
34
- prompt: "Research best practices for [feature]. Include patterns, anti-patterns."
35
- )
36
- ```
37
-
38
- ## Research Areas
39
-
40
- ### By Domain
41
-
42
- ```
43
- Authentication:
44
- ├── OAuth 2.0 / OIDC
45
- ├── JWT best practices
46
- ├── Session management
47
- └── MFA implementation
48
-
49
- Payment:
50
- ├── PCI-DSS compliance
51
- ├── Idempotency keys
52
- ├── Retry strategies
53
- └── Webhook verification
54
-
55
- API Design:
56
- ├── REST conventions
57
- ├── GraphQL patterns
58
- ├── Versioning strategies
59
- └── Rate limiting
60
- ```
61
-
62
- ### By Framework
63
-
64
- ```
65
- React:
66
- ├── Component patterns (Compound, Render Props)
67
- ├── State management (Context, Zustand, Jotai)
68
- ├── Server Components
69
- └── Performance patterns
70
-
71
- Django/FastAPI:
72
- ├── Project structure
73
- ├── Async patterns
74
- ├── Testing strategies
75
- └── Security defaults
76
-
77
- Rails:
78
- ├── Rails Way conventions
79
- ├── Service objects
80
- ├── Background jobs
81
- └── Caching strategies
82
- ```
83
-
84
- ## Output Format
85
-
86
- ```markdown
87
- ## 📚 Best Practices Research
88
-
89
- ### Feature: [feature-name]
90
-
91
- ### Recommended Patterns
92
-
93
- 1. **Pattern: Repository Pattern**
94
- - Use case: Data access abstraction
95
- - Benefits: Testability, flexibility
96
- - Example:
97
- ```python
98
- class UserRepository:
99
- def find_by_id(self, id: int) -> User:
100
- ...
101
- ```
102
-
103
- 2. **Pattern: Service Layer**
104
- - Use case: Business logic encapsulation
105
- - Benefits: Thin controllers, reusability
106
-
107
- ### Anti-Patterns to Avoid
108
-
109
- 1. **Anti-pattern: God Object**
110
- - Problem: Single class doing everything
111
- - Solution: Split by responsibility
112
-
113
- 2. **Anti-pattern: Premature Optimization**
114
- - Problem: Optimizing before measuring
115
- - Solution: Measure first, optimize bottlenecks
116
-
117
- ### Industry Standards
118
-
119
- - OWASP Security Guidelines
120
- - 12-Factor App Methodology
121
- - REST API Design Guidelines
122
-
123
- ### Recommended Libraries
124
-
125
- | Purpose | Recommendation | Reason |
126
- |---------|---------------|--------|
127
- | Validation | Pydantic/Zod | Type-safe, fast |
128
- | Auth | NextAuth/Devise | Battle-tested |
129
- | Testing | Pytest/Jest | Community standard |
130
-
131
- ### References
132
-
133
- - [Article/Doc 1](url)
134
- - [Article/Doc 2](url)
135
- ```
136
-
137
- ## Multi-LLM Enhancement (Quality Assurance)
138
-
139
- **core = Quality Assurance Framework**
140
-
141
- Best practices research uses **3 perspectives in parallel** for comprehensive coverage:
142
-
143
- ```
144
- ┌─────────────────────────────────────────────────────────────┐
145
- │ PARALLEL BEST PRACTICES RESEARCH │
146
- ├─────────────────────────────────────────────────────────────┤
147
- │ Claude (Haiku) │ Core patterns, anti-patterns │
148
- │ GPT │ Architecture patterns, code conventions │
149
- │ Gemini │ Latest trends, framework updates │
150
- └─────────────────────────────────────────────────────────────┘
151
-
152
- Merge & Dedupe
153
-
154
- SPEC Context
155
- ```
156
-
157
- **Execution flow:**
158
-
159
- ```bash
160
- # 1. Claude (Primary) - Always runs
161
- Task(haiku, "Research best practices for [feature]")
162
-
163
- # 2. GPT (Parallel) - When enabled
164
- node "[LLM_SCRIPT]" gpt-codex orchestrate-json \
165
- "Best practices for [feature] with [stack]. Focus: architecture patterns, code conventions, testing strategies. Return JSON: {patterns: [], antiPatterns: [], libraries: []}"
166
-
167
- # 3. Gemini (Parallel) - When enabled
168
- node "[LLM_SCRIPT]" gemini orchestrate-json \
169
- "Best practices for [feature] with [stack]. Focus: latest trends, framework updates, community recommendations. Return JSON: {patterns: [], antiPatterns: [], libraries: []}"
170
- ```
171
-
172
- **Result merge strategy:**
173
-
174
- | Source | Priority | Focus Area |
175
- |--------|----------|------------|
176
- | Claude | High | Core patterns, anti-patterns |
177
- | GPT | Medium | Architecture, conventions |
178
- | Gemini | Medium | Latest trends, updates |
179
-
180
- **Merge rules:**
181
- - Duplicate patterns → Keep one with most detail
182
- - Conflicting advice → Claude takes precedence
183
- - Unique findings → All included
184
-
185
- ## Integration with /vibe.spec
186
-
187
- ```
188
- /vibe.spec "login feature"
189
-
190
- → best-practices execution (3 LLMs parallel):
191
- - Claude: "Research authentication best practices: OAuth, JWT, session"
192
- - GPT: "Architecture patterns for auth: repository, service layer"
193
- - Gemini: "Latest auth trends: passkey, WebAuthn, passwordless"
194
-
195
- → Merged results reflected in SPEC:
196
- - Recommended libraries (consensus)
197
- - Security considerations (all sources)
198
- - Implementation patterns (deduplicated)
199
- ```
@@ -1,157 +0,0 @@
1
- # Codebase Patterns Research Agent
2
-
3
- <!-- Existing Codebase Patterns Analysis Agent -->
4
-
5
- ## Role
6
-
7
- - Existing implementation pattern analysis
8
- - Coding convention extraction
9
- - Similar feature reference
10
- - Consistency assurance
11
-
12
- ## Model
13
-
14
- **Haiku** (inherit) - Fast exploration
15
-
16
- ## ⚠️ CRITICAL: NO FILE CREATION
17
-
18
- **THIS AGENT MUST NEVER CREATE FILES.**
19
-
20
- - ❌ DO NOT use Write tool
21
- - ❌ DO NOT create any files in project root
22
- - ❌ DO NOT create PATTERNS_*.md or ANALYSIS_*.md files
23
- - ✅ ONLY return research results as text output
24
- - ✅ Results will be merged into SPEC by core.spec command
25
-
26
- ## Usage
27
-
28
- Automatically called in parallel when `/vibe.spec` is executed
29
-
30
- ```
31
- Task(
32
- model: "haiku",
33
- subagent_type: "Explore",
34
- prompt: "Analyze existing patterns in codebase for [feature]. Find similar implementations."
35
- )
36
- ```
37
-
38
- ## Analysis Areas
39
-
40
- ### File Structure
41
- ```
42
- Project structure analysis:
43
- ├── Directory organization
44
- ├── Naming conventions
45
- ├── Module separation approach
46
- └── Test file locations
47
- ```
48
-
49
- ### Code Patterns
50
- ```
51
- Pattern extraction:
52
- ├── Error handling approach
53
- ├── Logging patterns
54
- ├── Data validation approach
55
- ├── API response format
56
- └── Dependency injection approach
57
- ```
58
-
59
- ### Conventions
60
- ```
61
- Convention analysis:
62
- ├── Variable/function naming
63
- ├── File naming
64
- ├── Import order
65
- ├── Comment style
66
- └── Type definition approach
67
- ```
68
-
69
- ## Output Format
70
-
71
- ```markdown
72
- ## 🔍 Codebase Patterns Analysis
73
-
74
- ### Project Structure
75
-
76
- ```
77
- src/
78
- ├── api/ # REST endpoints
79
- ├── services/ # Business logic
80
- ├── models/ # Data models
81
- ├── utils/ # Helpers
82
- └── tests/ # Mirror structure
83
- ```
84
-
85
- ### Existing Patterns
86
-
87
- 1. **Error Handling Pattern**
88
- ```python
89
- # Found in: src/services/*.py
90
- try:
91
- result = operation()
92
- except SpecificError as e:
93
- logger.error(f"Operation failed: {e}")
94
- raise ServiceError(str(e)) from e
95
- ```
96
-
97
- 2. **API Response Pattern**
98
- ```python
99
- # Found in: src/api/*.py
100
- return {
101
- "success": True,
102
- "data": result,
103
- "meta": {"count": len(result)}
104
- }
105
- ```
106
-
107
- 3. **Service Layer Pattern**
108
- ```python
109
- # Found in: src/services/user_service.py
110
- class UserService:
111
- def __init__(self, db: Database):
112
- self.db = db
113
-
114
- def get_user(self, user_id: int) -> User:
115
- ...
116
- ```
117
-
118
- ### Naming Conventions
119
-
120
- | Type | Convention | Example |
121
- |------|------------|---------|
122
- | Files | snake_case | user_service.py |
123
- | Classes | PascalCase | UserService |
124
- | Functions | snake_case | get_user_by_id |
125
- | Constants | UPPER_CASE | MAX_RETRIES |
126
-
127
- ### Similar Implementations
128
-
129
- For feature "payment feature":
130
-
131
- | Similar Feature | Location | Relevance |
132
- |-----------------|----------|-----------|
133
- | Order processing | src/services/order.py | 90% |
134
- | Subscription management | src/services/subscription.py | 75% |
135
-
136
- ### Recommendations
137
-
138
- Based on existing patterns:
139
- 1. Create `src/services/payment_service.py`
140
- 2. Follow existing error handling pattern
141
- 3. Use existing validation decorators
142
- 4. Reuse `src/utils/api_response.py`
143
- ```
144
-
145
- ## Integration with /vibe.spec
146
-
147
- ```
148
- /vibe.spec "payment feature"
149
-
150
- → codebase-patterns execution:
151
- "Find similar payment/transaction code. Extract patterns."
152
-
153
- → Results reflected in SPEC:
154
- - Follow existing patterns
155
- - Reference similar code
156
- - Maintain consistency
157
- ```
@@ -1,188 +0,0 @@
1
- # Framework Docs Research Agent
2
-
3
- <!-- Framework Documentation Research Agent -->
4
-
5
- ## Role
6
-
7
- - Official documentation lookup
8
- - Latest API verification
9
- - Migration guide collection
10
- - Version compatibility check
11
-
12
- ## Model
13
-
14
- **Haiku** (inherit) - Fast research
15
-
16
- ## ⚠️ CRITICAL: NO FILE CREATION
17
-
18
- **THIS AGENT MUST NEVER CREATE FILES.**
19
-
20
- - ❌ DO NOT use Write tool
21
- - ❌ DO NOT create any files in project root
22
- - ❌ DO NOT create DOCS_*.md or API_*.md files
23
- - ✅ ONLY return research results as text output
24
- - ✅ Results will be merged into SPEC by core.spec command
25
-
26
- ## Usage
27
-
28
- Automatically called in parallel when `/vibe.spec` is executed
29
-
30
- ```
31
- Task(
32
- model: "haiku",
33
- subagent_type: "Explore",
34
- prompt: "Research [framework] docs for [feature]. Get latest API, examples."
35
- )
36
- ```
37
-
38
- ## Integration with context7
39
-
40
- Using context7 plugin:
41
-
42
- ```
43
- resolve-library-id "react" → react
44
- get-library-docs "react" "hooks" → Hook docs
45
-
46
- resolve-library-id "django" → django
47
- get-library-docs "django" "authentication" → Auth docs
48
- ```
49
-
50
- ## External LLM Enhancement (Optional)
51
-
52
- **When Gemini is enabled**, supplement with web search for latest documentation:
53
-
54
- ```
55
- Primary: Task(Haiku) + context7
56
-
57
- [Gemini enabled?]
58
- ↓ YES
59
- gemini.[framework] [version] latest API changes and best practices. Provide latest API info.
60
-
61
- Merge results → Reflect in SPEC Context
62
- ```
63
-
64
- **Use cases:**
65
- - When latest version docs are missing from context7
66
- - When breaking changes need verification
67
- - When searching for real-world patterns beyond official docs
68
-
69
- **When Gemini is not configured:** Primary works normally on its own
70
-
71
- ## Research Areas
72
-
73
- ### Frontend
74
- ```
75
- React:
76
- ├── Hooks API
77
- ├── Server Components
78
- ├── Suspense
79
- └── Concurrent Features
80
-
81
- Next.js:
82
- ├── App Router
83
- ├── Server Actions
84
- ├── Middleware
85
- └── Edge Runtime
86
-
87
- Vue:
88
- ├── Composition API
89
- ├── Reactivity System
90
- └── Pinia
91
- ```
92
-
93
- ### Backend
94
- ```
95
- Django:
96
- ├── Models & ORM
97
- ├── Class-based Views
98
- ├── REST Framework
99
- └── Async Support
100
-
101
- FastAPI:
102
- ├── Path Operations
103
- ├── Dependency Injection
104
- ├── Pydantic Models
105
- └── Background Tasks
106
-
107
- Rails:
108
- ├── ActiveRecord
109
- ├── Action Controllers
110
- ├── Hotwire/Turbo
111
- └── Active Job
112
- ```
113
-
114
- ### Database
115
- ```
116
- PostgreSQL:
117
- ├── Indexes
118
- ├── Partitioning
119
- ├── JSON operations
120
- └── Full-text search
121
-
122
- Redis:
123
- ├── Data structures
124
- ├── Pub/Sub
125
- ├── Lua scripting
126
- └── Cluster mode
127
- ```
128
-
129
- ## Output Format
130
-
131
- ```markdown
132
- ## 📖 Framework Documentation Research
133
-
134
- ### Framework: [framework-name]
135
- ### Version: [version]
136
-
137
- ### Relevant APIs
138
-
139
- 1. **API: useOptimistic (React 19)**
140
- ```tsx
141
- const [optimisticState, addOptimistic] = useOptimistic(
142
- state,
143
- updateFn
144
- );
145
- ```
146
- - Use case: Optimistic UI updates
147
- - Available in: React 19+
148
-
149
- 2. **API: Server Actions (Next.js 14)**
150
- ```tsx
151
- async function submitForm(formData: FormData) {
152
- 'use server';
153
- // Server-side logic
154
- }
155
- ```
156
-
157
- ### Breaking Changes
158
-
159
- | From | To | Change | Migration |
160
- |------|-----|--------|-----------|
161
- | v18 | v19 | useFormStatus location | Import from react-dom |
162
-
163
- ### Official Examples
164
-
165
- - [Example 1](url): Authentication flow
166
- - [Example 2](url): Data fetching
167
-
168
- ### Version Compatibility
169
-
170
- | Package | Min Version | Recommended |
171
- |---------|-------------|-------------|
172
- | Node.js | 18.17 | 20.x |
173
- | React | 18.2 | 19.x |
174
- ```
175
-
176
- ## Integration with /vibe.spec
177
-
178
- ```
179
- /vibe.spec "social login"
180
-
181
- → framework-docs execution:
182
- "Research NextAuth.js v5 for social login. Get Google, GitHub providers."
183
-
184
- → Results reflected in SPEC:
185
- - Latest API usage
186
- - Required configuration
187
- - Code examples
188
- ```