@su-record/vibe 2.5.10 → 2.5.12

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