@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,180 +1,245 @@
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
116
-
117
- After analysis:
118
- 1. Output analysis summary
119
- 2. Ask "What would you like me to help with?"
120
- 3. Use collected context for subsequent development/modification requests
121
-
122
- ---
123
-
124
- ## Mode 2: Project Quality Analysis (--code/--deps/--arch)
125
-
126
- ### Analysis Scope
127
-
128
- - **Default** (`/vibe.analyze`): Full analysis (code + dependencies + architecture)
129
- - **--code**: Code quality analysis only
130
- - **--deps**: Dependency analysis only
131
- - **--arch**: Architecture analysis only
132
-
133
- ### Code Quality Analysis (--code)
134
-
135
- - Complexity analysis (Cyclomatic Complexity)
136
- - Code quality validation
137
- - Coupling/cohesion check
138
-
139
- ### Dependency Analysis (--deps)
140
-
141
- - Read `package.json` / `pyproject.toml` / `pubspec.yaml`
142
- - Analyze version conflicts, security vulnerabilities, packages needing updates
143
-
144
- ### Architecture Analysis (--arch)
145
-
146
- - Find core modules
147
- - Identify module dependencies
148
- - Detect circular dependencies, layer violations
149
-
150
- ### Analysis Report
151
-
152
- `.claude/vibe/reports/analysis-{date}.md`:
153
-
154
- ```markdown
155
- # Project Analysis Report
156
-
157
- ## Overview
158
- - Analysis date: 2025-01-06 12:00
159
- - Analysis scope: Full
160
-
161
- ## Code Quality (85/100)
162
- - Average complexity: 8.2 (good)
163
- - High complexity files: 3
164
-
165
- ## Dependencies (92/100)
166
- - Total packages: 42
167
- - Updates needed: 3
168
-
169
- ## Architecture (78/100)
170
- - Circular dependencies: 2 found
171
- - Layer violations: 1
172
-
173
- ## Improvement Suggestions
174
- 1. Refactor service.py
175
- 2. Apply lodash security patch
176
- ```
177
-
178
- ---
179
-
180
- 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
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