@su-record/vibe 2.5.9 → 2.5.11

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 (233) hide show
  1. package/CLAUDE.md +448 -348
  2. package/LICENSE +21 -21
  3. package/README.md +262 -262
  4. package/agents/architect-low.md +41 -0
  5. package/agents/architect-medium.md +59 -0
  6. package/agents/architect.md +80 -0
  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/e2e-tester.md +266 -266
  11. package/agents/explorer-low.md +42 -0
  12. package/agents/explorer-medium.md +59 -0
  13. package/agents/explorer.md +48 -48
  14. package/agents/implementer-low.md +43 -0
  15. package/agents/implementer-medium.md +52 -0
  16. package/agents/implementer.md +54 -54
  17. package/agents/refactor-cleaner.md +143 -143
  18. package/agents/research/best-practices-agent.md +189 -189
  19. package/agents/research/codebase-patterns-agent.md +147 -147
  20. package/agents/research/framework-docs-agent.md +178 -178
  21. package/agents/research/security-advisory-agent.md +203 -203
  22. package/agents/review/architecture-reviewer.md +107 -107
  23. package/agents/review/complexity-reviewer.md +116 -116
  24. package/agents/review/data-integrity-reviewer.md +88 -88
  25. package/agents/review/git-history-reviewer.md +103 -103
  26. package/agents/review/performance-reviewer.md +86 -86
  27. package/agents/review/python-reviewer.md +150 -150
  28. package/agents/review/rails-reviewer.md +139 -139
  29. package/agents/review/react-reviewer.md +144 -144
  30. package/agents/review/security-reviewer.md +80 -80
  31. package/agents/review/simplicity-reviewer.md +140 -140
  32. package/agents/review/test-coverage-reviewer.md +116 -116
  33. package/agents/review/typescript-reviewer.md +127 -127
  34. package/agents/searcher.md +54 -54
  35. package/agents/simplifier.md +120 -120
  36. package/agents/tester.md +49 -49
  37. package/agents/ui-previewer.md +129 -129
  38. package/commands/vibe.analyze.md +356 -356
  39. package/commands/vibe.reason.md +329 -329
  40. package/commands/vibe.review.md +326 -326
  41. package/commands/vibe.run.md +1051 -1031
  42. package/commands/vibe.spec.md +1058 -1022
  43. package/commands/vibe.utils.md +296 -296
  44. package/commands/vibe.verify.md +375 -375
  45. package/dist/cli/collaborator.js +52 -52
  46. package/dist/cli/detect.js +32 -32
  47. package/dist/cli/index.js +102 -102
  48. package/dist/cli/llm.js +144 -144
  49. package/dist/lib/DeepInit.d.ts +62 -0
  50. package/dist/lib/DeepInit.d.ts.map +1 -0
  51. package/dist/lib/DeepInit.js +247 -0
  52. package/dist/lib/DeepInit.js.map +1 -0
  53. package/dist/lib/IterationTracker.d.ts +81 -0
  54. package/dist/lib/IterationTracker.d.ts.map +1 -0
  55. package/dist/lib/IterationTracker.js +190 -0
  56. package/dist/lib/IterationTracker.js.map +1 -0
  57. package/dist/lib/ModelRouter.d.ts +50 -0
  58. package/dist/lib/ModelRouter.d.ts.map +1 -0
  59. package/dist/lib/ModelRouter.js +218 -0
  60. package/dist/lib/ModelRouter.js.map +1 -0
  61. package/dist/lib/OrchestrateWorkflow.d.ts +90 -0
  62. package/dist/lib/OrchestrateWorkflow.d.ts.map +1 -0
  63. package/dist/lib/OrchestrateWorkflow.js +261 -0
  64. package/dist/lib/OrchestrateWorkflow.js.map +1 -0
  65. package/dist/lib/PythonParser.js +108 -108
  66. package/dist/lib/SkillFrontmatter.d.ts +64 -0
  67. package/dist/lib/SkillFrontmatter.d.ts.map +1 -0
  68. package/dist/lib/SkillFrontmatter.js +221 -0
  69. package/dist/lib/SkillFrontmatter.js.map +1 -0
  70. package/dist/lib/SkillQualityGate.d.ts +40 -0
  71. package/dist/lib/SkillQualityGate.d.ts.map +1 -0
  72. package/dist/lib/SkillQualityGate.js +218 -0
  73. package/dist/lib/SkillQualityGate.js.map +1 -0
  74. package/dist/lib/UltraQA.d.ts +70 -0
  75. package/dist/lib/UltraQA.d.ts.map +1 -0
  76. package/dist/lib/UltraQA.js +234 -0
  77. package/dist/lib/UltraQA.js.map +1 -0
  78. package/dist/lib/gpt-api.js +4 -4
  79. package/dist/lib/memory/KnowledgeGraph.js +4 -4
  80. package/dist/lib/memory/MemorySearch.js +20 -20
  81. package/dist/lib/memory/MemoryStorage.js +64 -64
  82. package/dist/tools/convention/analyzeComplexity.test.js +115 -115
  83. package/dist/tools/convention/validateCodeQuality.test.js +104 -104
  84. package/dist/tools/index.d.ts +7 -0
  85. package/dist/tools/index.d.ts.map +1 -1
  86. package/dist/tools/index.js +12 -0
  87. package/dist/tools/index.js.map +1 -1
  88. package/hooks/hooks.json +222 -204
  89. package/hooks/scripts/code-check.js +22 -22
  90. package/hooks/scripts/code-review.js +22 -22
  91. package/hooks/scripts/complexity.js +22 -22
  92. package/hooks/scripts/compound.js +23 -23
  93. package/hooks/scripts/context-save.js +33 -33
  94. package/hooks/scripts/hud-multiline.js +264 -0
  95. package/hooks/scripts/hud-status.js +293 -0
  96. package/hooks/scripts/keyword-detector.js +216 -0
  97. package/hooks/scripts/llm-orchestrate.js +171 -171
  98. package/hooks/scripts/post-edit.js +97 -97
  99. package/hooks/scripts/post-tool-verify.js +212 -0
  100. package/hooks/scripts/pre-tool-guard.js +127 -0
  101. package/hooks/scripts/recall.js +22 -22
  102. package/hooks/scripts/session-start.js +30 -30
  103. package/hooks/scripts/skill-injector.js +193 -0
  104. package/hooks/scripts/utils.js +97 -97
  105. package/languages/csharp-unity.md +515 -515
  106. package/languages/gdscript-godot.md +470 -470
  107. package/languages/ruby-rails.md +489 -489
  108. package/languages/typescript-angular.md +433 -433
  109. package/languages/typescript-astro.md +416 -416
  110. package/languages/typescript-electron.md +406 -406
  111. package/languages/typescript-nestjs.md +524 -524
  112. package/languages/typescript-svelte.md +407 -407
  113. package/languages/typescript-tauri.md +365 -365
  114. package/package.json +83 -83
  115. package/skills/context7-usage.md +102 -102
  116. package/skills/git-worktree.md +181 -181
  117. package/skills/parallel-research.md +77 -77
  118. package/skills/priority-todos.md +239 -239
  119. package/skills/tool-fallback.md +190 -190
  120. package/skills/vibe-capabilities.md +161 -161
  121. package/vibe/constitution.md +227 -227
  122. package/vibe/rules/core/communication-guide.md +98 -98
  123. package/vibe/rules/core/development-philosophy.md +52 -52
  124. package/vibe/rules/core/quick-start.md +102 -102
  125. package/vibe/rules/quality/bdd-contract-testing.md +393 -393
  126. package/vibe/rules/quality/checklist.md +276 -276
  127. package/vibe/rules/quality/testing-strategy.md +440 -440
  128. package/vibe/rules/standards/anti-patterns.md +541 -541
  129. package/vibe/rules/standards/code-structure.md +291 -291
  130. package/vibe/rules/standards/complexity-metrics.md +313 -313
  131. package/vibe/rules/standards/naming-conventions.md +198 -198
  132. package/vibe/setup.sh +31 -31
  133. package/vibe/templates/constitution-template.md +252 -252
  134. package/vibe/templates/contract-backend-template.md +526 -526
  135. package/vibe/templates/contract-frontend-template.md +599 -599
  136. package/vibe/templates/feature-template.md +96 -96
  137. package/vibe/templates/spec-template.md +221 -221
  138. package/dist/cli/mcp.d.ts +0 -49
  139. package/dist/cli/mcp.d.ts.map +0 -1
  140. package/dist/cli/mcp.js +0 -169
  141. package/dist/cli/mcp.js.map +0 -1
  142. package/dist/lib/gemini-mcp.d.ts +0 -10
  143. package/dist/lib/gemini-mcp.d.ts.map +0 -1
  144. package/dist/lib/gemini-mcp.js +0 -353
  145. package/dist/lib/gemini-mcp.js.map +0 -1
  146. package/dist/lib/gpt-mcp.d.ts +0 -10
  147. package/dist/lib/gpt-mcp.d.ts.map +0 -1
  148. package/dist/lib/gpt-mcp.js +0 -352
  149. package/dist/lib/gpt-mcp.js.map +0 -1
  150. package/dist/tools/analytics/getUsageAnalytics.d.ts +0 -10
  151. package/dist/tools/analytics/getUsageAnalytics.d.ts.map +0 -1
  152. package/dist/tools/analytics/getUsageAnalytics.js +0 -246
  153. package/dist/tools/analytics/getUsageAnalytics.js.map +0 -1
  154. package/dist/tools/analytics/index.d.ts +0 -5
  155. package/dist/tools/analytics/index.d.ts.map +0 -1
  156. package/dist/tools/analytics/index.js +0 -5
  157. package/dist/tools/analytics/index.js.map +0 -1
  158. package/dist/tools/convention/getCodingGuide.d.ts +0 -7
  159. package/dist/tools/convention/getCodingGuide.d.ts.map +0 -1
  160. package/dist/tools/convention/getCodingGuide.js +0 -69
  161. package/dist/tools/convention/getCodingGuide.js.map +0 -1
  162. package/dist/tools/planning/analyzeRequirements.d.ts +0 -9
  163. package/dist/tools/planning/analyzeRequirements.d.ts.map +0 -1
  164. package/dist/tools/planning/analyzeRequirements.js +0 -171
  165. package/dist/tools/planning/analyzeRequirements.js.map +0 -1
  166. package/dist/tools/planning/createUserStories.d.ts +0 -9
  167. package/dist/tools/planning/createUserStories.d.ts.map +0 -1
  168. package/dist/tools/planning/createUserStories.js +0 -124
  169. package/dist/tools/planning/createUserStories.js.map +0 -1
  170. package/dist/tools/planning/featureRoadmap.d.ts +0 -10
  171. package/dist/tools/planning/featureRoadmap.d.ts.map +0 -1
  172. package/dist/tools/planning/featureRoadmap.js +0 -207
  173. package/dist/tools/planning/featureRoadmap.js.map +0 -1
  174. package/dist/tools/planning/generatePrd.d.ts +0 -11
  175. package/dist/tools/planning/generatePrd.d.ts.map +0 -1
  176. package/dist/tools/planning/generatePrd.js +0 -161
  177. package/dist/tools/planning/generatePrd.js.map +0 -1
  178. package/dist/tools/planning/index.d.ts +0 -8
  179. package/dist/tools/planning/index.d.ts.map +0 -1
  180. package/dist/tools/planning/index.js +0 -8
  181. package/dist/tools/planning/index.js.map +0 -1
  182. package/dist/tools/prompt/analyzePrompt.d.ts +0 -7
  183. package/dist/tools/prompt/analyzePrompt.d.ts.map +0 -1
  184. package/dist/tools/prompt/analyzePrompt.js +0 -150
  185. package/dist/tools/prompt/analyzePrompt.js.map +0 -1
  186. package/dist/tools/prompt/enhancePrompt.d.ts +0 -8
  187. package/dist/tools/prompt/enhancePrompt.d.ts.map +0 -1
  188. package/dist/tools/prompt/enhancePrompt.js +0 -110
  189. package/dist/tools/prompt/enhancePrompt.js.map +0 -1
  190. package/dist/tools/prompt/enhancePromptGemini.d.ts +0 -8
  191. package/dist/tools/prompt/enhancePromptGemini.d.ts.map +0 -1
  192. package/dist/tools/prompt/enhancePromptGemini.js +0 -332
  193. package/dist/tools/prompt/enhancePromptGemini.js.map +0 -1
  194. package/dist/tools/prompt/index.d.ts +0 -7
  195. package/dist/tools/prompt/index.d.ts.map +0 -1
  196. package/dist/tools/prompt/index.js +0 -7
  197. package/dist/tools/prompt/index.js.map +0 -1
  198. package/dist/tools/reasoning/applyReasoningFramework.d.ts +0 -8
  199. package/dist/tools/reasoning/applyReasoningFramework.d.ts.map +0 -1
  200. package/dist/tools/reasoning/applyReasoningFramework.js +0 -266
  201. package/dist/tools/reasoning/applyReasoningFramework.js.map +0 -1
  202. package/dist/tools/reasoning/index.d.ts +0 -5
  203. package/dist/tools/reasoning/index.d.ts.map +0 -1
  204. package/dist/tools/reasoning/index.js +0 -5
  205. package/dist/tools/reasoning/index.js.map +0 -1
  206. package/dist/tools/thinking/analyzeProblem.d.ts +0 -7
  207. package/dist/tools/thinking/analyzeProblem.d.ts.map +0 -1
  208. package/dist/tools/thinking/analyzeProblem.js +0 -55
  209. package/dist/tools/thinking/analyzeProblem.js.map +0 -1
  210. package/dist/tools/thinking/breakDownProblem.d.ts +0 -8
  211. package/dist/tools/thinking/breakDownProblem.d.ts.map +0 -1
  212. package/dist/tools/thinking/breakDownProblem.js +0 -145
  213. package/dist/tools/thinking/breakDownProblem.js.map +0 -1
  214. package/dist/tools/thinking/createThinkingChain.d.ts +0 -7
  215. package/dist/tools/thinking/createThinkingChain.d.ts.map +0 -1
  216. package/dist/tools/thinking/createThinkingChain.js +0 -44
  217. package/dist/tools/thinking/createThinkingChain.js.map +0 -1
  218. package/dist/tools/thinking/formatAsPlan.d.ts +0 -9
  219. package/dist/tools/thinking/formatAsPlan.d.ts.map +0 -1
  220. package/dist/tools/thinking/formatAsPlan.js +0 -78
  221. package/dist/tools/thinking/formatAsPlan.js.map +0 -1
  222. package/dist/tools/thinking/index.d.ts +0 -10
  223. package/dist/tools/thinking/index.d.ts.map +0 -1
  224. package/dist/tools/thinking/index.js +0 -10
  225. package/dist/tools/thinking/index.js.map +0 -1
  226. package/dist/tools/thinking/stepByStepAnalysis.d.ts +0 -8
  227. package/dist/tools/thinking/stepByStepAnalysis.d.ts.map +0 -1
  228. package/dist/tools/thinking/stepByStepAnalysis.js +0 -63
  229. package/dist/tools/thinking/stepByStepAnalysis.js.map +0 -1
  230. package/dist/tools/thinking/thinkAloudProcess.d.ts +0 -8
  231. package/dist/tools/thinking/thinkAloudProcess.d.ts.map +0 -1
  232. package/dist/tools/thinking/thinkAloudProcess.js +0 -80
  233. package/dist/tools/thinking/thinkAloudProcess.js.map +0 -1
package/CLAUDE.md CHANGED
@@ -1,348 +1,448 @@
1
- # VIBE
2
-
3
- SPEC-driven AI Coding Framework (Claude Code Exclusive)
4
-
5
- ## Response Language
6
-
7
- **IMPORTANT: Always respond in English unless the user explicitly requests otherwise.**
8
-
9
- ## Response Language
10
-
11
- **IMPORTANT: Always respond in Korean (한국어) unless the user explicitly requests otherwise.**
12
-
13
- ## Code Quality Standards (Mandatory)
14
-
15
- Follow these standards when writing code. See `~/.claude/vibe/rules/` (global) for detailed rules.
16
-
17
- ### Core Principles
18
- - **Modify only requested scope** - Don't touch unrelated code
19
- - **Preserve existing style** - Follow project conventions
20
- - **Keep working code** - No unnecessary refactoring
21
- - **Respect user interrupts** - If user interrupts (Ctrl+C/Escape) and sends a new message, the previous task is CANCELLED. Do NOT resume or continue interrupted work. Respond ONLY to the new message.
22
-
23
- ### Code Complexity Limits
24
- | Metric | Limit |
25
- |--------|-------|
26
- | Function length | ≤30 lines (recommended), ≤50 lines (allowed) |
27
- | Nesting depth | ≤3 levels |
28
- | Parameters | ≤5 |
29
- | Cyclomatic complexity | ≤10 |
30
-
31
- ### TypeScript Rules
32
- - No `any` type → Use `unknown` + type guards
33
- - No `as any` casting → Define proper interfaces
34
- - No `@ts-ignore` → Fix type issues at root
35
- - Explicit return types on all functions
36
-
37
- ### TypeScript Rules
38
- - No `any` type → use `unknown` + type guards
39
- - No `as any` casting → define proper interfaces
40
- - No `@ts-ignore` → fix type issues at root
41
- - Explicit return types on all functions
42
-
43
- ### Error Handling Required
44
- - try-catch or error state required
45
- - Loading state handling
46
- - User-friendly error messages
47
-
48
- ### Forbidden Patterns
49
- - No console.log in commits (remove after debugging)
50
- - No hardcoded strings/numbers → Extract to constants
51
- - No commented-out code in commits
52
- - No incomplete code without TODO
53
-
54
- ## Workflow
55
-
56
- ```
57
- /vibe.spec → (auto) SPEC review → /vibe.run → (auto) code review → (auto) fix → ✅ Done
58
- ```
59
-
60
- **Automated Flow:**
61
- 1. `/vibe.spec` - Write SPEC + **(auto)** Gemini review → Auto-apply
62
- 2. `/vibe.run` - Implementation + Gemini review
63
- 3. **(auto)** 13+ agent parallel review
64
- 4. **(auto)** P1/P2 issue auto-fix
65
-
66
- ## Plan Mode vs VIBE (Workflow Selection)
67
-
68
- **Offer choice to user on development requests:**
69
-
70
- | Task Size | Recommended |
71
- |-----------|-------------|
72
- | Simple changes (1-2 files) | Plan Mode |
73
- | Complex features (3+ files, research/verification needed) | `/vibe.spec` |
74
-
75
- | Item | Plan Mode | VIBE |
76
- |------|-----------|------|
77
- | Storage location | `~/.claude/plans/` (global) | `.claude/vibe/specs/` (project) |
78
- | Document format | Free form | PTCF structure (AI-optimized) |
79
- | Research | None | 4 parallel agents |
80
- | Verification | None | `/vibe.verify` against SPEC |
81
- | History | Not trackable | Git version control |
82
-
83
- **Rules:**
84
- - After `/vibe.analyze` or `/vibe.review` with dev/modify request → **Ask user for workflow choice**
85
- - User chooses VIBE → Wait for `/vibe.spec`
86
- - User chooses Plan Mode → Proceed with EnterPlanMode
87
-
88
- ## ULTRAWORK Mode (Recommended)
89
-
90
- Include `ultrawork` or `ulw` keyword to activate maximum performance mode:
91
-
92
- ```bash
93
- /vibe.run "feature-name" ultrawork # All optimizations auto-enabled
94
- /vibe.run "feature-name" ulw # Same (shorthand)
95
- ```
96
-
97
- **Activated Features:**
98
- - Parallel sub-agent exploration (3+ concurrent)
99
- - **Background agents** - Prepare next Phase during implementation
100
- - **Phase pipelining** - Remove wait time between Phases
101
- - Boulder Loop (auto-continue until all Phases complete)
102
- - Auto-retry on error (max 3 times)
103
- - Auto-compress/save at 70%+ context
104
- - Continuous execution without confirmation between Phases
105
-
106
- **Speed Comparison:**
107
-
108
- | Mode | Per Phase | 5 Phases |
109
- |------|-----------|----------|
110
- | Sequential | ~2min | ~10min |
111
- | Parallel Exploration | ~1.5min | ~7.5min |
112
- | **ULTRAWORK Pipeline** | **~1min** | **~5min** |
113
-
114
- ## Commands
115
-
116
- | Command | Description |
117
- |---------|-------------|
118
- | `/vibe.spec "feature-name"` | Write SPEC (PTCF structure) + parallel research |
119
- | `/vibe.run "feature-name"` | Execute implementation |
120
- | `/vibe.run "feature-name" ultrawork` | **Maximum performance mode** |
121
- | `/vibe.verify "feature-name"` | Verification |
122
- | `/vibe.review` | **Parallel code review** (13+ agents) |
123
- | `/vibe.reason "problem"` | Systematic reasoning |
124
- | `/vibe.analyze` | Project analysis |
125
- | `/vibe.utils --e2e` | E2E testing (Playwright) |
126
- | `/vibe.utils --diagram` | Generate diagrams |
127
- | `/vibe.utils --ui "description"` | UI preview |
128
- | `/vibe.utils --continue` | **Session restore** (load previous context) |
129
-
130
- ## New Features (v2.1.0)
131
-
132
- ### Parallel Code Review (/vibe.review)
133
-
134
- 13+ specialized agents review code simultaneously:
135
-
136
- ```
137
- ┌─────────────────────────────────────────────────────────────────┐
138
- │ 🚀 PARALLEL REVIEW AGENTS │
139
- ├─────────────────────────────────────────────────────────────────┤
140
- │ Security │ security-reviewer, data-integrity-reviewer
141
- │ Performance │ performance-reviewer, complexity-reviewer │
142
- │ Architecture │ architecture-reviewer, simplicity-reviewer
143
- │ Language-Specific │ python, typescript, rails, react reviewers │
144
- │ Context │ git-history, test-coverage reviewers │
145
- └─────────────────────────────────────────────────────────────────┘
146
- ```
147
-
148
- **Priority System:**
149
- - 🔴 P1 (Critical): Blocks merge
150
- - 🟡 P2 (Important): Fix recommended
151
- - 🔵 P3 (Nice-to-have): Backlog
152
-
153
- ### E2E Testing (/vibe.utils --e2e)
154
-
155
- Playwright-based automated testing:
156
-
157
- ```bash
158
- /vibe.utils --e2e "login flow" # Scenario test
159
- /vibe.utils --e2e --visual # Visual regression test
160
- /vibe.utils --e2e --record # Video recording
161
- ```
162
-
163
- ### Enhanced Research Agents
164
-
165
- 4 parallel research agents run **after requirements confirmed** during `/vibe.spec`:
166
-
167
- ```
168
- Q&A to confirm requirements → Parallel research → SPEC writing
169
- ```
170
-
171
- | Agent | Role |
172
- |-------|------|
173
- | best-practices-agent | Best practices for confirmed feature+stack |
174
- | framework-docs-agent | Latest docs for confirmed stack (context7) |
175
- | codebase-patterns-agent | Analyze existing similar patterns |
176
- | security-advisory-agent | Security advisory for confirmed feature |
177
-
178
- **⚠️ Research runs after requirements confirmed** (VIBE principle: requirements first)
179
-
180
- ## PTCF Structure
181
-
182
- SPEC documents are AI-executable prompt format:
183
-
184
- ```
185
- <role> AI role definition
186
- <context> Background, tech stack, related code
187
- <task> Phase-by-phase task list
188
- <constraints> Constraints
189
- <output_format> Files to create/modify
190
- <acceptance> Verification criteria
191
- ```
192
-
193
- ## Built-in Tools
194
-
195
- ### Semantic Code Analysis
196
- | Tool | Purpose |
197
- |------|---------|
198
- | `vibe_find_symbol` | Find symbol definitions |
199
- | `vibe_find_references` | Find references |
200
- | `vibe_analyze_complexity` | Analyze complexity |
201
- | `vibe_validate_code_quality` | Validate quality |
202
-
203
- ### Context Management
204
- | Tool | Purpose |
205
- |------|---------|
206
- | `vibe_start_session` | Start session (restore previous context) |
207
- | `vibe_auto_save_context` | Save current state |
208
- | `vibe_save_memory` | Save important decisions |
209
-
210
- ## Agents
211
-
212
- ### Review Agents (12)
213
- ```
214
- .claude/agents/review/
215
- ├── security-reviewer.md # Security vulnerabilities
216
- ├── performance-reviewer.md # Performance bottlenecks
217
- ├── architecture-reviewer.md # Architecture violations
218
- ├── complexity-reviewer.md # Complexity exceeded
219
- ├── simplicity-reviewer.md # Over-abstraction
220
- ├── data-integrity-reviewer.md # Data integrity
221
- ├── test-coverage-reviewer.md # Missing tests
222
- ├── git-history-reviewer.md # Risk patterns
223
- ├── python-reviewer.md # Python specialist
224
- ├── typescript-reviewer.md # TypeScript specialist
225
- ├── rails-reviewer.md # Rails specialist
226
- └── react-reviewer.md # React specialist
227
- ```
228
-
229
- ### Research Agents (4)
230
- ```
231
- .claude/agents/research/
232
- ├── best-practices-agent.md # Best practices
233
- ├── framework-docs-agent.md # Framework docs
234
- ├── codebase-patterns-agent.md # Code pattern analysis
235
- └── security-advisory-agent.md # Security advisory
236
- ```
237
-
238
- ## Skills
239
-
240
- ### Git Worktree
241
- ```bash
242
- # Isolated environment for PR review
243
- git worktree add ../review-123 origin/pr/123
244
- cd ../review-123 && npm test
245
- git worktree remove ../review-123
246
- ```
247
-
248
- ### Priority Todos
249
- ```
250
- .claude/vibe/todos/
251
- ├── P1-security-sql-injection.md # 🔴 Blocks merge
252
- ├── P2-perf-n1-query.md # 🟡 Fix recommended
253
- └── P3-style-extract-helper.md # 🔵 Backlog
254
- ```
255
-
256
- ## Context Management Strategy
257
-
258
- ### Model Selection
259
- - **Exploration/Search**: Haiku (sub-agent default)
260
- - **Implementation/Debugging**: Sonnet
261
- - **Architecture/Complex logic**: Opus
262
-
263
- ### At 70%+ Context (⚠️ Important)
264
- ```
265
- Don't use /compact (risk of information loss/distortion)
266
- ✅ save_memory to store important decisions → /new for new session
267
- ```
268
-
269
- vibe maintains context across sessions with its own memory system:
270
- 1. `save_memory` - Explicitly save important decisions
271
- 2. `/new` - Start new session
272
- 3. `start_session` - Auto-restore previous session
273
-
274
- ### Session Restore
275
- To continue previous work in a new session:
276
- ```
277
- /vibe.utils --continue
278
- ```
279
- This command calls `vibe_start_session` to restore previous context from project memory.
280
-
281
- ### Other Commands
282
- - `/rewind` - Revert to previous point
283
- - `/context` - Check current usage
284
-
285
- ### Using context7
286
- Use context7 plugin when you need latest library documentation:
287
- ```
288
- "Search React 19 use() hook with context7"
289
- ```
290
-
291
- ## Documentation Guidelines
292
-
293
- ### Diagrams/Structure Representation
294
- - Avoid ASCII boxes (┌─┐) → Alignment breaks with mixed-width characters
295
- - Use alternatives:
296
- - Mermaid diagrams (GitHub/Notion supported)
297
- - Markdown tables
298
- - Indentation + separators
299
-
300
- ### Preferred Formats
301
- | Purpose | Recommended |
302
- |---------|-------------|
303
- | Flowcharts | Mermaid flowchart |
304
- | Structure/Hierarchy | Indented lists |
305
- | Comparisons/Lists | Markdown tables |
306
- | Sequences | Mermaid sequenceDiagram |
307
-
308
- ## Git Commit Rules
309
-
310
- **Must include:**
311
- - `.claude/vibe/specs/`, `.claude/vibe/features/`, `.claude/vibe/todos/` (project docs)
312
- - `.claude/vibe/config.json`, `.claude/vibe/constitution.md` (project config)
313
- - `CLAUDE.md`
314
-
315
- **Exclude (globally installed):**
316
- - `~/.claude/vibe/rules/`, `~/.claude/vibe/languages/`, `~/.claude/vibe/templates/` (global)
317
- - `~/.claude/commands/`, `~/.claude/agents/`, `~/.claude/skills/` (global)
318
- - `.claude/settings.local.json` (personal settings)
319
-
320
- ## Getting Started
321
-
322
- ```bash
323
- vibe init
324
- /vibe.spec "login feature"
325
- ```
326
-
327
- ## Full Workflow
328
-
329
- ```mermaid
330
- flowchart TD
331
- A["/vibe.spec"] --> B["(auto) SPEC review"]
332
- B --> C["SPEC auto-enhancement"]
333
- C --> D["/vibe.run ultrawork"]
334
- D --> E["Gemini code review"]
335
- E --> F["(auto) 13+ Agent Review"]
336
- F --> G{"P1/P2 issues?"}
337
- G -->|Yes| H["(auto) Auto-Fix"]
338
- H --> I["✅ Done"]
339
- G -->|No| I
340
- ```
341
-
342
- | Step | Description | Automation |
343
- |------|-------------|------------|
344
- | 1. `/vibe.spec` | Collect requirements + Generate SPEC | Manual start |
345
- | 2. SPEC review | Gemini reviews SPEC + Auto-apply | ✅ Auto |
346
- | 3. `/vibe.run` | Implementation + Gemini review | Manual start |
347
- | 4. Agent Review | 13+ agent parallel review | ✅ Auto |
348
- | 5. Auto-Fix | P1/P2 issue auto-fix | ✅ Auto |
1
+ # VIBE
2
+
3
+ SPEC-driven AI Coding Framework (Claude Code Exclusive)
4
+
5
+ ## Response Language
6
+
7
+ **IMPORTANT: Always respond in English unless the user explicitly requests otherwise.**
8
+
9
+ ## Response Language
10
+
11
+ **IMPORTANT: Always respond in Korean (한국어) unless the user explicitly requests otherwise.**
12
+
13
+ ## Code Quality Standards (Mandatory)
14
+
15
+ Follow these standards when writing code. See `~/.claude/vibe/rules/` (global) for detailed rules.
16
+
17
+ ### Core Principles
18
+ - **Modify only requested scope** - Don't touch unrelated code
19
+ - **Preserve existing style** - Follow project conventions
20
+ - **Keep working code** - No unnecessary refactoring
21
+ - **Respect user interrupts** - If user interrupts (Ctrl+C/Escape) and sends a new message, the previous task is CANCELLED. Do NOT resume or continue interrupted work. Respond ONLY to the new message.
22
+
23
+ ### Code Complexity Limits
24
+ | Metric | Limit |
25
+ |--------|-------|
26
+ | Function length | ≤30 lines (recommended), ≤50 lines (allowed) |
27
+ | Nesting depth | ≤3 levels |
28
+ | Parameters | ≤5 |
29
+ | Cyclomatic complexity | ≤10 |
30
+
31
+ ### TypeScript Rules
32
+ - No `any` type → Use `unknown` + type guards
33
+ - No `as any` casting → Define proper interfaces
34
+ - No `@ts-ignore` → Fix type issues at root
35
+ - Explicit return types on all functions
36
+
37
+ ### TypeScript Rules
38
+ - No `any` type → use `unknown` + type guards
39
+ - No `as any` casting → define proper interfaces
40
+ - No `@ts-ignore` → fix type issues at root
41
+ - Explicit return types on all functions
42
+
43
+ ### Error Handling Required
44
+ - try-catch or error state required
45
+ - Loading state handling
46
+ - User-friendly error messages
47
+
48
+ ### Forbidden Patterns
49
+ - No console.log in commits (remove after debugging)
50
+ - No hardcoded strings/numbers → Extract to constants
51
+ - No commented-out code in commits
52
+ - No incomplete code without TODO
53
+
54
+ ## Workflow
55
+
56
+ ```
57
+ /vibe.spec → (auto) SPEC review → /vibe.run → (auto) code review → (auto) fix → ✅ Done
58
+ ```
59
+
60
+ **Automated Flow:**
61
+ 1. `/vibe.spec` - Write SPEC + **(auto)** Gemini review → Auto-apply
62
+ 2. `/vibe.run` - Implementation + Gemini review
63
+ 3. **(auto)** 13+ agent parallel review
64
+ 4. **(auto)** P1/P2 issue auto-fix
65
+
66
+ ## Plan Mode vs VIBE (Workflow Selection)
67
+
68
+ **Offer choice to user on development requests:**
69
+
70
+ | Task Size | Recommended |
71
+ |-----------|-------------|
72
+ | Simple changes (1-2 files) | Plan Mode |
73
+ | Complex features (3+ files, research/verification needed) | `/vibe.spec` |
74
+
75
+ | Item | Plan Mode | VIBE |
76
+ |------|-----------|------|
77
+ | Storage location | `~/.claude/plans/` (global) | `.claude/vibe/specs/` (project) |
78
+ | Document format | Free form | PTCF structure (AI-optimized) |
79
+ | Research | None | 4 parallel agents |
80
+ | Verification | None | `/vibe.verify` against SPEC |
81
+ | History | Not trackable | Git version control |
82
+
83
+ **Rules:**
84
+ - After `/vibe.analyze` or `/vibe.review` with dev/modify request → **Ask user for workflow choice**
85
+ - User chooses VIBE → Wait for `/vibe.spec`
86
+ - User chooses Plan Mode → Proceed with EnterPlanMode
87
+
88
+ ## ULTRAWORK Mode (Recommended)
89
+
90
+ Include `ultrawork` or `ulw` keyword to activate maximum performance mode:
91
+
92
+ ```bash
93
+ /vibe.run "feature-name" ultrawork # All optimizations auto-enabled
94
+ /vibe.run "feature-name" ulw # Same (shorthand)
95
+ ```
96
+
97
+ **Activated Features:**
98
+ - Parallel sub-agent exploration (3+ concurrent)
99
+ - **Background agents** - Prepare next Phase during implementation
100
+ - **Phase pipelining** - Remove wait time between Phases
101
+ - Boulder Loop (auto-continue until all Phases complete)
102
+ - Auto-retry on error (max 3 times)
103
+ - Auto-compress/save at 70%+ context
104
+ - Continuous execution without confirmation between Phases
105
+
106
+ **Speed Comparison:**
107
+
108
+ | Mode | Per Phase | 5 Phases |
109
+ |------|-----------|----------|
110
+ | Sequential | ~2min | ~10min |
111
+ | Parallel Exploration | ~1.5min | ~7.5min |
112
+ | **ULTRAWORK Pipeline** | **~1min** | **~5min** |
113
+
114
+ ## Commands
115
+
116
+ | Command | Description |
117
+ |---------|-------------|
118
+ | `/vibe.spec "feature-name"` | Write SPEC (PTCF structure) + parallel research |
119
+ | `/vibe.run "feature-name"` | Execute implementation |
120
+ | `/vibe.run "feature-name" ultrawork` | **Maximum performance mode** |
121
+ | `/vibe.verify "feature-name"` | Verification |
122
+ | `/vibe.review` | **Parallel code review** (13+ agents) |
123
+ | `/vibe.reason "problem"` | Systematic reasoning |
124
+ | `/vibe.analyze` | Project analysis |
125
+ | `/vibe.utils --e2e` | E2E testing (Playwright) |
126
+ | `/vibe.utils --diagram` | Generate diagrams |
127
+ | `/vibe.utils --ui "description"` | UI preview |
128
+ | `/vibe.utils --continue` | **Session restore** (load previous context) |
129
+
130
+ ## New Features (v2.5.7)
131
+
132
+ ### Intelligent Model Routing
133
+
134
+ Automatic model selection based on task complexity:
135
+
136
+ | Complexity | Model | When |
137
+ |------------|-------|------|
138
+ | Low (0-7) | Haiku | Simple fixes, searches |
139
+ | Medium (8-19) | Sonnet | Standard features, 3-5 files |
140
+ | High (20+) | Opus | Architecture, security, 6+ files |
141
+
142
+ ### Agent Tier System
143
+
144
+ Cost-optimized agent variants:
145
+
146
+ | Agent | Low | Medium | High |
147
+ |-------|-----|--------|------|
148
+ | explorer | explorer-low | explorer-medium | explorer |
149
+ | implementer | implementer-low | implementer-medium | implementer |
150
+ | architect | architect-low | architect-medium | architect |
151
+
152
+ ### Magic Keywords
153
+
154
+ | Keyword | Effect |
155
+ |---------|--------|
156
+ | `ultrawork` / `ulw` | Parallel + auto-continue |
157
+ | `ralph` | Persist until verified complete |
158
+ | `ralplan` | Iterative planning + persistence |
159
+ | `verify` | Strict verification mode |
160
+ | `quick` | Fast mode, minimal verification |
161
+
162
+ **Combinations supported:** `ralph ultrawork`, `ralph verify`, etc.
163
+
164
+ ### Skill Quality Gate
165
+
166
+ Memory saves are validated for quality:
167
+
168
+ - Rejects generic/searchable information
169
+ - Requires context, specificity, actionability
170
+ - Suggests principle format: "When X, do Y because Z"
171
+
172
+ ### HUD Status (Real-time)
173
+
174
+ ```bash
175
+ node hooks/scripts/hud-status.js show full
176
+ node hooks/scripts/hud-status.js start ultrawork "feature"
177
+ node hooks/scripts/hud-status.js phase 2 5 "Implementing core"
178
+ ```
179
+
180
+ ### Pre/Post Tool Hooks
181
+
182
+ - **PreToolUse**: Validates dangerous commands before execution
183
+ - **PostToolUse**: Provides error recovery hints
184
+
185
+ ### Orchestrate Workflow
186
+
187
+ Intent Gate → Codebase Assessment → Delegation → Verification pattern:
188
+
189
+ ```typescript
190
+ import { checkIntentGate, assessCodebase, createDelegationPlan } from '@su-record/vibe/tools';
191
+ ```
192
+
193
+ ### UltraQA (5-Cycle Autonomous QA)
194
+
195
+ ```
196
+ Test/Build/Lint Fail Architect Diagnosis → Executor Fix → Repeat (max 5)
197
+ ```
198
+
199
+ Exit conditions: All pass, Max cycles, Same failure 3x
200
+
201
+ ### DeepInit (Hierarchical AGENTS.md)
202
+
203
+ ```
204
+ project/
205
+ ├── AGENTS.md ← Root
206
+ ├── src/
207
+ │ └── AGENTS.md ← <!-- Parent: ../AGENTS.md -->
208
+ ```
209
+
210
+ ### Skill Frontmatter System
211
+
212
+ ```yaml
213
+ ---
214
+ name: my-skill
215
+ model: sonnet
216
+ triggers: [keyword1, keyword2]
217
+ ---
218
+ ```
219
+
220
+ ### Trigger-Based Skill Injection
221
+
222
+ Skills in `~/.claude/vibe/skills/` or `.claude/vibe/skills/` auto-inject on keyword match.
223
+
224
+ ### Multi-Line HUD
225
+
226
+ ```bash
227
+ node hooks/scripts/hud-multiline.js multi # Tree view
228
+ node hooks/scripts/hud-multiline.js compact # 2-line view
229
+ node hooks/scripts/hud-multiline.js single # 1-line view
230
+ ```
231
+
232
+ ### Parallel Code Review (/vibe.review)
233
+
234
+ 13+ specialized agents review code simultaneously:
235
+
236
+ ```
237
+ ┌─────────────────────────────────────────────────────────────────┐
238
+ │ 🚀 PARALLEL REVIEW AGENTS │
239
+ ├─────────────────────────────────────────────────────────────────┤
240
+ │ Security │ security-reviewer, data-integrity-reviewer │
241
+ │ Performance │ performance-reviewer, complexity-reviewer │
242
+ │ Architecture │ architecture-reviewer, simplicity-reviewer
243
+ │ Language-Specific python, typescript, rails, react reviewers │
244
+ │ Context │ git-history, test-coverage reviewers │
245
+ └─────────────────────────────────────────────────────────────────┘
246
+ ```
247
+
248
+ **Priority System:**
249
+ - 🔴 P1 (Critical): Blocks merge
250
+ - 🟡 P2 (Important): Fix recommended
251
+ - 🔵 P3 (Nice-to-have): Backlog
252
+
253
+ ### E2E Testing (/vibe.utils --e2e)
254
+
255
+ Playwright-based automated testing:
256
+
257
+ ```bash
258
+ /vibe.utils --e2e "login flow" # Scenario test
259
+ /vibe.utils --e2e --visual # Visual regression test
260
+ /vibe.utils --e2e --record # Video recording
261
+ ```
262
+
263
+ ### Enhanced Research Agents
264
+
265
+ 4 parallel research agents run **after requirements confirmed** during `/vibe.spec`:
266
+
267
+ ```
268
+ Q&A to confirm requirements → Parallel research → SPEC writing
269
+ ```
270
+
271
+ | Agent | Role |
272
+ |-------|------|
273
+ | best-practices-agent | Best practices for confirmed feature+stack |
274
+ | framework-docs-agent | Latest docs for confirmed stack (context7) |
275
+ | codebase-patterns-agent | Analyze existing similar patterns |
276
+ | security-advisory-agent | Security advisory for confirmed feature |
277
+
278
+ **⚠️ Research runs after requirements confirmed** (VIBE principle: requirements first)
279
+
280
+ ## PTCF Structure
281
+
282
+ SPEC documents are AI-executable prompt format:
283
+
284
+ ```
285
+ <role> AI role definition
286
+ <context> Background, tech stack, related code
287
+ <task> Phase-by-phase task list
288
+ <constraints> Constraints
289
+ <output_format> Files to create/modify
290
+ <acceptance> Verification criteria
291
+ ```
292
+
293
+ ## Built-in Tools
294
+
295
+ ### Semantic Code Analysis
296
+ | Tool | Purpose |
297
+ |------|---------|
298
+ | `vibe_find_symbol` | Find symbol definitions |
299
+ | `vibe_find_references` | Find references |
300
+ | `vibe_analyze_complexity` | Analyze complexity |
301
+ | `vibe_validate_code_quality` | Validate quality |
302
+
303
+ ### Context Management
304
+ | Tool | Purpose |
305
+ |------|---------|
306
+ | `vibe_start_session` | Start session (restore previous context) |
307
+ | `vibe_auto_save_context` | Save current state |
308
+ | `vibe_save_memory` | Save important decisions |
309
+
310
+ ## Agents
311
+
312
+ ### Review Agents (12)
313
+ ```
314
+ .claude/agents/review/
315
+ ├── security-reviewer.md # Security vulnerabilities
316
+ ├── performance-reviewer.md # Performance bottlenecks
317
+ ├── architecture-reviewer.md # Architecture violations
318
+ ├── complexity-reviewer.md # Complexity exceeded
319
+ ├── simplicity-reviewer.md # Over-abstraction
320
+ ├── data-integrity-reviewer.md # Data integrity
321
+ ├── test-coverage-reviewer.md # Missing tests
322
+ ├── git-history-reviewer.md # Risk patterns
323
+ ├── python-reviewer.md # Python specialist
324
+ ├── typescript-reviewer.md # TypeScript specialist
325
+ ├── rails-reviewer.md # Rails specialist
326
+ └── react-reviewer.md # React specialist
327
+ ```
328
+
329
+ ### Research Agents (4)
330
+ ```
331
+ .claude/agents/research/
332
+ ├── best-practices-agent.md # Best practices
333
+ ├── framework-docs-agent.md # Framework docs
334
+ ├── codebase-patterns-agent.md # Code pattern analysis
335
+ └── security-advisory-agent.md # Security advisory
336
+ ```
337
+
338
+ ## Skills
339
+
340
+ ### Git Worktree
341
+ ```bash
342
+ # Isolated environment for PR review
343
+ git worktree add ../review-123 origin/pr/123
344
+ cd ../review-123 && npm test
345
+ git worktree remove ../review-123
346
+ ```
347
+
348
+ ### Priority Todos
349
+ ```
350
+ .claude/vibe/todos/
351
+ ├── P1-security-sql-injection.md # 🔴 Blocks merge
352
+ ├── P2-perf-n1-query.md # 🟡 Fix recommended
353
+ └── P3-style-extract-helper.md # 🔵 Backlog
354
+ ```
355
+
356
+ ## Context Management Strategy
357
+
358
+ ### Model Selection
359
+ - **Exploration/Search**: Haiku (sub-agent default)
360
+ - **Implementation/Debugging**: Sonnet
361
+ - **Architecture/Complex logic**: Opus
362
+
363
+ ### At 70%+ Context (⚠️ Important)
364
+ ```
365
+ ❌ Don't use /compact (risk of information loss/distortion)
366
+ ✅ save_memory to store important decisions → /new for new session
367
+ ```
368
+
369
+ vibe maintains context across sessions with its own memory system:
370
+ 1. `save_memory` - Explicitly save important decisions
371
+ 2. `/new` - Start new session
372
+ 3. `start_session` - Auto-restore previous session
373
+
374
+ ### Session Restore
375
+ To continue previous work in a new session:
376
+ ```
377
+ /vibe.utils --continue
378
+ ```
379
+ This command calls `vibe_start_session` to restore previous context from project memory.
380
+
381
+ ### Other Commands
382
+ - `/rewind` - Revert to previous point
383
+ - `/context` - Check current usage
384
+
385
+ ### Using context7
386
+ Use context7 plugin when you need latest library documentation:
387
+ ```
388
+ "Search React 19 use() hook with context7"
389
+ ```
390
+
391
+ ## Documentation Guidelines
392
+
393
+ ### Diagrams/Structure Representation
394
+ - Avoid ASCII boxes (┌─┐) → Alignment breaks with mixed-width characters
395
+ - Use alternatives:
396
+ - Mermaid diagrams (GitHub/Notion supported)
397
+ - Markdown tables
398
+ - Indentation + separators
399
+
400
+ ### Preferred Formats
401
+ | Purpose | Recommended |
402
+ |---------|-------------|
403
+ | Flowcharts | Mermaid flowchart |
404
+ | Structure/Hierarchy | Indented lists |
405
+ | Comparisons/Lists | Markdown tables |
406
+ | Sequences | Mermaid sequenceDiagram |
407
+
408
+ ## Git Commit Rules
409
+
410
+ **Must include:**
411
+ - `.claude/vibe/specs/`, `.claude/vibe/features/`, `.claude/vibe/todos/` (project docs)
412
+ - `.claude/vibe/config.json`, `.claude/vibe/constitution.md` (project config)
413
+ - `CLAUDE.md`
414
+
415
+ **Exclude (globally installed):**
416
+ - `~/.claude/vibe/rules/`, `~/.claude/vibe/languages/`, `~/.claude/vibe/templates/` (global)
417
+ - `~/.claude/commands/`, `~/.claude/agents/`, `~/.claude/skills/` (global)
418
+ - `.claude/settings.local.json` (personal settings)
419
+
420
+ ## Getting Started
421
+
422
+ ```bash
423
+ vibe init
424
+ /vibe.spec "login feature"
425
+ ```
426
+
427
+ ## Full Workflow
428
+
429
+ ```mermaid
430
+ flowchart TD
431
+ A["/vibe.spec"] --> B["(auto) SPEC review"]
432
+ B --> C["SPEC auto-enhancement"]
433
+ C --> D["/vibe.run ultrawork"]
434
+ D --> E["Gemini code review"]
435
+ E --> F["(auto) 13+ Agent Review"]
436
+ F --> G{"P1/P2 issues?"}
437
+ G -->|Yes| H["(auto) Auto-Fix"]
438
+ H --> I["✅ Done"]
439
+ G -->|No| I
440
+ ```
441
+
442
+ | Step | Description | Automation |
443
+ |------|-------------|------------|
444
+ | 1. `/vibe.spec` | Collect requirements + Generate SPEC | Manual start |
445
+ | 2. SPEC review | Gemini reviews SPEC + Auto-apply | ✅ Auto |
446
+ | 3. `/vibe.run` | Implementation + Gemini review | Manual start |
447
+ | 4. Agent Review | 13+ agent parallel review | ✅ Auto |
448
+ | 5. Auto-Fix | P1/P2 issue auto-fix | ✅ Auto |