@su-record/vibe 2.3.0 → 2.3.2

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 (98) hide show
  1. package/.claude/settings.json +35 -35
  2. package/.claude/settings.local.json +24 -25
  3. package/.claude/vibe/constitution.md +184 -184
  4. package/.claude/vibe/rules/core/communication-guide.md +104 -104
  5. package/.claude/vibe/rules/core/development-philosophy.md +52 -52
  6. package/.claude/vibe/rules/core/quick-start.md +120 -120
  7. package/.claude/vibe/rules/languages/dart-flutter.md +509 -509
  8. package/.claude/vibe/rules/languages/go.md +396 -396
  9. package/.claude/vibe/rules/languages/java-spring.md +586 -586
  10. package/.claude/vibe/rules/languages/kotlin-android.md +491 -491
  11. package/.claude/vibe/rules/languages/python-django.md +371 -371
  12. package/.claude/vibe/rules/languages/python-fastapi.md +386 -386
  13. package/.claude/vibe/rules/languages/rust.md +425 -425
  14. package/.claude/vibe/rules/languages/swift-ios.md +516 -516
  15. package/.claude/vibe/rules/languages/typescript-nextjs.md +441 -441
  16. package/.claude/vibe/rules/languages/typescript-node.md +375 -375
  17. package/.claude/vibe/rules/languages/typescript-nuxt.md +521 -521
  18. package/.claude/vibe/rules/languages/typescript-react-native.md +446 -446
  19. package/.claude/vibe/rules/languages/typescript-react.md +525 -525
  20. package/.claude/vibe/rules/languages/typescript-vue.md +353 -353
  21. package/.claude/vibe/rules/quality/bdd-contract-testing.md +388 -388
  22. package/.claude/vibe/rules/quality/checklist.md +276 -276
  23. package/.claude/vibe/rules/quality/testing-strategy.md +437 -437
  24. package/.claude/vibe/rules/standards/anti-patterns.md +369 -369
  25. package/.claude/vibe/rules/standards/code-structure.md +291 -291
  26. package/.claude/vibe/rules/standards/complexity-metrics.md +312 -312
  27. package/.claude/vibe/rules/standards/naming-conventions.md +198 -198
  28. package/.claude/vibe/setup.sh +31 -31
  29. package/.claude/vibe/templates/constitution-template.md +184 -184
  30. package/.claude/vibe/templates/contract-backend-template.md +517 -517
  31. package/.claude/vibe/templates/contract-frontend-template.md +594 -594
  32. package/.claude/vibe/templates/feature-template.md +96 -96
  33. package/.claude/vibe/templates/spec-template.md +199 -199
  34. package/CLAUDE.md +345 -323
  35. package/LICENSE +21 -21
  36. package/README.md +744 -724
  37. package/agents/compounder.md +261 -261
  38. package/agents/diagrammer.md +178 -178
  39. package/agents/e2e-tester.md +266 -266
  40. package/agents/explorer.md +48 -48
  41. package/agents/implementer.md +53 -53
  42. package/agents/research/best-practices-agent.md +139 -139
  43. package/agents/research/codebase-patterns-agent.md +147 -147
  44. package/agents/research/framework-docs-agent.md +181 -181
  45. package/agents/research/security-advisory-agent.md +167 -167
  46. package/agents/review/architecture-reviewer.md +107 -107
  47. package/agents/review/complexity-reviewer.md +116 -116
  48. package/agents/review/data-integrity-reviewer.md +88 -88
  49. package/agents/review/git-history-reviewer.md +103 -103
  50. package/agents/review/performance-reviewer.md +86 -86
  51. package/agents/review/python-reviewer.md +152 -152
  52. package/agents/review/rails-reviewer.md +139 -139
  53. package/agents/review/react-reviewer.md +144 -144
  54. package/agents/review/security-reviewer.md +80 -80
  55. package/agents/review/simplicity-reviewer.md +140 -140
  56. package/agents/review/test-coverage-reviewer.md +116 -116
  57. package/agents/review/typescript-reviewer.md +127 -127
  58. package/agents/searcher.md +54 -54
  59. package/agents/simplifier.md +119 -119
  60. package/agents/tester.md +49 -49
  61. package/agents/ui-previewer.md +137 -137
  62. package/commands/vibe.analyze.md +245 -180
  63. package/commands/vibe.reason.md +223 -183
  64. package/commands/vibe.review.md +200 -136
  65. package/commands/vibe.run.md +838 -836
  66. package/commands/vibe.spec.md +419 -383
  67. package/commands/vibe.utils.md +101 -101
  68. package/commands/vibe.verify.md +282 -241
  69. package/dist/cli/index.js +385 -385
  70. package/dist/lib/MemoryManager.d.ts.map +1 -1
  71. package/dist/lib/MemoryManager.js +119 -114
  72. package/dist/lib/MemoryManager.js.map +1 -1
  73. package/dist/lib/PythonParser.js +108 -108
  74. package/dist/lib/gemini-mcp.js +15 -15
  75. package/dist/lib/gemini-oauth.js +35 -35
  76. package/dist/lib/gpt-mcp.js +17 -17
  77. package/dist/lib/gpt-oauth.js +44 -44
  78. package/dist/tools/analytics/getUsageAnalytics.js +12 -12
  79. package/dist/tools/index.d.ts +50 -0
  80. package/dist/tools/index.d.ts.map +1 -0
  81. package/dist/tools/index.js +61 -0
  82. package/dist/tools/index.js.map +1 -0
  83. package/dist/tools/memory/createMemoryTimeline.js +10 -10
  84. package/dist/tools/memory/getMemoryGraph.js +12 -12
  85. package/dist/tools/memory/getSessionContext.js +9 -9
  86. package/dist/tools/memory/linkMemories.js +14 -14
  87. package/dist/tools/memory/listMemories.js +4 -4
  88. package/dist/tools/memory/recallMemory.js +4 -4
  89. package/dist/tools/memory/saveMemory.js +4 -4
  90. package/dist/tools/memory/searchMemoriesAdvanced.js +22 -22
  91. package/dist/tools/planning/generatePrd.js +46 -46
  92. package/dist/tools/prompt/enhancePromptGemini.js +160 -160
  93. package/dist/tools/reasoning/applyReasoningFramework.js +56 -56
  94. package/dist/tools/semantic/analyzeDependencyGraph.js +12 -12
  95. package/hooks/hooks.json +121 -103
  96. package/package.json +73 -69
  97. package/skills/git-worktree.md +178 -178
  98. package/skills/priority-todos.md +236 -236
@@ -1,183 +1,223 @@
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.
9
-
10
- ## Usage
11
-
12
- ```
13
- /vibe.reason "problem description"
14
- ```
15
-
16
- ## When to Use
17
-
18
- 1. **Complex bug debugging** - Root cause unclear, need systematic hypothesis verification
19
- 2. **Architecture design decisions** - Choose optimal option among several
20
- 3. **Performance optimization** - Bottleneck may be in multiple places
21
- 4. **Refactoring planning** - Systematically analyze legacy code complexity
22
- 5. **Requirements analysis** - Reconcile conflicting requirements
23
-
24
- ## 9-Step Reasoning Framework
25
-
26
- ### 1. Logical Dependencies and Constraints
27
- - Check policies, rules, prerequisites
28
- - Optimize task order (identify dependencies)
29
- - Apply user constraints first
30
-
31
- ### 2. Risk Assessment
32
- - Analyze action consequences
33
- - Check rollback possibility
34
- - Review compatibility, security, performance risks
35
-
36
- ### 3. Inductive Reasoning and Hypothesis Exploration
37
- - Generate hypotheses about root cause
38
- - Prioritize by likelihood
39
- - Present verification method for each hypothesis
40
-
41
- ### 4. Result Evaluation and Adaptability
42
- - Modify plan based on observations
43
- - Generate new hypothesis when disproved
44
- - Determine backtracking need
45
-
46
- ### 5. Information Availability
47
- - Identify all available tools
48
- - Reference relevant policy/rule documents
49
- - Restore previous context
50
- - Distinguish items needing user confirmation
51
-
52
- ### 6. Precision and Evidence
53
- - Cite exact source when referencing policies
54
- - Include filename:line when referencing code
55
- - Provide exact metric numbers
56
-
57
- ### 7. Completeness
58
- - Integrate all requirements, options, preferences
59
- - Avoid premature conclusions
60
- - Explore multiple alternatives
61
-
62
- ### 8. Persistence and Patience
63
- - Intelligently retry temporary errors
64
- - Solve problems through strategy changes
65
- - Continue until all reasoning steps complete
66
-
67
- ### 9. Response Suppression
68
- - Act only after reasoning complete
69
- - Document reasoning process for complex decisions
70
- - Ensure safety through step-by-step execution
71
-
72
- ## Output Format
73
-
74
- ```markdown
75
- # Reasoning Framework Analysis
76
-
77
- **Problem**: [problem description]
78
- **Context**: [relevant information]
79
- **Steps Applied**: 9/9
80
-
81
- ---
82
-
83
- ## 1. Logical Dependencies and Constraints
84
-
85
- **Constraint Analysis**:
86
- [analysis content]
87
-
88
- ---
89
-
90
- ## 2. Risk Assessment
91
-
92
- **Risk Assessment**:
93
- - Task type: [risk level]
94
- - Rollback possibility: [assessment]
95
- - Compatibility/Security/Performance risks
96
-
97
- ---
98
-
99
- ## 3. Inductive Reasoning and Hypothesis Exploration
100
-
101
- **Hypothesis Generation**:
102
- 1. **Hypothesis 1**: [description] (Likelihood: High/Medium/Low)
103
- - Evidence: [supporting evidence]
104
- - Verification: [how to verify]
105
-
106
- 2. **Hypothesis 2**: ...
107
-
108
- ---
109
-
110
- [Steps 4-9...]
111
-
112
- ---
113
-
114
- ## Summary
115
-
116
- [Overall reasoning results summary and recommendations]
117
-
118
- **Recommended Actions**:
119
- 1. Immediate: [low risk action]
120
- 2. Short-term: [medium priority]
121
- 3. Medium-term: [long-term fix]
122
- ```
123
-
124
- ## Example
125
-
126
- ```
127
- User: /vibe.reason "After user login, profile page intermittently returns 500 error"
128
-
129
- AI: Analyzing with 9-step reasoning framework...
130
-
131
- # Reasoning Framework Analysis
132
-
133
- **Problem**: Intermittent 500 error on profile page after login
134
- **Context**: Intermittent occurrence, happens after successful login
135
-
136
- ## 1. Logical Dependencies and Constraints
137
-
138
- **Constraint Analysis**:
139
- - Policy/Rules: Need to check auth/authz system policies
140
- - Task Order: Verify login -> session creation -> profile fetch order
141
- - Prerequisites: Need to identify error reproduction conditions
142
-
143
- ## 3. Inductive Reasoning and Hypothesis Exploration
144
-
145
- **Hypothesis Generation**:
146
- 1. **Hypothesis 1: Incomplete session data** (Likelihood: High)
147
- - Evidence: Intermittent = timing issue or data consistency problem
148
- - Verification: Add logging to session save logic
149
-
150
- 2. **Hypothesis 2: Async processing order issue** (Likelihood: Medium)
151
- - Evidence: undefined = accessing data before load
152
- - Verification: Check Promise chain, missing await
153
-
154
- ## Summary
155
-
156
- **Key Findings**:
157
- - Most likely cause: Incomplete session data
158
- - Verification priority: 1) Session logging -> 2) Async review -> 3) DB check
159
-
160
- **Recommended Actions**:
161
- 1. Immediate: Add detailed logging to session save/fetch
162
- 2. Short-term: Code review async processing
163
- 3. Medium-term: Strengthen session store monitoring
164
- ```
165
-
166
- ## Best Practices
167
-
168
- 1. **Describe problem specifically**
169
- - Bad: "There's a bug"
170
- - Good: "After login, profile page intermittently returns 500 error"
171
-
172
- 2. **Include context**
173
- - Occurrence conditions (always? intermittent?)
174
- - Relevant tech stack
175
- - Solutions already tried
176
-
177
- 3. **Verify step by step**
178
- - Verify hypotheses in order of likelihood
179
- - Feedback each verification result
180
-
181
- ---
182
-
183
- ARGUMENTS: $ARGUMENTS
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.
9
+
10
+ ## Usage
11
+
12
+ ```
13
+ /vibe.reason "problem description"
14
+ ```
15
+
16
+ ## When to Use
17
+
18
+ 1. **Complex bug debugging** - Root cause unclear, need systematic hypothesis verification
19
+ 2. **Architecture design decisions** - Choose optimal option among several
20
+ 3. **Performance optimization** - Bottleneck may be in multiple places
21
+ 4. **Refactoring planning** - Systematically analyze legacy code complexity
22
+ 5. **Requirements analysis** - Reconcile conflicting requirements
23
+
24
+ ## 9-Step Reasoning Framework
25
+
26
+ ### 1. Logical Dependencies and Constraints
27
+ - Check policies, rules, prerequisites
28
+ - Optimize task order (identify dependencies)
29
+ - Apply user constraints first
30
+
31
+ ### 2. Risk Assessment
32
+ - Analyze action consequences
33
+ - Check rollback possibility
34
+ - Review compatibility, security, performance risks
35
+
36
+ ### 3. Inductive Reasoning and Hypothesis Exploration
37
+ - Generate hypotheses about root cause
38
+ - Prioritize by likelihood
39
+ - Present verification method for each hypothesis
40
+
41
+ ### 4. Result Evaluation and Adaptability
42
+ - Modify plan based on observations
43
+ - Generate new hypothesis when disproved
44
+ - Determine backtracking need
45
+
46
+ ### 5. Information Availability
47
+ - Identify all available tools
48
+ - Reference relevant policy/rule documents
49
+ - Restore previous context
50
+ - Distinguish items needing user confirmation
51
+
52
+ ### 6. Precision and Evidence
53
+ - Cite exact source when referencing policies
54
+ - Include filename:line when referencing code
55
+ - Provide exact metric numbers
56
+
57
+ ### 7. Completeness
58
+ - Integrate all requirements, options, preferences
59
+ - Avoid premature conclusions
60
+ - Explore multiple alternatives
61
+
62
+ ### 8. Persistence and Patience
63
+ - Intelligently retry temporary errors
64
+ - Solve problems through strategy changes
65
+ - Continue until all reasoning steps complete
66
+
67
+ ### 9. Response Suppression
68
+ - Act only after reasoning complete
69
+ - Document reasoning process for complex decisions
70
+ - Ensure safety through step-by-step execution
71
+
72
+ ## Output Format
73
+
74
+ ```markdown
75
+ # Reasoning Framework Analysis
76
+
77
+ **Problem**: [problem description]
78
+ **Context**: [relevant information]
79
+ **Steps Applied**: 9/9
80
+
81
+ ---
82
+
83
+ ## 1. Logical Dependencies and Constraints
84
+
85
+ **Constraint Analysis**:
86
+ [analysis content]
87
+
88
+ ---
89
+
90
+ ## 2. Risk Assessment
91
+
92
+ **Risk Assessment**:
93
+ - Task type: [risk level]
94
+ - Rollback possibility: [assessment]
95
+ - Compatibility/Security/Performance risks
96
+
97
+ ---
98
+
99
+ ## 3. Inductive Reasoning and Hypothesis Exploration
100
+
101
+ **Hypothesis Generation**:
102
+ 1. **Hypothesis 1**: [description] (Likelihood: High/Medium/Low)
103
+ - Evidence: [supporting evidence]
104
+ - Verification: [how to verify]
105
+
106
+ 2. **Hypothesis 2**: ...
107
+
108
+ ---
109
+
110
+ [Steps 4-9...]
111
+
112
+ ---
113
+
114
+ ## Summary
115
+
116
+ [Overall reasoning results summary and recommendations]
117
+
118
+ **Recommended Actions**:
119
+ 1. Immediate: [low risk action]
120
+ 2. Short-term: [medium priority]
121
+ 3. Medium-term: [long-term fix]
122
+ ```
123
+
124
+ ## Example
125
+
126
+ ```
127
+ User: /vibe.reason "After user login, profile page intermittently returns 500 error"
128
+
129
+ AI: Analyzing with 9-step reasoning framework...
130
+
131
+ # Reasoning Framework Analysis
132
+
133
+ **Problem**: Intermittent 500 error on profile page after login
134
+ **Context**: Intermittent occurrence, happens after successful login
135
+
136
+ ## 1. Logical Dependencies and Constraints
137
+
138
+ **Constraint Analysis**:
139
+ - Policy/Rules: Need to check auth/authz system policies
140
+ - Task Order: Verify login -> session creation -> profile fetch order
141
+ - Prerequisites: Need to identify error reproduction conditions
142
+
143
+ ## 3. Inductive Reasoning and Hypothesis Exploration
144
+
145
+ **Hypothesis Generation**:
146
+ 1. **Hypothesis 1: Incomplete session data** (Likelihood: High)
147
+ - Evidence: Intermittent = timing issue or data consistency problem
148
+ - Verification: Add logging to session save logic
149
+
150
+ 2. **Hypothesis 2: Async processing order issue** (Likelihood: Medium)
151
+ - Evidence: undefined = accessing data before load
152
+ - Verification: Check Promise chain, missing await
153
+
154
+ ## Summary
155
+
156
+ **Key Findings**:
157
+ - Most likely cause: Incomplete session data
158
+ - Verification priority: 1) Session logging -> 2) Async review -> 3) DB check
159
+
160
+ **Recommended Actions**:
161
+ 1. Immediate: Add detailed logging to session save/fetch
162
+ 2. Short-term: Code review async processing
163
+ 3. Medium-term: Strengthen session store monitoring
164
+ ```
165
+
166
+ ## Best Practices
167
+
168
+ 1. **Describe problem specifically**
169
+ - Bad: "There's a bug"
170
+ - Good: "After login, profile page intermittently returns 500 error"
171
+
172
+ 2. **Include context**
173
+ - Occurrence conditions (always? intermittent?)
174
+ - Relevant tech stack
175
+ - Solutions already tried
176
+
177
+ 3. **Verify step by step**
178
+ - Verify hypotheses in order of likelihood
179
+ - Feedback each verification result
180
+
181
+ ## Vibe Tools (Reasoning Support)
182
+
183
+ ### Tool Invocation
184
+
185
+ All tools are called via:
186
+
187
+ ```bash
188
+ node -e "import('@su-record/vibe/tools').then(t => t.TOOL_NAME({...args}).then(r => console.log(r.content[0].text)))"
189
+ ```
190
+
191
+ ### Recommended Tools for Reasoning
192
+
193
+ | Tool | Purpose | When to Use |
194
+ |------|---------|-------------|
195
+ | `findSymbol` | Find symbol definitions | Locate potential problem areas |
196
+ | `findReferences` | Find all references | Trace data/control flow |
197
+ | `analyzeComplexity` | Complexity analysis | Identify high-risk complex code |
198
+ | `saveMemory` | Save reasoning progress | Store hypothesis verification results |
199
+ | `recallMemory` | Recall saved memory | Retrieve previous reasoning context |
200
+
201
+ ### Example Tool Usage in Reasoning
202
+
203
+ **1. Find potential problem source:**
204
+
205
+ ```bash
206
+ node -e "import('@su-record/vibe/tools').then(t => t.findSymbol({symbolName: 'getProfile', searchPath: 'src/'}).then(r => console.log(r.content[0].text)))"
207
+ ```
208
+
209
+ **2. Trace references to understand flow:**
210
+
211
+ ```bash
212
+ node -e "import('@su-record/vibe/tools').then(t => t.findReferences({symbolName: 'sessionData', searchPath: 'src/'}).then(r => console.log(r.content[0].text)))"
213
+ ```
214
+
215
+ **3. Save hypothesis verification result:**
216
+
217
+ ```bash
218
+ node -e "import('@su-record/vibe/tools').then(t => t.saveMemory({key: 'hypothesis-1-result', value: 'Session save timing issue confirmed - race condition in auth middleware', category: 'reasoning', projectPath: process.cwd()}).then(r => console.log(r.content[0].text)))"
219
+ ```
220
+
221
+ ---
222
+
223
+ ARGUMENTS: $ARGUMENTS