@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,136 +1,200 @@
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
- ---
135
-
136
- 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)
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