@su-record/vibe 2.6.42 → 2.6.44
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/.env +1 -1
- package/CLAUDE.md +0 -1
- package/commands/vibe.analyze.md +373 -373
- package/commands/vibe.reason.md +333 -333
- package/commands/vibe.review.md +555 -555
- package/commands/vibe.run.md +1922 -1922
- package/commands/vibe.spec.md +1195 -1195
- package/commands/vibe.trace.md +209 -209
- package/commands/vibe.verify.md +414 -414
- package/dist/cli/commands/index.d.ts +0 -1
- package/dist/cli/commands/index.d.ts.map +1 -1
- package/dist/cli/commands/index.js +0 -1
- package/dist/cli/commands/index.js.map +1 -1
- package/dist/cli/commands/info.d.ts.map +1 -1
- package/dist/cli/commands/info.js +0 -7
- package/dist/cli/commands/info.js.map +1 -1
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/index.js +1 -52
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/postinstall/inline-skills.js +1 -1
- package/dist/cli/postinstall/inline-skills.js.map +1 -1
- package/dist/cli/setup/GlobalInstaller.d.ts +7 -0
- package/dist/cli/setup/GlobalInstaller.d.ts.map +1 -1
- package/dist/cli/setup/GlobalInstaller.js +45 -0
- package/dist/cli/setup/GlobalInstaller.js.map +1 -1
- package/dist/infra/lib/SkillRepository.d.ts.map +1 -1
- package/dist/infra/lib/SkillRepository.js +5 -4
- package/dist/infra/lib/SkillRepository.js.map +1 -1
- package/hooks/scripts/llm-orchestrate.js +12 -25
- package/hooks/scripts/prompt-dispatcher.js +5 -11
- package/package.json +2 -4
- package/skills/core-capabilities/SKILL.md +164 -164
- package/skills/parallel-research/SKILL.md +80 -80
|
@@ -1,164 +1,164 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: core-capabilities
|
|
3
|
-
description: "Core framework capabilities overview. Auto-activates when working on core projects, asking about available features, or needing workflow guidance."
|
|
4
|
-
triggers: [core, capabilities, features, workflow, framework guide]
|
|
5
|
-
priority: 50
|
|
6
|
-
---
|
|
7
|
-
# Core Capabilities
|
|
8
|
-
|
|
9
|
-
Complete guide to core's scenario-driven development framework.
|
|
10
|
-
|
|
11
|
-
## Core Workflow
|
|
12
|
-
|
|
13
|
-
```
|
|
14
|
-
/vibe.spec → /vibe.run → /vibe.verify → /vibe.review
|
|
15
|
-
```
|
|
16
|
-
|
|
17
|
-
## Slash Commands
|
|
18
|
-
|
|
19
|
-
| Command | Purpose |
|
|
20
|
-
|---------|---------|
|
|
21
|
-
| `/vibe.spec "feature"` | Create SPEC with PTCF structure + 8 parallel research |
|
|
22
|
-
| `/vibe.spec "feature" split` | Create multiple SPECs for large scope features |
|
|
23
|
-
| `/vibe.run "feature"` | Implement based on SPEC |
|
|
24
|
-
| `/vibe.run "feature" ultrawork` | Maximum performance mode |
|
|
25
|
-
| `/vibe.verify "feature"` | BDD scenario verification |
|
|
26
|
-
| `/vibe.review` | Parallel code review (13+ agents) |
|
|
27
|
-
| `/vibe.analyze` | Project analysis |
|
|
28
|
-
| `/vibe.reason "problem"` | Systematic reasoning |
|
|
29
|
-
| `/vibe.utils --e2e` | Playwright E2E testing |
|
|
30
|
-
| `/vibe.utils --diagram` | Generate diagrams |
|
|
31
|
-
| `/vibe.utils --ui "description"` | UI preview |
|
|
32
|
-
| `/vibe.utils --continue` | Session restore (load previous context) |
|
|
33
|
-
| `/vibe.utils --compound` | Document solutions |
|
|
34
|
-
|
|
35
|
-
## Built-in Tools
|
|
36
|
-
|
|
37
|
-
### Semantic Code Analysis
|
|
38
|
-
|
|
39
|
-
```bash
|
|
40
|
-
node -e "import('
|
|
41
|
-
```
|
|
42
|
-
|
|
43
|
-
| Tool | Purpose |
|
|
44
|
-
|------|---------|
|
|
45
|
-
| `findSymbol` | Find symbol definitions |
|
|
46
|
-
| `findReferences` | Find all references |
|
|
47
|
-
| `analyzeComplexity` | Code complexity analysis |
|
|
48
|
-
| `validateCodeQuality` | Quality validation |
|
|
49
|
-
|
|
50
|
-
### Memory Management
|
|
51
|
-
|
|
52
|
-
| Tool | Purpose |
|
|
53
|
-
|------|---------|
|
|
54
|
-
| `startSession` | Start session (restore previous context) |
|
|
55
|
-
| `autoSaveContext` | Save current state |
|
|
56
|
-
| `saveMemory` | Save important decisions |
|
|
57
|
-
| `recallMemory` | Recall saved memory |
|
|
58
|
-
| `listMemories` | List saved memories |
|
|
59
|
-
|
|
60
|
-
## Orchestrator
|
|
61
|
-
|
|
62
|
-
### Background Agents
|
|
63
|
-
|
|
64
|
-
```bash
|
|
65
|
-
node -e "import('
|
|
66
|
-
o.launchBackgroundAgent({ prompt: '...', agentName: '...' })
|
|
67
|
-
)"
|
|
68
|
-
```
|
|
69
|
-
|
|
70
|
-
## Multi-LLM Research (v2.5.0)
|
|
71
|
-
|
|
72
|
-
GPT/Gemini are automatically called within `/vibe.spec`:
|
|
73
|
-
|
|
74
|
-
```text
|
|
75
|
-
/vibe.spec "feature"
|
|
76
|
-
↓
|
|
77
|
-
[Claude] Draft SPEC
|
|
78
|
-
↓
|
|
79
|
-
[Parallel Research] 8 parallel tasks:
|
|
80
|
-
- 4x Bash: GPT/Gemini (best practices + security)
|
|
81
|
-
- 4x Task: Claude agents (docs, patterns, advisories)
|
|
82
|
-
↓
|
|
83
|
-
[SPEC Review] GPT + Gemini parallel review
|
|
84
|
-
↓
|
|
85
|
-
[Claude] Finalize SPEC
|
|
86
|
-
```
|
|
87
|
-
|
|
88
|
-
| Phase | Method | Tasks |
|
|
89
|
-
|-------|--------|-------- |
|
|
90
|
-
| Research | `llm-orchestrate.js` via Bash | GPT best practices, GPT security, Gemini best practices, Gemini security |
|
|
91
|
-
| Research | Task tool (Claude agents) | framework-docs, codebase-patterns, best-practices, security-advisory |
|
|
92
|
-
| SPEC Review | `llm-orchestrate.js` via Bash | SPEC quality validation |
|
|
93
|
-
| Docs | context7 MCP | Latest library documentation |
|
|
94
|
-
|
|
95
|
-
**Setup:**
|
|
96
|
-
```bash
|
|
97
|
-
vibe gpt auth # Enable GPT
|
|
98
|
-
vibe gemini auth # Enable Gemini
|
|
99
|
-
vibe status # Check current settings
|
|
100
|
-
```
|
|
101
|
-
|
|
102
|
-
## ULTRAWORK Mode
|
|
103
|
-
|
|
104
|
-
Add `ultrawork` or `ulw` for maximum performance:
|
|
105
|
-
|
|
106
|
-
- Parallel subagent exploration (3+ concurrent)
|
|
107
|
-
- Background agents preparing next phase
|
|
108
|
-
- Phase pipelining (no wait between phases)
|
|
109
|
-
- Boulder Loop (auto-progress until complete)
|
|
110
|
-
- Auto-retry on errors (max 3 times)
|
|
111
|
-
- Auto-compress at 70%+ context
|
|
112
|
-
|
|
113
|
-
## Review Agents (13+)
|
|
114
|
-
|
|
115
|
-
| Category | Agents |
|
|
116
|
-
|----------|--------|
|
|
117
|
-
| Security | security-reviewer, data-integrity-reviewer |
|
|
118
|
-
| Performance | performance-reviewer, complexity-reviewer |
|
|
119
|
-
| Architecture | architecture-reviewer, simplicity-reviewer |
|
|
120
|
-
| Language | python, typescript, rails, react reviewers |
|
|
121
|
-
| Context | git-history, test-coverage reviewers |
|
|
122
|
-
|
|
123
|
-
## Project Structure
|
|
124
|
-
|
|
125
|
-
```
|
|
126
|
-
# Global (~/.claude/)
|
|
127
|
-
~/.claude/
|
|
128
|
-
├── commands/ # Slash commands
|
|
129
|
-
├── agents/ # Sub-agents
|
|
130
|
-
├── skills/ # Auto-activated guides
|
|
131
|
-
└── core/
|
|
132
|
-
├── rules/ # Coding rules
|
|
133
|
-
├── languages/ # Language guides
|
|
134
|
-
└── templates/ # Templates
|
|
135
|
-
|
|
136
|
-
# Global (%APPDATA%/core/ or ~/.config/vibe/)
|
|
137
|
-
core/
|
|
138
|
-
├── hooks/scripts/ # Hook scripts (llm-orchestrate.js)
|
|
139
|
-
├── gpt.json # GPT credentials
|
|
140
|
-
└── gemini.json # Gemini credentials
|
|
141
|
-
|
|
142
|
-
# Project (.claude/)
|
|
143
|
-
.claude/
|
|
144
|
-
├── settings.local.json # Hooks config (personal, gitignored)
|
|
145
|
-
└── core/
|
|
146
|
-
├── specs/ # SPEC documents
|
|
147
|
-
├── features/ # BDD scenarios
|
|
148
|
-
├── config.json # Project config
|
|
149
|
-
└── constitution.md # Project rules
|
|
150
|
-
```
|
|
151
|
-
|
|
152
|
-
## Context Management
|
|
153
|
-
|
|
154
|
-
- Session start: Auto-restore previous context
|
|
155
|
-
- 70/80/90%: Auto-save checkpoints
|
|
156
|
-
- Context overflow: Use `saveMemory` → `/new`
|
|
157
|
-
|
|
158
|
-
## Without Commands
|
|
159
|
-
|
|
160
|
-
Even without `/vibe.*` commands, you can:
|
|
161
|
-
|
|
162
|
-
1. Call tools directly via node commands
|
|
163
|
-
2. Reference skills for guidance
|
|
164
|
-
3. Apply coding rules from `~/.claude/vibe/rules/` (global)
|
|
1
|
+
---
|
|
2
|
+
name: core-capabilities
|
|
3
|
+
description: "Core framework capabilities overview. Auto-activates when working on core projects, asking about available features, or needing workflow guidance."
|
|
4
|
+
triggers: [core, capabilities, features, workflow, framework guide]
|
|
5
|
+
priority: 50
|
|
6
|
+
---
|
|
7
|
+
# Core Capabilities
|
|
8
|
+
|
|
9
|
+
Complete guide to core's scenario-driven development framework.
|
|
10
|
+
|
|
11
|
+
## Core Workflow
|
|
12
|
+
|
|
13
|
+
```
|
|
14
|
+
/vibe.spec → /vibe.run → /vibe.verify → /vibe.review
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Slash Commands
|
|
18
|
+
|
|
19
|
+
| Command | Purpose |
|
|
20
|
+
|---------|---------|
|
|
21
|
+
| `/vibe.spec "feature"` | Create SPEC with PTCF structure + 8 parallel research |
|
|
22
|
+
| `/vibe.spec "feature" split` | Create multiple SPECs for large scope features |
|
|
23
|
+
| `/vibe.run "feature"` | Implement based on SPEC |
|
|
24
|
+
| `/vibe.run "feature" ultrawork` | Maximum performance mode |
|
|
25
|
+
| `/vibe.verify "feature"` | BDD scenario verification |
|
|
26
|
+
| `/vibe.review` | Parallel code review (13+ agents) |
|
|
27
|
+
| `/vibe.analyze` | Project analysis |
|
|
28
|
+
| `/vibe.reason "problem"` | Systematic reasoning |
|
|
29
|
+
| `/vibe.utils --e2e` | Playwright E2E testing |
|
|
30
|
+
| `/vibe.utils --diagram` | Generate diagrams |
|
|
31
|
+
| `/vibe.utils --ui "description"` | UI preview |
|
|
32
|
+
| `/vibe.utils --continue` | Session restore (load previous context) |
|
|
33
|
+
| `/vibe.utils --compound` | Document solutions |
|
|
34
|
+
|
|
35
|
+
## Built-in Tools
|
|
36
|
+
|
|
37
|
+
### Semantic Code Analysis
|
|
38
|
+
|
|
39
|
+
```bash
|
|
40
|
+
node -e "import('{{CORE_PATH_URL}}/node_modules/@su-record/vibe/dist/tools/index.js').then(t => t.TOOL_NAME({...}))"
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
| Tool | Purpose |
|
|
44
|
+
|------|---------|
|
|
45
|
+
| `findSymbol` | Find symbol definitions |
|
|
46
|
+
| `findReferences` | Find all references |
|
|
47
|
+
| `analyzeComplexity` | Code complexity analysis |
|
|
48
|
+
| `validateCodeQuality` | Quality validation |
|
|
49
|
+
|
|
50
|
+
### Memory Management
|
|
51
|
+
|
|
52
|
+
| Tool | Purpose |
|
|
53
|
+
|------|---------|
|
|
54
|
+
| `startSession` | Start session (restore previous context) |
|
|
55
|
+
| `autoSaveContext` | Save current state |
|
|
56
|
+
| `saveMemory` | Save important decisions |
|
|
57
|
+
| `recallMemory` | Recall saved memory |
|
|
58
|
+
| `listMemories` | List saved memories |
|
|
59
|
+
|
|
60
|
+
## Orchestrator
|
|
61
|
+
|
|
62
|
+
### Background Agents
|
|
63
|
+
|
|
64
|
+
```bash
|
|
65
|
+
node -e "import('{{CORE_PATH_URL}}/node_modules/@su-record/vibe/dist/infra/orchestrator/index.js').then(o =>
|
|
66
|
+
o.launchBackgroundAgent({ prompt: '...', agentName: '...' })
|
|
67
|
+
)"
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
## Multi-LLM Research (v2.5.0)
|
|
71
|
+
|
|
72
|
+
GPT/Gemini are automatically called within `/vibe.spec`:
|
|
73
|
+
|
|
74
|
+
```text
|
|
75
|
+
/vibe.spec "feature"
|
|
76
|
+
↓
|
|
77
|
+
[Claude] Draft SPEC
|
|
78
|
+
↓
|
|
79
|
+
[Parallel Research] 8 parallel tasks:
|
|
80
|
+
- 4x Bash: GPT/Gemini (best practices + security)
|
|
81
|
+
- 4x Task: Claude agents (docs, patterns, advisories)
|
|
82
|
+
↓
|
|
83
|
+
[SPEC Review] GPT + Gemini parallel review
|
|
84
|
+
↓
|
|
85
|
+
[Claude] Finalize SPEC
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
| Phase | Method | Tasks |
|
|
89
|
+
|-------|--------|-------- |
|
|
90
|
+
| Research | `llm-orchestrate.js` via Bash | GPT best practices, GPT security, Gemini best practices, Gemini security |
|
|
91
|
+
| Research | Task tool (Claude agents) | framework-docs, codebase-patterns, best-practices, security-advisory |
|
|
92
|
+
| SPEC Review | `llm-orchestrate.js` via Bash | SPEC quality validation |
|
|
93
|
+
| Docs | context7 MCP | Latest library documentation |
|
|
94
|
+
|
|
95
|
+
**Setup:**
|
|
96
|
+
```bash
|
|
97
|
+
vibe gpt auth # Enable GPT
|
|
98
|
+
vibe gemini auth # Enable Gemini
|
|
99
|
+
vibe status # Check current settings
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
## ULTRAWORK Mode
|
|
103
|
+
|
|
104
|
+
Add `ultrawork` or `ulw` for maximum performance:
|
|
105
|
+
|
|
106
|
+
- Parallel subagent exploration (3+ concurrent)
|
|
107
|
+
- Background agents preparing next phase
|
|
108
|
+
- Phase pipelining (no wait between phases)
|
|
109
|
+
- Boulder Loop (auto-progress until complete)
|
|
110
|
+
- Auto-retry on errors (max 3 times)
|
|
111
|
+
- Auto-compress at 70%+ context
|
|
112
|
+
|
|
113
|
+
## Review Agents (13+)
|
|
114
|
+
|
|
115
|
+
| Category | Agents |
|
|
116
|
+
|----------|--------|
|
|
117
|
+
| Security | security-reviewer, data-integrity-reviewer |
|
|
118
|
+
| Performance | performance-reviewer, complexity-reviewer |
|
|
119
|
+
| Architecture | architecture-reviewer, simplicity-reviewer |
|
|
120
|
+
| Language | python, typescript, rails, react reviewers |
|
|
121
|
+
| Context | git-history, test-coverage reviewers |
|
|
122
|
+
|
|
123
|
+
## Project Structure
|
|
124
|
+
|
|
125
|
+
```
|
|
126
|
+
# Global (~/.claude/)
|
|
127
|
+
~/.claude/
|
|
128
|
+
├── commands/ # Slash commands
|
|
129
|
+
├── agents/ # Sub-agents
|
|
130
|
+
├── skills/ # Auto-activated guides
|
|
131
|
+
└── core/
|
|
132
|
+
├── rules/ # Coding rules
|
|
133
|
+
├── languages/ # Language guides
|
|
134
|
+
└── templates/ # Templates
|
|
135
|
+
|
|
136
|
+
# Global (%APPDATA%/core/ or ~/.config/vibe/)
|
|
137
|
+
core/
|
|
138
|
+
├── hooks/scripts/ # Hook scripts (llm-orchestrate.js)
|
|
139
|
+
├── gpt.json # GPT credentials
|
|
140
|
+
└── gemini.json # Gemini credentials
|
|
141
|
+
|
|
142
|
+
# Project (.claude/)
|
|
143
|
+
.claude/
|
|
144
|
+
├── settings.local.json # Hooks config (personal, gitignored)
|
|
145
|
+
└── core/
|
|
146
|
+
├── specs/ # SPEC documents
|
|
147
|
+
├── features/ # BDD scenarios
|
|
148
|
+
├── config.json # Project config
|
|
149
|
+
└── constitution.md # Project rules
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
## Context Management
|
|
153
|
+
|
|
154
|
+
- Session start: Auto-restore previous context
|
|
155
|
+
- 70/80/90%: Auto-save checkpoints
|
|
156
|
+
- Context overflow: Use `saveMemory` → `/new`
|
|
157
|
+
|
|
158
|
+
## Without Commands
|
|
159
|
+
|
|
160
|
+
Even without `/vibe.*` commands, you can:
|
|
161
|
+
|
|
162
|
+
1. Call tools directly via node commands
|
|
163
|
+
2. Reference skills for guidance
|
|
164
|
+
3. Apply coding rules from `~/.claude/vibe/rules/` (global)
|
|
@@ -1,80 +1,80 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: parallel-research
|
|
3
|
-
description: "Parallel research guide. Auto-activates for complex features, new technologies, security-critical work, architecture design, or technology selection decisions."
|
|
4
|
-
triggers: [parallel research, complex feature, technology selection, architecture design, security critical]
|
|
5
|
-
priority: 60
|
|
6
|
-
---
|
|
7
|
-
# Parallel Research
|
|
8
|
-
|
|
9
|
-
Parallel research patterns for solving complex problems.
|
|
10
|
-
|
|
11
|
-
## When Parallel Research is Needed
|
|
12
|
-
|
|
13
|
-
| Situation | Reason |
|
|
14
|
-
|-----------|--------|
|
|
15
|
-
| New technology adoption | Need best practices |
|
|
16
|
-
| Security-related features | Multi-angle review needed |
|
|
17
|
-
| Architecture design | Multiple perspectives needed |
|
|
18
|
-
| Technology selection | Comparison analysis needed |
|
|
19
|
-
| Complex bugs | Explore multiple causes |
|
|
20
|
-
|
|
21
|
-
## Research Agents (4 Parallel)
|
|
22
|
-
|
|
23
|
-
| Agent | Role | Tools |
|
|
24
|
-
|-------|------|-------|
|
|
25
|
-
| best-practices | Search best practices | Web Search, context7 |
|
|
26
|
-
| framework-docs | Search official docs | context7 |
|
|
27
|
-
| codebase-patterns | Analyze existing code patterns | Grep, Glob |
|
|
28
|
-
| security-advisory | Search security advisories | Web Search |
|
|
29
|
-
|
|
30
|
-
## Usage Methods
|
|
31
|
-
|
|
32
|
-
### Method 1: Direct Orchestrator Call
|
|
33
|
-
|
|
34
|
-
```bash
|
|
35
|
-
node -e "import('
|
|
36
|
-
o.research('passkey authentication', ['React', 'Supabase'])
|
|
37
|
-
.then(r => console.log(r.content[0].text))
|
|
38
|
-
)"
|
|
39
|
-
```
|
|
40
|
-
|
|
41
|
-
### Method 2: Use /vibe.spec
|
|
42
|
-
|
|
43
|
-
```
|
|
44
|
-
/vibe.spec "feature-name"
|
|
45
|
-
→ Parallel research runs automatically after requirements confirmed
|
|
46
|
-
```
|
|
47
|
-
|
|
48
|
-
### Method 3: Parallel Task Tool Execution
|
|
49
|
-
|
|
50
|
-
```
|
|
51
|
-
Task 1: "Search React auth best practices"
|
|
52
|
-
Task 2: "Search Supabase Auth official docs" (concurrent)
|
|
53
|
-
Task 3: "Analyze existing auth code patterns" (concurrent)
|
|
54
|
-
Task 4: "Search auth security vulnerabilities" (concurrent)
|
|
55
|
-
```
|
|
56
|
-
|
|
57
|
-
## Using Research Results
|
|
58
|
-
|
|
59
|
-
```
|
|
60
|
-
Parallel research complete
|
|
61
|
-
↓
|
|
62
|
-
Synthesize results
|
|
63
|
-
↓
|
|
64
|
-
Reflect in SPEC Context section
|
|
65
|
-
OR
|
|
66
|
-
Reference during implementation
|
|
67
|
-
```
|
|
68
|
-
|
|
69
|
-
## When Research is NOT Needed
|
|
70
|
-
|
|
71
|
-
- Simple CRUD operations
|
|
72
|
-
- Already familiar patterns
|
|
73
|
-
- Similar code exists in project
|
|
74
|
-
- Time-critical (supplement with review later)
|
|
75
|
-
|
|
76
|
-
## Notes
|
|
77
|
-
|
|
78
|
-
- Research runs **after requirements confirmed**
|
|
79
|
-
- Split overly broad topics
|
|
80
|
-
- Research results are references, not absolute truth
|
|
1
|
+
---
|
|
2
|
+
name: parallel-research
|
|
3
|
+
description: "Parallel research guide. Auto-activates for complex features, new technologies, security-critical work, architecture design, or technology selection decisions."
|
|
4
|
+
triggers: [parallel research, complex feature, technology selection, architecture design, security critical]
|
|
5
|
+
priority: 60
|
|
6
|
+
---
|
|
7
|
+
# Parallel Research
|
|
8
|
+
|
|
9
|
+
Parallel research patterns for solving complex problems.
|
|
10
|
+
|
|
11
|
+
## When Parallel Research is Needed
|
|
12
|
+
|
|
13
|
+
| Situation | Reason |
|
|
14
|
+
|-----------|--------|
|
|
15
|
+
| New technology adoption | Need best practices |
|
|
16
|
+
| Security-related features | Multi-angle review needed |
|
|
17
|
+
| Architecture design | Multiple perspectives needed |
|
|
18
|
+
| Technology selection | Comparison analysis needed |
|
|
19
|
+
| Complex bugs | Explore multiple causes |
|
|
20
|
+
|
|
21
|
+
## Research Agents (4 Parallel)
|
|
22
|
+
|
|
23
|
+
| Agent | Role | Tools |
|
|
24
|
+
|-------|------|-------|
|
|
25
|
+
| best-practices | Search best practices | Web Search, context7 |
|
|
26
|
+
| framework-docs | Search official docs | context7 |
|
|
27
|
+
| codebase-patterns | Analyze existing code patterns | Grep, Glob |
|
|
28
|
+
| security-advisory | Search security advisories | Web Search |
|
|
29
|
+
|
|
30
|
+
## Usage Methods
|
|
31
|
+
|
|
32
|
+
### Method 1: Direct Orchestrator Call
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
node -e "import('{{CORE_PATH_URL}}/node_modules/@su-record/vibe/dist/infra/orchestrator/index.js').then(o =>
|
|
36
|
+
o.research('passkey authentication', ['React', 'Supabase'])
|
|
37
|
+
.then(r => console.log(r.content[0].text))
|
|
38
|
+
)"
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
### Method 2: Use /vibe.spec
|
|
42
|
+
|
|
43
|
+
```
|
|
44
|
+
/vibe.spec "feature-name"
|
|
45
|
+
→ Parallel research runs automatically after requirements confirmed
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
### Method 3: Parallel Task Tool Execution
|
|
49
|
+
|
|
50
|
+
```
|
|
51
|
+
Task 1: "Search React auth best practices"
|
|
52
|
+
Task 2: "Search Supabase Auth official docs" (concurrent)
|
|
53
|
+
Task 3: "Analyze existing auth code patterns" (concurrent)
|
|
54
|
+
Task 4: "Search auth security vulnerabilities" (concurrent)
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
## Using Research Results
|
|
58
|
+
|
|
59
|
+
```
|
|
60
|
+
Parallel research complete
|
|
61
|
+
↓
|
|
62
|
+
Synthesize results
|
|
63
|
+
↓
|
|
64
|
+
Reflect in SPEC Context section
|
|
65
|
+
OR
|
|
66
|
+
Reference during implementation
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
## When Research is NOT Needed
|
|
70
|
+
|
|
71
|
+
- Simple CRUD operations
|
|
72
|
+
- Already familiar patterns
|
|
73
|
+
- Similar code exists in project
|
|
74
|
+
- Time-critical (supplement with review later)
|
|
75
|
+
|
|
76
|
+
## Notes
|
|
77
|
+
|
|
78
|
+
- Research runs **after requirements confirmed**
|
|
79
|
+
- Split overly broad topics
|
|
80
|
+
- Research results are references, not absolute truth
|