@su-record/vibe 2.6.54 → 2.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) hide show
  1. package/CLAUDE.md +64 -289
  2. package/README.md +112 -217
  3. package/dist/cli/setup/GlobalInstaller.d.ts +0 -7
  4. package/dist/cli/setup/GlobalInstaller.d.ts.map +1 -1
  5. package/dist/cli/setup/GlobalInstaller.js +4 -23
  6. package/dist/cli/setup/GlobalInstaller.js.map +1 -1
  7. package/hooks/scripts/utils.js +13 -41
  8. package/package.json +2 -2
  9. package/dist/cli/commands/sync.d.ts +0 -9
  10. package/dist/cli/commands/sync.d.ts.map +0 -1
  11. package/dist/cli/commands/sync.js +0 -166
  12. package/dist/cli/commands/sync.js.map +0 -1
  13. package/dist/infra/lib/claude-storage.d.ts +0 -12
  14. package/dist/infra/lib/claude-storage.d.ts.map +0 -1
  15. package/dist/infra/lib/claude-storage.js +0 -59
  16. package/dist/infra/lib/claude-storage.js.map +0 -1
  17. package/dist/infra/lib/gemini-api.d.ts +0 -13
  18. package/dist/infra/lib/gemini-api.d.ts.map +0 -1
  19. package/dist/infra/lib/gemini-api.js +0 -13
  20. package/dist/infra/lib/gemini-api.js.map +0 -1
  21. package/dist/infra/lib/gemini-constants.d.ts +0 -8
  22. package/dist/infra/lib/gemini-constants.d.ts.map +0 -1
  23. package/dist/infra/lib/gemini-constants.js +0 -18
  24. package/dist/infra/lib/gemini-constants.js.map +0 -1
  25. package/dist/infra/lib/gemini-oauth.d.ts.map +0 -1
  26. package/dist/infra/lib/gemini-oauth.js.map +0 -1
  27. package/dist/infra/lib/gemini-storage.d.ts.map +0 -1
  28. package/dist/infra/lib/gemini-storage.js.map +0 -1
  29. package/dist/infra/lib/gpt-api.d.ts +0 -13
  30. package/dist/infra/lib/gpt-api.d.ts.map +0 -1
  31. package/dist/infra/lib/gpt-api.js +0 -13
  32. package/dist/infra/lib/gpt-api.js.map +0 -1
  33. package/dist/infra/lib/gpt-constants.d.ts +0 -12
  34. package/dist/infra/lib/gpt-constants.d.ts.map +0 -1
  35. package/dist/infra/lib/gpt-constants.js +0 -18
  36. package/dist/infra/lib/gpt-constants.js.map +0 -1
  37. package/dist/infra/lib/gpt-oauth.d.ts +0 -66
  38. package/dist/infra/lib/gpt-oauth.d.ts.map +0 -1
  39. package/dist/infra/lib/gpt-oauth.js +0 -389
  40. package/dist/infra/lib/gpt-oauth.js.map +0 -1
  41. package/dist/infra/lib/gpt-storage.d.ts +0 -40
  42. package/dist/infra/lib/gpt-storage.d.ts.map +0 -1
  43. package/dist/infra/lib/gpt-storage.js +0 -106
  44. package/dist/infra/lib/gpt-storage.js.map +0 -1
  45. package/dist/infra/lib/sync/constants.d.ts +0 -21
  46. package/dist/infra/lib/sync/constants.d.ts.map +0 -1
  47. package/dist/infra/lib/sync/constants.js +0 -78
  48. package/dist/infra/lib/sync/constants.js.map +0 -1
  49. package/dist/infra/lib/sync/crypto.d.ts +0 -23
  50. package/dist/infra/lib/sync/crypto.d.ts.map +0 -1
  51. package/dist/infra/lib/sync/crypto.js +0 -55
  52. package/dist/infra/lib/sync/crypto.js.map +0 -1
  53. package/dist/infra/lib/sync/drive.d.ts +0 -22
  54. package/dist/infra/lib/sync/drive.d.ts.map +0 -1
  55. package/dist/infra/lib/sync/drive.js +0 -99
  56. package/dist/infra/lib/sync/drive.js.map +0 -1
  57. package/dist/infra/lib/sync/index.d.ts +0 -9
  58. package/dist/infra/lib/sync/index.d.ts.map +0 -1
  59. package/dist/infra/lib/sync/index.js +0 -9
  60. package/dist/infra/lib/sync/index.js.map +0 -1
  61. package/dist/infra/lib/sync/oauth.d.ts +0 -12
  62. package/dist/infra/lib/sync/oauth.d.ts.map +0 -1
  63. package/dist/infra/lib/sync/oauth.js +0 -157
  64. package/dist/infra/lib/sync/oauth.js.map +0 -1
  65. package/dist/infra/lib/sync/storage.d.ts +0 -21
  66. package/dist/infra/lib/sync/storage.d.ts.map +0 -1
  67. package/dist/infra/lib/sync/storage.js +0 -32
  68. package/dist/infra/lib/sync/storage.js.map +0 -1
package/CLAUDE.md CHANGED
@@ -3,12 +3,12 @@
3
3
  ## Project Nature
4
4
 
5
5
  > **This project is the source code for the `@su-record/vibe` npm package.**
6
- > Since users install this via `npm install`, all bug fixes and improvements MUST be made in **this project source** — not in installed locations (e.g., AppData).
6
+ > All bug fixes and improvements MUST be made in **this project source** — not in installed locations.
7
7
  > Always modify files in this repository, never the installed copy.
8
8
 
9
9
  ## Philosophy
10
10
 
11
- > **core = Easy vibe coding + Minimum quality guaranteed**
11
+ > **vibe = Easy vibe coding + Minimum quality guaranteed**
12
12
 
13
13
  | Principle | Description |
14
14
  |-----------|-------------|
@@ -16,36 +16,25 @@
16
16
  | **Minimum Quality Guaranteed** | Type safety, code quality, security — automatic baseline enforcement |
17
17
  | **Iterative Reasoning (Type 6)** | Don't delegate answers to AI — break down problems, ask questions, reason together |
18
18
 
19
- ### How CORE Guarantees Quality
19
+ ### Quality Guardrails
20
20
 
21
21
  | Guardrail | Mechanism |
22
22
  |-----------|-----------|
23
23
  | Type Safety | Quality Gate — blocks `any` / `Any` / `@ts-ignore` |
24
- | Code Review | Claude Code native parallel review (13+ agents) |
24
+ | Code Review | 13+ agent parallel review (security, performance, architecture, etc.) |
25
25
  | Completion Check | Ralph Loop — iterate until 100% complete (no scope reduction) |
26
- | Memory RAG | SQLite + FTS5 BM25 persistent memory — gets smarter over time |
27
-
28
- ### User's Role (Iterative-Reasoning Type)
29
-
30
- Research shows that **breaking down problems and reasoning collaboratively (Type 6)** produces far better results than simply delegating to AI (Type 1).
31
-
32
- | Avoid | Do Instead |
33
- |-------|------------|
34
- | "Build login feature" | "Let's analyze the requirements for login" |
35
- | Accept AI output as-is | Ask "Is this approach correct?" |
36
- | Request complete code only | Review step by step |
26
+ | Memory RAG | SQLite + FTS5 BM25 persistent memory |
27
+ | Multi-LLM | GPT + Gemini cross-validation via ReviewRace |
37
28
 
38
29
  ## Code Quality Standards (Mandatory)
39
30
 
40
- Follow these standards when writing code. See `~/.claude/vibe/rules/` (global) for detailed rules.
41
-
42
31
  ### Core Principles
43
32
 
44
33
  - **Modify only requested scope** — Don't touch unrelated code
45
34
  - **Preserve existing style** — Follow project conventions
46
35
  - **Keep working code** — No unnecessary refactoring
47
- - **Edit existing files, never create new ones** — When fixing errors/bugs, ALWAYS modify the original file. NEVER create new files (wrappers, adapters, V2 copies) as a workaround. Fix the problem at its source.
48
- - **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.
36
+ - **Edit existing files, never create new ones** — Fix the problem at its source
37
+ - **Respect user interrupts** — If user interrupts (Ctrl+C/Escape), the previous task is CANCELLED. Respond ONLY to the new message
49
38
 
50
39
  ### Code Complexity Limits
51
40
 
@@ -63,12 +52,6 @@ Follow these standards when writing code. See `~/.claude/vibe/rules/` (global) f
63
52
  - No `@ts-ignore` — fix type issues at root
64
53
  - Explicit return types on all functions
65
54
 
66
- ### Error Handling Required
67
-
68
- - try-catch or error state required
69
- - Loading state handling
70
- - User-friendly error messages
71
-
72
55
  ### Forbidden Patterns
73
56
 
74
57
  - No console.log in commits
@@ -76,18 +59,25 @@ Follow these standards when writing code. See `~/.claude/vibe/rules/` (global) f
76
59
  - No commented-out code
77
60
  - No incomplete code without TODO
78
61
 
79
- ### Superpowers Integration (v0.2.0)
62
+ ## Configuration
80
63
 
81
- Four quality mechanisms inspired by the Superpowers project:
64
+ ### Global: `~/.vibe/config.json`
82
65
 
83
- | Feature | Description | Location |
84
- |---------|-------------|----------|
85
- | **Anti-Rationalization** | Blocks 6 categories of AI excuse patterns (SPEC skip, quality skip, verification skip, scope expansion, architecture avoidance, evidence avoidance) | `rules/principles/anti-rationalization.md` |
86
- | **Evidence Gate** | 5-step verification protocol (IDENTIFY → RUN → READ → VERIFY → CLAIM). No completion claims without evidence | `rules/quality/evidence-gate.md` + UltraQA |
87
- | **3-Fix Rule** | Same failure 3 times → switch to architecture question. User discussion required before fix #4 | UltraQA `architecture_question` status |
88
- | **Rule TDD** | 6 quality checks (example/both-sides/rationalization/edge/quality/comprehensive), 70+ pass threshold | RuleBuildSystem `pressureTestRule()` |
66
+ All credentials, channel config, and model settings in one file (0o600 permissions).
89
67
 
90
- **Core principle:** Violating the letter of a rule is violating the spirit of a rule.
68
+ ```json
69
+ {
70
+ "credentials": { "gpt": {}, "gemini": {} },
71
+ "channels": { "telegram": {}, "slack": {} },
72
+ "models": { "gpt": "gpt-5.2", "gemini": "gemini-3-pro-preview" }
73
+ }
74
+ ```
75
+
76
+ CLI commands: `vibe gpt key`, `vibe gemini auth`, `vibe telegram setup`, etc.
77
+
78
+ ### Project: `.claude/vibe/config.json`
79
+
80
+ Project-specific settings (language, quality, stacks, details, references).
91
81
 
92
82
  ## Workflow
93
83
 
@@ -95,38 +85,26 @@ Four quality mechanisms inspired by the Superpowers project:
95
85
  /vibe.spec → /new → /vibe.spec.review → /vibe.run → /vibe.trace → (auto) code review → Done
96
86
  ```
97
87
 
98
- 1. `/vibe.spec` — Write SPEC (requirements + research + draft)
99
- 2. `/new` — Start new session (clean context)
100
- 3. `/vibe.spec.review` — SPEC quality review
101
- 4. `/vibe.run` — Implementation + parallel agent review
102
- 5. **(auto)** — 13+ agent parallel review + P1/P2 auto-fix
103
-
104
- **All commands call `getCurrentTime` at start/end to display elapsed time.**
105
-
106
- ## Plan Mode vs CORE
107
-
108
88
  | Task Size | Recommended |
109
89
  |-----------|-------------|
110
90
  | Simple changes (1-2 files) | Plan Mode |
111
91
  | Complex features (3+ files) | `/vibe.spec` |
112
92
 
113
- After `/vibe.analyze` or `/vibe.review` with dev request → **Ask user for workflow choice**
114
-
115
93
  ## ULTRAWORK Mode
116
94
 
117
- Include `ultrawork` or `ulw` keyword for maximum performance:
95
+ Add `ultrawork` or `ulw` keyword:
118
96
 
119
97
  - Parallel sub-agent exploration (3+ concurrent)
120
98
  - Background agents + Phase pipelining
121
99
  - Boulder Loop (auto-continue until all Phases complete)
122
100
  - Auto-retry on error (max 3), Auto-save at 70%+ context
123
101
 
124
- ## Commands
102
+ ## Commands (Slash)
125
103
 
126
104
  | Command | Description |
127
105
  |---------|-------------|
128
106
  | `/vibe.spec "name"` | Write SPEC (PTCF) + parallel research |
129
- | `/vibe.spec.review "name"` | SPEC quality review |
107
+ | `/vibe.spec.review "name"` | SPEC quality review (GPT + Gemini 3-round) |
130
108
  | `/vibe.run "name"` | Execute implementation |
131
109
  | `/vibe.run "name" ultrawork` | Maximum performance mode |
132
110
  | `/vibe.verify "name"` | Verification against SPEC |
@@ -134,45 +112,38 @@ Include `ultrawork` or `ulw` keyword for maximum performance:
134
112
  | `/vibe.trace "name"` | Requirements traceability matrix |
135
113
  | `/vibe.reason "problem"` | Systematic reasoning |
136
114
  | `/vibe.analyze` | Project analysis |
137
- | `/vibe.utils --e2e` | E2E testing (Playwright) |
138
- | `/vibe.utils --diagram` | Generate diagrams |
139
- | `/vibe.utils --ui "desc"` | UI preview |
140
- | `/vibe.utils --continue` | Session restore |
141
- | `/vibe.voice` | Voice-to-coding command (Gemini audio) |
115
+ | `/vibe.utils` | Utilities (--e2e, --diagram, --ui, --continue) |
116
+ | `/vibe.voice` | Voice-to-coding (Gemini audio) |
142
117
 
143
118
  ## CLI Commands
144
119
 
145
120
  | Command | Description |
146
121
  |---------|-------------|
147
122
  | `vibe init [project]` | Project initialization |
148
- | `vibe setup` | Interactive setup wizard (LLM auth + channels) |
123
+ | `vibe setup` | Interactive setup wizard |
149
124
  | `vibe update` | Update project configuration |
150
125
  | `vibe upgrade` | Upgrade to latest version |
151
126
  | `vibe remove` | Remove from project |
152
- | `vibe status` | Full status check (LLM, channels) |
127
+ | `vibe status` | Full status check |
153
128
  | `vibe version` | Show version |
154
129
  | `vibe claude <cmd>` | Claude (key, status, logout) |
155
130
  | `vibe gpt <cmd>` | GPT (auth, key, status, logout, remove) |
156
131
  | `vibe gemini <cmd>` | Gemini (auth, key, import, status, logout, remove) |
157
132
  | `vibe telegram <cmd>` | Telegram (setup, chat, status) |
158
133
  | `vibe slack <cmd>` | Slack (setup, channel, status) |
134
+ | `vibe env import [path]` | .env → ~/.vibe/config.json migration |
159
135
 
160
- ## External Channels
136
+ ## External LLM Integration
161
137
 
162
- | Channel | Interface | Requirements |
163
- |---------|-----------|-------------|
164
- | Telegram | TelegramBot (polling) | `TELEGRAM_BOT_TOKEN` |
165
- | Slack | SlackBot (Socket Mode) | `SLACK_BOT_TOKEN`, `SLACK_APP_TOKEN` |
138
+ - **GPT**: `vibe gpt auth` (OAuth) / `vibe gpt key` (API Key) — Responses API
139
+ - **Gemini**: `vibe gemini auth` (OAuth) / `vibe gemini key` (API Key) — Gemini API
140
+ - Auth priority: OAuth → API Key → Azure (GPT) / gemini-cli → OAuth → API Key (Gemini)
141
+ - All credentials stored in `~/.vibe/config.json`
166
142
 
167
- ### Channel Environment Variables
143
+ ## External Channels
168
144
 
169
- | Variable | Description |
170
- |----------|-------------|
171
- | `VIBE_TELEGRAM_ENABLED` | Enable Telegram channel |
172
- | `VIBE_SLACK_ENABLED` | Enable Slack channel |
173
- | `SLACK_BOT_TOKEN` | Slack bot token (xoxb-) |
174
- | `SLACK_APP_TOKEN` | Slack app-level token (xapp-) |
175
- | `SLACK_ALLOWED_CHANNELS` | Comma-separated allowed channel IDs |
145
+ - **Telegram**: `vibe telegram setup <token>` — `~/.vibe/config.json` channels.telegram
146
+ - **Slack**: `vibe slack setup <bot-token> <app-token>` — `~/.vibe/config.json` channels.slack
176
147
 
177
148
  ## Magic Keywords
178
149
 
@@ -184,232 +155,50 @@ Include `ultrawork` or `ulw` keyword for maximum performance:
184
155
  | `verify` | Strict verification mode |
185
156
  | `quick` | Fast mode, minimal verification |
186
157
 
187
- ## PTCF Structure
188
-
189
- SPEC documents use: `<role>` `<context>` `<task>` `<constraints>` `<output_format>` `<acceptance>`
190
-
191
- ## Built-in Tools (41+)
192
-
193
- ### Memory & Session
194
-
195
- | Tool | Purpose |
196
- |------|---------|
197
- | `core_start_session` | Restore previous session context |
198
- | `core_auto_save_context` | Save current state |
199
- | `core_save_memory` | Save important decisions |
200
- | `core_recall_memory` | Recall saved memories |
201
- | `core_list_memories` | List all memories |
202
- | `core_search_memories` | Search memories |
203
- | `core_search_memories_advanced` | Advanced memory search |
204
- | `core_link_memories` | Link related memories |
205
- | `core_get_memory_graph` | Visualize memory graph |
206
- | `core_create_memory_timeline` | Create memory timeline |
207
- | `core_restore_session_context` | Restore session context |
208
- | `core_prioritize_memory` | Prioritize memory items |
209
-
210
- ### Semantic & Quality
211
-
212
- | Tool | Purpose |
213
- |------|---------|
214
- | `core_find_symbol` | Find symbol definitions |
215
- | `core_find_references` | Find references |
216
- | `core_analyze_dependency_graph` | Analyze dependency graph |
217
- | `core_analyze_complexity` | Analyze complexity |
218
- | `core_validate_code_quality` | Validate quality |
219
- | `core_check_coupling_cohesion` | Check coupling/cohesion |
220
- | `core_suggest_improvements` | Suggest improvements |
221
- | `core_apply_quality_rules` | Apply quality rules |
222
-
223
- ### UI & Utility
224
-
225
- | Tool | Purpose |
226
- |------|---------|
227
- | `core_preview_ui_ascii` | UI preview in ASCII |
228
- | `core_get_current_time` | Get current time |
229
-
230
- ### Channel Tools
231
-
232
- | Tool | Purpose |
233
- |------|---------|
234
- | `send_slack` | Send message to Slack channel |
235
-
236
- ### SPEC & Testing
237
-
238
- | Tool | Purpose |
239
- |------|---------|
240
- | `core_spec_generator` | Generate SPEC documents |
241
- | `core_prd_parser` | Parse PRD documents |
242
- | `core_traceability_matrix` | Generate traceability matrix |
243
- | `core_e2e_test_generator` | Generate E2E tests |
244
-
245
- ### Session RAG
246
-
247
- Structured session context storage/retrieval system. SQLite + FTS5 BM25 hybrid search.
248
-
249
- | Tool | Purpose |
250
- |------|---------|
251
- | `save_session_item` | Store Decision/Constraint/Goal/Evidence |
252
- | `retrieve_session_context` | Hybrid search (BM25 + recency + priority) |
253
- | `manage_goals` | Goal lifecycle management (list/update/complete) |
254
-
255
- **4 Entity Types:**
256
-
257
- | Entity | Description | Key Fields |
258
- |--------|-------------|------------|
259
- | Decision | User-confirmed decisions | title, rationale, alternatives, impact, priority |
260
- | Constraint | Explicit constraints | title, type (technical/business/resource/quality), severity |
261
- | Goal | Current goal stack (hierarchical) | title, status, priority, progressPercent, successCriteria |
262
- | Evidence | Verification/test results | title, type (test/build/lint/coverage), status, metrics |
263
-
264
- **Auto-injection:** When `start_session` is called, active Goals, critical Constraints, and recent Decisions are automatically included in session context.
265
-
266
- ```typescript
267
- import { saveSessionItem, retrieveSessionContext, manageGoals } from '@su-record/vibe/tools';
268
-
269
- // Save decision
270
- await saveSessionItem({ itemType: 'decision', title: 'Use Vitest', rationale: 'Fast and modern' });
271
-
272
- // Save constraint
273
- await saveSessionItem({ itemType: 'constraint', title: 'No vector DB', type: 'technical', severity: 'high' });
274
-
275
- // Save goal
276
- await saveSessionItem({ itemType: 'goal', title: 'Implement Session RAG', priority: 2 });
277
-
278
- // Search context
279
- await retrieveSessionContext({ query: 'testing' });
280
-
281
- // Manage goals
282
- await manageGoals({ action: 'list' });
283
- await manageGoals({ action: 'update', goalId: 1, progressPercent: 80 });
284
- await manageGoals({ action: 'complete', goalId: 1 });
285
- ```
286
-
287
- ## External LLM Integration (v0.1.0)
288
-
289
- GPT and Gemini external LLM support via `llm-orchestrate.js` hook script.
290
-
291
- ### Core Modules
292
-
293
- | Module | Purpose |
294
- |--------|---------|
295
- | `SmartRouter` | Task-type-specific LLM selection + fallback chain |
296
- | `LLMCluster` | Parallel multi-LLM calls (GPT + Gemini) |
297
- | `AgentRegistry` | SQLite-based agent execution tracking (WAL mode) |
158
+ ## Agents (49)
298
159
 
299
- ### External LLM Usage
160
+ ### Main (19)
300
161
 
301
- | Role | Provider | Method |
302
- |------|----------|--------|
303
- | SPEC review (cross-validation) | GPT + Gemini | `llm-orchestrate.js` via Bash |
304
- | Race code review | GPT + Gemini | `llm-orchestrate.js` via Bash |
305
- | Research (best practices, security) | GPT + Gemini | `llm-orchestrate.js` via Bash |
306
- | User questions | GPT / Gemini | Hook auto-handles |
162
+ Explorer (high/medium/low), Implementer (high/medium/low), Architect (high/medium/low), Searcher, Tester, Simplifier, Refactor Cleaner, Build Error Resolver, Compounder, Diagrammer, E2E Tester, UI Previewer, Junior Mentor
307
163
 
308
- ### GPT Integration
164
+ ### Review (12)
309
165
 
310
- - Auth: `vibe gpt auth` (OAuth) or `vibe gpt key <key>` (API Key)
311
- - OAuth endpoint: `https://chatgpt.com/backend-api/codex/responses`
312
- - API Key endpoint: `https://api.openai.com/v1/responses`
166
+ security, performance, architecture, complexity, simplicity, data-integrity, test-coverage, git-history, typescript, python, rails, react
313
167
 
314
- ### Gemini Integration
168
+ ### Research (4)
315
169
 
316
- - Auth: `vibe gemini auth` (OAuth) or `vibe gemini key <key>` (API Key)
317
- - Used for: research, review, image analysis, STT
170
+ best-practices, framework-docs, codebase-patterns, security-advisory
318
171
 
319
- ## Agents
172
+ ### UI/UX (8)
320
173
 
321
- ### Main Agents (18)
174
+ ui-industry-analyzer, ui-design-system-gen, ui-layout-architect, ui-stack-implementer, ui-dataviz-advisor, ux-compliance-reviewer, ui-a11y-auditor, ui-antipattern-detector
322
175
 
323
- - **Explorer** (high/medium/low) Codebase exploration
324
- - **Implementer** (high/medium/low) — Code implementation
325
- - **Architect** (high/medium/low) — Architecture design
326
- - **Searcher** — Code search
327
- - **Tester** — Test generation
328
- - **Simplifier** — Code simplification
329
- - **Refactor Cleaner** — Refactoring cleanup
330
- - **Build Error Resolver** — Build error fixing
331
- - **Compounder** — Multi-step compound tasks
332
- - **Diagrammer** — Diagram generation
333
- - **E2E Tester** — E2E test execution
334
- - **UI Previewer** — UI preview
176
+ ### Planning (2), QA (2), Docs (2)
335
177
 
336
- ### Review Agents (12)
178
+ requirements-analyst, ux-advisor, edge-case-finder, acceptance-tester, api-documenter, changelog-writer
337
179
 
338
- security, performance, architecture, complexity, simplicity, data-integrity, test-coverage, git-history, typescript, python, rails, react → `agents/review/`
180
+ ### Agent Teams (9)
339
181
 
340
- ### Research Agents (4)
182
+ Lite, Dev (ULTRAWORK), Research, Review Debate, SPEC Debate, Debug, Security, Migration, Fullstack
341
183
 
342
- best-practices, framework-docs, codebase-patterns, security-advisory → `agents/research/`
343
-
344
- ### UI/UX Agents (8)
345
-
346
- CSV data-driven design intelligence. BM25 search engine auto-generates industry-specific design strategies from 24 CSV files.
347
-
348
- | Phase | Agent | Model | Role |
349
- |-------|-------|-------|------|
350
- | SPEC | 1. ui-industry-analyzer | Haiku | Industry analysis + design strategy |
351
- | SPEC | 2. ui-design-system-gen | Sonnet | MASTER.md design system generation |
352
- | SPEC | 3. ui-layout-architect | Haiku | Page structure/sections/CTA design |
353
- | RUN | 4. ui-stack-implementer | Haiku | Framework-specific component guide |
354
- | RUN | 5. ui-dataviz-advisor | Haiku | Chart/visualization library recommendations |
355
- | REVIEW | 6. ux-compliance-reviewer | Haiku | UX guideline compliance verification |
356
- | REVIEW | 7. ui-a11y-auditor | Haiku | WCAG 2.1 AA accessibility audit |
357
- | REVIEW | 8. ui-antipattern-detector | Haiku | UI anti-pattern detection |
358
-
359
- **Execution flow**: 1→2,3 (SPEC, supervisor-worker) → 4,5 (RUN, before Phase start) → 6,7,8 (REVIEW, on UI file changes)
360
-
361
- **Disable**: Set `"uiUxAnalysis": false` in `.claude/vibe/config.json`
362
-
363
- **MCP tools**: `core_ui_search`, `core_ui_stack_search`, `core_ui_generate_design_system`, `core_ui_persist_design_system`
364
-
365
- **Data**: `~/.claude/vibe/ui-ux-data/` (11 domain CSVs + 13 stack CSVs)
366
-
367
- → `agents/ui/`
368
-
369
- ### Planning Agents (2)
370
-
371
- requirements-analyst, ux-advisor → `agents/planning/`
372
-
373
- ### QA Agents (2)
374
-
375
- edge-case-finder, acceptance-tester → `agents/qa/`
376
-
377
- ### Docs Agents (2)
378
-
379
- api-documenter, changelog-writer → `agents/docs/`
380
-
381
- ### Mentor Agent (1)
382
-
383
- junior-mentor — Junior developer mentor with EXPLANATION.md generation
384
-
385
- ### Agent Teams (9 teams)
386
-
387
- > Agents form teams to collaborate via shared task lists with mutual feedback.
388
- > Setting: `CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1` (`.claude/settings.local.json` env, postinstall auto-configured)
184
+ ## Built-in Tools (41+)
389
185
 
390
- | Team | Workflow | Members | Activation |
391
- |------|----------|---------|------------|
392
- | Lite Team | `/vibe.run` normal | architect, implementer, tester | 3+ scenarios, normal mode |
393
- | Dev Team | `/vibe.run` ULTRAWORK | architect, implementer, tester, security-reviewer | ULTRAWORK or complexity 20+ |
394
- | Research Team | `/vibe.spec` Step 3 | best-practices, security-advisory, codebase-patterns, framework-docs | Always in /vibe.spec |
395
- | Review Debate Team | `/vibe.review` Phase 4.5 | security, architecture, performance, simplicity | P1/P2 issues 2+ |
396
- | SPEC Debate Team | `/vibe.spec.review` Step 3.5 | security, architecture, performance, simplicity | P1/P2 issues 2+ |
397
- | Debug Team | `/vibe.run` failure | architect, implementer, tester | Build/test failure 3x+ |
398
- | Security Team | `/vibe.run` security | security, data-integrity, security-advisory, tester | auth/payment file changes |
399
- | Migration Team | `/vibe.run` migration | architect, implementer, tester, build-error-resolver | Major dependency version change |
400
- | Fullstack Team | `/vibe.run` fullstack | architect, implementer-backend, implementer-frontend, tester | SPEC has frontend + backend |
186
+ - **Memory & Session** (21): save/recall/search/link memories, session RAG (save_session_item, retrieve_session_context, manage_goals)
187
+ - **Code Quality** (8): find_symbol, find_references, analyze_complexity, validate_code_quality, etc.
188
+ - **SPEC & Testing** (9): spec_generator, traceability_matrix, e2e_test_generator, etc.
189
+ - **UI & Utility** (3+): preview_ui_ascii, get_current_time, send_slack
401
190
 
402
191
  ## Hooks System
403
192
 
404
193
  | Event | Hooks |
405
194
  |-------|-------|
406
195
  | SessionStart | `session-start.js` |
407
- | PreToolUse (Bash/Edit/Write) | `pre-tool-guard.js` |
408
- | PostToolUse (Write/Edit) | `post-edit.js`, `code-check.js`, `post-tool-verify.js` |
196
+ | PreToolUse | `pre-tool-guard.js` |
197
+ | PostToolUse | `post-edit.js`, `code-check.js`, `post-tool-verify.js` |
409
198
  | UserPromptSubmit | `prompt-dispatcher.js`, `skill-injector.js`, `keyword-detector.js`, `hud-status.js` |
410
- | Notification (context 80/90/95%) | `context-save.js` |
199
+ | Notification | `context-save.js` (80/90/95%) |
411
200
 
412
- **Additional hooks:** `code-review.js`, `llm-orchestrate.js`, `recall.js`, `complexity.js`, `compound.js`, `skill-requirements.js`, `autonomy-controller.js`, `evolution-engine.js`, `hud-multiline.js`, `sentinel-guard.js`, `stop-notify.js`
201
+ Additional: `code-review.js`, `llm-orchestrate.js`, `recall.js`, `complexity.js`, `compound.js`, `stop-notify.js`
413
202
 
414
203
  ## Language Support (25 frameworks)
415
204
 
@@ -422,22 +211,8 @@ junior-mentor — Junior developer mentor with EXPLANATION.md generation
422
211
 
423
212
  ## Context Management
424
213
 
425
- ### Model Selection
426
-
427
- - **Exploration/Search**: Haiku
428
- - **Implementation**: Sonnet
429
- - **Architecture**: Opus
430
-
431
- ### At 70%+ Context
432
-
433
- - Do NOT use `/compact` (information loss risk)
434
- - Use `save_memory` → `/new` for new session
435
- - Restore with `/vibe.utils --continue`
436
-
437
- ## Documentation Guidelines
438
-
439
- - Avoid ASCII boxes → Use Mermaid diagrams, Markdown tables, or indented lists
440
- - Flowcharts → Mermaid | Structure → Indented lists | Comparisons → Tables
214
+ - **Exploration/Search**: Haiku | **Implementation**: Sonnet | **Architecture**: Opus
215
+ - At 70%+ context: Use `save_memory` → `/new` → `/vibe.utils --continue`
441
216
 
442
217
  ## Git Commit Rules
443
218