@su-record/vibe 1.1.8 → 1.1.10
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/agents/explorer.md +21 -21
- package/.claude/agents/implementer.md +24 -24
- package/.claude/agents/searcher.md +26 -26
- package/.claude/agents/simplifier.md +52 -53
- package/.claude/agents/tester.md +17 -17
- package/.claude/commands/vibe.analyze.md +138 -138
- package/.claude/commands/vibe.diagram.md +48 -48
- package/.claude/commands/vibe.reason.md +174 -174
- package/.claude/commands/vibe.run.md +169 -169
- package/.claude/commands/vibe.spec.md +192 -124
- package/.claude/commands/vibe.ui.md +38 -38
- package/.claude/commands/vibe.verify.md +77 -77
- package/package.json +1 -1
- package/templates/hooks-template.json +5 -5
|
@@ -5,146 +5,146 @@ argument-hint: "feature name"
|
|
|
5
5
|
|
|
6
6
|
# /vibe.verify
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
Verify implementation based on Feature scenarios.
|
|
9
9
|
|
|
10
10
|
## Usage
|
|
11
11
|
|
|
12
12
|
```
|
|
13
|
-
/vibe.verify "
|
|
13
|
+
/vibe.verify "feature-name"
|
|
14
14
|
```
|
|
15
15
|
|
|
16
16
|
## Rules Reference
|
|
17
17
|
|
|
18
|
-
|
|
19
|
-
- `quality/checklist.md` -
|
|
20
|
-
- `standards/complexity-metrics.md` -
|
|
18
|
+
**Must follow `.vibe/rules/`:**
|
|
19
|
+
- `quality/checklist.md` - Code quality checklist
|
|
20
|
+
- `standards/complexity-metrics.md` - Complexity standards
|
|
21
21
|
|
|
22
22
|
## Process
|
|
23
23
|
|
|
24
|
-
### 1. Feature
|
|
24
|
+
### 1. Load Feature File
|
|
25
25
|
|
|
26
|
-
`.vibe/features/{
|
|
26
|
+
Read `.vibe/features/{feature-name}.feature`
|
|
27
27
|
|
|
28
|
-
### 2.
|
|
28
|
+
### 2. Verify by Scenario
|
|
29
29
|
|
|
30
|
-
|
|
30
|
+
For each Scenario:
|
|
31
31
|
|
|
32
|
-
1. **Given** (
|
|
33
|
-
2. **When** (
|
|
34
|
-
3. **Then** (
|
|
32
|
+
1. **Given** (Precondition) - Check state
|
|
33
|
+
2. **When** (Action) - Execute feature
|
|
34
|
+
3. **Then** (Result) - Verify expected result
|
|
35
35
|
|
|
36
|
-
### 3.
|
|
36
|
+
### 3. Verification Methods
|
|
37
37
|
|
|
38
|
-
|
|
39
|
-
-
|
|
40
|
-
- Given/When/Then
|
|
38
|
+
**Code verification:**
|
|
39
|
+
- Check if feature is implemented
|
|
40
|
+
- Verify Given/When/Then steps work
|
|
41
41
|
|
|
42
|
-
|
|
43
|
-
- `npm test`, `pytest`, `flutter test
|
|
44
|
-
- BDD
|
|
42
|
+
**Test execution (if available):**
|
|
43
|
+
- Run `npm test`, `pytest`, `flutter test`, etc.
|
|
44
|
+
- Check BDD test framework results
|
|
45
45
|
|
|
46
|
-
|
|
47
|
-
-
|
|
48
|
-
-
|
|
46
|
+
**Manual verification:**
|
|
47
|
+
- If no test code, verify via code review
|
|
48
|
+
- Check if each scenario's logic is implemented
|
|
49
49
|
|
|
50
|
-
### 4.
|
|
50
|
+
### 4. Result Report
|
|
51
51
|
|
|
52
52
|
```markdown
|
|
53
|
-
# Verification Report: {
|
|
53
|
+
# Verification Report: {feature-name}
|
|
54
54
|
|
|
55
55
|
## Summary
|
|
56
|
-
-
|
|
57
|
-
-
|
|
58
|
-
-
|
|
59
|
-
-
|
|
56
|
+
- **Total Scenarios**: N
|
|
57
|
+
- **Passed**: N ✅
|
|
58
|
+
- **Failed**: N ❌
|
|
59
|
+
- **Quality Score**: XX/100
|
|
60
60
|
|
|
61
61
|
## Scenario Results
|
|
62
62
|
|
|
63
|
-
### ✅ Scenario 1: {
|
|
64
|
-
- Given:
|
|
65
|
-
- When:
|
|
66
|
-
- Then:
|
|
67
|
-
-
|
|
63
|
+
### ✅ Scenario 1: {title}
|
|
64
|
+
- Given: Verified
|
|
65
|
+
- When: Implemented
|
|
66
|
+
- Then: Works
|
|
67
|
+
- **Verification**: AC-1 satisfied
|
|
68
68
|
|
|
69
|
-
### ❌ Scenario 2: {
|
|
70
|
-
- Given:
|
|
71
|
-
- When:
|
|
72
|
-
- Then:
|
|
73
|
-
-
|
|
69
|
+
### ❌ Scenario 2: {title}
|
|
70
|
+
- Given: Verified
|
|
71
|
+
- When: Implemented
|
|
72
|
+
- Then: **Failed** - {reason}
|
|
73
|
+
- **Fix needed**: {specific details}
|
|
74
74
|
|
|
75
75
|
## Code Quality
|
|
76
|
-
-
|
|
77
|
-
-
|
|
78
|
-
-
|
|
76
|
+
- Complexity: ✅ Appropriate
|
|
77
|
+
- Test Coverage: XX%
|
|
78
|
+
- Error Handling: ✅
|
|
79
79
|
|
|
80
80
|
## Next Steps
|
|
81
|
-
- {
|
|
81
|
+
- {How to fix failed scenarios}
|
|
82
82
|
```
|
|
83
83
|
|
|
84
84
|
## Input
|
|
85
85
|
|
|
86
|
-
- `.vibe/features/{
|
|
87
|
-
- `.vibe/specs/{
|
|
88
|
-
-
|
|
86
|
+
- `.vibe/features/{feature-name}.feature` - BDD scenarios
|
|
87
|
+
- `.vibe/specs/{feature-name}.md` - SPEC document (reference)
|
|
88
|
+
- Implemented source code
|
|
89
89
|
|
|
90
90
|
## Output
|
|
91
91
|
|
|
92
|
-
-
|
|
93
|
-
-
|
|
94
|
-
-
|
|
92
|
+
- Verification result report (terminal output)
|
|
93
|
+
- Passed/failed scenario list
|
|
94
|
+
- Items needing fixes
|
|
95
95
|
|
|
96
96
|
## Example
|
|
97
97
|
|
|
98
98
|
```
|
|
99
|
-
User: /vibe.verify "
|
|
99
|
+
User: /vibe.verify "login"
|
|
100
100
|
|
|
101
101
|
Claude:
|
|
102
|
-
# Verification Report:
|
|
102
|
+
# Verification Report: login
|
|
103
103
|
|
|
104
104
|
## Summary
|
|
105
|
-
-
|
|
106
|
-
-
|
|
107
|
-
-
|
|
108
|
-
-
|
|
105
|
+
- **Total Scenarios**: 4
|
|
106
|
+
- **Passed**: 3 ✅
|
|
107
|
+
- **Failed**: 1 ❌
|
|
108
|
+
- **Quality Score**: 85/100
|
|
109
109
|
|
|
110
110
|
## Scenario Results
|
|
111
111
|
|
|
112
|
-
### ✅ Scenario 1:
|
|
113
|
-
- Given:
|
|
114
|
-
- When:
|
|
115
|
-
- Then:
|
|
112
|
+
### ✅ Scenario 1: Login with valid credentials
|
|
113
|
+
- Given: User is on login page → ✅ LoginPage component exists
|
|
114
|
+
- When: Enter valid email/password → ✅ handleSubmit implemented
|
|
115
|
+
- Then: Redirect to dashboard → ✅ router.push('/dashboard')
|
|
116
116
|
|
|
117
|
-
### ✅ Scenario 2:
|
|
118
|
-
- Given:
|
|
119
|
-
- When:
|
|
120
|
-
- Then:
|
|
117
|
+
### ✅ Scenario 2: Login with wrong password
|
|
118
|
+
- Given: Login page → ✅
|
|
119
|
+
- When: Wrong password → ✅
|
|
120
|
+
- Then: Show error message → ✅ "Password does not match"
|
|
121
121
|
|
|
122
|
-
### ✅ Scenario 3:
|
|
123
|
-
- Given:
|
|
124
|
-
- When:
|
|
125
|
-
- Then:
|
|
122
|
+
### ✅ Scenario 3: Email format validation
|
|
123
|
+
- Given: Login page → ✅
|
|
124
|
+
- When: Invalid email format → ✅
|
|
125
|
+
- Then: Validation error → ✅ zod validation
|
|
126
126
|
|
|
127
|
-
### ❌ Scenario 4:
|
|
128
|
-
- Given:
|
|
129
|
-
- When: "
|
|
130
|
-
- Then:
|
|
127
|
+
### ❌ Scenario 4: Forgot password link
|
|
128
|
+
- Given: Login page → ✅
|
|
129
|
+
- When: Click "Forgot password" → ❌ Link missing
|
|
130
|
+
- Then: Navigate to forgot password page → ❌
|
|
131
131
|
|
|
132
132
|
## Next Steps
|
|
133
|
-
Scenario 4
|
|
134
|
-
-
|
|
135
|
-
- /forgot-password
|
|
133
|
+
Scenario 4 fix needed:
|
|
134
|
+
- Add "Forgot password" link to LoginPage
|
|
135
|
+
- Implement /forgot-password route
|
|
136
136
|
```
|
|
137
137
|
|
|
138
138
|
## Next Step
|
|
139
139
|
|
|
140
|
-
|
|
140
|
+
On verification pass:
|
|
141
141
|
```
|
|
142
|
-
|
|
142
|
+
Complete! Proceed to next feature.
|
|
143
143
|
```
|
|
144
144
|
|
|
145
|
-
|
|
145
|
+
On verification fail:
|
|
146
146
|
```
|
|
147
|
-
/vibe.run "
|
|
147
|
+
/vibe.run "feature-name" --fix # Fix failed scenarios
|
|
148
148
|
```
|
|
149
149
|
|
|
150
150
|
---
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"hooks": [
|
|
6
6
|
{
|
|
7
7
|
"type": "prompt",
|
|
8
|
-
"prompt": "mcp__vibe__start_session
|
|
8
|
+
"prompt": "Call mcp__vibe__start_session to restore previous session context."
|
|
9
9
|
}
|
|
10
10
|
]
|
|
11
11
|
}
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"hooks": [
|
|
17
17
|
{
|
|
18
18
|
"type": "prompt",
|
|
19
|
-
"prompt": ".vibe/rules/quality/checklist.md
|
|
19
|
+
"prompt": "Review the code you just modified against .vibe/rules/quality/checklist.md. Briefly report any issues found."
|
|
20
20
|
}
|
|
21
21
|
]
|
|
22
22
|
}
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"hooks": [
|
|
28
28
|
{
|
|
29
29
|
"type": "prompt",
|
|
30
|
-
"prompt": "
|
|
30
|
+
"prompt": "Context at 70%. Avoid reading entire files unnecessarily."
|
|
31
31
|
}
|
|
32
32
|
]
|
|
33
33
|
},
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"hooks": [
|
|
37
37
|
{
|
|
38
38
|
"type": "prompt",
|
|
39
|
-
"prompt": "
|
|
39
|
+
"prompt": "Context at 85%. Save current state using mcp__vibe__auto_save_context."
|
|
40
40
|
}
|
|
41
41
|
]
|
|
42
42
|
},
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"hooks": [
|
|
46
46
|
{
|
|
47
47
|
"type": "prompt",
|
|
48
|
-
"prompt": "
|
|
48
|
+
"prompt": "Context at 95%. Immediately run mcp__vibe__auto_save_context and prepare for session transition."
|
|
49
49
|
}
|
|
50
50
|
]
|
|
51
51
|
}
|