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