@su-record/vibe 2.6.20 → 2.6.21
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/commands/vibe.spec.review.md +37 -10
- package/package.json +1 -1
|
@@ -13,8 +13,8 @@ Review and enhance SPEC with GPT/Gemini cross-validation.
|
|
|
13
13
|
```
|
|
14
14
|
|
|
15
15
|
**Prerequisites:**
|
|
16
|
-
- SPEC file exists: `.claude/vibe/specs/{feature-name}.
|
|
17
|
-
- Feature file exists: `.claude/vibe/features/{feature-name}.feature`
|
|
16
|
+
- SPEC file exists: `.claude/vibe/specs/{feature-name}.md` (single) or `.claude/vibe/specs/{feature-name}/_index.md` (split)
|
|
17
|
+
- Feature file exists: `.claude/vibe/features/{feature-name}.feature` (single) or `.claude/vibe/features/{feature-name}/_index.feature` (split)
|
|
18
18
|
|
|
19
19
|
---
|
|
20
20
|
|
|
@@ -34,13 +34,25 @@ Review and enhance SPEC with GPT/Gemini cross-validation.
|
|
|
34
34
|
|
|
35
35
|
## Step 1: Load SPEC Files
|
|
36
36
|
|
|
37
|
-
|
|
37
|
+
Detect SPEC structure (single file or split folder) and read files:
|
|
38
38
|
|
|
39
|
+
**Single file structure:**
|
|
39
40
|
```
|
|
40
|
-
.claude/vibe/specs/{feature-name}.
|
|
41
|
+
.claude/vibe/specs/{feature-name}.md
|
|
41
42
|
.claude/vibe/features/{feature-name}.feature
|
|
42
43
|
```
|
|
43
44
|
|
|
45
|
+
**Split folder structure:**
|
|
46
|
+
```
|
|
47
|
+
.claude/vibe/specs/{feature-name}/_index.md (+ phase files)
|
|
48
|
+
.claude/vibe/features/{feature-name}/_index.feature (+ phase files)
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
**Detection logic:**
|
|
52
|
+
1. Check if `.claude/vibe/specs/{feature-name}/` directory exists → Split mode
|
|
53
|
+
2. Otherwise check `.claude/vibe/specs/{feature-name}.md` → Single mode
|
|
54
|
+
3. If neither exists → Error
|
|
55
|
+
|
|
44
56
|
**Output:**
|
|
45
57
|
```
|
|
46
58
|
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
@@ -48,8 +60,9 @@ Read the existing SPEC and Feature files:
|
|
|
48
60
|
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
49
61
|
|
|
50
62
|
Loading files...
|
|
51
|
-
|
|
52
|
-
✅
|
|
63
|
+
Mode: {single|split}
|
|
64
|
+
✅ SPEC: .claude/vibe/specs/{feature-name}.md (or _index.md + N phase files)
|
|
65
|
+
✅ Feature: .claude/vibe/features/{feature-name}.feature (or _index.feature + N phase files)
|
|
53
66
|
|
|
54
67
|
Extracted info:
|
|
55
68
|
- Feature: {feature description}
|
|
@@ -262,8 +275,8 @@ Review Rounds: 3/3 ✅
|
|
|
262
275
|
Total Improvements: 4
|
|
263
276
|
|
|
264
277
|
Updated files:
|
|
265
|
-
📋 .claude/vibe/specs/{feature-name}.
|
|
266
|
-
📋 .claude/vibe/features/{feature-name}.feature
|
|
278
|
+
📋 .claude/vibe/specs/{feature-name}.md (or split folder)
|
|
279
|
+
📋 .claude/vibe/features/{feature-name}.feature (or split folder)
|
|
267
280
|
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
268
281
|
```
|
|
269
282
|
|
|
@@ -334,7 +347,8 @@ After all review rounds, present the finalized SPEC to the user in a readable fo
|
|
|
334
347
|
```
|
|
335
348
|
❌ ERROR: SPEC file not found
|
|
336
349
|
|
|
337
|
-
Expected: .claude/vibe/specs/{feature-name}.
|
|
350
|
+
Expected (single): .claude/vibe/specs/{feature-name}.md
|
|
351
|
+
Expected (split): .claude/vibe/specs/{feature-name}/_index.md
|
|
338
352
|
|
|
339
353
|
Please run /vibe.spec "{feature-name}" first to create the SPEC.
|
|
340
354
|
```
|
|
@@ -343,7 +357,8 @@ Please run /vibe.spec "{feature-name}" first to create the SPEC.
|
|
|
343
357
|
```
|
|
344
358
|
❌ ERROR: Feature file not found
|
|
345
359
|
|
|
346
|
-
Expected: .claude/vibe/features/{feature-name}.feature
|
|
360
|
+
Expected (single): .claude/vibe/features/{feature-name}.feature
|
|
361
|
+
Expected (split): .claude/vibe/features/{feature-name}/_index.feature
|
|
347
362
|
|
|
348
363
|
Please run /vibe.spec "{feature-name}" first to create the Feature file.
|
|
349
364
|
```
|
|
@@ -370,3 +385,15 @@ For faster iteration (1 round only):
|
|
|
370
385
|
---
|
|
371
386
|
|
|
372
387
|
ARGUMENTS: $ARGUMENTS
|
|
388
|
+
|
|
389
|
+
**File Detection (execute before Step 1):**
|
|
390
|
+
|
|
391
|
+
```
|
|
392
|
+
Feature name: $ARGUMENTS
|
|
393
|
+
|
|
394
|
+
1. Check split folder: .claude/vibe/specs/$ARGUMENTS/_index.md
|
|
395
|
+
- If exists → Split mode (read all files in folder)
|
|
396
|
+
2. Check single file: .claude/vibe/specs/$ARGUMENTS.md
|
|
397
|
+
- If exists → Single mode
|
|
398
|
+
3. Neither exists → Show error with both expected paths
|
|
399
|
+
```
|