@su-record/vibe 2.3.2 → 2.4.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 (118) hide show
  1. package/.claude/settings.json +35 -35
  2. package/.claude/settings.local.json +30 -24
  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 -345
  35. package/LICENSE +21 -21
  36. package/README.md +817 -744
  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 +260 -245
  63. package/commands/vibe.reason.md +223 -223
  64. package/commands/vibe.review.md +213 -200
  65. package/commands/vibe.run.md +842 -838
  66. package/commands/vibe.spec.md +405 -419
  67. package/commands/vibe.utils.md +101 -101
  68. package/commands/vibe.verify.md +282 -282
  69. package/dist/cli/index.d.ts.map +1 -1
  70. package/dist/cli/index.js +422 -385
  71. package/dist/cli/index.js.map +1 -1
  72. package/dist/lib/MemoryManager.js +92 -92
  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/orchestrator/agentDiscovery.d.ts +18 -0
  79. package/dist/orchestrator/agentDiscovery.d.ts.map +1 -0
  80. package/dist/orchestrator/agentDiscovery.js +174 -0
  81. package/dist/orchestrator/agentDiscovery.js.map +1 -0
  82. package/dist/orchestrator/backgroundAgent.d.ts +31 -0
  83. package/dist/orchestrator/backgroundAgent.d.ts.map +1 -0
  84. package/dist/orchestrator/backgroundAgent.js +325 -0
  85. package/dist/orchestrator/backgroundAgent.js.map +1 -0
  86. package/dist/orchestrator/index.d.ts +58 -0
  87. package/dist/orchestrator/index.d.ts.map +1 -0
  88. package/dist/orchestrator/index.js +115 -0
  89. package/dist/orchestrator/index.js.map +1 -0
  90. package/dist/orchestrator/orchestrator.d.ts +82 -0
  91. package/dist/orchestrator/orchestrator.d.ts.map +1 -0
  92. package/dist/orchestrator/orchestrator.js +257 -0
  93. package/dist/orchestrator/orchestrator.js.map +1 -0
  94. package/dist/orchestrator/parallelResearch.d.ts +19 -0
  95. package/dist/orchestrator/parallelResearch.d.ts.map +1 -0
  96. package/dist/orchestrator/parallelResearch.js +214 -0
  97. package/dist/orchestrator/parallelResearch.js.map +1 -0
  98. package/dist/orchestrator/types.d.ts +109 -0
  99. package/dist/orchestrator/types.d.ts.map +1 -0
  100. package/dist/orchestrator/types.js +5 -0
  101. package/dist/orchestrator/types.js.map +1 -0
  102. package/dist/tools/analytics/getUsageAnalytics.js +12 -12
  103. package/dist/tools/memory/createMemoryTimeline.js +10 -10
  104. package/dist/tools/memory/getMemoryGraph.js +12 -12
  105. package/dist/tools/memory/getSessionContext.js +9 -9
  106. package/dist/tools/memory/linkMemories.js +14 -14
  107. package/dist/tools/memory/listMemories.js +4 -4
  108. package/dist/tools/memory/recallMemory.js +4 -4
  109. package/dist/tools/memory/saveMemory.js +4 -4
  110. package/dist/tools/memory/searchMemoriesAdvanced.js +22 -22
  111. package/dist/tools/planning/generatePrd.js +46 -46
  112. package/dist/tools/prompt/enhancePromptGemini.js +160 -160
  113. package/dist/tools/reasoning/applyReasoningFramework.js +56 -56
  114. package/dist/tools/semantic/analyzeDependencyGraph.js +12 -12
  115. package/hooks/hooks.json +121 -121
  116. package/package.json +75 -73
  117. package/skills/git-worktree.md +178 -178
  118. package/skills/priority-todos.md +236 -236
@@ -1,245 +1,260 @@
1
- ---
2
- description: Analyze project or specific feature/module
3
- argument-hint: "feature-name" or --code or --deps or --arch
4
- ---
5
-
6
- # /vibe.analyze
7
-
8
- Analyze project or specific feature/module.
9
-
10
- ## Usage
11
-
12
- ```
13
- /vibe.analyze # Full project quality analysis
14
- /vibe.analyze "login" # Login related code exploration + context collection
15
- /vibe.analyze --code # Code quality analysis only
16
- /vibe.analyze --deps # Dependency analysis only
17
- /vibe.analyze --arch # Architecture analysis only
18
- ```
19
-
20
- ## Context Reset
21
-
22
- **When this command runs, previous conversation is ignored.**
23
- - Explore and analyze code from scratch like new session
24
- - Base conversation only on newly collected information from this analysis
25
-
26
- ---
27
-
28
- ## Mode 1: Feature/Module Analysis (`/vibe.analyze "feature-name"`)
29
-
30
- ### Goal
31
-
32
- **Explore all source code** related to user's requested feature/module and **analyze flow** to:
33
- 1. Understand current implementation status
34
- 2. Understand code structure and dependencies
35
- 3. Build context for immediate response to future development/modification requests
36
-
37
- ### Process
38
-
39
- #### 1. Request Analysis
40
-
41
- Extract key keywords from user request:
42
- - Feature name (e.g., login, feed, payment)
43
- - Action (e.g., create, read, update, delete)
44
- - Scope (e.g., backend only, frontend only, full)
45
-
46
- #### 2. Understand Project Structure
47
-
48
- Read `CLAUDE.md`, `package.json`, `pyproject.toml`, etc. to identify tech stack:
49
-
50
- **Backend:**
51
- - FastAPI/Django: `app/api/`, `app/services/`, `app/models/`
52
- - Express/NestJS: `src/controllers/`, `src/services/`, `src/models/`
53
-
54
- **Frontend:**
55
- - React/Next.js: `src/components/`, `src/pages/`, `src/hooks/`
56
- - Flutter: `lib/screens/`, `lib/services/`, `lib/providers/`
57
-
58
- #### 3. Explore Related Code
59
-
60
- **Exploration strategy:**
61
- 1. **Glob** to collect related file list
62
- 2. **Grep** to locate code by keyword
63
- 3. **Read** to analyze key files in detail
64
- 4. If needed, **Task (Explore)** agent for parallel exploration
65
-
66
- #### 4. Flow Analysis
67
-
68
- **API Flow:**
69
- - Endpoint URL and HTTP method
70
- - Request/response schema
71
- - Authentication/authorization requirements
72
-
73
- **Business Logic:**
74
- - Core methods and roles
75
- - Validation rules
76
- - External service integrations
77
-
78
- **Data Flow:**
79
- - Related tables/models
80
- - Relationships (1:N, N:M)
81
- - Key query patterns
82
-
83
- #### 5. Output Analysis Results
84
-
85
- ```markdown
86
- ## [feature-name] Analysis Results
87
-
88
- ### Overview
89
- - **Feature description**: [one-line summary]
90
- - **Implementation status**: [Complete/In progress/Not implemented]
91
- - **Related files**: N files
92
-
93
- ### Structure
94
-
95
- #### API Endpoints
96
- | Method | Path | Description | Auth |
97
- |--------|------|-------------|------|
98
- | POST | /api/v1/auth/login | Login | - |
99
-
100
- #### Core Services
101
- - `auth_service.py`: Authentication logic
102
- - `login()`: Login processing
103
- - `verify_token()`: Token verification
104
-
105
- #### Data Models
106
- - `User`: User table
107
- - Key fields: id, email, password_hash
108
- - Relationships: Session (1:N)
109
-
110
- ### Reference File List
111
- - src/api/auth/router.py:L10-50
112
- - src/services/auth_service.py:L1-100
113
- ```
114
-
115
- #### 6. Complete & Next Action
116
-
117
- After analysis:
118
- 1. Output analysis summary
119
- 2. **Ask user to choose workflow** when development is requested:
120
-
121
- ```
122
- ## Next Steps
123
-
124
- 개발을 진행하려면 워크플로우를 선택하세요:
125
-
126
- | 작업 규모 | 권장 방식 |
127
- |----------|----------|
128
- | 간단한 수정 (1-2 파일) | Plan Mode |
129
- | 복잡한 기능 (3+ 파일, 리서치/검증 필요) | /vibe.spec |
130
-
131
- 1. `/vibe.spec "feature-name"` - VIBE 워크플로우 (병렬 리서치 + SPEC 검증)
132
- 2. Plan Mode - 빠른 구현 (간단한 작업용)
133
-
134
- 어떤 방식으로 진행할까요?
135
- ```
136
-
137
- 3. Wait for user's choice before proceeding
138
- 4. If user chooses VIBE → wait for `/vibe.spec` command
139
- 5. If user chooses Plan Mode → proceed with EnterPlanMode
140
-
141
- ---
142
-
143
- ## Mode 2: Project Quality Analysis (--code/--deps/--arch)
144
-
145
- ### Analysis Scope
146
-
147
- - **Default** (`/vibe.analyze`): Full analysis (code + dependencies + architecture)
148
- - **--code**: Code quality analysis only
149
- - **--deps**: Dependency analysis only
150
- - **--arch**: Architecture analysis only
151
-
152
- ### Code Quality Analysis (--code)
153
-
154
- - Complexity analysis (Cyclomatic Complexity)
155
- - Code quality validation
156
- - Coupling/cohesion check
157
-
158
- ### Dependency Analysis (--deps)
159
-
160
- - Read `package.json` / `pyproject.toml` / `pubspec.yaml`
161
- - Analyze version conflicts, security vulnerabilities, packages needing updates
162
-
163
- ### Architecture Analysis (--arch)
164
-
165
- - Find core modules
166
- - Identify module dependencies
167
- - Detect circular dependencies, layer violations
168
-
169
- ### Analysis Report
170
-
171
- `.claude/vibe/reports/analysis-{date}.md`:
172
-
173
- ```markdown
174
- # Project Analysis Report
175
-
176
- ## Overview
177
- - Analysis date: 2025-01-06 12:00
178
- - Analysis scope: Full
179
-
180
- ## Code Quality (85/100)
181
- - Average complexity: 8.2 (good)
182
- - High complexity files: 3
183
-
184
- ## Dependencies (92/100)
185
- - Total packages: 42
186
- - Updates needed: 3
187
-
188
- ## Architecture (78/100)
189
- - Circular dependencies: 2 found
190
- - Layer violations: 1
191
-
192
- ## Improvement Suggestions
193
- 1. Refactor service.py
194
- 2. Apply lodash security patch
195
- ```
196
-
197
- ## Vibe Tools (Semantic Analysis)
198
-
199
- ### Tool Invocation
200
-
201
- All tools are called via:
202
-
203
- ```bash
204
- node -e "import('@su-record/vibe/tools').then(t => t.TOOL_NAME({...args}).then(r => console.log(r.content[0].text)))"
205
- ```
206
-
207
- ### Recommended Tools for Analysis
208
-
209
- | Tool | Purpose | When to Use |
210
- |------|---------|-------------|
211
- | `findSymbol` | Find symbol definitions | Locate function/class implementations |
212
- | `findReferences` | Find all references | Track usage patterns |
213
- | `analyzeComplexity` | Complexity analysis | Measure code complexity metrics |
214
- | `validateCodeQuality` | Quality validation | Check code quality standards |
215
- | `saveMemory` | Save analysis results | Store analysis findings |
216
-
217
- ### Example Tool Usage in Analysis
218
-
219
- **1. Find function definition:**
220
-
221
- ```bash
222
- node -e "import('@su-record/vibe/tools').then(t => t.findSymbol({symbolName: 'login', searchPath: 'src/'}).then(r => console.log(r.content[0].text)))"
223
- ```
224
-
225
- **2. Analyze complexity:**
226
-
227
- ```bash
228
- node -e "import('@su-record/vibe/tools').then(t => t.analyzeComplexity({targetPath: 'src/services/', projectPath: process.cwd()}).then(r => console.log(r.content[0].text)))"
229
- ```
230
-
231
- **3. Validate code quality:**
232
-
233
- ```bash
234
- node -e "import('@su-record/vibe/tools').then(t => t.validateCodeQuality({targetPath: 'src/', projectPath: process.cwd()}).then(r => console.log(r.content[0].text)))"
235
- ```
236
-
237
- **4. Save analysis results:**
238
-
239
- ```bash
240
- node -e "import('@su-record/vibe/tools').then(t => t.saveMemory({key: 'analysis-login-module', value: 'Found 5 related files, complexity avg 6.2', category: 'analysis', projectPath: process.cwd()}).then(r => console.log(r.content[0].text)))"
241
- ```
242
-
243
- ---
244
-
245
- ARGUMENTS: $ARGUMENTS
1
+ ---
2
+ description: Analyze project or specific feature/module
3
+ argument-hint: "feature-name" or --code or --deps or --arch
4
+ ---
5
+
6
+ # /vibe.analyze
7
+
8
+ Analyze project or specific feature/module.
9
+
10
+ ## Usage
11
+
12
+ ```
13
+ /vibe.analyze # Full project quality analysis
14
+ /vibe.analyze "login" # Login related code exploration + context collection
15
+ /vibe.analyze --code # Code quality analysis only
16
+ /vibe.analyze --deps # Dependency analysis only
17
+ /vibe.analyze --arch # Architecture analysis only
18
+ ```
19
+
20
+ ## Context Reset
21
+
22
+ **When this command runs, previous conversation is ignored.**
23
+ - Explore and analyze code from scratch like new session
24
+ - Base conversation only on newly collected information from this analysis
25
+
26
+ ---
27
+
28
+ ## Mode 1: Feature/Module Analysis (`/vibe.analyze "feature-name"`)
29
+
30
+ ### Goal
31
+
32
+ **Explore all source code** related to user's requested feature/module and **analyze flow** to:
33
+ 1. Understand current implementation status
34
+ 2. Understand code structure and dependencies
35
+ 3. Build context for immediate response to future development/modification requests
36
+
37
+ ### Process
38
+
39
+ #### 1. Request Analysis
40
+
41
+ Extract key keywords from user request:
42
+ - Feature name (e.g., login, feed, payment)
43
+ - Action (e.g., create, read, update, delete)
44
+ - Scope (e.g., backend only, frontend only, full)
45
+
46
+ #### 2. Understand Project Structure
47
+
48
+ Read `CLAUDE.md`, `package.json`, `pyproject.toml`, etc. to identify tech stack:
49
+
50
+ **Backend:**
51
+ - FastAPI/Django: `app/api/`, `app/services/`, `app/models/`
52
+ - Express/NestJS: `src/controllers/`, `src/services/`, `src/models/`
53
+
54
+ **Frontend:**
55
+ - React/Next.js: `src/components/`, `src/pages/`, `src/hooks/`
56
+ - Flutter: `lib/screens/`, `lib/services/`, `lib/providers/`
57
+
58
+ #### 3. Explore Related Code (Parallel via Orchestrator)
59
+
60
+ **Exploration strategy using orchestrator:**
61
+ ```bash
62
+ # Discover available agents
63
+ node -e "import('@su-record/vibe/orchestrator').then(o => o.listAgents().then(r => console.log(r.content[0].text)))"
64
+
65
+ # Run parallel exploration agents
66
+ node -e "import('@su-record/vibe/orchestrator').then(async o => {
67
+ const results = await Promise.all([
68
+ o.runAgent('Find all [FEATURE] related API endpoints', 'api-explorer'),
69
+ o.runAgent('Find all [FEATURE] related services/logic', 'service-explorer'),
70
+ o.runAgent('Find all [FEATURE] related data models', 'model-explorer')
71
+ ]);
72
+ console.log('Exploration agents started');
73
+ })"
74
+ ```
75
+
76
+ **Alternative (direct tools):**
77
+ 1. **Glob** to collect related file list
78
+ 2. **Grep** to locate code by keyword
79
+ 3. **Read** to analyze key files in detail
80
+
81
+ #### 4. Flow Analysis
82
+
83
+ **API Flow:**
84
+ - Endpoint URL and HTTP method
85
+ - Request/response schema
86
+ - Authentication/authorization requirements
87
+
88
+ **Business Logic:**
89
+ - Core methods and roles
90
+ - Validation rules
91
+ - External service integrations
92
+
93
+ **Data Flow:**
94
+ - Related tables/models
95
+ - Relationships (1:N, N:M)
96
+ - Key query patterns
97
+
98
+ #### 5. Output Analysis Results
99
+
100
+ ```markdown
101
+ ## [feature-name] Analysis Results
102
+
103
+ ### Overview
104
+ - **Feature description**: [one-line summary]
105
+ - **Implementation status**: [Complete/In progress/Not implemented]
106
+ - **Related files**: N files
107
+
108
+ ### Structure
109
+
110
+ #### API Endpoints
111
+ | Method | Path | Description | Auth |
112
+ |--------|------|-------------|------|
113
+ | POST | /api/v1/auth/login | Login | - |
114
+
115
+ #### Core Services
116
+ - `auth_service.py`: Authentication logic
117
+ - `login()`: Login processing
118
+ - `verify_token()`: Token verification
119
+
120
+ #### Data Models
121
+ - `User`: User table
122
+ - Key fields: id, email, password_hash
123
+ - Relationships: Session (1:N)
124
+
125
+ ### Reference File List
126
+ - src/api/auth/router.py:L10-50
127
+ - src/services/auth_service.py:L1-100
128
+ ```
129
+
130
+ #### 6. Complete & Next Action
131
+
132
+ After analysis:
133
+ 1. Output analysis summary
134
+ 2. **Ask user to choose workflow** when development is requested:
135
+
136
+ ```
137
+ ## Next Steps
138
+
139
+ 개발을 진행하려면 워크플로우를 선택하세요:
140
+
141
+ | 작업 규모 | 권장 방식 |
142
+ |----------|----------|
143
+ | 간단한 수정 (1-2 파일) | Plan Mode |
144
+ | 복잡한 기능 (3+ 파일, 리서치/검증 필요) | /vibe.spec |
145
+
146
+ 1. `/vibe.spec "feature-name"` - VIBE 워크플로우 (병렬 리서치 + SPEC 검증)
147
+ 2. Plan Mode - 빠른 구현 (간단한 작업용)
148
+
149
+ 어떤 방식으로 진행할까요?
150
+ ```
151
+
152
+ 3. Wait for user's choice before proceeding
153
+ 4. If user chooses VIBE → wait for `/vibe.spec` command
154
+ 5. If user chooses Plan Mode → proceed with EnterPlanMode
155
+
156
+ ---
157
+
158
+ ## Mode 2: Project Quality Analysis (--code/--deps/--arch)
159
+
160
+ ### Analysis Scope
161
+
162
+ - **Default** (`/vibe.analyze`): Full analysis (code + dependencies + architecture)
163
+ - **--code**: Code quality analysis only
164
+ - **--deps**: Dependency analysis only
165
+ - **--arch**: Architecture analysis only
166
+
167
+ ### Code Quality Analysis (--code)
168
+
169
+ - Complexity analysis (Cyclomatic Complexity)
170
+ - Code quality validation
171
+ - Coupling/cohesion check
172
+
173
+ ### Dependency Analysis (--deps)
174
+
175
+ - Read `package.json` / `pyproject.toml` / `pubspec.yaml`
176
+ - Analyze version conflicts, security vulnerabilities, packages needing updates
177
+
178
+ ### Architecture Analysis (--arch)
179
+
180
+ - Find core modules
181
+ - Identify module dependencies
182
+ - Detect circular dependencies, layer violations
183
+
184
+ ### Analysis Report
185
+
186
+ `.claude/vibe/reports/analysis-{date}.md`:
187
+
188
+ ```markdown
189
+ # Project Analysis Report
190
+
191
+ ## Overview
192
+ - Analysis date: 2025-01-06 12:00
193
+ - Analysis scope: Full
194
+
195
+ ## Code Quality (85/100)
196
+ - Average complexity: 8.2 (good)
197
+ - High complexity files: 3
198
+
199
+ ## Dependencies (92/100)
200
+ - Total packages: 42
201
+ - Updates needed: 3
202
+
203
+ ## Architecture (78/100)
204
+ - Circular dependencies: 2 found
205
+ - Layer violations: 1
206
+
207
+ ## Improvement Suggestions
208
+ 1. Refactor service.py
209
+ 2. Apply lodash security patch
210
+ ```
211
+
212
+ ## Vibe Tools (Semantic Analysis)
213
+
214
+ ### Tool Invocation
215
+
216
+ All tools are called via:
217
+
218
+ ```bash
219
+ node -e "import('@su-record/vibe/tools').then(t => t.TOOL_NAME({...args}).then(r => console.log(r.content[0].text)))"
220
+ ```
221
+
222
+ ### Recommended Tools for Analysis
223
+
224
+ | Tool | Purpose | When to Use |
225
+ |------|---------|-------------|
226
+ | `findSymbol` | Find symbol definitions | Locate function/class implementations |
227
+ | `findReferences` | Find all references | Track usage patterns |
228
+ | `analyzeComplexity` | Complexity analysis | Measure code complexity metrics |
229
+ | `validateCodeQuality` | Quality validation | Check code quality standards |
230
+ | `saveMemory` | Save analysis results | Store analysis findings |
231
+
232
+ ### Example Tool Usage in Analysis
233
+
234
+ **1. Find function definition:**
235
+
236
+ ```bash
237
+ node -e "import('@su-record/vibe/tools').then(t => t.findSymbol({symbolName: 'login', searchPath: 'src/'}).then(r => console.log(r.content[0].text)))"
238
+ ```
239
+
240
+ **2. Analyze complexity:**
241
+
242
+ ```bash
243
+ node -e "import('@su-record/vibe/tools').then(t => t.analyzeComplexity({targetPath: 'src/services/', projectPath: process.cwd()}).then(r => console.log(r.content[0].text)))"
244
+ ```
245
+
246
+ **3. Validate code quality:**
247
+
248
+ ```bash
249
+ node -e "import('@su-record/vibe/tools').then(t => t.validateCodeQuality({targetPath: 'src/', projectPath: process.cwd()}).then(r => console.log(r.content[0].text)))"
250
+ ```
251
+
252
+ **4. Save analysis results:**
253
+
254
+ ```bash
255
+ node -e "import('@su-record/vibe/tools').then(t => t.saveMemory({key: 'analysis-login-module', value: 'Found 5 related files, complexity avg 6.2', category: 'analysis', projectPath: process.cwd()}).then(r => console.log(r.content[0].text)))"
256
+ ```
257
+
258
+ ---
259
+
260
+ ARGUMENTS: $ARGUMENTS