@su-record/vibe 2.5.3 → 2.5.5
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.
- package/commands/vibe.spec.md +49 -101
- package/package.json +1 -1
- package/skills/vibe-capabilities.md +43 -23
- package/skills/multi-llm-orchestration.md +0 -90
package/commands/vibe.spec.md
CHANGED
|
@@ -106,49 +106,23 @@ Collect requirements through conversation with the user and create an **AI-execu
|
|
|
106
106
|
|
|
107
107
|
> **PTCF**: Persona, Task, Context, Format - Google Gemini prompt optimization framework
|
|
108
108
|
|
|
109
|
-
## External LLM Integration (
|
|
109
|
+
## External LLM Integration (GPT/Gemini)
|
|
110
110
|
|
|
111
|
-
When
|
|
111
|
+
When GPT/Gemini are enabled, they are automatically utilized during SPEC creation:
|
|
112
112
|
|
|
113
113
|
```
|
|
114
|
-
/vibe.spec "
|
|
114
|
+
/vibe.spec "feature"
|
|
115
115
|
↓
|
|
116
|
-
[Claude
|
|
116
|
+
[Claude] Draft SPEC
|
|
117
117
|
↓
|
|
118
|
-
[
|
|
118
|
+
[Parallel Research] GPT + Gemini + Claude agents (8 parallel)
|
|
119
119
|
↓
|
|
120
|
-
[
|
|
120
|
+
[SPEC Review] GPT + Gemini parallel review
|
|
121
121
|
↓
|
|
122
122
|
[Claude] Finalize SPEC
|
|
123
123
|
```
|
|
124
124
|
|
|
125
|
-
|
|
126
|
-
|--------------|-------------------|------|-----------|
|
|
127
|
-
| GPT (user query) | `gpt-`, `gpt.`, `지피티-` prefix | Direct question (Web Search enabled) | User asks directly |
|
|
128
|
-
| GPT (orchestration) | Call global hook script via Bash | Internal orchestration (JSON, no search) | SPEC/vibe.run internal |
|
|
129
|
-
| Gemini (user query) | `gemini-`, `gemini.`, `제미나이-` prefix | Direct question (Google Search enabled) | User asks directly |
|
|
130
|
-
| Gemini (orchestration) | Call global hook script via Bash | Internal orchestration (JSON, no search) | SPEC/vibe.run internal |
|
|
131
|
-
|
|
132
|
-
**Claude internal orchestration call (Bash):**
|
|
133
|
-
```bash
|
|
134
|
-
# Usage: node llm-orchestrate.js <provider> <mode> [systemPrompt] [prompt]
|
|
135
|
-
# - If systemPrompt is omitted, default value is used
|
|
136
|
-
# - If "-" is passed for systemPrompt, default value is used and next argument is treated as prompt
|
|
137
|
-
|
|
138
|
-
# Cross-platform path resolution (recommended)
|
|
139
|
-
# Windows uses %APPDATA%, bash uses $APPDATA - Node.js handles both via process.env.APPDATA
|
|
140
|
-
|
|
141
|
-
# GPT call
|
|
142
|
-
node "$(node -p "process.env.APPDATA || require('os').homedir() + '/.config'")/vibe/hooks/scripts/llm-orchestrate.js" gpt orchestrate-json "[question content]"
|
|
143
|
-
|
|
144
|
-
# Gemini call
|
|
145
|
-
node "$(node -p "process.env.APPDATA || require('os').homedir() + '/.config'")/vibe/hooks/scripts/llm-orchestrate.js" gemini orchestrate-json "[question content]"
|
|
146
|
-
|
|
147
|
-
# Custom system prompt usage
|
|
148
|
-
node "$(node -p "process.env.APPDATA || require('os').homedir() + '/.config'")/vibe/hooks/scripts/llm-orchestrate.js" gpt orchestrate-json "You are a SPEC reviewer" "[question content]"
|
|
149
|
-
```
|
|
150
|
-
|
|
151
|
-
**Activation:**
|
|
125
|
+
**Setup:**
|
|
152
126
|
```bash
|
|
153
127
|
vibe gpt auth # Enable GPT (OAuth)
|
|
154
128
|
vibe gemini auth # Enable Gemini (OAuth)
|
|
@@ -264,7 +238,14 @@ Read ~/.claude/vibe/languages/typescript-react.md
|
|
|
264
238
|
|
|
265
239
|
### 3. Parallel Research (v2.5.0) - MANDATORY AFTER requirements confirmed
|
|
266
240
|
|
|
267
|
-
|
|
241
|
+
**🚨🚨🚨 ABSOLUTE RULE: YOU MUST USE BASH TOOL FOR RESEARCH 🚨🚨🚨**
|
|
242
|
+
|
|
243
|
+
**STOP! Before doing ANY research, read this carefully:**
|
|
244
|
+
|
|
245
|
+
1. **DO NOT** use Task tool to spawn research agents
|
|
246
|
+
2. **DO NOT** use context7 MCP directly for research
|
|
247
|
+
3. **DO NOT** use WebSearch tool directly for research
|
|
248
|
+
4. **YOU MUST** use Bash tool to call llm-orchestrate.js directly
|
|
268
249
|
|
|
269
250
|
**When to trigger:**
|
|
270
251
|
1. ✅ Feature type decided (e.g., "passkey authentication")
|
|
@@ -272,87 +253,54 @@ Read ~/.claude/vibe/languages/typescript-react.md
|
|
|
272
253
|
3. ✅ Language guide copied (step 2.5)
|
|
273
254
|
4. ✅ Core requirements collected
|
|
274
255
|
|
|
275
|
-
**→ IMMEDIATELY run
|
|
276
|
-
|
|
277
|
-
**🚨 MANDATORY: Use Bash tool to call orchestrator**
|
|
278
|
-
|
|
279
|
-
❌ **FORBIDDEN:** Using Task tool to spawn agents directly
|
|
280
|
-
✅ **REQUIRED:** Use Bash tool to run the orchestrator command below
|
|
281
|
-
|
|
282
|
-
**Execution via Bash (REQUIRED):**
|
|
283
|
-
```bash
|
|
284
|
-
node -e "import('@su-record/vibe/orchestrator').then(o => o.research('[FEATURE]', ['[STACK1]', '[STACK2]']).then(r => console.log(r.content[0].text)))"
|
|
285
|
-
```
|
|
256
|
+
**→ IMMEDIATELY run these 4 Bash commands IN PARALLEL (all at once):**
|
|
286
257
|
|
|
287
|
-
**Example (copy and run via Bash tool):**
|
|
288
258
|
```bash
|
|
289
|
-
#
|
|
290
|
-
node -
|
|
291
|
-
```
|
|
259
|
+
# Cross-platform path (works on Windows/macOS/Linux)
|
|
260
|
+
VIBE_SCRIPTS="$(node -p "process.env.APPDATA || require('os').homedir() + '/.config'")/vibe/hooks/scripts"
|
|
292
261
|
|
|
293
|
-
|
|
262
|
+
# 1. GPT: Best practices
|
|
263
|
+
node "$VIBE_SCRIPTS/llm-orchestrate.js" gpt orchestrate-json "Best practices for [FEATURE] with [STACK]. Focus: architecture patterns, code conventions. Return JSON: {patterns: [], antiPatterns: [], libraries: []}"
|
|
294
264
|
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
| Claude Agent: `best-practices-agent` | Best practices for [feature] + [stack] | WebSearch |
|
|
298
|
-
| Claude Agent: `framework-docs-agent` | Latest docs via context7 | context7 MCP |
|
|
299
|
-
| Claude Agent: `codebase-patterns-agent` | Similar patterns in existing codebase | Glob, Grep |
|
|
300
|
-
| Claude Agent: `security-advisory-agent` | Security advisories for [feature] | WebSearch |
|
|
301
|
-
| **GPT: Best Practices** | Architecture patterns, code conventions | GPT API |
|
|
302
|
-
| **GPT: Security** | CVE database, vulnerability details | GPT API |
|
|
303
|
-
| **Gemini: Best Practices** | Latest trends, framework updates | Gemini API |
|
|
304
|
-
| **Gemini: Security** | Latest security advisories, patches | Gemini API |
|
|
265
|
+
# 2. GPT: Security
|
|
266
|
+
node "$VIBE_SCRIPTS/llm-orchestrate.js" gpt orchestrate-json "Security vulnerabilities for [FEATURE] with [STACK]. Focus: CVE database, known exploits. Return JSON: {vulnerabilities: [], mitigations: [], checklist: []}"
|
|
305
267
|
|
|
306
|
-
|
|
268
|
+
# 3. Gemini: Best practices
|
|
269
|
+
node "$VIBE_SCRIPTS/llm-orchestrate.js" gemini orchestrate-json "Best practices for [FEATURE] with [STACK]. Focus: latest trends, framework updates. Return JSON: {patterns: [], antiPatterns: [], libraries: []}"
|
|
307
270
|
|
|
308
|
-
|
|
271
|
+
# 4. Gemini: Security
|
|
272
|
+
node "$VIBE_SCRIPTS/llm-orchestrate.js" gemini orchestrate-json "Security advisories for [FEATURE] with [STACK]. Focus: latest patches, recent incidents. Return JSON: {advisories: [], patches: [], incidents: []}"
|
|
273
|
+
```
|
|
309
274
|
|
|
310
|
-
|
|
275
|
+
**Concrete example - run all 4 in parallel:**
|
|
276
|
+
```bash
|
|
277
|
+
# GPT best practices
|
|
278
|
+
node "$(node -p "process.env.APPDATA || require('os').homedir() + '/.config'")/vibe/hooks/scripts/llm-orchestrate.js" gpt orchestrate-json "Best practices for passkey authentication with React, Supabase. Focus: architecture patterns, code conventions. Return JSON: {patterns: [], antiPatterns: [], libraries: []}"
|
|
311
279
|
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
│ MULTI-LLM PARALLEL RESEARCH │
|
|
315
|
-
├─────────────────────────────────────────────────────────────┤
|
|
316
|
-
│ best-practices-agent │
|
|
317
|
-
│ ├── Claude (Haiku): Core patterns, anti-patterns │
|
|
318
|
-
│ ├── GPT: Architecture patterns, code conventions │
|
|
319
|
-
│ └── Gemini: Latest trends, framework updates │
|
|
320
|
-
├─────────────────────────────────────────────────────────────┤
|
|
321
|
-
│ security-advisory-agent │
|
|
322
|
-
│ ├── Claude (Haiku): OWASP Top 10, security patterns │
|
|
323
|
-
│ ├── GPT: CVE database, vulnerability details │
|
|
324
|
-
│ └── Gemini: Latest security advisories, patches │
|
|
325
|
-
└─────────────────────────────────────────────────────────────┘
|
|
326
|
-
↓
|
|
327
|
-
Merge & Dedupe (per agent)
|
|
328
|
-
↓
|
|
329
|
-
SPEC Context + Constraints
|
|
330
|
-
```
|
|
280
|
+
# GPT security
|
|
281
|
+
node "$(node -p "process.env.APPDATA || require('os').homedir() + '/.config'")/vibe/hooks/scripts/llm-orchestrate.js" gpt orchestrate-json "Security vulnerabilities for passkey authentication with React, Supabase. Focus: CVE database, known exploits. Return JSON: {vulnerabilities: [], mitigations: [], checklist: []}"
|
|
331
282
|
|
|
332
|
-
|
|
283
|
+
# Gemini best practices
|
|
284
|
+
node "$(node -p "process.env.APPDATA || require('os').homedir() + '/.config'")/vibe/hooks/scripts/llm-orchestrate.js" gemini orchestrate-json "Best practices for passkey authentication with React, Supabase. Focus: latest trends, framework updates. Return JSON: {patterns: [], antiPatterns: [], libraries: []}"
|
|
333
285
|
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
286
|
+
# Gemini security
|
|
287
|
+
node "$(node -p "process.env.APPDATA || require('os').homedir() + '/.config'")/vibe/hooks/scripts/llm-orchestrate.js" gemini orchestrate-json "Security advisories for passkey authentication with React, Supabase. Focus: latest patches, recent incidents. Return JSON: {advisories: [], patches: [], incidents: []}"
|
|
288
|
+
```
|
|
337
289
|
|
|
338
|
-
|
|
339
|
-
node "$VIBE_SCRIPTS/llm-orchestrate.js" gpt orchestrate-json \
|
|
340
|
-
"Best practices for [FEATURE] with [STACK]. Focus: architecture patterns, code conventions. Return JSON: {patterns: [], antiPatterns: [], libraries: []}"
|
|
290
|
+
**ALSO run Claude research agents in parallel using Task tool:**
|
|
341
291
|
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
292
|
+
| Claude Agent | Role | Source |
|
|
293
|
+
|--------------|------|--------|
|
|
294
|
+
| `best-practices-agent` | Best practices for [feature] + [stack] | WebSearch |
|
|
295
|
+
| `framework-docs-agent` | Latest docs via context7 | context7 MCP |
|
|
296
|
+
| `codebase-patterns-agent` | Similar patterns in existing codebase | Glob, Grep |
|
|
297
|
+
| `security-advisory-agent` | Security advisories for [feature] | WebSearch |
|
|
345
298
|
|
|
346
|
-
|
|
347
|
-
node "$VIBE_SCRIPTS/llm-orchestrate.js" gpt orchestrate-json \
|
|
348
|
-
"Security vulnerabilities for [FEATURE] with [STACK]. Focus: CVE database, known exploits. Return JSON: {vulnerabilities: [], mitigations: [], checklist: []}"
|
|
299
|
+
**Total: 4 GPT/Gemini calls (Bash) + 4 Claude agents (Task) = 8 parallel research tasks**
|
|
349
300
|
|
|
350
|
-
|
|
351
|
-
node "$VIBE_SCRIPTS/llm-orchestrate.js" gemini orchestrate-json \
|
|
352
|
-
"Security advisories for [FEATURE] with [STACK]. Focus: latest patches, recent incidents. Return JSON: {advisories: [], patches: [], incidents: []}"
|
|
353
|
-
```
|
|
301
|
+
**🚨 GPT/Gemini MUST be called via Bash with llm-orchestrate.js! 🚨**
|
|
354
302
|
|
|
355
|
-
|
|
303
|
+
#### 3.1 Result Merge Rules
|
|
356
304
|
|
|
357
305
|
| Area | Merge Strategy |
|
|
358
306
|
|------|----------------|
|
|
@@ -366,7 +314,7 @@ node "$VIBE_SCRIPTS/llm-orchestrate.js" gemini orchestrate-json \
|
|
|
366
314
|
- ✅ ALWAYS run after requirements confirmed
|
|
367
315
|
- ✅ Show "Running parallel research (Claude + GPT + Gemini)..." message
|
|
368
316
|
- ✅ Include all agent + LLM results in SPEC Context
|
|
369
|
-
- ✅ Run all LLM calls in parallel
|
|
317
|
+
- ✅ Run all 4 Bash LLM calls in parallel + 4 Task agents in parallel
|
|
370
318
|
|
|
371
319
|
**Research results are reflected in SPEC's Context section.**
|
|
372
320
|
|
package/package.json
CHANGED
|
@@ -52,14 +52,6 @@ node -e "import('@su-record/vibe/tools').then(t => t.TOOL_NAME({...}))"
|
|
|
52
52
|
|
|
53
53
|
## Orchestrator
|
|
54
54
|
|
|
55
|
-
### Parallel Research (4 agents)
|
|
56
|
-
|
|
57
|
-
```bash
|
|
58
|
-
node -e "import('@su-record/vibe/orchestrator').then(o =>
|
|
59
|
-
o.research('feature', ['stack1', 'stack2'])
|
|
60
|
-
)"
|
|
61
|
-
```
|
|
62
|
-
|
|
63
55
|
### Background Agents
|
|
64
56
|
|
|
65
57
|
```bash
|
|
@@ -68,15 +60,37 @@ node -e "import('@su-record/vibe/orchestrator').then(o =>
|
|
|
68
60
|
)"
|
|
69
61
|
```
|
|
70
62
|
|
|
71
|
-
## LLM
|
|
63
|
+
## Multi-LLM Research (v2.5.0)
|
|
64
|
+
|
|
65
|
+
GPT/Gemini are automatically called within `/vibe.spec`:
|
|
66
|
+
|
|
67
|
+
```text
|
|
68
|
+
/vibe.spec "feature"
|
|
69
|
+
↓
|
|
70
|
+
[Claude] Draft SPEC
|
|
71
|
+
↓
|
|
72
|
+
[Parallel Research] 8 parallel tasks:
|
|
73
|
+
- 4x Bash: GPT/Gemini (best practices + security)
|
|
74
|
+
- 4x Task: Claude agents (docs, patterns, advisories)
|
|
75
|
+
↓
|
|
76
|
+
[SPEC Review] GPT + Gemini parallel review
|
|
77
|
+
↓
|
|
78
|
+
[Claude] Finalize SPEC
|
|
79
|
+
```
|
|
72
80
|
|
|
73
|
-
|
|
81
|
+
| Phase | Method | Tasks |
|
|
82
|
+
|-------|--------|-------- |
|
|
83
|
+
| Research | `llm-orchestrate.js` via Bash | GPT best practices, GPT security, Gemini best practices, Gemini security |
|
|
84
|
+
| Research | Task tool (Claude agents) | framework-docs, codebase-patterns, best-practices, security-advisory |
|
|
85
|
+
| SPEC Review | `llm-orchestrate.js` via Bash | SPEC quality validation |
|
|
86
|
+
| Docs | context7 MCP | Latest library documentation |
|
|
74
87
|
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
88
|
+
**Setup:**
|
|
89
|
+
```bash
|
|
90
|
+
vibe gpt auth # Enable GPT
|
|
91
|
+
vibe gemini auth # Enable Gemini
|
|
92
|
+
vibe status # Check current settings
|
|
93
|
+
```
|
|
80
94
|
|
|
81
95
|
## ULTRAWORK Mode
|
|
82
96
|
|
|
@@ -102,15 +116,22 @@ Add `ultrawork` or `ulw` for maximum performance:
|
|
|
102
116
|
## Project Structure
|
|
103
117
|
|
|
104
118
|
```
|
|
105
|
-
|
|
119
|
+
# Global (~/.claude/)
|
|
120
|
+
~/.claude/
|
|
106
121
|
├── commands/ # Slash commands
|
|
107
122
|
├── agents/ # Sub-agents
|
|
108
123
|
├── skills/ # Auto-activated guides
|
|
109
124
|
└── vibe/
|
|
110
|
-
├──
|
|
111
|
-
├──
|
|
112
|
-
|
|
113
|
-
|
|
125
|
+
├── rules/ # Coding rules (global)
|
|
126
|
+
├── languages/ # Language guides (global)
|
|
127
|
+
└── templates/ # Templates (global)
|
|
128
|
+
|
|
129
|
+
# Project (.claude/vibe/)
|
|
130
|
+
.claude/vibe/
|
|
131
|
+
├── specs/ # SPEC documents
|
|
132
|
+
├── features/ # BDD scenarios
|
|
133
|
+
├── config.json # Project config
|
|
134
|
+
└── constitution.md # Project rules
|
|
114
135
|
```
|
|
115
136
|
|
|
116
137
|
## Context Management
|
|
@@ -124,6 +145,5 @@ Add `ultrawork` or `ulw` for maximum performance:
|
|
|
124
145
|
Even without `/vibe.*` commands, you can:
|
|
125
146
|
|
|
126
147
|
1. Call tools directly via node commands
|
|
127
|
-
2.
|
|
128
|
-
3.
|
|
129
|
-
4. Apply coding rules from `~/.claude/vibe/rules/` (global)
|
|
148
|
+
2. Reference skills for guidance
|
|
149
|
+
3. Apply coding rules from `~/.claude/vibe/rules/` (global)
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: Multi-LLM collaboration guide. Auto-activates for architecture review, design decisions, debugging, UI/UX consultation, complex problem solving, or when a different perspective is needed.
|
|
3
|
-
---
|
|
4
|
-
# Multi-LLM Orchestration
|
|
5
|
-
|
|
6
|
-
Guide for using GPT/Gemini as sub-agents in Claude Code via hooks.
|
|
7
|
-
|
|
8
|
-
## Calling GPT
|
|
9
|
-
|
|
10
|
-
Use `gpt-` or `gpt.` prefix:
|
|
11
|
-
|
|
12
|
-
| Situation | Example |
|
|
13
|
-
|-----------|---------|
|
|
14
|
-
| Architecture review | `gpt- Review this auth architecture: [code]` |
|
|
15
|
-
| Complex debugging | `gpt- Debug this error: [error message]` |
|
|
16
|
-
| Algorithm optimization | `gpt- Suggest better algorithm for: [problem]` |
|
|
17
|
-
| Security review | `gpt- Check security vulnerabilities in: [code]` |
|
|
18
|
-
| Technology decisions | `gpt- Compare Redis vs Memcached for caching` |
|
|
19
|
-
|
|
20
|
-
### Usage Examples
|
|
21
|
-
|
|
22
|
-
```
|
|
23
|
-
gpt- Review this authentication architecture: [code]
|
|
24
|
-
gpt.Review this REST API design
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
## Calling Gemini
|
|
28
|
-
|
|
29
|
-
Use `gemini-` or `gemini.` prefix:
|
|
30
|
-
|
|
31
|
-
| Situation | Example |
|
|
32
|
-
|-----------|---------|
|
|
33
|
-
| UI/UX consultation | `gemini- Improve UX for this login form` |
|
|
34
|
-
| Design system advice | `gemini- Suggest component structure` |
|
|
35
|
-
| Accessibility review | `gemini- Check a11y issues in this form` |
|
|
36
|
-
| User flow design | `gemini- Optimize this checkout flow` |
|
|
37
|
-
|
|
38
|
-
### Usage Examples
|
|
39
|
-
|
|
40
|
-
```
|
|
41
|
-
gemini- Improve UX for this login form
|
|
42
|
-
gemini.Suggest improvements for this dashboard
|
|
43
|
-
```
|
|
44
|
-
|
|
45
|
-
## When NOT to Use
|
|
46
|
-
|
|
47
|
-
- Simple implementation (Claude alone is sufficient)
|
|
48
|
-
- File read/write (use Claude's tools)
|
|
49
|
-
- Quick response needed (API latency exists)
|
|
50
|
-
- Tasks requiring project context (Claude has the context)
|
|
51
|
-
|
|
52
|
-
## Collaboration Patterns
|
|
53
|
-
|
|
54
|
-
### Pattern 1: Design Cross-check
|
|
55
|
-
|
|
56
|
-
```
|
|
57
|
-
Claude: Draft design
|
|
58
|
-
↓
|
|
59
|
-
gpt- Review this architecture: [design]
|
|
60
|
-
↓
|
|
61
|
-
Claude: Incorporate feedback into final design
|
|
62
|
-
```
|
|
63
|
-
|
|
64
|
-
### Pattern 2: Debugging Collaboration
|
|
65
|
-
|
|
66
|
-
```
|
|
67
|
-
Claude: Attempt problem analysis
|
|
68
|
-
↓
|
|
69
|
-
If stuck: gpt- Debug this issue: [error details]
|
|
70
|
-
↓
|
|
71
|
-
Claude: Apply GPT's suggestions
|
|
72
|
-
```
|
|
73
|
-
|
|
74
|
-
### Pattern 3: UI/UX Consultation
|
|
75
|
-
|
|
76
|
-
```
|
|
77
|
-
Claude: Implement feature
|
|
78
|
-
↓
|
|
79
|
-
gemini- Suggest UX improvements for: [component]
|
|
80
|
-
↓
|
|
81
|
-
Claude: Apply UX feedback
|
|
82
|
-
```
|
|
83
|
-
|
|
84
|
-
## API Key Setup
|
|
85
|
-
|
|
86
|
-
```bash
|
|
87
|
-
vibe gpt login # Enable GPT (OAuth)
|
|
88
|
-
vibe gemini login # Enable Gemini (OAuth)
|
|
89
|
-
vibe status # Check current settings
|
|
90
|
-
```
|