@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,200 +1,213 @@
1
- ---
2
- description: Multi-agent parallel code review with priority-based findings
3
- argument-hint: "PR number, branch name, or file path"
4
- ---
5
-
6
- # /vibe.review
7
-
8
- **Parallel Agent Code Review** - 13+ specialists review simultaneously
9
-
10
- ## Usage
11
-
12
- ```
13
- /vibe.review # Review current branch
14
- /vibe.review PR#123 # Review specific PR
15
- /vibe.review feature/login # Review specific branch
16
- /vibe.review src/api/ # Review specific path
17
- ```
18
-
19
- ## Priority System
20
-
21
- | Priority | Criteria | Action |
22
- |----------|----------|--------|
23
- | P1 | Security vulnerabilities, data loss, crashes | Block merge, fix immediately |
24
- | P2 | Performance issues, architecture violations, missing tests | Fix before merge |
25
- | P3 | Style, refactoring suggestions, documentation | Add to backlog |
26
-
27
- ## Process
28
-
29
- ### Phase 1: Tech Stack Detection
30
-
31
- Detect project tech stack FIRST before launching reviewers:
32
-
33
- ```
34
- Read package.json -> TypeScript, React, Node.js
35
- Read pyproject.toml -> Python, FastAPI, Django
36
- Read Gemfile -> Ruby, Rails
37
- Read pubspec.yaml -> Flutter, Dart
38
- Read go.mod -> Go
39
- Read CLAUDE.md -> Explicit tech stack declaration
40
- ```
41
-
42
- ### Phase 2: Parallel Agent Review (STACK-AWARE)
43
-
44
- **Launch ONLY relevant agents based on detected stack!**
45
-
46
- **ALWAYS RUN (Core Reviewers):**
47
- - security-reviewer: OWASP Top 10, vulnerabilities
48
- - data-integrity-reviewer: Data validation, constraints
49
- - performance-reviewer: N+1 queries, memory leaks
50
- - architecture-reviewer: Layer violations, cycles
51
- - complexity-reviewer: Cyclomatic complexity, length
52
- - simplicity-reviewer: Over-abstraction, dead code
53
- - git-history-reviewer: Churn files, risk patterns
54
- - test-coverage-reviewer: Missing tests, edge cases
55
-
56
- **CONDITIONAL (Based on Detected Stack):**
57
- - python-reviewer: IF .py files in diff
58
- - typescript-reviewer: IF .ts/.tsx files OR tsconfig
59
- - rails-reviewer: IF Gemfile has rails
60
- - react-reviewer: IF package.json has react
61
-
62
- ### Phase 3: Deep Analysis
63
-
64
- After agent results:
65
-
66
- 1. **System Context**: Component interactions, data flow, external dependencies
67
- 2. **Stakeholder Perspectives**: Developers, Ops, Security, Business
68
- 3. **Edge Cases**: Race conditions, resource exhaustion, network failures
69
- 4. **Multiple Angles**: Technical excellence, business value, risk management
70
-
71
- ### Phase 4: Findings Synthesis
72
-
73
- ```
74
- REVIEW FINDINGS
75
-
76
- P1 CRITICAL (Blocks Merge) - N issues
77
- 1. [SECURITY] SQL Injection in user query
78
- Location: src/api/users.py:42
79
- Fix: Use parameterized queries
80
-
81
- P2 IMPORTANT (Should Fix) - N issues
82
- 2. [PERF] N+1 query in user list
83
- 3. [ARCH] Circular dependency detected
84
-
85
- P3 NICE-TO-HAVE (Enhancement) - N issues
86
- 4. [STYLE] Consider extracting helper function
87
- ```
88
-
89
- ### Phase 5: Todo File Creation
90
-
91
- Save findings to `.claude/vibe/todos/`:
92
-
93
- ```
94
- {priority}-{category}-{short-desc}.md
95
-
96
- Examples:
97
- - P1-security-sql-injection.md
98
- - P2-perf-n1-query.md
99
- - P3-style-extract-helper.md
100
- ```
101
-
102
- ## Output
103
-
104
- ```
105
- CODE REVIEW SUMMARY
106
- PR #123: Add user authentication
107
-
108
- Reviewers: 13 agents | Duration: 45s
109
-
110
- Score: 72/100 (Needs Work)
111
-
112
- Issues Found:
113
- - P1 Critical: 2 (BLOCKS MERGE)
114
- - P2 Important: 5
115
- - P3 Nice-to-have: 3
116
-
117
- By Category:
118
- - Security: 2
119
- - Performance: 3
120
- - Architecture: 1
121
- - Testing: 2
122
- - Style: 2
123
-
124
- Todos created: .claude/vibe/todos/ (10 files)
125
-
126
- MERGE BLOCKED - Fix P1 issues first
127
-
128
- Next Steps:
129
- 1. Fix P1-security-sql-injection.md
130
- 2. Fix P1-data-transaction-rollback.md
131
- 3. Re-run: /vibe.review
132
- ```
133
-
134
- ### Phase 6: Guide to Fix Workflow
135
-
136
- **Ask user to choose workflow** when fix is requested:
137
-
138
- ```
139
- ## Fix Workflow
140
-
141
- 발견된 이슈를 수정하려면 워크플로우를 선택하세요:
142
-
143
- | 작업 규모 | 권장 방식 |
144
- |----------|----------|
145
- | 간단한 수정 (1-2 파일) | Plan Mode |
146
- | 복잡한 수정 (3+ 파일, 검증 필요) | /vibe.spec |
147
-
148
- 1. `/vibe.spec "fix: issue-name"` - VIBE 워크플로우 (SPEC 검증 + 재리뷰)
149
- 2. Plan Mode - 빠른 수정 (간단한 작업용)
150
-
151
- 어떤 방식으로 진행할까요?
152
- ```
153
-
154
- - Wait for user's choice before proceeding
155
- - If user chooses VIBE → wait for `/vibe.spec` command
156
- - If user chooses Plan Mode → proceed with EnterPlanMode
157
-
158
- ## Vibe Tools (Code Analysis)
159
-
160
- ### Tool Invocation
161
-
162
- All tools are called via:
163
-
164
- ```bash
165
- node -e "import('@su-record/vibe/tools').then(t => t.TOOL_NAME({...args}).then(r => console.log(r.content[0].text)))"
166
- ```
167
-
168
- ### Recommended Tools for Review
169
-
170
- | Tool | Purpose | When to Use |
171
- |------|---------|-------------|
172
- | `validateCodeQuality` | Code quality check | Overall code quality scan |
173
- | `analyzeComplexity` | Complexity metrics | Check function complexity |
174
- | `findSymbol` | Find definitions | Locate implementations |
175
- | `findReferences` | Find all usages | Track symbol usage |
176
- | `saveMemory` | Save findings | Store important review findings |
177
-
178
- ### Example Tool Usage in Review
179
-
180
- **1. Validate code quality before review:**
181
-
182
- ```bash
183
- node -e "import('@su-record/vibe/tools').then(t => t.validateCodeQuality({targetPath: 'src/', projectPath: process.cwd()}).then(r => console.log(r.content[0].text)))"
184
- ```
185
-
186
- **2. Analyze complexity of changed files:**
187
-
188
- ```bash
189
- node -e "import('@su-record/vibe/tools').then(t => t.analyzeComplexity({targetPath: 'src/api/users.ts', projectPath: process.cwd()}).then(r => console.log(r.content[0].text)))"
190
- ```
191
-
192
- **3. Save critical finding for reference:**
193
-
194
- ```bash
195
- node -e "import('@su-record/vibe/tools').then(t => t.saveMemory({key: 'review-pr123-critical', value: 'SQL injection in users.py:42', category: 'review', projectPath: process.cwd()}).then(r => console.log(r.content[0].text)))"
196
- ```
197
-
198
- ---
199
-
200
- ARGUMENTS: $ARGUMENTS
1
+ ---
2
+ description: Multi-agent parallel code review with priority-based findings
3
+ argument-hint: "PR number, branch name, or file path"
4
+ ---
5
+
6
+ # /vibe.review
7
+
8
+ **Parallel Agent Code Review** - 13+ specialists review simultaneously
9
+
10
+ ## Usage
11
+
12
+ ```
13
+ /vibe.review # Review current branch
14
+ /vibe.review PR#123 # Review specific PR
15
+ /vibe.review feature/login # Review specific branch
16
+ /vibe.review src/api/ # Review specific path
17
+ ```
18
+
19
+ ## Priority System
20
+
21
+ | Priority | Criteria | Action |
22
+ |----------|----------|--------|
23
+ | P1 | Security vulnerabilities, data loss, crashes | Block merge, fix immediately |
24
+ | P2 | Performance issues, architecture violations, missing tests | Fix before merge |
25
+ | P3 | Style, refactoring suggestions, documentation | Add to backlog |
26
+
27
+ ## Process
28
+
29
+ ### Phase 1: Tech Stack Detection
30
+
31
+ Detect project tech stack FIRST before launching reviewers:
32
+
33
+ ```
34
+ Read package.json -> TypeScript, React, Node.js
35
+ Read pyproject.toml -> Python, FastAPI, Django
36
+ Read Gemfile -> Ruby, Rails
37
+ Read pubspec.yaml -> Flutter, Dart
38
+ Read go.mod -> Go
39
+ Read CLAUDE.md -> Explicit tech stack declaration
40
+ ```
41
+
42
+ ### Phase 2: Parallel Agent Review (STACK-AWARE) via Orchestrator
43
+
44
+ **Execution via Orchestrator (12+ agents in parallel):**
45
+ ```bash
46
+ node -e "import('@su-record/vibe/orchestrator').then(o => o.review(['FILE_PATHS'], ['DETECTED_STACKS']).then(r => console.log(r.content[0].text)))"
47
+ ```
48
+
49
+ **Example:**
50
+ ```bash
51
+ # Review changed files with TypeScript + React stack
52
+ node -e "import('@su-record/vibe/orchestrator').then(o => o.review(['src/api/users.ts', 'src/components/Login.tsx'], ['TypeScript', 'React']).then(r => console.log(r.content[0].text)))"
53
+ ```
54
+
55
+ **Core Reviewers (Always Run):**
56
+ | Agent | Focus |
57
+ |-------|-------|
58
+ | security-reviewer | OWASP Top 10, vulnerabilities |
59
+ | data-integrity-reviewer | Data validation, constraints |
60
+ | performance-reviewer | N+1 queries, memory leaks |
61
+ | architecture-reviewer | Layer violations, cycles |
62
+ | complexity-reviewer | Cyclomatic complexity, length |
63
+ | simplicity-reviewer | Over-abstraction, dead code |
64
+ | git-history-reviewer | Churn files, risk patterns |
65
+ | test-coverage-reviewer | Missing tests, edge cases |
66
+
67
+ **Stack-Specific Reviewers (Conditional):**
68
+ | Agent | Condition |
69
+ |-------|-----------|
70
+ | python-reviewer | .py files in diff |
71
+ | typescript-reviewer | .ts/.tsx files OR tsconfig |
72
+ | rails-reviewer | Gemfile has rails |
73
+ | react-reviewer | package.json has react |
74
+
75
+ ### Phase 3: Deep Analysis
76
+
77
+ After agent results:
78
+
79
+ 1. **System Context**: Component interactions, data flow, external dependencies
80
+ 2. **Stakeholder Perspectives**: Developers, Ops, Security, Business
81
+ 3. **Edge Cases**: Race conditions, resource exhaustion, network failures
82
+ 4. **Multiple Angles**: Technical excellence, business value, risk management
83
+
84
+ ### Phase 4: Findings Synthesis
85
+
86
+ ```
87
+ REVIEW FINDINGS
88
+
89
+ P1 CRITICAL (Blocks Merge) - N issues
90
+ 1. [SECURITY] SQL Injection in user query
91
+ Location: src/api/users.py:42
92
+ Fix: Use parameterized queries
93
+
94
+ P2 IMPORTANT (Should Fix) - N issues
95
+ 2. [PERF] N+1 query in user list
96
+ 3. [ARCH] Circular dependency detected
97
+
98
+ P3 NICE-TO-HAVE (Enhancement) - N issues
99
+ 4. [STYLE] Consider extracting helper function
100
+ ```
101
+
102
+ ### Phase 5: Todo File Creation
103
+
104
+ Save findings to `.claude/vibe/todos/`:
105
+
106
+ ```
107
+ {priority}-{category}-{short-desc}.md
108
+
109
+ Examples:
110
+ - P1-security-sql-injection.md
111
+ - P2-perf-n1-query.md
112
+ - P3-style-extract-helper.md
113
+ ```
114
+
115
+ ## Output
116
+
117
+ ```
118
+ CODE REVIEW SUMMARY
119
+ PR #123: Add user authentication
120
+
121
+ Reviewers: 13 agents | Duration: 45s
122
+
123
+ Score: 72/100 (Needs Work)
124
+
125
+ Issues Found:
126
+ - P1 Critical: 2 (BLOCKS MERGE)
127
+ - P2 Important: 5
128
+ - P3 Nice-to-have: 3
129
+
130
+ By Category:
131
+ - Security: 2
132
+ - Performance: 3
133
+ - Architecture: 1
134
+ - Testing: 2
135
+ - Style: 2
136
+
137
+ Todos created: .claude/vibe/todos/ (10 files)
138
+
139
+ MERGE BLOCKED - Fix P1 issues first
140
+
141
+ Next Steps:
142
+ 1. Fix P1-security-sql-injection.md
143
+ 2. Fix P1-data-transaction-rollback.md
144
+ 3. Re-run: /vibe.review
145
+ ```
146
+
147
+ ### Phase 6: Guide to Fix Workflow
148
+
149
+ **Ask user to choose workflow** when fix is requested:
150
+
151
+ ```
152
+ ## Fix Workflow
153
+
154
+ 발견된 이슈를 수정하려면 워크플로우를 선택하세요:
155
+
156
+ | 작업 규모 | 권장 방식 |
157
+ |----------|----------|
158
+ | 간단한 수정 (1-2 파일) | Plan Mode |
159
+ | 복잡한 수정 (3+ 파일, 검증 필요) | /vibe.spec |
160
+
161
+ 1. `/vibe.spec "fix: issue-name"` - VIBE 워크플로우 (SPEC 검증 + 재리뷰)
162
+ 2. Plan Mode - 빠른 수정 (간단한 작업용)
163
+
164
+ 어떤 방식으로 진행할까요?
165
+ ```
166
+
167
+ - Wait for user's choice before proceeding
168
+ - If user chooses VIBE → wait for `/vibe.spec` command
169
+ - If user chooses Plan Mode → proceed with EnterPlanMode
170
+
171
+ ## Vibe Tools (Code Analysis)
172
+
173
+ ### Tool Invocation
174
+
175
+ All tools are called via:
176
+
177
+ ```bash
178
+ node -e "import('@su-record/vibe/tools').then(t => t.TOOL_NAME({...args}).then(r => console.log(r.content[0].text)))"
179
+ ```
180
+
181
+ ### Recommended Tools for Review
182
+
183
+ | Tool | Purpose | When to Use |
184
+ |------|---------|-------------|
185
+ | `validateCodeQuality` | Code quality check | Overall code quality scan |
186
+ | `analyzeComplexity` | Complexity metrics | Check function complexity |
187
+ | `findSymbol` | Find definitions | Locate implementations |
188
+ | `findReferences` | Find all usages | Track symbol usage |
189
+ | `saveMemory` | Save findings | Store important review findings |
190
+
191
+ ### Example Tool Usage in Review
192
+
193
+ **1. Validate code quality before review:**
194
+
195
+ ```bash
196
+ node -e "import('@su-record/vibe/tools').then(t => t.validateCodeQuality({targetPath: 'src/', projectPath: process.cwd()}).then(r => console.log(r.content[0].text)))"
197
+ ```
198
+
199
+ **2. Analyze complexity of changed files:**
200
+
201
+ ```bash
202
+ node -e "import('@su-record/vibe/tools').then(t => t.analyzeComplexity({targetPath: 'src/api/users.ts', projectPath: process.cwd()}).then(r => console.log(r.content[0].text)))"
203
+ ```
204
+
205
+ **3. Save critical finding for reference:**
206
+
207
+ ```bash
208
+ node -e "import('@su-record/vibe/tools').then(t => t.saveMemory({key: 'review-pr123-critical', value: 'SQL injection in users.py:42', category: 'review', projectPath: process.cwd()}).then(r => console.log(r.content[0].text)))"
209
+ ```
210
+
211
+ ---
212
+
213
+ ARGUMENTS: $ARGUMENTS