@su-record/vibe 2.2.2 → 2.2.3

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 (81) hide show
  1. package/.claude/settings.json +152 -152
  2. package/.claude/vibe/constitution.md +184 -184
  3. package/.claude/vibe/rules/core/communication-guide.md +104 -104
  4. package/.claude/vibe/rules/core/development-philosophy.md +52 -52
  5. package/.claude/vibe/rules/core/quick-start.md +120 -120
  6. package/.claude/vibe/rules/quality/bdd-contract-testing.md +388 -388
  7. package/.claude/vibe/rules/quality/checklist.md +276 -276
  8. package/.claude/vibe/rules/quality/testing-strategy.md +437 -437
  9. package/.claude/vibe/rules/standards/anti-patterns.md +369 -369
  10. package/.claude/vibe/rules/standards/code-structure.md +291 -291
  11. package/.claude/vibe/rules/standards/complexity-metrics.md +312 -312
  12. package/.claude/vibe/rules/standards/naming-conventions.md +198 -198
  13. package/.claude/vibe/setup.sh +31 -31
  14. package/CLAUDE.md +323 -323
  15. package/LICENSE +21 -21
  16. package/README.md +724 -721
  17. package/agents/explorer.md +48 -0
  18. package/agents/implementer.md +53 -0
  19. package/agents/research/best-practices-agent.md +139 -0
  20. package/agents/research/codebase-patterns-agent.md +147 -0
  21. package/agents/research/framework-docs-agent.md +181 -0
  22. package/agents/research/security-advisory-agent.md +167 -0
  23. package/agents/review/architecture-reviewer.md +107 -0
  24. package/agents/review/complexity-reviewer.md +116 -0
  25. package/agents/review/data-integrity-reviewer.md +88 -0
  26. package/agents/review/git-history-reviewer.md +103 -0
  27. package/agents/review/performance-reviewer.md +86 -0
  28. package/agents/review/python-reviewer.md +152 -0
  29. package/agents/review/rails-reviewer.md +139 -0
  30. package/agents/review/react-reviewer.md +144 -0
  31. package/agents/review/security-reviewer.md +80 -0
  32. package/agents/review/simplicity-reviewer.md +140 -0
  33. package/agents/review/test-coverage-reviewer.md +116 -0
  34. package/agents/review/typescript-reviewer.md +127 -0
  35. package/agents/searcher.md +54 -0
  36. package/agents/simplifier.md +119 -0
  37. package/agents/tester.md +49 -0
  38. package/commands/vibe.analyze.md +239 -0
  39. package/commands/vibe.compound.md +261 -0
  40. package/commands/vibe.continue.md +88 -0
  41. package/commands/vibe.diagram.md +178 -0
  42. package/commands/vibe.e2e.md +266 -0
  43. package/commands/vibe.reason.md +306 -0
  44. package/commands/vibe.review.md +324 -0
  45. package/commands/vibe.run.md +836 -0
  46. package/commands/vibe.setup.md +97 -0
  47. package/commands/vibe.spec.md +383 -0
  48. package/commands/vibe.ui.md +137 -0
  49. package/commands/vibe.verify.md +238 -0
  50. package/dist/cli/index.js +389 -389
  51. package/dist/cli/index.js.map +1 -1
  52. package/dist/lib/MemoryManager.js +92 -92
  53. package/dist/lib/PythonParser.js +108 -108
  54. package/dist/lib/gemini-mcp.js +15 -15
  55. package/dist/lib/gemini-oauth.js +35 -35
  56. package/dist/lib/gpt-mcp.js +17 -17
  57. package/dist/lib/gpt-oauth.js +44 -44
  58. package/dist/tools/analytics/getUsageAnalytics.js +12 -12
  59. package/dist/tools/memory/createMemoryTimeline.js +10 -10
  60. package/dist/tools/memory/getMemoryGraph.js +12 -12
  61. package/dist/tools/memory/getSessionContext.js +9 -9
  62. package/dist/tools/memory/linkMemories.js +14 -14
  63. package/dist/tools/memory/listMemories.js +4 -4
  64. package/dist/tools/memory/recallMemory.js +4 -4
  65. package/dist/tools/memory/saveMemory.js +4 -4
  66. package/dist/tools/memory/searchMemoriesAdvanced.js +22 -22
  67. package/dist/tools/planning/generatePrd.js +46 -46
  68. package/dist/tools/prompt/enhancePromptGemini.js +160 -160
  69. package/dist/tools/reasoning/applyReasoningFramework.js +56 -56
  70. package/dist/tools/semantic/analyzeDependencyGraph.js +12 -12
  71. package/package.json +69 -66
  72. package/skills/git-worktree.md +178 -0
  73. package/skills/priority-todos.md +236 -0
  74. package/templates/constitution-template.md +184 -184
  75. package/templates/contract-backend-template.md +517 -517
  76. package/templates/contract-frontend-template.md +594 -594
  77. package/templates/feature-template.md +96 -96
  78. package/templates/hooks-template.json +103 -103
  79. package/templates/spec-template.md +199 -199
  80. package/.claude/vibe/rules/tools/mcp-hi-ai-guide.md +0 -665
  81. package/.claude/vibe/rules/tools/mcp-workflow.md +0 -51
@@ -0,0 +1,266 @@
1
+ ---
2
+ description: End-to-end testing with Playwright automation
3
+ argument-hint: "test scenario or URL"
4
+ ---
5
+
6
+ # /vibe.e2e
7
+
8
+ **E2E Test Automation** - Playwright-based browser testing
9
+
10
+ ## Usage
11
+
12
+ ```
13
+ /vibe.e2e # Run all E2E tests
14
+ /vibe.e2e "login flow" # Test specific scenario
15
+ /vibe.e2e http://localhost:3000/login # Test specific URL
16
+ /vibe.e2e --visual # Visual regression testing
17
+ /vibe.e2e --record # Record test video
18
+ ```
19
+
20
+ ## Core Features
21
+
22
+ ```
23
+ ┌─────────────────────────────────────────────────────────────────┐
24
+ │ 🎭 Playwright E2E Testing │
25
+ ├─────────────────────────────────────────────────────────────────┤
26
+ │ │
27
+ │ ✅ Screenshot Capture - Record UI state │
28
+ │ ✅ Console Error Collection - Detect JS errors │
29
+ │ ✅ Network Monitoring - Detect API failures │
30
+ │ ✅ Visual Regression - Compare screenshots │
31
+ │ ✅ Video Recording - Bug reproduction evidence │
32
+ │ ✅ Accessibility Check - Detect a11y violations │
33
+ │ │
34
+ └─────────────────────────────────────────────────────────────────┘
35
+ ```
36
+
37
+ ## Process
38
+
39
+ ### Phase 1: Environment Setup
40
+
41
+ ```bash
42
+ # Check Playwright installation
43
+ npx playwright --version
44
+
45
+ # Install browsers if needed
46
+ npx playwright install chromium
47
+ ```
48
+
49
+ ### Phase 2: Test Scenario Analysis
50
+
51
+ ```
52
+ 📋 Scenario Detection
53
+ ├── .claude/vibe/features/{feature}.feature → Extract BDD scenarios
54
+ ├── .claude/vibe/specs/{feature}.md → Check acceptance criteria
55
+ └── Analyze existing e2e/*.spec.ts
56
+ ```
57
+
58
+ ### Phase 3: Test Execution
59
+
60
+ **Single Page Test:**
61
+ ```typescript
62
+ // Auto-generated test
63
+ import { test, expect } from '@playwright/test';
64
+
65
+ test('login flow', async ({ page }) => {
66
+ // Navigate
67
+ await page.goto('http://localhost:3000/login');
68
+
69
+ // Screenshot: initial state
70
+ await page.screenshot({ path: 'screenshots/login-initial.png' });
71
+
72
+ // Fill form
73
+ await page.fill('[data-testid="email"]', 'test@example.com');
74
+ await page.fill('[data-testid="password"]', 'password123');
75
+
76
+ // Submit
77
+ await page.click('[data-testid="submit"]');
78
+
79
+ // Wait for navigation
80
+ await page.waitForURL('**/dashboard');
81
+
82
+ // Screenshot: success state
83
+ await page.screenshot({ path: 'screenshots/login-success.png' });
84
+
85
+ // Assertions
86
+ await expect(page.locator('h1')).toContainText('Dashboard');
87
+ });
88
+ ```
89
+
90
+ **Console Error Collection:**
91
+ ```typescript
92
+ test.beforeEach(async ({ page }) => {
93
+ // Collect console errors
94
+ page.on('console', msg => {
95
+ if (msg.type() === 'error') {
96
+ console.log(`Console Error: ${msg.text()}`);
97
+ }
98
+ });
99
+
100
+ // Collect network failures
101
+ page.on('requestfailed', request => {
102
+ console.log(`Request failed: ${request.url()}`);
103
+ });
104
+ });
105
+ ```
106
+
107
+ ### Phase 4: Visual Regression (--visual)
108
+
109
+ ```
110
+ ┌─────────────────────────────────────────────────────────────────┐
111
+ │ 👁️ Visual Regression Test │
112
+ ├─────────────────────────────────────────────────────────────────┤
113
+ │ │
114
+ │ Comparing screenshots: │
115
+ │ │
116
+ │ ├── login-page.png │
117
+ │ │ ├── Baseline: .claude/vibe/e2e/baseline/login-page.png │
118
+ │ │ ├── Current: .claude/vibe/e2e/current/login-page.png │
119
+ │ │ └── Diff: ✅ 0.02% (threshold: 1%) │
120
+ │ │ │
121
+ │ ├── dashboard.png │
122
+ │ │ ├── Baseline: .claude/vibe/e2e/baseline/dashboard.png │
123
+ │ │ ├── Current: .claude/vibe/e2e/current/dashboard.png │
124
+ │ │ └── Diff: ❌ 5.3% (threshold: 1%) │
125
+ │ │ └── .claude/vibe/e2e/diff/dashboard-diff.png │
126
+ │ │ │
127
+ └─────────────────────────────────────────────────────────────────┘
128
+ ```
129
+
130
+ ### Phase 5: Accessibility Check
131
+
132
+ ```typescript
133
+ import { injectAxe, checkA11y } from 'axe-playwright';
134
+
135
+ test('accessibility check', async ({ page }) => {
136
+ await page.goto('/login');
137
+ await injectAxe(page);
138
+ await checkA11y(page, null, {
139
+ detailedReport: true,
140
+ detailedReportOptions: { html: true }
141
+ });
142
+ });
143
+ ```
144
+
145
+ ### Phase 6: Bug Reproduction (Optional)
146
+
147
+ Link with bug reports:
148
+
149
+ ```
150
+ /vibe.e2e --reproduce "User sees blank page after login"
151
+
152
+ ┌─────────────────────────────────────────────────────────────────┐
153
+ │ 🐛 Bug Reproduction Mode │
154
+ ├─────────────────────────────────────────────────────────────────┤
155
+ │ │
156
+ │ Steps executed: │
157
+ │ 1. ✅ Navigate to /login │
158
+ │ 2. ✅ Enter credentials │
159
+ │ 3. ✅ Click login button │
160
+ │ 4. ❌ Dashboard shows blank │
161
+ │ │
162
+ │ Evidence collected: │
163
+ │ ├── 📸 screenshots/bug-step-1.png │
164
+ │ ├── 📸 screenshots/bug-step-2.png │
165
+ │ ├── 📸 screenshots/bug-step-3.png │
166
+ │ ├── 📸 screenshots/bug-step-4-FAIL.png │
167
+ │ ├── 🎥 videos/bug-reproduction.webm │
168
+ │ └── 📋 logs/console-errors.txt │
169
+ │ │
170
+ │ Console Errors Found: │
171
+ │ └── TypeError: Cannot read property 'user' of undefined │
172
+ │ at Dashboard.tsx:42 │
173
+ │ │
174
+ └─────────────────────────────────────────────────────────────────┘
175
+ ```
176
+
177
+ ## Output
178
+
179
+ ```
180
+ ┌─────────────────────────────────────────────────────────────────┐
181
+ │ 🎭 E2E TEST RESULTS │
182
+ ├─────────────────────────────────────────────────────────────────┤
183
+ │ │
184
+ │ Test Suite: Login Flow │
185
+ │ Duration: 12.3s │
186
+ │ Browser: Chromium 120 │
187
+ │ │
188
+ │ Results: │
189
+ │ ├── ✅ Passed: 8 │
190
+ │ ├── ❌ Failed: 1 │
191
+ │ └── ⏭️ Skipped: 0 │
192
+ │ │
193
+ │ Failed Tests: │
194
+ │ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ │
195
+ │ ❌ "should show error for invalid password" │
196
+ │ Expected: "Invalid password" message │
197
+ │ Actual: No error message displayed │
198
+ │ 📸 Screenshot: .claude/vibe/e2e/failures/invalid-password.png │
199
+ │ │
200
+ │ Console Errors: 2 │
201
+ │ ├── TypeError at Dashboard.tsx:42 │
202
+ │ └── 404 at /api/user/preferences │
203
+ │ │
204
+ │ Accessibility Issues: 3 │
205
+ │ ├── [serious] Form input missing label │
206
+ │ ├── [moderate] Color contrast insufficient │
207
+ │ └── [minor] Missing skip link │
208
+ │ │
209
+ │ Artifacts: │
210
+ │ ├── 📸 Screenshots: .claude/vibe/e2e/screenshots/ │
211
+ │ ├── 🎥 Video: .claude/vibe/e2e/videos/ │
212
+ │ └── 📋 Report: .claude/vibe/e2e/report.html │
213
+ │ │
214
+ └─────────────────────────────────────────────────────────────────┘
215
+ ```
216
+
217
+ ## Configuration
218
+
219
+ `.claude/vibe/e2e/config.json`:
220
+
221
+ ```json
222
+ {
223
+ "baseURL": "http://localhost:3000",
224
+ "browsers": ["chromium"],
225
+ "viewport": { "width": 1280, "height": 720 },
226
+ "video": "retain-on-failure",
227
+ "screenshot": "only-on-failure",
228
+ "trace": "retain-on-failure",
229
+ "visualRegression": {
230
+ "enabled": true,
231
+ "threshold": 0.01
232
+ },
233
+ "accessibility": {
234
+ "enabled": true,
235
+ "rules": ["wcag2aa"]
236
+ }
237
+ }
238
+ ```
239
+
240
+ ## Integration with Review
241
+
242
+ Auto-suggest after `/vibe.review`:
243
+
244
+ ```
245
+ ┌─────────────────────────────────────────────────────────────────┐
246
+ │ 💡 E2E Test Recommended │
247
+ ├─────────────────────────────────────────────────────────────────┤
248
+ │ │
249
+ │ UI changes detected in this PR: │
250
+ │ - src/components/LoginForm.tsx │
251
+ │ - src/pages/Dashboard.tsx │
252
+ │ │
253
+ │ Run E2E tests? /vibe.e2e "login flow" │
254
+ │ │
255
+ └─────────────────────────────────────────────────────────────────┘
256
+ ```
257
+
258
+ ## Related Commands
259
+
260
+ - `/vibe.review` - Code review
261
+ - `/vibe.verify` - SPEC verification
262
+ - `/vibe.compound` - Document test results
263
+
264
+ ---
265
+
266
+ ARGUMENTS: $ARGUMENTS
@@ -0,0 +1,306 @@
1
+ ---
2
+ description: Apply systematic reasoning framework to complex problems
3
+ argument-hint: "problem description"
4
+ ---
5
+
6
+ # /vibe.reason
7
+
8
+ Apply 9-step reasoning framework to complex problems (Reasoning Agent).
9
+
10
+ ## Usage
11
+
12
+ ```
13
+ /vibe.reason "problem description"
14
+ ```
15
+
16
+ ## Description
17
+
18
+ Use systematic 9-step reasoning framework to logically analyze complex problems and derive optimal solutions.
19
+
20
+ ## When to Use
21
+
22
+ Use in situations like:
23
+
24
+ 1. **Complex bug debugging**
25
+ - Root cause unclear
26
+ - Need to systematically verify multiple hypotheses
27
+
28
+ 2. **Architecture design decisions**
29
+ - Need to choose optimal option among several
30
+ - Need to comprehensively evaluate constraints and risks
31
+
32
+ 3. **Performance optimization**
33
+ - Bottleneck may be in multiple places
34
+ - Need step-by-step optimization strategy
35
+
36
+ 4. **Refactoring planning**
37
+ - Need to systematically analyze legacy code complexity
38
+ - Need gradual refactoring strategy
39
+
40
+ 5. **Requirements analysis**
41
+ - Need to reconcile conflicting requirements
42
+ - Need to discover missing requirements
43
+
44
+ ## Process
45
+
46
+ ### 1. Logical Dependencies and Constraints
47
+ - Check policies, rules, prerequisites
48
+ - Optimize task order (identify dependencies)
49
+ - Apply user constraints first
50
+
51
+ ### 2. Risk Assessment
52
+ - Analyze action consequences
53
+ - Check rollback possibility
54
+ - Review compatibility, security, performance risks
55
+
56
+ ### 3. Inductive Reasoning and Hypothesis Exploration
57
+ - Generate hypotheses about root cause
58
+ - Prioritize by likelihood
59
+ - Present verification method for each hypothesis
60
+
61
+ ### 4. Result Evaluation and Adaptability
62
+ - Modify plan based on observations
63
+ - Generate new hypothesis when disproved
64
+ - Determine backtracking need
65
+
66
+ ### 5. Information Availability
67
+ - Identify all available tools
68
+ - Reference relevant policy/rule documents
69
+ - Restore previous context
70
+ - Distinguish items needing user confirmation
71
+
72
+ ### 6. Precision and Evidence
73
+ - Cite exact source when referencing policies
74
+ - Include filename:line when referencing code
75
+ - Provide exact metric numbers
76
+
77
+ ### 7. Completeness
78
+ - Integrate all requirements, options, preferences
79
+ - Avoid premature conclusions
80
+ - Explore multiple alternatives
81
+
82
+ ### 8. Persistence and Patience
83
+ - Intelligently retry temporary errors
84
+ - Solve problems through strategy changes
85
+ - Continue until all reasoning steps complete
86
+
87
+ ### 9. Response Suppression
88
+ - Act only after reasoning complete
89
+ - Document reasoning process for complex decisions
90
+ - Ensure safety through step-by-step execution
91
+
92
+ ## MCP Tools Integration
93
+
94
+ This command automatically uses these MCP tools:
95
+
96
+ - **apply_reasoning_framework**: Apply 9-step reasoning framework
97
+ - **create_thinking_chain**: Create sequential thinking chain
98
+ - **analyze_problem**: Analyze problem root cause
99
+ - **step_by_step_analysis**: Detailed step-by-step analysis
100
+ - **recall_memory**: Restore previous context
101
+ - **find_symbol / find_references**: Identify code dependencies
102
+
103
+ ## Output Format
104
+
105
+ ```markdown
106
+ # Reasoning Framework Analysis
107
+
108
+ **Problem**: [problem description]
109
+ **Context**: [relevant information]
110
+ **Steps Applied**: 9/9
111
+
112
+ ---
113
+
114
+ ## 1. Logical Dependencies and Constraints
115
+
116
+ **Key Questions**:
117
+ - What policies or required rules apply?
118
+ - Should task order be rearranged?
119
+ - Required prerequisites or information?
120
+ - Explicit user constraints?
121
+
122
+ **Constraint Analysis**:
123
+ [analysis content]
124
+
125
+ ---
126
+
127
+ ## 2. Risk Assessment
128
+
129
+ ...
130
+
131
+ ---
132
+
133
+ ## Summary
134
+
135
+ [Overall reasoning results summary and recommendations]
136
+ ```
137
+
138
+ ## Examples
139
+
140
+ ### Example 1: Complex Bug Debugging
141
+
142
+ ```
143
+ User: /vibe.reason "After user login, profile page intermittently returns 500 error. Log shows 'TypeError: Cannot read property id of undefined'"
144
+
145
+ AI: Analyzing this problem with 9-step reasoning framework.
146
+
147
+ # Reasoning Framework Analysis
148
+
149
+ **Problem**: Intermittent 500 error on profile page after login (TypeError: Cannot read property 'id' of undefined)
150
+ **Context**: Intermittent occurrence, happens after successful login
151
+ **Steps Applied**: 9/9
152
+
153
+ ---
154
+
155
+ ## 1. Logical Dependencies and Constraints
156
+
157
+ **Constraint Analysis**:
158
+ - Policy/Rules: Need to check auth/authz system policies
159
+ - Task Order: Verify login → session creation → profile fetch order
160
+ - Prerequisites: Need to identify error reproduction conditions
161
+ - User Constraints: Production environment limits debugging tools
162
+
163
+ ---
164
+
165
+ ## 2. Risk Assessment
166
+
167
+ **Risk Assessment**:
168
+ - Task type: Debugging (medium risk - logging low risk, DB changes high risk)
169
+ - Rollback possibility: Adding logs easy to rollback
170
+ - Compatibility risk: Session structure changes affect existing users
171
+ - Security risk: Excessive logging may expose sensitive info
172
+ - Performance risk: Additional logging minimal impact
173
+
174
+ ---
175
+
176
+ ## 3. Inductive Reasoning and Hypothesis Exploration
177
+
178
+ **Hypothesis Generation**:
179
+ 1. **Hypothesis 1: Incomplete session data** (Likelihood: High)
180
+ - Evidence: Intermittent = timing issue or data consistency problem
181
+ - Verification: Add logging to session save logic, check Redis connection
182
+
183
+ 2. **Hypothesis 2: Async processing order issue** (Likelihood: Medium)
184
+ - Evidence: undefined = accessing data before load
185
+ - Verification: Check Promise chain in profile API, check for missing await
186
+
187
+ 3. **Hypothesis 3: DB query returns null** (Likelihood: Low)
188
+ - Evidence: User info fetch fails only under certain conditions
189
+ - Verification: Check profile query logs, review foreign key constraints
190
+
191
+ **Priority**: Verify in order of likelihood, don't completely rule out low probability
192
+
193
+ ---
194
+
195
+ [Additional steps 4-9 analysis...]
196
+
197
+ ---
198
+
199
+ ## Summary
200
+
201
+ Analyzed profile page 500 error after login through 9-step reasoning framework.
202
+
203
+ **Key Findings**:
204
+ - Most likely cause: Incomplete session data (Redis connection issue or session save timing)
205
+ - Verification priority: 1) Add session save logic logging → 2) Review async processing → 3) Check DB queries
206
+
207
+ **Recommended Actions**:
208
+ 1. Immediate: Add detailed logging to session save/fetch (low risk)
209
+ 2. Short-term: Code review async processing (Promise, await check)
210
+ 3. Medium-term: Strengthen session store monitoring (Redis connection, memory)
211
+
212
+ **Next Steps**:
213
+ Check `profile_controller.ts` → Add try-catch and logging to session processing logic → Identify reproduction conditions
214
+ ```
215
+
216
+ ### Example 2: Architecture Design Decision
217
+
218
+ ```
219
+ User: /vibe.reason "Want to add real-time notification feature. Should I use WebSocket, SSE, or Long Polling?"
220
+
221
+ AI: [Systematically analyze constraints, risks, pros/cons of each option through 9-step framework, recommend optimal choice for project situation]
222
+ ```
223
+
224
+ ## Integration with Other Commands
225
+
226
+ ### With /vibe.spec
227
+
228
+ ```
229
+ # 1. Collect requirements
230
+ /vibe.spec "real-time notifications"
231
+
232
+ # 2. When technical decision needed
233
+ /vibe.reason "Choosing WebSocket vs SSE vs Long Polling for real-time notifications"
234
+
235
+ # 3. Update SPEC document and create plan
236
+ /vibe.plan "real-time notifications"
237
+ ```
238
+
239
+ ### With /vibe.analyze
240
+
241
+ ```
242
+ # 1. Discover issue through code analysis
243
+ /vibe.analyze --code
244
+
245
+ # 2. Analyze discovered issue with reasoning framework
246
+ /vibe.reason "Refactoring strategy to reduce users_service.py Cyclomatic Complexity from 15 to under 10"
247
+
248
+ # 3. Execute refactoring
249
+ /vibe.run "Task: Refactor users_service.py"
250
+ ```
251
+
252
+ ## Agent Configuration
253
+
254
+ This command uses `~/.claude/agents/reasoning-agent.md`.
255
+
256
+ **Agent Role**:
257
+ - Systematic reasoning and problem-solving expert
258
+ - Logically analyze complex problems
259
+ - Derive optimal solutions considering all relevant factors
260
+
261
+ **Agent Features**:
262
+ - Apply 9-step reasoning framework
263
+ - Hypothesis-based approach
264
+ - Risk assessment and mitigation strategies
265
+ - Precise evidence and source citation
266
+
267
+ ## Best Practices
268
+
269
+ 1. **Describe problem specifically**
270
+ - ❌ "There's a bug"
271
+ - ✅ "After login, profile page intermittently returns 500 error. Error log: TypeError: Cannot read property 'id' of undefined"
272
+
273
+ 2. **Include context**
274
+ - Occurrence conditions (always? intermittent? specific conditions only?)
275
+ - Relevant tech stack
276
+ - Solutions already tried
277
+
278
+ 3. **Save reasoning results to memory**
279
+ - For complex problems, save reasoning results with `save_memory`
280
+ - Reference later with `recall_memory`
281
+
282
+ 4. **Verify step by step**
283
+ - Verify hypotheses suggested by reasoning framework in order
284
+ - Feedback each verification result to agent
285
+
286
+ 5. **Combine with other commands**
287
+ - `/vibe.analyze` to understand situation → `/vibe.reason` to analyze solution → `/vibe.run` to execute
288
+
289
+ ## Notes
290
+
291
+ - This command is specialized for complex problems. For simple tasks, direct requests are more efficient.
292
+ - Reasoning process may take time; allow sufficient time.
293
+ - Reasoning results are recommendations; final decision is user's.
294
+ - Automatically uses MCP tools, so hi-ai server must be connected.
295
+
296
+ ## Related
297
+
298
+ - [Reasoning Agent Guide](~/.claude/agents/reasoning-agent.md)
299
+ - [MCP hi-ai Guide](~/.claude/skills/tools/mcp-hi-ai-guide.md)
300
+ - [/vibe.analyze](vibe.analyze.md)
301
+ - [/vibe.spec](vibe.spec.md)
302
+ - [/vibe.plan](vibe.plan.md)
303
+
304
+ ---
305
+
306
+ ARGUMENTS: $ARGUMENTS