@su-record/vibe 2.6.27 → 2.6.28

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 (246) hide show
  1. package/CLAUDE.md +202 -202
  2. package/LICENSE +21 -21
  3. package/README.md +267 -267
  4. package/agents/architect-low.md +41 -41
  5. package/agents/architect-medium.md +59 -59
  6. package/agents/architect.md +80 -80
  7. package/agents/build-error-resolver.md +115 -115
  8. package/agents/compounder.md +261 -261
  9. package/agents/diagrammer.md +178 -178
  10. package/agents/docs/api-documenter.md +99 -99
  11. package/agents/docs/changelog-writer.md +93 -93
  12. package/agents/e2e-tester.md +266 -266
  13. package/agents/explorer-low.md +42 -42
  14. package/agents/explorer-medium.md +59 -59
  15. package/agents/explorer.md +48 -48
  16. package/agents/implementer-low.md +43 -43
  17. package/agents/implementer-medium.md +52 -52
  18. package/agents/implementer.md +54 -54
  19. package/agents/planning/requirements-analyst.md +84 -84
  20. package/agents/planning/ux-advisor.md +83 -83
  21. package/agents/qa/acceptance-tester.md +86 -86
  22. package/agents/qa/edge-case-finder.md +93 -93
  23. package/agents/refactor-cleaner.md +143 -143
  24. package/agents/research/best-practices-agent.md +199 -199
  25. package/agents/research/codebase-patterns-agent.md +157 -157
  26. package/agents/research/framework-docs-agent.md +188 -188
  27. package/agents/research/security-advisory-agent.md +213 -213
  28. package/agents/review/architecture-reviewer.md +107 -107
  29. package/agents/review/complexity-reviewer.md +116 -116
  30. package/agents/review/data-integrity-reviewer.md +88 -88
  31. package/agents/review/git-history-reviewer.md +103 -103
  32. package/agents/review/performance-reviewer.md +86 -86
  33. package/agents/review/python-reviewer.md +150 -150
  34. package/agents/review/rails-reviewer.md +139 -139
  35. package/agents/review/react-reviewer.md +144 -144
  36. package/agents/review/security-reviewer.md +80 -80
  37. package/agents/review/simplicity-reviewer.md +140 -140
  38. package/agents/review/test-coverage-reviewer.md +116 -116
  39. package/agents/review/typescript-reviewer.md +127 -127
  40. package/agents/searcher.md +54 -54
  41. package/agents/simplifier.md +120 -120
  42. package/agents/tester.md +49 -49
  43. package/agents/ui-previewer.md +268 -268
  44. package/commands/vibe.analyze.md +356 -356
  45. package/commands/vibe.reason.md +329 -329
  46. package/commands/vibe.review.md +423 -423
  47. package/commands/vibe.run.md +1313 -1313
  48. package/commands/vibe.spec.md +1054 -1054
  49. package/commands/vibe.spec.review.md +412 -412
  50. package/commands/vibe.trace.md +161 -161
  51. package/commands/vibe.utils.md +376 -376
  52. package/commands/vibe.verify.md +375 -375
  53. package/dist/cli/collaborator.js +52 -52
  54. package/dist/cli/detect.js +32 -32
  55. package/dist/cli/hud.js +20 -20
  56. package/dist/cli/index.js +112 -112
  57. package/dist/cli/llm.js +144 -144
  58. package/dist/cli/mcp.d.ts +49 -0
  59. package/dist/cli/mcp.d.ts.map +1 -0
  60. package/dist/cli/mcp.js +169 -0
  61. package/dist/cli/mcp.js.map +1 -0
  62. package/dist/cli/postinstall.d.ts.map +1 -1
  63. package/dist/cli/postinstall.js +886 -858
  64. package/dist/cli/postinstall.js.map +1 -1
  65. package/dist/cli/setup/GlobalInstaller.d.ts +6 -0
  66. package/dist/cli/setup/GlobalInstaller.d.ts.map +1 -1
  67. package/dist/cli/setup/GlobalInstaller.js +26 -0
  68. package/dist/cli/setup/GlobalInstaller.js.map +1 -1
  69. package/dist/lib/DeepInit.js +24 -24
  70. package/dist/lib/IterationTracker.js +11 -11
  71. package/dist/lib/PythonParser.js +108 -108
  72. package/dist/lib/ReviewRace.js +96 -96
  73. package/dist/lib/SkillFrontmatter.js +28 -28
  74. package/dist/lib/SkillQualityGate.js +9 -9
  75. package/dist/lib/SkillRepository.js +159 -159
  76. package/dist/lib/UltraQA.js +77 -77
  77. package/dist/lib/gemini-api.js +5 -5
  78. package/dist/lib/gemini-mcp.d.ts +10 -0
  79. package/dist/lib/gemini-mcp.d.ts.map +1 -0
  80. package/dist/lib/gemini-mcp.js +353 -0
  81. package/dist/lib/gemini-mcp.js.map +1 -0
  82. package/dist/lib/gpt-api.js +4 -4
  83. package/dist/lib/gpt-mcp.d.ts +10 -0
  84. package/dist/lib/gpt-mcp.d.ts.map +1 -0
  85. package/dist/lib/gpt-mcp.js +352 -0
  86. package/dist/lib/gpt-mcp.js.map +1 -0
  87. package/dist/lib/memory/KnowledgeGraph.js +4 -4
  88. package/dist/lib/memory/MemorySearch.js +43 -43
  89. package/dist/lib/memory/MemoryStorage.js +130 -130
  90. package/dist/lib/memory/ObservationStore.js +28 -28
  91. package/dist/lib/memory/SessionRAGRetriever.js +7 -7
  92. package/dist/lib/memory/SessionRAGStore.js +216 -216
  93. package/dist/lib/memory/SessionSummarizer.js +9 -9
  94. package/dist/orchestrator/AgentManager.js +12 -12
  95. package/dist/orchestrator/MultiLlmResearch.js +8 -8
  96. package/dist/orchestrator/SmartRouter.js +11 -11
  97. package/dist/orchestrator/SwarmOrchestrator.test.js +16 -16
  98. package/dist/orchestrator/parallelResearch.js +24 -24
  99. package/dist/tools/analytics/getUsageAnalytics.d.ts +10 -0
  100. package/dist/tools/analytics/getUsageAnalytics.d.ts.map +1 -0
  101. package/dist/tools/analytics/getUsageAnalytics.js +246 -0
  102. package/dist/tools/analytics/getUsageAnalytics.js.map +1 -0
  103. package/dist/tools/analytics/index.d.ts +5 -0
  104. package/dist/tools/analytics/index.d.ts.map +1 -0
  105. package/dist/tools/analytics/index.js +5 -0
  106. package/dist/tools/analytics/index.js.map +1 -0
  107. package/dist/tools/convention/analyzeComplexity.test.js +115 -115
  108. package/dist/tools/convention/getCodingGuide.d.ts +7 -0
  109. package/dist/tools/convention/getCodingGuide.d.ts.map +1 -0
  110. package/dist/tools/convention/getCodingGuide.js +69 -0
  111. package/dist/tools/convention/getCodingGuide.js.map +1 -0
  112. package/dist/tools/convention/validateCodeQuality.test.js +104 -104
  113. package/dist/tools/planning/analyzeRequirements.d.ts +9 -0
  114. package/dist/tools/planning/analyzeRequirements.d.ts.map +1 -0
  115. package/dist/tools/planning/analyzeRequirements.js +171 -0
  116. package/dist/tools/planning/analyzeRequirements.js.map +1 -0
  117. package/dist/tools/planning/createUserStories.d.ts +9 -0
  118. package/dist/tools/planning/createUserStories.d.ts.map +1 -0
  119. package/dist/tools/planning/createUserStories.js +124 -0
  120. package/dist/tools/planning/createUserStories.js.map +1 -0
  121. package/dist/tools/planning/featureRoadmap.d.ts +10 -0
  122. package/dist/tools/planning/featureRoadmap.d.ts.map +1 -0
  123. package/dist/tools/planning/featureRoadmap.js +207 -0
  124. package/dist/tools/planning/featureRoadmap.js.map +1 -0
  125. package/dist/tools/planning/generatePrd.d.ts +11 -0
  126. package/dist/tools/planning/generatePrd.d.ts.map +1 -0
  127. package/dist/tools/planning/generatePrd.js +161 -0
  128. package/dist/tools/planning/generatePrd.js.map +1 -0
  129. package/dist/tools/planning/index.d.ts +8 -0
  130. package/dist/tools/planning/index.d.ts.map +1 -0
  131. package/dist/tools/planning/index.js +8 -0
  132. package/dist/tools/planning/index.js.map +1 -0
  133. package/dist/tools/prompt/analyzePrompt.d.ts +7 -0
  134. package/dist/tools/prompt/analyzePrompt.d.ts.map +1 -0
  135. package/dist/tools/prompt/analyzePrompt.js +150 -0
  136. package/dist/tools/prompt/analyzePrompt.js.map +1 -0
  137. package/dist/tools/prompt/enhancePrompt.d.ts +8 -0
  138. package/dist/tools/prompt/enhancePrompt.d.ts.map +1 -0
  139. package/dist/tools/prompt/enhancePrompt.js +110 -0
  140. package/dist/tools/prompt/enhancePrompt.js.map +1 -0
  141. package/dist/tools/prompt/enhancePromptGemini.d.ts +8 -0
  142. package/dist/tools/prompt/enhancePromptGemini.d.ts.map +1 -0
  143. package/dist/tools/prompt/enhancePromptGemini.js +332 -0
  144. package/dist/tools/prompt/enhancePromptGemini.js.map +1 -0
  145. package/dist/tools/prompt/index.d.ts +7 -0
  146. package/dist/tools/prompt/index.d.ts.map +1 -0
  147. package/dist/tools/prompt/index.js +7 -0
  148. package/dist/tools/prompt/index.js.map +1 -0
  149. package/dist/tools/reasoning/applyReasoningFramework.d.ts +8 -0
  150. package/dist/tools/reasoning/applyReasoningFramework.d.ts.map +1 -0
  151. package/dist/tools/reasoning/applyReasoningFramework.js +266 -0
  152. package/dist/tools/reasoning/applyReasoningFramework.js.map +1 -0
  153. package/dist/tools/reasoning/index.d.ts +5 -0
  154. package/dist/tools/reasoning/index.d.ts.map +1 -0
  155. package/dist/tools/reasoning/index.js +5 -0
  156. package/dist/tools/reasoning/index.js.map +1 -0
  157. package/dist/tools/spec/prdParser.test.js +171 -171
  158. package/dist/tools/spec/specGenerator.js +169 -169
  159. package/dist/tools/spec/traceabilityMatrix.js +64 -64
  160. package/dist/tools/spec/traceabilityMatrix.test.js +28 -28
  161. package/dist/tools/thinking/analyzeProblem.d.ts +7 -0
  162. package/dist/tools/thinking/analyzeProblem.d.ts.map +1 -0
  163. package/dist/tools/thinking/analyzeProblem.js +55 -0
  164. package/dist/tools/thinking/analyzeProblem.js.map +1 -0
  165. package/dist/tools/thinking/breakDownProblem.d.ts +8 -0
  166. package/dist/tools/thinking/breakDownProblem.d.ts.map +1 -0
  167. package/dist/tools/thinking/breakDownProblem.js +145 -0
  168. package/dist/tools/thinking/breakDownProblem.js.map +1 -0
  169. package/dist/tools/thinking/createThinkingChain.d.ts +7 -0
  170. package/dist/tools/thinking/createThinkingChain.d.ts.map +1 -0
  171. package/dist/tools/thinking/createThinkingChain.js +44 -0
  172. package/dist/tools/thinking/createThinkingChain.js.map +1 -0
  173. package/dist/tools/thinking/formatAsPlan.d.ts +9 -0
  174. package/dist/tools/thinking/formatAsPlan.d.ts.map +1 -0
  175. package/dist/tools/thinking/formatAsPlan.js +78 -0
  176. package/dist/tools/thinking/formatAsPlan.js.map +1 -0
  177. package/dist/tools/thinking/index.d.ts +10 -0
  178. package/dist/tools/thinking/index.d.ts.map +1 -0
  179. package/dist/tools/thinking/index.js +10 -0
  180. package/dist/tools/thinking/index.js.map +1 -0
  181. package/dist/tools/thinking/stepByStepAnalysis.d.ts +8 -0
  182. package/dist/tools/thinking/stepByStepAnalysis.d.ts.map +1 -0
  183. package/dist/tools/thinking/stepByStepAnalysis.js +63 -0
  184. package/dist/tools/thinking/stepByStepAnalysis.js.map +1 -0
  185. package/dist/tools/thinking/thinkAloudProcess.d.ts +8 -0
  186. package/dist/tools/thinking/thinkAloudProcess.d.ts.map +1 -0
  187. package/dist/tools/thinking/thinkAloudProcess.js +80 -0
  188. package/dist/tools/thinking/thinkAloudProcess.js.map +1 -0
  189. package/hooks/hooks.json +115 -115
  190. package/hooks/scripts/code-check.js +70 -70
  191. package/hooks/scripts/code-review.js +22 -22
  192. package/hooks/scripts/complexity.js +22 -22
  193. package/hooks/scripts/compound.js +23 -23
  194. package/hooks/scripts/context-save.js +53 -53
  195. package/hooks/scripts/gemini-ui-gen.js +281 -281
  196. package/hooks/scripts/generate-brand-assets.js +474 -474
  197. package/hooks/scripts/hud-multiline.js +262 -262
  198. package/hooks/scripts/hud-status.js +291 -291
  199. package/hooks/scripts/keyword-detector.js +214 -214
  200. package/hooks/scripts/llm-orchestrate.js +171 -171
  201. package/hooks/scripts/post-edit.js +97 -97
  202. package/hooks/scripts/post-tool-verify.js +210 -210
  203. package/hooks/scripts/pre-tool-guard.js +125 -125
  204. package/hooks/scripts/prompt-dispatcher.js +161 -161
  205. package/hooks/scripts/recall.js +22 -22
  206. package/hooks/scripts/session-start.js +30 -30
  207. package/hooks/scripts/skill-injector.js +191 -191
  208. package/hooks/scripts/utils.js +97 -97
  209. package/languages/csharp-unity.md +515 -515
  210. package/languages/gdscript-godot.md +470 -470
  211. package/languages/ruby-rails.md +489 -489
  212. package/languages/typescript-angular.md +433 -433
  213. package/languages/typescript-astro.md +416 -416
  214. package/languages/typescript-electron.md +406 -406
  215. package/languages/typescript-nestjs.md +524 -524
  216. package/languages/typescript-svelte.md +407 -407
  217. package/languages/typescript-tauri.md +365 -365
  218. package/package.json +84 -84
  219. package/skills/brand-assets.md +141 -141
  220. package/skills/commerce-patterns.md +361 -361
  221. package/skills/context7-usage.md +102 -102
  222. package/skills/e2e-commerce.md +304 -304
  223. package/skills/frontend-design.md +92 -92
  224. package/skills/git-worktree.md +181 -181
  225. package/skills/parallel-research.md +77 -77
  226. package/skills/priority-todos.md +239 -239
  227. package/skills/seo-checklist.md +244 -244
  228. package/skills/tool-fallback.md +190 -190
  229. package/skills/vibe-capabilities.md +161 -161
  230. package/vibe/constitution.md +227 -227
  231. package/vibe/rules/core/communication-guide.md +98 -98
  232. package/vibe/rules/core/development-philosophy.md +52 -52
  233. package/vibe/rules/core/quick-start.md +102 -102
  234. package/vibe/rules/quality/bdd-contract-testing.md +393 -393
  235. package/vibe/rules/quality/checklist.md +276 -276
  236. package/vibe/rules/quality/testing-strategy.md +440 -440
  237. package/vibe/rules/standards/anti-patterns.md +541 -541
  238. package/vibe/rules/standards/code-structure.md +291 -291
  239. package/vibe/rules/standards/complexity-metrics.md +313 -313
  240. package/vibe/rules/standards/naming-conventions.md +198 -198
  241. package/vibe/setup.sh +31 -31
  242. package/vibe/templates/constitution-template.md +252 -252
  243. package/vibe/templates/contract-backend-template.md +526 -526
  244. package/vibe/templates/contract-frontend-template.md +599 -599
  245. package/vibe/templates/feature-template.md +96 -96
  246. package/vibe/templates/spec-template.md +221 -221
@@ -69,6 +69,32 @@ function copySkillsIfMissing(src, dest) {
69
69
  }
70
70
  }
71
71
  }
72
+ /**
73
+ * 전역 ~/.claude/settings.json에서 hooks 정리
74
+ * vibe는 이제 프로젝트 레벨 (.claude/settings.local.json)에서 훅을 관리하므로
75
+ * 전역 설정의 hooks는 제거해야 함 (레거시 정리)
76
+ */
77
+ function cleanupGlobalSettingsHooks() {
78
+ const globalClaudeDir = path.join(os.homedir(), '.claude');
79
+ const globalSettingsPath = path.join(globalClaudeDir, 'settings.json');
80
+ if (!fs.existsSync(globalSettingsPath)) {
81
+ return;
82
+ }
83
+ try {
84
+ const content = fs.readFileSync(globalSettingsPath, 'utf-8');
85
+ const settings = JSON.parse(content);
86
+ // hooks가 있으면 제거
87
+ if (settings.hooks) {
88
+ delete settings.hooks;
89
+ fs.writeFileSync(globalSettingsPath, JSON.stringify(settings, null, 2) + '\n');
90
+ console.log(' ✓ Cleaned up legacy hooks from global settings');
91
+ }
92
+ }
93
+ catch (e) {
94
+ const message = e instanceof Error ? e.message : String(e);
95
+ console.warn(' ⚠️ Failed to cleanup global settings hooks: ' + message);
96
+ }
97
+ }
72
98
  /**
73
99
  * 인라인 기본 스킬 시딩 (번들에 없는 추가 스킬)
74
100
  */
@@ -292,13 +318,13 @@ function convertLanguageRuleToCursor(content, filename) {
292
318
  // glob 패턴 가져오기
293
319
  const globs = LANGUAGE_GLOBS[filename] || '**/*';
294
320
  // .mdc frontmatter + 본문
295
- return `---
296
- description: ${description} - complexity limits, type safety, error handling
297
- globs: "${globs}"
298
- alwaysApply: false
299
- ---
300
-
301
- ${normalizedContent}
321
+ return `---
322
+ description: ${description} - complexity limits, type safety, error handling
323
+ globs: "${globs}"
324
+ alwaysApply: false
325
+ ---
326
+
327
+ ${normalizedContent}
302
328
  `;
303
329
  }
304
330
  /**
@@ -427,38 +453,38 @@ function convertAgentToCursor(content, filename) {
427
453
  const nextStepsSection = nextAgents
428
454
  .map((a) => `- For ${a.replace('-reviewer', '')} review: "Use ${a}"`)
429
455
  .join('\n');
430
- return `---
431
- name: ${name}
432
- model: ${model}
433
- description: ${description}
434
- ---
435
-
436
- # ${title}
437
-
438
- ## When Invoked
439
-
440
- 1. Run \`git diff\` to see recent changes
441
- 2. Focus on modified files relevant to this review type
442
- 3. Begin review immediately without asking questions
443
-
444
- ## Role
445
-
446
- ${roleLines.map((r) => `- ${r}`).join('\n')}
447
-
448
- ## Checklist
449
-
450
- ${checklist}
451
-
452
- ## Output Format
453
-
454
- ${outputFormat}
455
-
456
- ## Next Steps
457
-
458
- Review complete. Consider these follow-up actions:
459
-
460
- ${nextStepsSection}
461
- - All reviews done: Ready to commit
456
+ return `---
457
+ name: ${name}
458
+ model: ${model}
459
+ description: ${description}
460
+ ---
461
+
462
+ # ${title}
463
+
464
+ ## When Invoked
465
+
466
+ 1. Run \`git diff\` to see recent changes
467
+ 2. Focus on modified files relevant to this review type
468
+ 3. Begin review immediately without asking questions
469
+
470
+ ## Role
471
+
472
+ ${roleLines.map((r) => `- ${r}`).join('\n')}
473
+
474
+ ## Checklist
475
+
476
+ ${checklist}
477
+
478
+ ## Output Format
479
+
480
+ ${outputFormat}
481
+
482
+ ## Next Steps
483
+
484
+ Review complete. Consider these follow-up actions:
485
+
486
+ ${nextStepsSection}
487
+ - All reviews done: Ready to commit
462
488
  `;
463
489
  }
464
490
  /**
@@ -501,86 +527,86 @@ function generateCursorRules(cursorRulesDir, detectedStacks = [], languagesDir)
501
527
  const commonRules = [
502
528
  {
503
529
  filename: 'code-quality.mdc',
504
- content: `---
505
- description: General code quality rules for all files
506
- alwaysApply: true
507
- ---
508
-
509
- # Code Quality Rules
510
-
511
- ## Core Principles
512
- - **Modify only requested scope** - Don't touch unrelated code
513
- - **Preserve existing style** - Follow project conventions
514
- - **Keep working code** - No unnecessary refactoring
515
-
516
- ## Forbidden Patterns
517
- - No \`console.log\` in production code (remove after debugging)
518
- - No hardcoded strings/numbers → Extract to constants
519
- - No commented-out code in commits
520
- - No incomplete code without TODO marker
521
-
522
- ## Naming Conventions
523
- - Variables/functions: camelCase
524
- - Classes/types: PascalCase
525
- - Constants: UPPER_SNAKE_CASE
526
- - Files: kebab-case or PascalCase (match project style)
527
-
528
- ## Function Design
529
- - Single responsibility per function
530
- - Max 5 parameters (use object for more)
531
- - Descriptive names (verb + noun)
532
- - Document non-obvious behavior
533
-
534
- ## Complexity Limits
535
- | Metric | Limit |
536
- |--------|-------|
537
- | Function length | ≤30 lines (recommended), ≤50 lines (max) |
538
- | Nesting depth | ≤3 levels |
539
- | Parameters | ≤5 |
540
- | Cyclomatic complexity | ≤10 |
541
-
542
- ## Dependency Management
543
- - Avoid circular dependencies
544
- - Keep loose coupling (depend on interfaces)
545
- - High cohesion (group related functions)
530
+ content: `---
531
+ description: General code quality rules for all files
532
+ alwaysApply: true
533
+ ---
534
+
535
+ # Code Quality Rules
536
+
537
+ ## Core Principles
538
+ - **Modify only requested scope** - Don't touch unrelated code
539
+ - **Preserve existing style** - Follow project conventions
540
+ - **Keep working code** - No unnecessary refactoring
541
+
542
+ ## Forbidden Patterns
543
+ - No \`console.log\` in production code (remove after debugging)
544
+ - No hardcoded strings/numbers → Extract to constants
545
+ - No commented-out code in commits
546
+ - No incomplete code without TODO marker
547
+
548
+ ## Naming Conventions
549
+ - Variables/functions: camelCase
550
+ - Classes/types: PascalCase
551
+ - Constants: UPPER_SNAKE_CASE
552
+ - Files: kebab-case or PascalCase (match project style)
553
+
554
+ ## Function Design
555
+ - Single responsibility per function
556
+ - Max 5 parameters (use object for more)
557
+ - Descriptive names (verb + noun)
558
+ - Document non-obvious behavior
559
+
560
+ ## Complexity Limits
561
+ | Metric | Limit |
562
+ |--------|-------|
563
+ | Function length | ≤30 lines (recommended), ≤50 lines (max) |
564
+ | Nesting depth | ≤3 levels |
565
+ | Parameters | ≤5 |
566
+ | Cyclomatic complexity | ≤10 |
567
+
568
+ ## Dependency Management
569
+ - Avoid circular dependencies
570
+ - Keep loose coupling (depend on interfaces)
571
+ - High cohesion (group related functions)
546
572
  `,
547
573
  },
548
574
  {
549
575
  filename: 'security-checklist.mdc',
550
- content: `---
551
- description: Security checklist for code changes
552
- globs: "**/*.ts,**/*.tsx,**/*.js,**/*.jsx,**/*.py,**/*.go,**/*.rs,**/*.java,**/*.kt,**/*.swift"
553
- alwaysApply: false
554
- ---
555
-
556
- # Security Checklist
557
-
558
- ## Input Validation
559
- - [ ] Validate all user inputs
560
- - [ ] Sanitize data before database queries
561
- - [ ] Use parameterized queries (prevent SQL injection)
562
-
563
- ## Authentication
564
- - [ ] Secure password handling (never store plain text)
565
- - [ ] Session management is secure
566
- - [ ] Tokens have appropriate expiry
567
-
568
- ## Data Protection
569
- - [ ] Sensitive data is encrypted
570
- - [ ] API keys not committed to code
571
- - [ ] Error messages don't leak sensitive info
572
-
573
- ## OWASP Top 10 Awareness
574
- - Injection (SQL, XSS, Command)
575
- - Broken authentication
576
- - Sensitive data exposure
577
- - XML external entities (XXE)
578
- - Broken access control
579
- - Security misconfiguration
580
- - Cross-site scripting (XSS)
581
- - Insecure deserialization
582
- - Using components with known vulnerabilities
583
- - Insufficient logging & monitoring
576
+ content: `---
577
+ description: Security checklist for code changes
578
+ globs: "**/*.ts,**/*.tsx,**/*.js,**/*.jsx,**/*.py,**/*.go,**/*.rs,**/*.java,**/*.kt,**/*.swift"
579
+ alwaysApply: false
580
+ ---
581
+
582
+ # Security Checklist
583
+
584
+ ## Input Validation
585
+ - [ ] Validate all user inputs
586
+ - [ ] Sanitize data before database queries
587
+ - [ ] Use parameterized queries (prevent SQL injection)
588
+
589
+ ## Authentication
590
+ - [ ] Secure password handling (never store plain text)
591
+ - [ ] Session management is secure
592
+ - [ ] Tokens have appropriate expiry
593
+
594
+ ## Data Protection
595
+ - [ ] Sensitive data is encrypted
596
+ - [ ] API keys not committed to code
597
+ - [ ] Error messages don't leak sensitive info
598
+
599
+ ## OWASP Top 10 Awareness
600
+ - Injection (SQL, XSS, Command)
601
+ - Broken authentication
602
+ - Sensitive data exposure
603
+ - XML external entities (XXE)
604
+ - Broken access control
605
+ - Security misconfiguration
606
+ - Cross-site scripting (XSS)
607
+ - Insecure deserialization
608
+ - Using components with known vulnerabilities
609
+ - Insufficient logging & monitoring
584
610
  `,
585
611
  },
586
612
  ];
@@ -634,773 +660,773 @@ function generateCursorSkills(cursorSkillsDir) {
634
660
  const skills = [
635
661
  {
636
662
  id: 'vibe-spec',
637
- content: `---
638
- name: vibe-spec
639
- model: claude-4.5-sonnet-thinking
640
- description: "SPEC document creation with parallel research. Use when starting new feature implementation."
641
- ---
642
-
643
- # vibe spec - SPEC Creation Skill
644
-
645
- SPEC-driven feature development workflow. Creates AI-executable specification documents.
646
-
647
- ## When to Use
648
-
649
- - Starting new feature implementation
650
- - Complex tasks requiring research and planning
651
- - Features needing clear requirements documentation
652
-
653
- ## Invocation
654
-
655
- User says: "vibe spec [feature-name]" or "Create SPEC for [feature-name]"
656
-
657
- ## Workflow
658
-
659
- ### Phase 1: Requirements Gathering
660
- 1. Ask user for feature requirements
661
- 2. Clarify scope and constraints
662
- 3. Identify tech stack and dependencies
663
-
664
- ### Phase 2: Parallel Research (Manual)
665
- Run these in parallel:
666
- - "Use best-practices-agent for [feature]"
667
- - "Use security-advisory-agent for [feature]"
668
- - Search framework docs with context7
669
-
670
- ### Phase 3: SPEC Document Generation
671
- Create SPEC in PTCF format:
672
- \`\`\`
673
- <role> AI role definition
674
- <context> Background, tech stack, related code
675
- <task> Phase-by-phase task list
676
- <constraints> Constraints
677
- <output_format> Files to create/modify
678
- <acceptance> Verification criteria
679
- \`\`\`
680
-
681
- ### Phase 4: Save SPEC
682
- Save to \`.claude/vibe/specs/[feature-name]-spec.md\`
683
-
684
- ## Output Format
685
-
686
- \`\`\`markdown
687
- # [Feature Name] SPEC
688
-
689
- ## Overview
690
- [1-2 sentence summary]
691
-
692
- ## Requirements
693
- - REQ-001: [Requirement]
694
- - REQ-002: [Requirement]
695
-
696
- ## Technical Approach
697
- [Implementation strategy]
698
-
699
- ## Phases
700
- ### Phase 1: [Setup]
701
- - [ ] Task 1
702
- - [ ] Task 2
703
-
704
- ### Phase 2: [Core Implementation]
705
- ...
706
-
707
- ## Acceptance Criteria
708
- - [ ] Criterion 1
709
- - [ ] Criterion 2
710
- \`\`\`
711
-
712
- ## Next Steps
713
-
714
- After SPEC creation:
715
- - "vibe spec review" - Review SPEC with external LLMs
716
- - "vibe run [feature-name]" - Start implementation
663
+ content: `---
664
+ name: vibe-spec
665
+ model: claude-4.5-sonnet-thinking
666
+ description: "SPEC document creation with parallel research. Use when starting new feature implementation."
667
+ ---
668
+
669
+ # vibe spec - SPEC Creation Skill
670
+
671
+ SPEC-driven feature development workflow. Creates AI-executable specification documents.
672
+
673
+ ## When to Use
674
+
675
+ - Starting new feature implementation
676
+ - Complex tasks requiring research and planning
677
+ - Features needing clear requirements documentation
678
+
679
+ ## Invocation
680
+
681
+ User says: "vibe spec [feature-name]" or "Create SPEC for [feature-name]"
682
+
683
+ ## Workflow
684
+
685
+ ### Phase 1: Requirements Gathering
686
+ 1. Ask user for feature requirements
687
+ 2. Clarify scope and constraints
688
+ 3. Identify tech stack and dependencies
689
+
690
+ ### Phase 2: Parallel Research (Manual)
691
+ Run these in parallel:
692
+ - "Use best-practices-agent for [feature]"
693
+ - "Use security-advisory-agent for [feature]"
694
+ - Search framework docs with context7
695
+
696
+ ### Phase 3: SPEC Document Generation
697
+ Create SPEC in PTCF format:
698
+ \`\`\`
699
+ <role> AI role definition
700
+ <context> Background, tech stack, related code
701
+ <task> Phase-by-phase task list
702
+ <constraints> Constraints
703
+ <output_format> Files to create/modify
704
+ <acceptance> Verification criteria
705
+ \`\`\`
706
+
707
+ ### Phase 4: Save SPEC
708
+ Save to \`.claude/vibe/specs/[feature-name]-spec.md\`
709
+
710
+ ## Output Format
711
+
712
+ \`\`\`markdown
713
+ # [Feature Name] SPEC
714
+
715
+ ## Overview
716
+ [1-2 sentence summary]
717
+
718
+ ## Requirements
719
+ - REQ-001: [Requirement]
720
+ - REQ-002: [Requirement]
721
+
722
+ ## Technical Approach
723
+ [Implementation strategy]
724
+
725
+ ## Phases
726
+ ### Phase 1: [Setup]
727
+ - [ ] Task 1
728
+ - [ ] Task 2
729
+
730
+ ### Phase 2: [Core Implementation]
731
+ ...
732
+
733
+ ## Acceptance Criteria
734
+ - [ ] Criterion 1
735
+ - [ ] Criterion 2
736
+ \`\`\`
737
+
738
+ ## Next Steps
739
+
740
+ After SPEC creation:
741
+ - "vibe spec review" - Review SPEC with external LLMs
742
+ - "vibe run [feature-name]" - Start implementation
717
743
  `,
718
744
  },
719
745
  {
720
746
  id: 'vibe-run',
721
- content: `---
722
- name: vibe-run
723
- model: claude-4.5-opus-high
724
- description: "Execute SPEC implementation with Scenario-Driven Development. Use after SPEC is approved."
725
- ---
726
-
727
- # vibe run - Implementation Execution Skill
728
-
729
- Executes SPEC-based implementation using Scenario-Driven Development methodology.
730
-
731
- ## When to Use
732
-
733
- - After SPEC is created and approved
734
- - When implementing features phase by phase
735
- - For complex multi-file implementations
736
-
737
- ## Invocation
738
-
739
- User says: "vibe run [feature-name]" or "Implement [feature-name]"
740
-
741
- ## Pre-requisites
742
-
743
- 1. SPEC document exists at \`.claude/vibe/specs/[feature-name]-spec.md\`
744
- 2. SPEC has been reviewed (optional but recommended)
745
-
746
- ## Workflow
747
-
748
- ### Step 1: Load SPEC
749
- Read SPEC from \`.claude/vibe/specs/[feature-name]-spec.md\`
750
-
751
- ### Step 2: For Each Phase in SPEC
752
-
753
- #### 2a. Phase Planning
754
- - List all tasks for current phase
755
- - Identify file dependencies
756
- - Check existing code patterns
757
-
758
- #### 2b. Implementation
759
- - Implement each task
760
- - Follow existing code style
761
- - Keep functions under complexity limits
762
-
763
- #### 2c. Phase Verification
764
- - Run relevant tests
765
- - Check TypeScript compilation
766
- - Verify no regressions
767
-
768
- ### Step 3: Phase Completion
769
- Mark phase complete, proceed to next phase
770
-
771
- ## ULTRAWORK Mode
772
-
773
- Add "ultrawork" or "ulw" for maximum performance:
774
- - Parallel sub-agent exploration
775
- - Auto-continue between phases
776
- - Auto-retry on errors (max 3)
777
-
778
- ## Output Format
779
-
780
- Per phase:
781
- \`\`\`
782
- ## Phase [N]: [Name]
783
-
784
- ### Completed Tasks
785
- - [x] Task 1 - [file.ts]
786
- - [x] Task 2 - [file.ts]
787
-
788
- ### Files Modified
789
- - src/feature/index.ts (new)
790
- - src/feature/utils.ts (modified)
791
-
792
- ### Verification
793
- - ✅ TypeScript compilation
794
- - ✅ Tests passing
795
- \`\`\`
796
-
797
- ## Next Steps
798
-
799
- After implementation:
800
- - "vibe review" - Run 12+ agent code review
801
- - "vibe verify [feature-name]" - Verify against SPEC
802
- - "vibe trace [feature-name]" - Generate traceability matrix
747
+ content: `---
748
+ name: vibe-run
749
+ model: claude-4.5-opus-high
750
+ description: "Execute SPEC implementation with Scenario-Driven Development. Use after SPEC is approved."
751
+ ---
752
+
753
+ # vibe run - Implementation Execution Skill
754
+
755
+ Executes SPEC-based implementation using Scenario-Driven Development methodology.
756
+
757
+ ## When to Use
758
+
759
+ - After SPEC is created and approved
760
+ - When implementing features phase by phase
761
+ - For complex multi-file implementations
762
+
763
+ ## Invocation
764
+
765
+ User says: "vibe run [feature-name]" or "Implement [feature-name]"
766
+
767
+ ## Pre-requisites
768
+
769
+ 1. SPEC document exists at \`.claude/vibe/specs/[feature-name]-spec.md\`
770
+ 2. SPEC has been reviewed (optional but recommended)
771
+
772
+ ## Workflow
773
+
774
+ ### Step 1: Load SPEC
775
+ Read SPEC from \`.claude/vibe/specs/[feature-name]-spec.md\`
776
+
777
+ ### Step 2: For Each Phase in SPEC
778
+
779
+ #### 2a. Phase Planning
780
+ - List all tasks for current phase
781
+ - Identify file dependencies
782
+ - Check existing code patterns
783
+
784
+ #### 2b. Implementation
785
+ - Implement each task
786
+ - Follow existing code style
787
+ - Keep functions under complexity limits
788
+
789
+ #### 2c. Phase Verification
790
+ - Run relevant tests
791
+ - Check TypeScript compilation
792
+ - Verify no regressions
793
+
794
+ ### Step 3: Phase Completion
795
+ Mark phase complete, proceed to next phase
796
+
797
+ ## ULTRAWORK Mode
798
+
799
+ Add "ultrawork" or "ulw" for maximum performance:
800
+ - Parallel sub-agent exploration
801
+ - Auto-continue between phases
802
+ - Auto-retry on errors (max 3)
803
+
804
+ ## Output Format
805
+
806
+ Per phase:
807
+ \`\`\`
808
+ ## Phase [N]: [Name]
809
+
810
+ ### Completed Tasks
811
+ - [x] Task 1 - [file.ts]
812
+ - [x] Task 2 - [file.ts]
813
+
814
+ ### Files Modified
815
+ - src/feature/index.ts (new)
816
+ - src/feature/utils.ts (modified)
817
+
818
+ ### Verification
819
+ - ✅ TypeScript compilation
820
+ - ✅ Tests passing
821
+ \`\`\`
822
+
823
+ ## Next Steps
824
+
825
+ After implementation:
826
+ - "vibe review" - Run 12+ agent code review
827
+ - "vibe verify [feature-name]" - Verify against SPEC
828
+ - "vibe trace [feature-name]" - Generate traceability matrix
803
829
  `,
804
830
  },
805
831
  {
806
832
  id: 'vibe-review',
807
- content: `---
808
- name: vibe-review
809
- model: auto
810
- description: "Parallel code review with 12+ specialized agents. Use after code changes."
811
- ---
812
-
813
- # vibe review - Parallel Code Review Skill
814
-
815
- Orchestrates 12+ specialized review agents for comprehensive code review.
816
-
817
- ## When to Use
818
-
819
- - After implementing new features
820
- - Before creating pull requests
821
- - After significant code changes
822
-
823
- ## Invocation
824
-
825
- User says: "vibe review" or "Review my code"
826
-
827
- ## Available Review Agents
828
-
829
- ### Security & Architecture (Thinking Models)
830
- - **security-reviewer** - OWASP Top 10, authentication, data handling
831
- - **architecture-reviewer** - Design patterns, dependencies, structure
832
- - **data-integrity-reviewer** - Data flow, state management, persistence
833
-
834
- ### Language Specialists (Codex Models)
835
- - **typescript-reviewer** - Type safety, modern patterns
836
- - **python-reviewer** - Type hints, PEP8, async patterns
837
- - **react-reviewer** - Hooks, component patterns
838
- - **rails-reviewer** - MVC, ActiveRecord best practices
839
-
840
- ### Pattern Checkers (Flash Models)
841
- - **performance-reviewer** - N+1 queries, loops, memory
842
- - **complexity-reviewer** - Function length, nesting, cyclomatic
843
- - **simplicity-reviewer** - Over-engineering detection
844
- - **test-coverage-reviewer** - Missing tests, edge cases
845
- - **git-history-reviewer** - Risk patterns, commit analysis
846
-
847
- ## Workflow
848
-
849
- ### Step 1: Analyze Changes
850
- \`\`\`bash
851
- git diff HEAD~1
852
- \`\`\`
853
-
854
- ### Step 2: Select Relevant Agents
855
- Based on changed files:
856
- - .ts/.tsx → typescript-reviewer, react-reviewer
857
- - .py → python-reviewer
858
- - Security-related → security-reviewer
859
- - Architecture changes → architecture-reviewer
860
-
861
- ### Step 3: Run Reviews (Parallel)
862
- Invoke selected agents:
863
- - "Use security-reviewer"
864
- - "Use typescript-reviewer"
865
- - (etc.)
866
-
867
- ### Step 4: Consolidate Findings
868
-
869
- ## Priority System
870
-
871
- | Priority | Meaning | Action |
872
- |----------|---------|--------|
873
- | 🔴 P1 | Critical | Blocks merge, fix immediately |
874
- | 🟡 P2 | Important | Fix recommended before merge |
875
- | 🔵 P3 | Nice-to-have | Add to backlog |
876
-
877
- ## Output Format
878
-
879
- \`\`\`markdown
880
- # Code Review Summary
881
-
882
- ## 🔴 P1 - Critical (X issues)
883
- - [Issue description] - [file:line]
884
-
885
- ## 🟡 P2 - Important (X issues)
886
- - [Issue description] - [file:line]
887
-
888
- ## 🔵 P3 - Suggestions (X issues)
889
- - [Issue description] - [file:line]
890
-
891
- ## Reviewed By
892
- - security-reviewer ✅
893
- - typescript-reviewer ✅
894
- - performance-reviewer ✅
895
- \`\`\`
896
-
897
- ## Next Steps
898
-
899
- After review:
900
- - Fix P1 issues immediately
901
- - Address P2 issues before merge
902
- - Track P3 in backlog
903
- - Ready to commit when P1/P2 resolved
833
+ content: `---
834
+ name: vibe-review
835
+ model: auto
836
+ description: "Parallel code review with 12+ specialized agents. Use after code changes."
837
+ ---
838
+
839
+ # vibe review - Parallel Code Review Skill
840
+
841
+ Orchestrates 12+ specialized review agents for comprehensive code review.
842
+
843
+ ## When to Use
844
+
845
+ - After implementing new features
846
+ - Before creating pull requests
847
+ - After significant code changes
848
+
849
+ ## Invocation
850
+
851
+ User says: "vibe review" or "Review my code"
852
+
853
+ ## Available Review Agents
854
+
855
+ ### Security & Architecture (Thinking Models)
856
+ - **security-reviewer** - OWASP Top 10, authentication, data handling
857
+ - **architecture-reviewer** - Design patterns, dependencies, structure
858
+ - **data-integrity-reviewer** - Data flow, state management, persistence
859
+
860
+ ### Language Specialists (Codex Models)
861
+ - **typescript-reviewer** - Type safety, modern patterns
862
+ - **python-reviewer** - Type hints, PEP8, async patterns
863
+ - **react-reviewer** - Hooks, component patterns
864
+ - **rails-reviewer** - MVC, ActiveRecord best practices
865
+
866
+ ### Pattern Checkers (Flash Models)
867
+ - **performance-reviewer** - N+1 queries, loops, memory
868
+ - **complexity-reviewer** - Function length, nesting, cyclomatic
869
+ - **simplicity-reviewer** - Over-engineering detection
870
+ - **test-coverage-reviewer** - Missing tests, edge cases
871
+ - **git-history-reviewer** - Risk patterns, commit analysis
872
+
873
+ ## Workflow
874
+
875
+ ### Step 1: Analyze Changes
876
+ \`\`\`bash
877
+ git diff HEAD~1
878
+ \`\`\`
879
+
880
+ ### Step 2: Select Relevant Agents
881
+ Based on changed files:
882
+ - .ts/.tsx → typescript-reviewer, react-reviewer
883
+ - .py → python-reviewer
884
+ - Security-related → security-reviewer
885
+ - Architecture changes → architecture-reviewer
886
+
887
+ ### Step 3: Run Reviews (Parallel)
888
+ Invoke selected agents:
889
+ - "Use security-reviewer"
890
+ - "Use typescript-reviewer"
891
+ - (etc.)
892
+
893
+ ### Step 4: Consolidate Findings
894
+
895
+ ## Priority System
896
+
897
+ | Priority | Meaning | Action |
898
+ |----------|---------|--------|
899
+ | 🔴 P1 | Critical | Blocks merge, fix immediately |
900
+ | 🟡 P2 | Important | Fix recommended before merge |
901
+ | 🔵 P3 | Nice-to-have | Add to backlog |
902
+
903
+ ## Output Format
904
+
905
+ \`\`\`markdown
906
+ # Code Review Summary
907
+
908
+ ## 🔴 P1 - Critical (X issues)
909
+ - [Issue description] - [file:line]
910
+
911
+ ## 🟡 P2 - Important (X issues)
912
+ - [Issue description] - [file:line]
913
+
914
+ ## 🔵 P3 - Suggestions (X issues)
915
+ - [Issue description] - [file:line]
916
+
917
+ ## Reviewed By
918
+ - security-reviewer ✅
919
+ - typescript-reviewer ✅
920
+ - performance-reviewer ✅
921
+ \`\`\`
922
+
923
+ ## Next Steps
924
+
925
+ After review:
926
+ - Fix P1 issues immediately
927
+ - Address P2 issues before merge
928
+ - Track P3 in backlog
929
+ - Ready to commit when P1/P2 resolved
904
930
  `,
905
931
  },
906
932
  {
907
933
  id: 'vibe-analyze',
908
- content: `---
909
- name: vibe-analyze
910
- model: claude-4.5-sonnet-thinking
911
- description: "Project and feature analysis. Use when exploring codebase or planning changes."
912
- ---
913
-
914
- # vibe analyze - Analysis Skill
915
-
916
- Comprehensive project and feature analysis for understanding codebases.
917
-
918
- ## When to Use
919
-
920
- - Exploring unfamiliar codebase
921
- - Planning feature changes
922
- - Understanding dependencies
923
- - Identifying potential issues
924
-
925
- ## Invocation
926
-
927
- User says: "vibe analyze" or "Analyze [feature/path]"
928
-
929
- ## Analysis Modes
930
-
931
- ### 1. Project Analysis (Default)
932
- Analyzes entire project structure and architecture.
933
-
934
- ### 2. Feature Analysis
935
- Analyzes specific feature or module.
936
- \`\`\`
937
- vibe analyze src/auth
938
- vibe analyze "login feature"
939
- \`\`\`
940
-
941
- ### 3. Dependency Analysis
942
- Maps dependencies and coupling.
943
-
944
- ## Workflow
945
-
946
- ### Step 1: Structure Scan
947
- \`\`\`bash
948
- # Find key files
949
- ls -la
950
- find . -name "*.ts" -o -name "*.tsx" | head -20
951
- \`\`\`
952
-
953
- ### Step 2: Entry Points
954
- Identify main entry points:
955
- - package.json scripts
956
- - src/index.ts
957
- - app/main.ts
958
-
959
- ### Step 3: Architecture Mapping
960
- - Module boundaries
961
- - Data flow paths
962
- - External dependencies
963
-
964
- ### Step 4: Quality Assessment
965
- - Complexity hotspots
966
- - Test coverage gaps
967
- - Security concerns
968
-
969
- ## Output Format
970
-
971
- \`\`\`markdown
972
- # Project Analysis: [Name]
973
-
974
- ## Overview
975
- - Framework: [e.g., Next.js 14]
976
- - Language: [e.g., TypeScript 5.x]
977
- - Package Manager: [e.g., pnpm]
978
-
979
- ## Architecture
980
- ### Layers
981
- 1. Presentation (src/components/)
982
- 2. Business Logic (src/services/)
983
- 3. Data Access (src/repositories/)
984
-
985
- ### Key Modules
986
- | Module | Purpose | Files |
987
- |--------|---------|-------|
988
- | auth | Authentication | 12 |
989
- | api | API routes | 8 |
990
-
991
- ## Dependencies
992
- ### Internal
993
- - auth → db, utils
994
- - api → auth, services
995
-
996
- ### External (Notable)
997
- - next: ^14.0.0
998
- - prisma: ^5.0.0
999
-
1000
- ## Quality Metrics
1001
- | Metric | Value | Status |
1002
- |--------|-------|--------|
1003
- | Avg Complexity | 8.2 | ✅ Good |
1004
- | Test Coverage | 65% | ⚠️ Moderate |
1005
- | Type Coverage | 95% | ✅ Good |
1006
-
1007
- ## Recommendations
1008
- 1. [Recommendation 1]
1009
- 2. [Recommendation 2]
1010
- \`\`\`
1011
-
1012
- ## Next Steps
1013
-
1014
- After analysis:
1015
- - "vibe spec [feature]" - Create SPEC for changes
1016
- - "vibe review" - Review existing code quality
1017
- - Plan Mode - For simple modifications
934
+ content: `---
935
+ name: vibe-analyze
936
+ model: claude-4.5-sonnet-thinking
937
+ description: "Project and feature analysis. Use when exploring codebase or planning changes."
938
+ ---
939
+
940
+ # vibe analyze - Analysis Skill
941
+
942
+ Comprehensive project and feature analysis for understanding codebases.
943
+
944
+ ## When to Use
945
+
946
+ - Exploring unfamiliar codebase
947
+ - Planning feature changes
948
+ - Understanding dependencies
949
+ - Identifying potential issues
950
+
951
+ ## Invocation
952
+
953
+ User says: "vibe analyze" or "Analyze [feature/path]"
954
+
955
+ ## Analysis Modes
956
+
957
+ ### 1. Project Analysis (Default)
958
+ Analyzes entire project structure and architecture.
959
+
960
+ ### 2. Feature Analysis
961
+ Analyzes specific feature or module.
962
+ \`\`\`
963
+ vibe analyze src/auth
964
+ vibe analyze "login feature"
965
+ \`\`\`
966
+
967
+ ### 3. Dependency Analysis
968
+ Maps dependencies and coupling.
969
+
970
+ ## Workflow
971
+
972
+ ### Step 1: Structure Scan
973
+ \`\`\`bash
974
+ # Find key files
975
+ ls -la
976
+ find . -name "*.ts" -o -name "*.tsx" | head -20
977
+ \`\`\`
978
+
979
+ ### Step 2: Entry Points
980
+ Identify main entry points:
981
+ - package.json scripts
982
+ - src/index.ts
983
+ - app/main.ts
984
+
985
+ ### Step 3: Architecture Mapping
986
+ - Module boundaries
987
+ - Data flow paths
988
+ - External dependencies
989
+
990
+ ### Step 4: Quality Assessment
991
+ - Complexity hotspots
992
+ - Test coverage gaps
993
+ - Security concerns
994
+
995
+ ## Output Format
996
+
997
+ \`\`\`markdown
998
+ # Project Analysis: [Name]
999
+
1000
+ ## Overview
1001
+ - Framework: [e.g., Next.js 14]
1002
+ - Language: [e.g., TypeScript 5.x]
1003
+ - Package Manager: [e.g., pnpm]
1004
+
1005
+ ## Architecture
1006
+ ### Layers
1007
+ 1. Presentation (src/components/)
1008
+ 2. Business Logic (src/services/)
1009
+ 3. Data Access (src/repositories/)
1010
+
1011
+ ### Key Modules
1012
+ | Module | Purpose | Files |
1013
+ |--------|---------|-------|
1014
+ | auth | Authentication | 12 |
1015
+ | api | API routes | 8 |
1016
+
1017
+ ## Dependencies
1018
+ ### Internal
1019
+ - auth → db, utils
1020
+ - api → auth, services
1021
+
1022
+ ### External (Notable)
1023
+ - next: ^14.0.0
1024
+ - prisma: ^5.0.0
1025
+
1026
+ ## Quality Metrics
1027
+ | Metric | Value | Status |
1028
+ |--------|-------|--------|
1029
+ | Avg Complexity | 8.2 | ✅ Good |
1030
+ | Test Coverage | 65% | ⚠️ Moderate |
1031
+ | Type Coverage | 95% | ✅ Good |
1032
+
1033
+ ## Recommendations
1034
+ 1. [Recommendation 1]
1035
+ 2. [Recommendation 2]
1036
+ \`\`\`
1037
+
1038
+ ## Next Steps
1039
+
1040
+ After analysis:
1041
+ - "vibe spec [feature]" - Create SPEC for changes
1042
+ - "vibe review" - Review existing code quality
1043
+ - Plan Mode - For simple modifications
1018
1044
  `,
1019
1045
  },
1020
1046
  {
1021
1047
  id: 'vibe-verify',
1022
- content: `---
1023
- name: vibe-verify
1024
- model: claude-4.5-sonnet-thinking
1025
- description: "Verify implementation against SPEC requirements. Use after implementation."
1026
- ---
1027
-
1028
- # vibe verify - Verification Skill
1029
-
1030
- Verifies implementation completeness against SPEC requirements.
1031
-
1032
- ## When to Use
1033
-
1034
- - After completing implementation
1035
- - Before marking feature as done
1036
- - For requirement traceability
1037
-
1038
- ## Invocation
1039
-
1040
- User says: "vibe verify [feature-name]"
1041
-
1042
- ## Pre-requisites
1043
-
1044
- 1. SPEC exists at \`.claude/vibe/specs/[feature-name]-spec.md\`
1045
- 2. Implementation is complete
1046
-
1047
- ## Workflow
1048
-
1049
- ### Step 1: Load SPEC
1050
- Read SPEC and extract:
1051
- - Requirements (REQ-XXX)
1052
- - Acceptance criteria
1053
- - Expected outputs
1054
-
1055
- ### Step 2: Map Implementation
1056
- For each requirement:
1057
- - Find implementing code
1058
- - Identify test coverage
1059
- - Check acceptance criteria
1060
-
1061
- ### Step 3: Gap Analysis
1062
- Identify:
1063
- - Unimplemented requirements
1064
- - Untested features
1065
- - Missing acceptance criteria
1066
-
1067
- ### Step 4: Generate Report
1068
-
1069
- ## Verification Levels
1070
-
1071
- | Level | Meaning |
1072
- |-------|---------|
1073
- | ✅ Full | Code + Test + Verified |
1074
- | ⚠️ Partial | Code exists, missing test or verification |
1075
- | ❌ None | Not implemented |
1076
-
1077
- ## Output Format
1078
-
1079
- \`\`\`markdown
1080
- # Verification Report: [Feature]
1081
-
1082
- ## Summary
1083
- - Total Requirements: 10
1084
- - Fully Verified: 8 (80%)
1085
- - Partial: 1 (10%)
1086
- - Missing: 1 (10%)
1087
-
1088
- ## Requirement Matrix
1089
-
1090
- | ID | Requirement | Code | Test | Status |
1091
- |----|-------------|------|------|--------|
1092
- | REQ-001 | User login | ✅ | ✅ | ✅ Full |
1093
- | REQ-002 | Password reset | ✅ | ❌ | ⚠️ Partial |
1094
- | REQ-003 | MFA support | ❌ | ❌ | ❌ None |
1095
-
1096
- ## Acceptance Criteria
1097
-
1098
- | Criterion | Status | Evidence |
1099
- |-----------|--------|----------|
1100
- | Login < 2s | ✅ | Performance test |
1101
- | No plain passwords | ✅ | Code review |
1102
-
1103
- ## Gaps to Address
1104
-
1105
- 1. **REQ-003**: MFA support not implemented
1106
- 2. **REQ-002**: Missing test for password reset
1107
-
1108
- ## Recommendation
1109
- ⚠️ Address gaps before release
1110
- \`\`\`
1111
-
1112
- ## Next Steps
1113
-
1114
- After verification:
1115
- - Fix gaps if any
1116
- - "vibe trace [feature]" - Full traceability matrix
1117
- - "vibe review" - Final code review
1118
- - Ready for release if all verified
1048
+ content: `---
1049
+ name: vibe-verify
1050
+ model: claude-4.5-sonnet-thinking
1051
+ description: "Verify implementation against SPEC requirements. Use after implementation."
1052
+ ---
1053
+
1054
+ # vibe verify - Verification Skill
1055
+
1056
+ Verifies implementation completeness against SPEC requirements.
1057
+
1058
+ ## When to Use
1059
+
1060
+ - After completing implementation
1061
+ - Before marking feature as done
1062
+ - For requirement traceability
1063
+
1064
+ ## Invocation
1065
+
1066
+ User says: "vibe verify [feature-name]"
1067
+
1068
+ ## Pre-requisites
1069
+
1070
+ 1. SPEC exists at \`.claude/vibe/specs/[feature-name]-spec.md\`
1071
+ 2. Implementation is complete
1072
+
1073
+ ## Workflow
1074
+
1075
+ ### Step 1: Load SPEC
1076
+ Read SPEC and extract:
1077
+ - Requirements (REQ-XXX)
1078
+ - Acceptance criteria
1079
+ - Expected outputs
1080
+
1081
+ ### Step 2: Map Implementation
1082
+ For each requirement:
1083
+ - Find implementing code
1084
+ - Identify test coverage
1085
+ - Check acceptance criteria
1086
+
1087
+ ### Step 3: Gap Analysis
1088
+ Identify:
1089
+ - Unimplemented requirements
1090
+ - Untested features
1091
+ - Missing acceptance criteria
1092
+
1093
+ ### Step 4: Generate Report
1094
+
1095
+ ## Verification Levels
1096
+
1097
+ | Level | Meaning |
1098
+ |-------|---------|
1099
+ | ✅ Full | Code + Test + Verified |
1100
+ | ⚠️ Partial | Code exists, missing test or verification |
1101
+ | ❌ None | Not implemented |
1102
+
1103
+ ## Output Format
1104
+
1105
+ \`\`\`markdown
1106
+ # Verification Report: [Feature]
1107
+
1108
+ ## Summary
1109
+ - Total Requirements: 10
1110
+ - Fully Verified: 8 (80%)
1111
+ - Partial: 1 (10%)
1112
+ - Missing: 1 (10%)
1113
+
1114
+ ## Requirement Matrix
1115
+
1116
+ | ID | Requirement | Code | Test | Status |
1117
+ |----|-------------|------|------|--------|
1118
+ | REQ-001 | User login | ✅ | ✅ | ✅ Full |
1119
+ | REQ-002 | Password reset | ✅ | ❌ | ⚠️ Partial |
1120
+ | REQ-003 | MFA support | ❌ | ❌ | ❌ None |
1121
+
1122
+ ## Acceptance Criteria
1123
+
1124
+ | Criterion | Status | Evidence |
1125
+ |-----------|--------|----------|
1126
+ | Login < 2s | ✅ | Performance test |
1127
+ | No plain passwords | ✅ | Code review |
1128
+
1129
+ ## Gaps to Address
1130
+
1131
+ 1. **REQ-003**: MFA support not implemented
1132
+ 2. **REQ-002**: Missing test for password reset
1133
+
1134
+ ## Recommendation
1135
+ ⚠️ Address gaps before release
1136
+ \`\`\`
1137
+
1138
+ ## Next Steps
1139
+
1140
+ After verification:
1141
+ - Fix gaps if any
1142
+ - "vibe trace [feature]" - Full traceability matrix
1143
+ - "vibe review" - Final code review
1144
+ - Ready for release if all verified
1119
1145
  `,
1120
1146
  },
1121
1147
  {
1122
1148
  id: 'vibe-reason',
1123
- content: `---
1124
- name: vibe-reason
1125
- model: claude-4.5-opus-high-thinking
1126
- description: "Systematic 9-step reasoning framework. Use for complex problem solving."
1127
- ---
1128
-
1129
- # vibe reason - Reasoning Framework Skill
1130
-
1131
- Applies systematic reasoning to complex problems and decisions.
1132
-
1133
- ## When to Use
1134
-
1135
- - Complex debugging scenarios
1136
- - Architecture decisions
1137
- - Trade-off analysis
1138
- - Root cause analysis
1139
-
1140
- ## Invocation
1141
-
1142
- User says: "vibe reason [problem]" or "Reason about [problem]"
1143
-
1144
- ## 9-Step Reasoning Framework
1145
-
1146
- ### Step 1: Problem Definition
1147
- - What exactly is the problem?
1148
- - What are the symptoms?
1149
- - What is the expected vs actual behavior?
1150
-
1151
- ### Step 2: Context Gathering
1152
- - What is the relevant code/system?
1153
- - What changed recently?
1154
- - What are the constraints?
1155
-
1156
- ### Step 3: Hypothesis Generation
1157
- Generate multiple hypotheses:
1158
- - Hypothesis A: [Description]
1159
- - Hypothesis B: [Description]
1160
- - Hypothesis C: [Description]
1161
-
1162
- ### Step 4: Evidence Collection
1163
- For each hypothesis:
1164
- - What evidence supports it?
1165
- - What evidence contradicts it?
1166
- - What additional info needed?
1167
-
1168
- ### Step 5: Hypothesis Evaluation
1169
- Score each hypothesis:
1170
- | Hypothesis | Support | Contradict | Confidence |
1171
- |------------|---------|------------|------------|
1172
- | A | 3 | 1 | 75% |
1173
- | B | 2 | 2 | 50% |
1174
- | C | 1 | 3 | 25% |
1175
-
1176
- ### Step 6: Deep Dive
1177
- Focus on highest-confidence hypothesis:
1178
- - Trace code paths
1179
- - Check logs/metrics
1180
- - Reproduce issue
1181
-
1182
- ### Step 7: Solution Design
1183
- Design solution addressing root cause:
1184
- - Option 1: [Description] - Pros/Cons
1185
- - Option 2: [Description] - Pros/Cons
1186
-
1187
- ### Step 8: Risk Assessment
1188
- | Risk | Impact | Probability | Mitigation |
1189
- |------|--------|-------------|------------|
1190
- | [Risk 1] | High | Medium | [Strategy] |
1191
-
1192
- ### Step 9: Recommendation
1193
- Final recommendation with:
1194
- - Chosen solution
1195
- - Implementation steps
1196
- - Verification plan
1197
-
1198
- ## Output Format
1199
-
1200
- \`\`\`markdown
1201
- # Reasoning Analysis: [Problem]
1202
-
1203
- ## 1. Problem Definition
1204
- [Clear statement of the problem]
1205
-
1206
- ## 2. Context
1207
- [Relevant background and constraints]
1208
-
1209
- ## 3. Hypotheses
1210
- 1. **H1**: [Description]
1211
- 2. **H2**: [Description]
1212
- 3. **H3**: [Description]
1213
-
1214
- ## 4-5. Evidence & Evaluation
1215
- | Hypothesis | Evidence For | Evidence Against | Confidence |
1216
- |------------|--------------|------------------|------------|
1217
- | H1 | [List] | [List] | 80% |
1218
- | H2 | [List] | [List] | 40% |
1219
-
1220
- ## 6. Deep Dive (H1)
1221
- [Detailed analysis of most likely cause]
1222
-
1223
- ## 7. Solutions
1224
- ### Option A (Recommended)
1225
- - Description: [...]
1226
- - Pros: [...]
1227
- - Cons: [...]
1228
-
1229
- ### Option B
1230
- - Description: [...]
1231
- - Pros: [...]
1232
- - Cons: [...]
1233
-
1234
- ## 8. Risks
1235
- | Risk | Mitigation |
1236
- |------|------------|
1237
- | [Risk] | [Strategy] |
1238
-
1239
- ## 9. Recommendation
1240
- **Proceed with Option A because:**
1241
- 1. [Reason 1]
1242
- 2. [Reason 2]
1243
-
1244
- **Next Steps:**
1245
- 1. [Step 1]
1246
- 2. [Step 2]
1247
- \`\`\`
1248
-
1249
- ## Next Steps
1250
-
1251
- After reasoning:
1252
- - Implement chosen solution
1253
- - "vibe spec [solution]" - If solution needs SPEC
1254
- - "vibe verify" - Verify solution addresses problem
1149
+ content: `---
1150
+ name: vibe-reason
1151
+ model: claude-4.5-opus-high-thinking
1152
+ description: "Systematic 9-step reasoning framework. Use for complex problem solving."
1153
+ ---
1154
+
1155
+ # vibe reason - Reasoning Framework Skill
1156
+
1157
+ Applies systematic reasoning to complex problems and decisions.
1158
+
1159
+ ## When to Use
1160
+
1161
+ - Complex debugging scenarios
1162
+ - Architecture decisions
1163
+ - Trade-off analysis
1164
+ - Root cause analysis
1165
+
1166
+ ## Invocation
1167
+
1168
+ User says: "vibe reason [problem]" or "Reason about [problem]"
1169
+
1170
+ ## 9-Step Reasoning Framework
1171
+
1172
+ ### Step 1: Problem Definition
1173
+ - What exactly is the problem?
1174
+ - What are the symptoms?
1175
+ - What is the expected vs actual behavior?
1176
+
1177
+ ### Step 2: Context Gathering
1178
+ - What is the relevant code/system?
1179
+ - What changed recently?
1180
+ - What are the constraints?
1181
+
1182
+ ### Step 3: Hypothesis Generation
1183
+ Generate multiple hypotheses:
1184
+ - Hypothesis A: [Description]
1185
+ - Hypothesis B: [Description]
1186
+ - Hypothesis C: [Description]
1187
+
1188
+ ### Step 4: Evidence Collection
1189
+ For each hypothesis:
1190
+ - What evidence supports it?
1191
+ - What evidence contradicts it?
1192
+ - What additional info needed?
1193
+
1194
+ ### Step 5: Hypothesis Evaluation
1195
+ Score each hypothesis:
1196
+ | Hypothesis | Support | Contradict | Confidence |
1197
+ |------------|---------|------------|------------|
1198
+ | A | 3 | 1 | 75% |
1199
+ | B | 2 | 2 | 50% |
1200
+ | C | 1 | 3 | 25% |
1201
+
1202
+ ### Step 6: Deep Dive
1203
+ Focus on highest-confidence hypothesis:
1204
+ - Trace code paths
1205
+ - Check logs/metrics
1206
+ - Reproduce issue
1207
+
1208
+ ### Step 7: Solution Design
1209
+ Design solution addressing root cause:
1210
+ - Option 1: [Description] - Pros/Cons
1211
+ - Option 2: [Description] - Pros/Cons
1212
+
1213
+ ### Step 8: Risk Assessment
1214
+ | Risk | Impact | Probability | Mitigation |
1215
+ |------|--------|-------------|------------|
1216
+ | [Risk 1] | High | Medium | [Strategy] |
1217
+
1218
+ ### Step 9: Recommendation
1219
+ Final recommendation with:
1220
+ - Chosen solution
1221
+ - Implementation steps
1222
+ - Verification plan
1223
+
1224
+ ## Output Format
1225
+
1226
+ \`\`\`markdown
1227
+ # Reasoning Analysis: [Problem]
1228
+
1229
+ ## 1. Problem Definition
1230
+ [Clear statement of the problem]
1231
+
1232
+ ## 2. Context
1233
+ [Relevant background and constraints]
1234
+
1235
+ ## 3. Hypotheses
1236
+ 1. **H1**: [Description]
1237
+ 2. **H2**: [Description]
1238
+ 3. **H3**: [Description]
1239
+
1240
+ ## 4-5. Evidence & Evaluation
1241
+ | Hypothesis | Evidence For | Evidence Against | Confidence |
1242
+ |------------|--------------|------------------|------------|
1243
+ | H1 | [List] | [List] | 80% |
1244
+ | H2 | [List] | [List] | 40% |
1245
+
1246
+ ## 6. Deep Dive (H1)
1247
+ [Detailed analysis of most likely cause]
1248
+
1249
+ ## 7. Solutions
1250
+ ### Option A (Recommended)
1251
+ - Description: [...]
1252
+ - Pros: [...]
1253
+ - Cons: [...]
1254
+
1255
+ ### Option B
1256
+ - Description: [...]
1257
+ - Pros: [...]
1258
+ - Cons: [...]
1259
+
1260
+ ## 8. Risks
1261
+ | Risk | Mitigation |
1262
+ |------|------------|
1263
+ | [Risk] | [Strategy] |
1264
+
1265
+ ## 9. Recommendation
1266
+ **Proceed with Option A because:**
1267
+ 1. [Reason 1]
1268
+ 2. [Reason 2]
1269
+
1270
+ **Next Steps:**
1271
+ 1. [Step 1]
1272
+ 2. [Step 2]
1273
+ \`\`\`
1274
+
1275
+ ## Next Steps
1276
+
1277
+ After reasoning:
1278
+ - Implement chosen solution
1279
+ - "vibe spec [solution]" - If solution needs SPEC
1280
+ - "vibe verify" - Verify solution addresses problem
1255
1281
  `,
1256
1282
  },
1257
1283
  {
1258
1284
  id: 'vibe-ui',
1259
- content: `---
1260
- name: vibe-ui
1261
- model: gpt-5.2-codex
1262
- description: "UI preview and generation utilities. Use for UI component work."
1263
- ---
1264
-
1265
- # vibe ui - UI Utilities Skill
1266
-
1267
- UI preview, generation, and refactoring utilities.
1268
-
1269
- ## When to Use
1270
-
1271
- - Creating new UI components
1272
- - Previewing UI designs
1273
- - Refactoring existing components
1274
- - Generating component code from descriptions
1275
-
1276
- ## Invocation
1277
-
1278
- User says: "vibe ui [description]" or "Preview UI for [description]"
1279
-
1280
- ## Modes
1281
-
1282
- ### 1. UI Preview
1283
- Generate visual preview of UI description.
1284
- \`\`\`
1285
- vibe ui "Login form with email, password, and remember me checkbox"
1286
- \`\`\`
1287
-
1288
- ### 2. Component Generation
1289
- Generate component code from description.
1290
- \`\`\`
1291
- vibe ui generate "User profile card with avatar, name, and bio"
1292
- \`\`\`
1293
-
1294
- ### 3. UI Refactoring
1295
- Refactor existing component for better patterns.
1296
- \`\`\`
1297
- vibe ui refactor src/components/UserCard.tsx
1298
- \`\`\`
1299
-
1300
- ## Workflow
1301
-
1302
- ### UI Preview Mode
1303
-
1304
- 1. **Parse Description**
1305
- - Extract UI elements
1306
- - Identify layout requirements
1307
- - Note interactions
1308
-
1309
- 2. **Generate Preview**
1310
- - Create HTML/CSS mockup
1311
- - Show component structure
1312
- - Illustrate states (default, hover, active)
1313
-
1314
- 3. **Output**
1315
- - Visual description
1316
- - Component hierarchy
1317
- - Suggested implementation
1318
-
1319
- ### Component Generation Mode
1320
-
1321
- 1. **Analyze Requirements**
1322
- - Component purpose
1323
- - Props interface
1324
- - State requirements
1325
-
1326
- 2. **Generate Code**
1327
- - TypeScript/React component
1328
- - Styled with project's CSS approach
1329
- - Include prop types
1330
-
1331
- 3. **Output**
1332
- - Complete component file
1333
- - Usage example
1334
- - Test suggestions
1335
-
1336
- ### Refactoring Mode
1337
-
1338
- 1. **Analyze Existing**
1339
- - Current structure
1340
- - Identified issues
1341
- - Improvement opportunities
1342
-
1343
- 2. **Plan Refactor**
1344
- - Extract components
1345
- - Improve patterns
1346
- - Optimize performance
1347
-
1348
- 3. **Apply Changes**
1349
- - Preserve functionality
1350
- - Improve readability
1351
- - Add documentation
1352
-
1353
- ## Output Format
1354
-
1355
- ### Preview Output
1356
- \`\`\`markdown
1357
- # UI Preview: [Description]
1358
-
1359
- ## Visual Structure
1360
- \`\`\`
1361
- ┌─────────────────────────────────┐
1362
- │ [Header] │
1363
- ├─────────────────────────────────┤
1364
- │ 📧 Email: [_______________] │
1365
- │ 🔒 Password: [_______________] │
1366
- │ ☐ Remember me │
1367
- │ │
1368
- │ [ Login ] │
1369
- └─────────────────────────────────┘
1370
- \`\`\`
1371
-
1372
- ## Component Hierarchy
1373
- - LoginForm
1374
- - FormField (email)
1375
- - FormField (password)
1376
- - Checkbox (remember)
1377
- - Button (submit)
1378
-
1379
- ## Suggested Props
1380
- \`\`\`typescript
1381
- interface LoginFormProps {
1382
- onSubmit: (data: LoginData) => void;
1383
- isLoading?: boolean;
1384
- error?: string;
1385
- }
1386
- \`\`\`
1387
- \`\`\`
1388
-
1389
- ### Generation Output
1390
- \`\`\`typescript
1391
- // Complete component code with:
1392
- // - TypeScript types
1393
- // - React hooks
1394
- // - Styled components or CSS classes
1395
- // - Event handlers
1396
- \`\`\`
1397
-
1398
- ## Next Steps
1399
-
1400
- After UI work:
1401
- - "vibe review" - Review generated components
1402
- - "vibe run [feature]" - Continue implementation
1403
- - Add tests for new components
1285
+ content: `---
1286
+ name: vibe-ui
1287
+ model: gpt-5.2-codex
1288
+ description: "UI preview and generation utilities. Use for UI component work."
1289
+ ---
1290
+
1291
+ # vibe ui - UI Utilities Skill
1292
+
1293
+ UI preview, generation, and refactoring utilities.
1294
+
1295
+ ## When to Use
1296
+
1297
+ - Creating new UI components
1298
+ - Previewing UI designs
1299
+ - Refactoring existing components
1300
+ - Generating component code from descriptions
1301
+
1302
+ ## Invocation
1303
+
1304
+ User says: "vibe ui [description]" or "Preview UI for [description]"
1305
+
1306
+ ## Modes
1307
+
1308
+ ### 1. UI Preview
1309
+ Generate visual preview of UI description.
1310
+ \`\`\`
1311
+ vibe ui "Login form with email, password, and remember me checkbox"
1312
+ \`\`\`
1313
+
1314
+ ### 2. Component Generation
1315
+ Generate component code from description.
1316
+ \`\`\`
1317
+ vibe ui generate "User profile card with avatar, name, and bio"
1318
+ \`\`\`
1319
+
1320
+ ### 3. UI Refactoring
1321
+ Refactor existing component for better patterns.
1322
+ \`\`\`
1323
+ vibe ui refactor src/components/UserCard.tsx
1324
+ \`\`\`
1325
+
1326
+ ## Workflow
1327
+
1328
+ ### UI Preview Mode
1329
+
1330
+ 1. **Parse Description**
1331
+ - Extract UI elements
1332
+ - Identify layout requirements
1333
+ - Note interactions
1334
+
1335
+ 2. **Generate Preview**
1336
+ - Create HTML/CSS mockup
1337
+ - Show component structure
1338
+ - Illustrate states (default, hover, active)
1339
+
1340
+ 3. **Output**
1341
+ - Visual description
1342
+ - Component hierarchy
1343
+ - Suggested implementation
1344
+
1345
+ ### Component Generation Mode
1346
+
1347
+ 1. **Analyze Requirements**
1348
+ - Component purpose
1349
+ - Props interface
1350
+ - State requirements
1351
+
1352
+ 2. **Generate Code**
1353
+ - TypeScript/React component
1354
+ - Styled with project's CSS approach
1355
+ - Include prop types
1356
+
1357
+ 3. **Output**
1358
+ - Complete component file
1359
+ - Usage example
1360
+ - Test suggestions
1361
+
1362
+ ### Refactoring Mode
1363
+
1364
+ 1. **Analyze Existing**
1365
+ - Current structure
1366
+ - Identified issues
1367
+ - Improvement opportunities
1368
+
1369
+ 2. **Plan Refactor**
1370
+ - Extract components
1371
+ - Improve patterns
1372
+ - Optimize performance
1373
+
1374
+ 3. **Apply Changes**
1375
+ - Preserve functionality
1376
+ - Improve readability
1377
+ - Add documentation
1378
+
1379
+ ## Output Format
1380
+
1381
+ ### Preview Output
1382
+ \`\`\`markdown
1383
+ # UI Preview: [Description]
1384
+
1385
+ ## Visual Structure
1386
+ \`\`\`
1387
+ ┌─────────────────────────────────┐
1388
+ │ [Header] │
1389
+ ├─────────────────────────────────┤
1390
+ │ 📧 Email: [_______________] │
1391
+ │ 🔒 Password: [_______________] │
1392
+ │ ☐ Remember me │
1393
+ │ │
1394
+ │ [ Login ] │
1395
+ └─────────────────────────────────┘
1396
+ \`\`\`
1397
+
1398
+ ## Component Hierarchy
1399
+ - LoginForm
1400
+ - FormField (email)
1401
+ - FormField (password)
1402
+ - Checkbox (remember)
1403
+ - Button (submit)
1404
+
1405
+ ## Suggested Props
1406
+ \`\`\`typescript
1407
+ interface LoginFormProps {
1408
+ onSubmit: (data: LoginData) => void;
1409
+ isLoading?: boolean;
1410
+ error?: string;
1411
+ }
1412
+ \`\`\`
1413
+ \`\`\`
1414
+
1415
+ ### Generation Output
1416
+ \`\`\`typescript
1417
+ // Complete component code with:
1418
+ // - TypeScript types
1419
+ // - React hooks
1420
+ // - Styled components or CSS classes
1421
+ // - Event handlers
1422
+ \`\`\`
1423
+
1424
+ ## Next Steps
1425
+
1426
+ After UI work:
1427
+ - "vibe review" - Review generated components
1428
+ - "vibe run [feature]" - Continue implementation
1429
+ - Add tests for new components
1404
1430
  `,
1405
1431
  },
1406
1432
  ];
@@ -1514,6 +1540,8 @@ function main() {
1514
1540
  }
1515
1541
  // 6. hooks는 프로젝트 레벨에서 관리 (vibe init/update에서 처리)
1516
1542
  // 전역 설정에는 훅을 등록하지 않음 - 프로젝트별 .claude/settings.local.json 사용
1543
+ // 6-1. 레거시 전역 hooks 정리 (이전 버전 호환성)
1544
+ cleanupGlobalSettingsHooks();
1517
1545
  // 7. Cursor IDE 지원 - ~/.cursor/agents/에 변환된 서브에이전트 설치
1518
1546
  const cursorAgentsDir = path.join(os.homedir(), '.cursor', 'agents');
1519
1547
  installCursorAgents(agentsSource, cursorAgentsDir);