@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.
- package/.claude/settings.json +35 -35
- package/.claude/settings.local.json +24 -25
- package/.claude/vibe/constitution.md +184 -184
- package/.claude/vibe/rules/core/communication-guide.md +104 -104
- package/.claude/vibe/rules/core/development-philosophy.md +52 -52
- package/.claude/vibe/rules/core/quick-start.md +120 -120
- package/.claude/vibe/rules/languages/dart-flutter.md +509 -509
- package/.claude/vibe/rules/languages/go.md +396 -396
- package/.claude/vibe/rules/languages/java-spring.md +586 -586
- package/.claude/vibe/rules/languages/kotlin-android.md +491 -491
- package/.claude/vibe/rules/languages/python-django.md +371 -371
- package/.claude/vibe/rules/languages/python-fastapi.md +386 -386
- package/.claude/vibe/rules/languages/rust.md +425 -425
- package/.claude/vibe/rules/languages/swift-ios.md +516 -516
- package/.claude/vibe/rules/languages/typescript-nextjs.md +441 -441
- package/.claude/vibe/rules/languages/typescript-node.md +375 -375
- package/.claude/vibe/rules/languages/typescript-nuxt.md +521 -521
- package/.claude/vibe/rules/languages/typescript-react-native.md +446 -446
- package/.claude/vibe/rules/languages/typescript-react.md +525 -525
- package/.claude/vibe/rules/languages/typescript-vue.md +353 -353
- package/.claude/vibe/rules/quality/bdd-contract-testing.md +388 -388
- package/.claude/vibe/rules/quality/checklist.md +276 -276
- package/.claude/vibe/rules/quality/testing-strategy.md +437 -437
- package/.claude/vibe/rules/standards/anti-patterns.md +369 -369
- package/.claude/vibe/rules/standards/code-structure.md +291 -291
- package/.claude/vibe/rules/standards/complexity-metrics.md +312 -312
- package/.claude/vibe/rules/standards/naming-conventions.md +198 -198
- package/.claude/vibe/setup.sh +31 -31
- package/.claude/vibe/templates/constitution-template.md +184 -184
- package/.claude/vibe/templates/contract-backend-template.md +517 -517
- package/.claude/vibe/templates/contract-frontend-template.md +594 -594
- package/.claude/vibe/templates/feature-template.md +96 -96
- package/.claude/vibe/templates/spec-template.md +199 -199
- package/CLAUDE.md +345 -323
- package/LICENSE +21 -21
- package/README.md +744 -724
- package/agents/compounder.md +261 -261
- package/agents/diagrammer.md +178 -178
- package/agents/e2e-tester.md +266 -266
- package/agents/explorer.md +48 -48
- package/agents/implementer.md +53 -53
- package/agents/research/best-practices-agent.md +139 -139
- package/agents/research/codebase-patterns-agent.md +147 -147
- package/agents/research/framework-docs-agent.md +181 -181
- package/agents/research/security-advisory-agent.md +167 -167
- package/agents/review/architecture-reviewer.md +107 -107
- package/agents/review/complexity-reviewer.md +116 -116
- package/agents/review/data-integrity-reviewer.md +88 -88
- package/agents/review/git-history-reviewer.md +103 -103
- package/agents/review/performance-reviewer.md +86 -86
- package/agents/review/python-reviewer.md +152 -152
- package/agents/review/rails-reviewer.md +139 -139
- package/agents/review/react-reviewer.md +144 -144
- package/agents/review/security-reviewer.md +80 -80
- package/agents/review/simplicity-reviewer.md +140 -140
- package/agents/review/test-coverage-reviewer.md +116 -116
- package/agents/review/typescript-reviewer.md +127 -127
- package/agents/searcher.md +54 -54
- package/agents/simplifier.md +119 -119
- package/agents/tester.md +49 -49
- package/agents/ui-previewer.md +137 -137
- package/commands/vibe.analyze.md +245 -180
- package/commands/vibe.reason.md +223 -183
- package/commands/vibe.review.md +200 -136
- package/commands/vibe.run.md +838 -836
- package/commands/vibe.spec.md +419 -383
- package/commands/vibe.utils.md +101 -101
- package/commands/vibe.verify.md +282 -241
- package/dist/cli/index.js +385 -385
- package/dist/lib/MemoryManager.d.ts.map +1 -1
- package/dist/lib/MemoryManager.js +119 -114
- package/dist/lib/MemoryManager.js.map +1 -1
- package/dist/lib/PythonParser.js +108 -108
- package/dist/lib/gemini-mcp.js +15 -15
- package/dist/lib/gemini-oauth.js +35 -35
- package/dist/lib/gpt-mcp.js +17 -17
- package/dist/lib/gpt-oauth.js +44 -44
- package/dist/tools/analytics/getUsageAnalytics.js +12 -12
- package/dist/tools/index.d.ts +50 -0
- package/dist/tools/index.d.ts.map +1 -0
- package/dist/tools/index.js +61 -0
- package/dist/tools/index.js.map +1 -0
- package/dist/tools/memory/createMemoryTimeline.js +10 -10
- package/dist/tools/memory/getMemoryGraph.js +12 -12
- package/dist/tools/memory/getSessionContext.js +9 -9
- package/dist/tools/memory/linkMemories.js +14 -14
- package/dist/tools/memory/listMemories.js +4 -4
- package/dist/tools/memory/recallMemory.js +4 -4
- package/dist/tools/memory/saveMemory.js +4 -4
- package/dist/tools/memory/searchMemoriesAdvanced.js +22 -22
- package/dist/tools/planning/generatePrd.js +46 -46
- package/dist/tools/prompt/enhancePromptGemini.js +160 -160
- package/dist/tools/reasoning/applyReasoningFramework.js +56 -56
- package/dist/tools/semantic/analyzeDependencyGraph.js +12 -12
- package/hooks/hooks.json +121 -103
- package/package.json +73 -69
- package/skills/git-worktree.md +178 -178
- package/skills/priority-todos.md +236 -236
package/skills/git-worktree.md
CHANGED
|
@@ -1,178 +1,178 @@
|
|
|
1
|
-
# Git Worktree Skill
|
|
2
|
-
|
|
3
|
-
Git Worktree를 활용한 병렬 브랜치 작업 스킬
|
|
4
|
-
|
|
5
|
-
## Overview
|
|
6
|
-
|
|
7
|
-
메인 작업을 중단하지 않고 다른 브랜치에서 리뷰/테스트 수행
|
|
8
|
-
|
|
9
|
-
## Usage
|
|
10
|
-
|
|
11
|
-
```bash
|
|
12
|
-
# Worktree 생성
|
|
13
|
-
git worktree add ../review-pr123 pr/123
|
|
14
|
-
|
|
15
|
-
# 해당 디렉토리에서 작업
|
|
16
|
-
cd ../review-pr123
|
|
17
|
-
npm test
|
|
18
|
-
|
|
19
|
-
# 작업 완료 후 정리
|
|
20
|
-
git worktree remove ../review-pr123
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
## Commands
|
|
24
|
-
|
|
25
|
-
### Create Worktree
|
|
26
|
-
|
|
27
|
-
```bash
|
|
28
|
-
# PR 리뷰용 worktree
|
|
29
|
-
git worktree add ../review-{pr_number} origin/pr/{pr_number}
|
|
30
|
-
|
|
31
|
-
# 특정 브랜치 worktree
|
|
32
|
-
git worktree add ../feature-work feature/new-feature
|
|
33
|
-
|
|
34
|
-
# 새 브랜치로 worktree
|
|
35
|
-
git worktree add -b hotfix/urgent ../hotfix main
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
### List Worktrees
|
|
39
|
-
|
|
40
|
-
```bash
|
|
41
|
-
git worktree list
|
|
42
|
-
# /path/to/main abc1234 [main]
|
|
43
|
-
# /path/to/review-123 def5678 [pr/123]
|
|
44
|
-
```
|
|
45
|
-
|
|
46
|
-
### Remove Worktree
|
|
47
|
-
|
|
48
|
-
```bash
|
|
49
|
-
# 정상 제거
|
|
50
|
-
git worktree remove ../review-123
|
|
51
|
-
|
|
52
|
-
# 강제 제거 (uncommitted changes 무시)
|
|
53
|
-
git worktree remove --force ../review-123
|
|
54
|
-
|
|
55
|
-
# Prune stale worktrees
|
|
56
|
-
git worktree prune
|
|
57
|
-
```
|
|
58
|
-
|
|
59
|
-
## Workflow Integration
|
|
60
|
-
|
|
61
|
-
### PR Review Workflow
|
|
62
|
-
|
|
63
|
-
```
|
|
64
|
-
┌─────────────────────────────────────────────────────────────────┐
|
|
65
|
-
│ /vibe.review PR#123 │
|
|
66
|
-
├─────────────────────────────────────────────────────────────────┤
|
|
67
|
-
│ │
|
|
68
|
-
│ 1. git worktree add ../review-123 origin/pr/123 │
|
|
69
|
-
│ 2. cd ../review-123 │
|
|
70
|
-
│ 3. npm install && npm test │
|
|
71
|
-
│ 4. Run parallel review agents │
|
|
72
|
-
│ 5. Generate review report │
|
|
73
|
-
│ 6. cd - && git worktree remove ../review-123 │
|
|
74
|
-
│ │
|
|
75
|
-
└─────────────────────────────────────────────────────────────────┘
|
|
76
|
-
```
|
|
77
|
-
|
|
78
|
-
### Hotfix Workflow
|
|
79
|
-
|
|
80
|
-
```
|
|
81
|
-
┌─────────────────────────────────────────────────────────────────┐
|
|
82
|
-
│ Urgent hotfix while working on feature │
|
|
83
|
-
├─────────────────────────────────────────────────────────────────┤
|
|
84
|
-
│ │
|
|
85
|
-
│ # Keep feature work intact │
|
|
86
|
-
│ git worktree add -b hotfix/critical ../hotfix main │
|
|
87
|
-
│ cd ../hotfix │
|
|
88
|
-
│ │
|
|
89
|
-
│ # Fix and deploy │
|
|
90
|
-
│ vim src/bug.py │
|
|
91
|
-
│ git commit -am "fix: critical bug" │
|
|
92
|
-
│ git push origin hotfix/critical │
|
|
93
|
-
│ │
|
|
94
|
-
│ # Return to feature │
|
|
95
|
-
│ cd - && git worktree remove ../hotfix │
|
|
96
|
-
│ │
|
|
97
|
-
└─────────────────────────────────────────────────────────────────┘
|
|
98
|
-
```
|
|
99
|
-
|
|
100
|
-
## Benefits
|
|
101
|
-
|
|
102
|
-
1. **No Stash Needed**: 현재 작업 그대로 유지
|
|
103
|
-
2. **Full Codebase**: 각 worktree는 완전한 코드베이스
|
|
104
|
-
3. **Parallel Work**: 여러 브랜치 동시 작업
|
|
105
|
-
4. **Clean Testing**: 격리된 환경에서 테스트
|
|
106
|
-
|
|
107
|
-
## Best Practices
|
|
108
|
-
|
|
109
|
-
### Naming Convention
|
|
110
|
-
|
|
111
|
-
```bash
|
|
112
|
-
# PR 리뷰
|
|
113
|
-
../review-{pr_number}
|
|
114
|
-
|
|
115
|
-
# 핫픽스
|
|
116
|
-
../hotfix-{issue_number}
|
|
117
|
-
|
|
118
|
-
# 실험
|
|
119
|
-
../experiment-{feature_name}
|
|
120
|
-
```
|
|
121
|
-
|
|
122
|
-
### Cleanup
|
|
123
|
-
|
|
124
|
-
```bash
|
|
125
|
-
# 정기 정리
|
|
126
|
-
git worktree prune
|
|
127
|
-
|
|
128
|
-
# 모든 worktree 확인
|
|
129
|
-
git worktree list
|
|
130
|
-
|
|
131
|
-
# 스크립트로 자동 정리
|
|
132
|
-
for wt in $(git worktree list --porcelain | grep worktree | cut -d' ' -f2); do
|
|
133
|
-
if [[ $wt == *"review-"* ]] || [[ $wt == *"hotfix-"* ]]; then
|
|
134
|
-
git worktree remove "$wt" 2>/dev/null || true
|
|
135
|
-
fi
|
|
136
|
-
done
|
|
137
|
-
```
|
|
138
|
-
|
|
139
|
-
### Integration with CI/CD
|
|
140
|
-
|
|
141
|
-
```yaml
|
|
142
|
-
# GitHub Actions example
|
|
143
|
-
- name: Setup Review Worktree
|
|
144
|
-
run: |
|
|
145
|
-
git fetch origin pull/${{ github.event.pull_request.number }}/head:pr-${{ github.event.pull_request.number }}
|
|
146
|
-
git worktree add ../review pr-${{ github.event.pull_request.number }}
|
|
147
|
-
|
|
148
|
-
- name: Run Tests in Worktree
|
|
149
|
-
working-directory: ../review
|
|
150
|
-
run: npm test
|
|
151
|
-
|
|
152
|
-
- name: Cleanup
|
|
153
|
-
run: git worktree remove ../review
|
|
154
|
-
```
|
|
155
|
-
|
|
156
|
-
## Troubleshooting
|
|
157
|
-
|
|
158
|
-
### "already checked out" Error
|
|
159
|
-
|
|
160
|
-
```bash
|
|
161
|
-
# 해결: 해당 브랜치가 다른 worktree에 있음
|
|
162
|
-
git worktree list # 확인
|
|
163
|
-
git worktree remove <path> # 제거
|
|
164
|
-
```
|
|
165
|
-
|
|
166
|
-
### Locked Worktree
|
|
167
|
-
|
|
168
|
-
```bash
|
|
169
|
-
# 해결: 잠긴 worktree 해제
|
|
170
|
-
git worktree unlock <path>
|
|
171
|
-
```
|
|
172
|
-
|
|
173
|
-
### Stale Worktree
|
|
174
|
-
|
|
175
|
-
```bash
|
|
176
|
-
# 해결: 삭제된 디렉토리 정리
|
|
177
|
-
git worktree prune
|
|
178
|
-
```
|
|
1
|
+
# Git Worktree Skill
|
|
2
|
+
|
|
3
|
+
Git Worktree를 활용한 병렬 브랜치 작업 스킬
|
|
4
|
+
|
|
5
|
+
## Overview
|
|
6
|
+
|
|
7
|
+
메인 작업을 중단하지 않고 다른 브랜치에서 리뷰/테스트 수행
|
|
8
|
+
|
|
9
|
+
## Usage
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
# Worktree 생성
|
|
13
|
+
git worktree add ../review-pr123 pr/123
|
|
14
|
+
|
|
15
|
+
# 해당 디렉토리에서 작업
|
|
16
|
+
cd ../review-pr123
|
|
17
|
+
npm test
|
|
18
|
+
|
|
19
|
+
# 작업 완료 후 정리
|
|
20
|
+
git worktree remove ../review-pr123
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## Commands
|
|
24
|
+
|
|
25
|
+
### Create Worktree
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
# PR 리뷰용 worktree
|
|
29
|
+
git worktree add ../review-{pr_number} origin/pr/{pr_number}
|
|
30
|
+
|
|
31
|
+
# 특정 브랜치 worktree
|
|
32
|
+
git worktree add ../feature-work feature/new-feature
|
|
33
|
+
|
|
34
|
+
# 새 브랜치로 worktree
|
|
35
|
+
git worktree add -b hotfix/urgent ../hotfix main
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
### List Worktrees
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
git worktree list
|
|
42
|
+
# /path/to/main abc1234 [main]
|
|
43
|
+
# /path/to/review-123 def5678 [pr/123]
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
### Remove Worktree
|
|
47
|
+
|
|
48
|
+
```bash
|
|
49
|
+
# 정상 제거
|
|
50
|
+
git worktree remove ../review-123
|
|
51
|
+
|
|
52
|
+
# 강제 제거 (uncommitted changes 무시)
|
|
53
|
+
git worktree remove --force ../review-123
|
|
54
|
+
|
|
55
|
+
# Prune stale worktrees
|
|
56
|
+
git worktree prune
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
## Workflow Integration
|
|
60
|
+
|
|
61
|
+
### PR Review Workflow
|
|
62
|
+
|
|
63
|
+
```
|
|
64
|
+
┌─────────────────────────────────────────────────────────────────┐
|
|
65
|
+
│ /vibe.review PR#123 │
|
|
66
|
+
├─────────────────────────────────────────────────────────────────┤
|
|
67
|
+
│ │
|
|
68
|
+
│ 1. git worktree add ../review-123 origin/pr/123 │
|
|
69
|
+
│ 2. cd ../review-123 │
|
|
70
|
+
│ 3. npm install && npm test │
|
|
71
|
+
│ 4. Run parallel review agents │
|
|
72
|
+
│ 5. Generate review report │
|
|
73
|
+
│ 6. cd - && git worktree remove ../review-123 │
|
|
74
|
+
│ │
|
|
75
|
+
└─────────────────────────────────────────────────────────────────┘
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
### Hotfix Workflow
|
|
79
|
+
|
|
80
|
+
```
|
|
81
|
+
┌─────────────────────────────────────────────────────────────────┐
|
|
82
|
+
│ Urgent hotfix while working on feature │
|
|
83
|
+
├─────────────────────────────────────────────────────────────────┤
|
|
84
|
+
│ │
|
|
85
|
+
│ # Keep feature work intact │
|
|
86
|
+
│ git worktree add -b hotfix/critical ../hotfix main │
|
|
87
|
+
│ cd ../hotfix │
|
|
88
|
+
│ │
|
|
89
|
+
│ # Fix and deploy │
|
|
90
|
+
│ vim src/bug.py │
|
|
91
|
+
│ git commit -am "fix: critical bug" │
|
|
92
|
+
│ git push origin hotfix/critical │
|
|
93
|
+
│ │
|
|
94
|
+
│ # Return to feature │
|
|
95
|
+
│ cd - && git worktree remove ../hotfix │
|
|
96
|
+
│ │
|
|
97
|
+
└─────────────────────────────────────────────────────────────────┘
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
## Benefits
|
|
101
|
+
|
|
102
|
+
1. **No Stash Needed**: 현재 작업 그대로 유지
|
|
103
|
+
2. **Full Codebase**: 각 worktree는 완전한 코드베이스
|
|
104
|
+
3. **Parallel Work**: 여러 브랜치 동시 작업
|
|
105
|
+
4. **Clean Testing**: 격리된 환경에서 테스트
|
|
106
|
+
|
|
107
|
+
## Best Practices
|
|
108
|
+
|
|
109
|
+
### Naming Convention
|
|
110
|
+
|
|
111
|
+
```bash
|
|
112
|
+
# PR 리뷰
|
|
113
|
+
../review-{pr_number}
|
|
114
|
+
|
|
115
|
+
# 핫픽스
|
|
116
|
+
../hotfix-{issue_number}
|
|
117
|
+
|
|
118
|
+
# 실험
|
|
119
|
+
../experiment-{feature_name}
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
### Cleanup
|
|
123
|
+
|
|
124
|
+
```bash
|
|
125
|
+
# 정기 정리
|
|
126
|
+
git worktree prune
|
|
127
|
+
|
|
128
|
+
# 모든 worktree 확인
|
|
129
|
+
git worktree list
|
|
130
|
+
|
|
131
|
+
# 스크립트로 자동 정리
|
|
132
|
+
for wt in $(git worktree list --porcelain | grep worktree | cut -d' ' -f2); do
|
|
133
|
+
if [[ $wt == *"review-"* ]] || [[ $wt == *"hotfix-"* ]]; then
|
|
134
|
+
git worktree remove "$wt" 2>/dev/null || true
|
|
135
|
+
fi
|
|
136
|
+
done
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
### Integration with CI/CD
|
|
140
|
+
|
|
141
|
+
```yaml
|
|
142
|
+
# GitHub Actions example
|
|
143
|
+
- name: Setup Review Worktree
|
|
144
|
+
run: |
|
|
145
|
+
git fetch origin pull/${{ github.event.pull_request.number }}/head:pr-${{ github.event.pull_request.number }}
|
|
146
|
+
git worktree add ../review pr-${{ github.event.pull_request.number }}
|
|
147
|
+
|
|
148
|
+
- name: Run Tests in Worktree
|
|
149
|
+
working-directory: ../review
|
|
150
|
+
run: npm test
|
|
151
|
+
|
|
152
|
+
- name: Cleanup
|
|
153
|
+
run: git worktree remove ../review
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
## Troubleshooting
|
|
157
|
+
|
|
158
|
+
### "already checked out" Error
|
|
159
|
+
|
|
160
|
+
```bash
|
|
161
|
+
# 해결: 해당 브랜치가 다른 worktree에 있음
|
|
162
|
+
git worktree list # 확인
|
|
163
|
+
git worktree remove <path> # 제거
|
|
164
|
+
```
|
|
165
|
+
|
|
166
|
+
### Locked Worktree
|
|
167
|
+
|
|
168
|
+
```bash
|
|
169
|
+
# 해결: 잠긴 worktree 해제
|
|
170
|
+
git worktree unlock <path>
|
|
171
|
+
```
|
|
172
|
+
|
|
173
|
+
### Stale Worktree
|
|
174
|
+
|
|
175
|
+
```bash
|
|
176
|
+
# 해결: 삭제된 디렉토리 정리
|
|
177
|
+
git worktree prune
|
|
178
|
+
```
|