@su-record/vibe 2.4.5 → 2.4.6

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 (99) hide show
  1. package/.claude/settings.json +48 -48
  2. package/.claude/settings.local.json +24 -26
  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 +164 -164
  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 -260
  63. package/commands/vibe.reason.md +223 -223
  64. package/commands/vibe.review.md +213 -213
  65. package/commands/vibe.run.md +935 -842
  66. package/commands/vibe.spec.md +442 -442
  67. package/commands/vibe.utils.md +101 -101
  68. package/commands/vibe.verify.md +282 -282
  69. package/dist/cli/index.js +386 -386
  70. package/dist/lib/MemoryManager.js +92 -92
  71. package/dist/lib/PythonParser.js +108 -108
  72. package/dist/lib/gemini-mcp.js +15 -15
  73. package/dist/lib/gemini-oauth.js +35 -35
  74. package/dist/lib/gpt-mcp.js +17 -17
  75. package/dist/lib/gpt-oauth.js +44 -44
  76. package/dist/orchestrator/orchestrator.js +12 -12
  77. package/dist/orchestrator/parallelResearch.js +24 -24
  78. package/dist/tools/analytics/getUsageAnalytics.js +12 -12
  79. package/dist/tools/memory/createMemoryTimeline.js +10 -10
  80. package/dist/tools/memory/getMemoryGraph.js +12 -12
  81. package/dist/tools/memory/getSessionContext.js +9 -9
  82. package/dist/tools/memory/linkMemories.js +14 -14
  83. package/dist/tools/memory/listMemories.js +4 -4
  84. package/dist/tools/memory/recallMemory.js +4 -4
  85. package/dist/tools/memory/saveMemory.js +4 -4
  86. package/dist/tools/memory/searchMemoriesAdvanced.js +22 -22
  87. package/dist/tools/planning/generatePrd.js +46 -46
  88. package/dist/tools/prompt/enhancePromptGemini.js +160 -160
  89. package/dist/tools/reasoning/applyReasoningFramework.js +56 -56
  90. package/dist/tools/semantic/analyzeDependencyGraph.js +12 -12
  91. package/hooks/hooks.json +189 -189
  92. package/package.json +85 -85
  93. package/skills/context7-usage.md +82 -82
  94. package/skills/git-worktree.md +181 -181
  95. package/skills/multi-llm-orchestration.md +97 -97
  96. package/skills/parallel-research.md +77 -77
  97. package/skills/priority-todos.md +239 -239
  98. package/skills/tool-fallback.md +126 -126
  99. package/skills/vibe-capabilities.md +127 -127
@@ -1,260 +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 (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
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