@su-record/vibe 0.1.4 β 0.1.7
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/commands/vibe.analyze.md +123 -0
- package/.claude/commands/vibe.diagram.md +174 -0
- package/.claude/commands/vibe.plan.md +75 -0
- package/.claude/commands/vibe.run.md +151 -0
- package/.claude/commands/vibe.spec.md +273 -0
- package/.claude/commands/vibe.tasks.md +77 -0
- package/.claude/commands/vibe.ui.md +133 -0
- package/.claude/commands/vibe.verify.md +128 -0
- package/.claude/settings.local.json +14 -0
- package/README.md +159 -104
- package/bin/vibe +94 -225
- package/package.json +3 -2
- package/skills/quality/bdd-contract-testing.md +388 -0
- package/templates/contract-backend-template.md +517 -0
- package/templates/contract-frontend-template.md +594 -0
- package/templates/feature-template.md +259 -0
- package/templates/spec-template.md +60 -3
package/README.md
CHANGED
|
@@ -15,6 +15,7 @@ Transform natural language requirements into production-ready code through struc
|
|
|
15
15
|
|
|
16
16
|
- **Claude Code Optimized**: Built specifically for Claude Code with native slash commands and MCP integration
|
|
17
17
|
- **SPEC-driven Development**: Structured Q&A process using EARS (Easy Approach to Requirements Syntax)
|
|
18
|
+
- **BDD + Contract Testing**: AI-optimized testing with Gherkin features and API contract validation (π§ v0.2.0)
|
|
18
19
|
- **Automated Planning**: Generate technical implementation plans with architecture, cost analysis, and timeline
|
|
19
20
|
- **Task Decomposition**: Break down features into phase-based, dependency-aware tasks
|
|
20
21
|
- **Powered by @su-record/hi-ai**: 38 MCP tools combining skills and hi-ai for code analysis, quality validation, and insights
|
|
@@ -30,87 +31,75 @@ npm install -g @su-record/vibe
|
|
|
30
31
|
```
|
|
31
32
|
|
|
32
33
|
This installs:
|
|
33
|
-
- Vibe CLI
|
|
34
|
+
- Vibe CLI (for initialization only)
|
|
34
35
|
- @su-record/hi-ai MCP server (38 development tools)
|
|
36
|
+
- Agents, Skills, Templates for Claude Code
|
|
37
|
+
|
|
38
|
+
β οΈ **Important**: Vibe is a **Claude Code-exclusive** framework. Terminal commands are limited to `init` only. All development commands are available as **slash commands** within Claude Code.
|
|
35
39
|
|
|
36
40
|
---
|
|
37
41
|
|
|
38
42
|
## Quick Start
|
|
39
43
|
|
|
44
|
+
### 1. Initialize Project (Terminal)
|
|
45
|
+
|
|
40
46
|
```bash
|
|
41
|
-
#
|
|
47
|
+
# Option 1: Initialize in existing project
|
|
42
48
|
vibe init
|
|
43
49
|
|
|
44
|
-
#
|
|
45
|
-
vibe
|
|
50
|
+
# Option 2: Create new project
|
|
51
|
+
vibe init my-new-project
|
|
52
|
+
cd my-new-project
|
|
53
|
+
```
|
|
46
54
|
|
|
47
|
-
|
|
48
|
-
|
|
55
|
+
This will:
|
|
56
|
+
- Register MCP server for the project directory
|
|
57
|
+
- Create `.vibe/` folder structure
|
|
58
|
+
- Install agents, skills, and templates
|
|
49
59
|
|
|
50
|
-
|
|
51
|
-
vibe tasks "push notification settings"
|
|
60
|
+
### 2. Use Slash Commands (Claude Code)
|
|
52
61
|
|
|
53
|
-
|
|
54
|
-
vibe run "Task 1-1"
|
|
62
|
+
Open Claude Code in your project directory and use slash commands:
|
|
55
63
|
|
|
56
|
-
|
|
57
|
-
vibe
|
|
64
|
+
```
|
|
65
|
+
/vibe.spec "push notification settings"
|
|
66
|
+
/vibe.plan "push notification settings"
|
|
67
|
+
/vibe.tasks "push notification settings"
|
|
68
|
+
/vibe.run "Task 1-1"
|
|
69
|
+
/vibe.verify "push notification settings"
|
|
58
70
|
```
|
|
59
71
|
|
|
60
72
|
---
|
|
61
73
|
|
|
62
74
|
## Command Reference
|
|
63
75
|
|
|
64
|
-
###
|
|
76
|
+
### Terminal Commands (Initialization Only)
|
|
65
77
|
|
|
66
78
|
| Command | Description | Example |
|
|
67
79
|
|---------|-------------|---------|
|
|
68
80
|
| `vibe init` | Initialize Vibe in current project | `vibe init` |
|
|
69
|
-
| `vibe
|
|
70
|
-
| `vibe
|
|
71
|
-
| `vibe tasks <name>` | Break down into executable tasks | `vibe tasks "user authentication"` |
|
|
72
|
-
| `vibe run <task>` | Execute specific task with auto-generated guide | `vibe run "Task 1-1"` |
|
|
73
|
-
| `vibe run --phase <N>` | Execute all tasks in phase N | `vibe run --phase 1` |
|
|
74
|
-
| `vibe run --all` | Execute all tasks sequentially | `vibe run --all` |
|
|
75
|
-
| `vibe verify <name>` | Verify implementation against SPEC | `vibe verify "user authentication"` |
|
|
81
|
+
| `vibe init <name>` | Create new project with Vibe | `vibe init my-app` |
|
|
82
|
+
| `vibe help` | Show help message | `vibe help` |
|
|
76
83
|
|
|
77
|
-
###
|
|
84
|
+
### Claude Code Slash Commands (Development)
|
|
85
|
+
|
|
86
|
+
#### Core Workflow
|
|
78
87
|
|
|
79
88
|
| Command | Description | Example |
|
|
80
89
|
|---------|-------------|---------|
|
|
81
|
-
|
|
|
82
|
-
|
|
|
83
|
-
|
|
|
84
|
-
|
|
|
85
|
-
|
|
|
86
|
-
| `vibe diagram` | Generate architecture diagram (Mermaid) | `vibe diagram` |
|
|
87
|
-
| `vibe diagram --er` | Generate ERD diagram | `vibe diagram --er` |
|
|
88
|
-
| `vibe diagram --flow` | Generate flowchart | `vibe diagram --flow` |
|
|
89
|
-
|
|
90
|
-
### Utility Commands
|
|
91
|
-
|
|
92
|
-
| Command | Description |
|
|
93
|
-
|---------|-------------|
|
|
94
|
-
| `vibe agents` | List available AI agents |
|
|
95
|
-
| `vibe skills` | List installed skill modules |
|
|
96
|
-
| `vibe help` | Show command help |
|
|
97
|
-
|
|
98
|
-
---
|
|
90
|
+
| `/vibe.spec <name>` | Create SPEC through natural conversation (auto-detects project type, suggests tech stack & design) | `/vibe.spec "user authentication"` |
|
|
91
|
+
| `/vibe.plan <name>` | Generate technical implementation plan | `/vibe.plan "user authentication"` |
|
|
92
|
+
| `/vibe.tasks <name>` | Break down into executable tasks | `/vibe.tasks "user authentication"` |
|
|
93
|
+
| `/vibe.run <task>` | Execute specific task with auto-generated guide | `/vibe.run "Task 1-1"` |
|
|
94
|
+
| `/vibe.verify <name>` | Verify implementation against SPEC | `/vibe.verify "user authentication"` |
|
|
99
95
|
|
|
100
|
-
|
|
96
|
+
#### Analysis & Tools
|
|
101
97
|
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
|
105
|
-
|
|
106
|
-
| `/vibe.
|
|
107
|
-
| `/vibe.plan "feature"` | Generate plan |
|
|
108
|
-
| `/vibe.tasks "feature"` | Generate tasks |
|
|
109
|
-
| `/vibe.run "Task 1-1"` | Execute task |
|
|
110
|
-
| `/vibe.verify "feature"` | Verify implementation |
|
|
111
|
-
| `/vibe.analyze` | Analyze project |
|
|
112
|
-
| `/vibe.ui "description"` | Preview UI |
|
|
113
|
-
| `/vibe.diagram --er` | Generate diagram |
|
|
98
|
+
| Command | Description | Example |
|
|
99
|
+
|---------|-------------|---------|
|
|
100
|
+
| `/vibe.analyze` | Comprehensive project analysis | `/vibe.analyze` |
|
|
101
|
+
| `/vibe.ui <description>` | Generate ASCII UI mockup | `/vibe.ui "login form"` |
|
|
102
|
+
| `/vibe.diagram --er` | Generate diagrams (architecture, ERD, flow) | `/vibe.diagram --er` |
|
|
114
103
|
|
|
115
104
|
---
|
|
116
105
|
|
|
@@ -246,71 +235,142 @@ Vibe uses EARS (Easy Approach to Requirements Syntax):
|
|
|
246
235
|
|
|
247
236
|
## Workflow Example
|
|
248
237
|
|
|
249
|
-
### 1.
|
|
238
|
+
### 1. Initialize Project (Terminal)
|
|
250
239
|
|
|
251
240
|
```bash
|
|
252
|
-
$ vibe
|
|
241
|
+
$ vibe init
|
|
242
|
+
π§ MCP μλ² νμΈ μ€...
|
|
243
|
+
β
vibe MCP μλ² λ±λ‘ μλ£
|
|
244
|
+
β
vibe μ΄κΈ°ν μλ£!
|
|
245
|
+
|
|
246
|
+
μμ±λ ꡬ쑰:
|
|
247
|
+
.vibe/
|
|
248
|
+
βββ config.json
|
|
249
|
+
βββ constitution.md
|
|
250
|
+
βββ specs/
|
|
251
|
+
βββ plans/
|
|
252
|
+
βββ tasks/
|
|
253
|
+
```
|
|
254
|
+
|
|
255
|
+
### 2. Create Specification (Claude Code)
|
|
253
256
|
|
|
254
|
-
|
|
255
|
-
Q2. Who: All users (100k+ DAU)
|
|
256
|
-
Q3. What: 6-category notification toggle system
|
|
257
|
-
Q4. How: P95 < 500ms, Redis caching, rate limiting
|
|
258
|
-
Q5. When: 3 days (24 hours development time)
|
|
259
|
-
Q6. With What: FastAPI + Flutter + PostgreSQL + FCM
|
|
257
|
+
**Note**: Examples shown in English. Claude responds in the language set in `.vibe/config.json` (default: Korean).
|
|
260
258
|
|
|
261
|
-
β
Created: .vibe/specs/push-notification-settings.md
|
|
262
259
|
```
|
|
260
|
+
User: /vibe.spec "push notification settings"
|
|
261
|
+
|
|
262
|
+
Claude (Specification Agent):
|
|
263
|
+
[Analyzing source code]
|
|
264
|
+
- Backend: Python (FastAPI)
|
|
265
|
+
- Frontend: Flutter 3.24+
|
|
266
|
+
- Database: PostgreSQL 17
|
|
263
267
|
|
|
264
|
-
|
|
268
|
+
Existing project detected! Is this tech stack correct?
|
|
265
269
|
|
|
266
|
-
|
|
267
|
-
|
|
270
|
+
User: Yes
|
|
271
|
+
|
|
272
|
+
Claude:
|
|
273
|
+
What types of notifications do you want to manage?
|
|
274
|
+
|
|
275
|
+
User: Comments, likes, follows, announcements, events, marketing
|
|
276
|
+
|
|
277
|
+
Claude:
|
|
278
|
+
Do you need just ON/OFF toggle for each category, or detailed settings too?
|
|
279
|
+
|
|
280
|
+
1. ON/OFF only
|
|
281
|
+
2. Detailed settings (time, frequency, etc.)
|
|
282
|
+
3. Both
|
|
283
|
+
|
|
284
|
+
Or you can describe directly.
|
|
285
|
+
|
|
286
|
+
User: 1
|
|
287
|
+
|
|
288
|
+
Claude:
|
|
289
|
+
Which push notification service would you like to use?
|
|
290
|
+
|
|
291
|
+
1. Firebase Cloud Messaging (FCM) - Free, easy Flutter integration
|
|
292
|
+
2. OneSignal - Multi-platform, dashboard
|
|
293
|
+
3. Custom implementation
|
|
294
|
+
|
|
295
|
+
Or you can describe directly.
|
|
296
|
+
|
|
297
|
+
User: We're already using FCM
|
|
298
|
+
|
|
299
|
+
Claude:
|
|
300
|
+
Great! Which design reference would you like to follow?
|
|
268
301
|
|
|
269
|
-
|
|
302
|
+
1. iOS Settings > Notifications (toggle + grouping)
|
|
303
|
+
2. Slack notification settings (category-based)
|
|
304
|
+
3. Twitter notification settings (simple list)
|
|
305
|
+
|
|
306
|
+
Or you can describe directly.
|
|
307
|
+
|
|
308
|
+
User: 1
|
|
309
|
+
|
|
310
|
+
...
|
|
311
|
+
|
|
312
|
+
β
SPEC document created!
|
|
313
|
+
π .vibe/specs/push-notification-settings.md
|
|
314
|
+
```
|
|
315
|
+
|
|
316
|
+
### 3. Generate Plan (Claude Code)
|
|
317
|
+
|
|
318
|
+
```
|
|
319
|
+
User: /vibe.plan "push notification settings"
|
|
320
|
+
|
|
321
|
+
Claude (Planning Agent):
|
|
322
|
+
SPECμ λΆμνμ¬ κΈ°μ κ³νμ μμ±νκ² μ΅λλ€.
|
|
323
|
+
|
|
324
|
+
β
PLAN λ¬Έμ μμ± μλ£!
|
|
325
|
+
π .vibe/plans/push-notification-settings.md
|
|
270
326
|
|
|
271
327
|
Summary:
|
|
272
328
|
- 3 Phases: Backend β Frontend β FCM Integration
|
|
273
329
|
- Timeline: 24 hours (3 days)
|
|
274
330
|
- Cost: +$0.50/month (Redis + FCM)
|
|
275
|
-
- Stack Reuse: 100% existing infrastructure
|
|
276
331
|
```
|
|
277
332
|
|
|
278
|
-
###
|
|
333
|
+
### 4. Decompose Tasks (Claude Code)
|
|
279
334
|
|
|
280
|
-
```
|
|
281
|
-
|
|
335
|
+
```
|
|
336
|
+
User: /vibe.tasks "push notification settings"
|
|
337
|
+
|
|
338
|
+
Claude (Task Agent):
|
|
339
|
+
PLANμ κΈ°λ°μΌλ‘ Taskλ₯Ό μμ±νκ² μ΅λλ€.
|
|
282
340
|
|
|
283
|
-
β
|
|
341
|
+
β
TASKS λ¬Έμ μμ± μλ£!
|
|
342
|
+
π .vibe/tasks/push-notification-settings.md
|
|
284
343
|
|
|
285
344
|
Task Breakdown:
|
|
286
345
|
- Total: 19 tasks
|
|
287
346
|
- Phase 1 (Backend): 8 tasks
|
|
288
347
|
- Phase 2 (Frontend): 8 tasks
|
|
289
348
|
- Phase 3 (FCM): 3 tasks
|
|
290
|
-
- Dependency graph included
|
|
291
349
|
```
|
|
292
350
|
|
|
293
|
-
###
|
|
351
|
+
### 5. Execute Tasks (Claude Code)
|
|
294
352
|
|
|
295
|
-
```
|
|
296
|
-
|
|
353
|
+
```
|
|
354
|
+
User: /vibe.run "Task 1-1"
|
|
297
355
|
|
|
298
|
-
|
|
356
|
+
Claude:
|
|
357
|
+
Task 1-1 - Database Migrationμ μ€ννκ² μ΅λλ€.
|
|
299
358
|
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
4. Verify: Run `alembic upgrade head`
|
|
305
|
-
5. Update status: β¬ β β
|
|
359
|
+
1. ꡬν κ°μ΄λ μμ± (.vibe/guides/task-1-1.md)
|
|
360
|
+
2. Migration νμΌ μμ±
|
|
361
|
+
3. Acceptance Criteria κ²μ¦
|
|
362
|
+
4. Task μν μ
λ°μ΄νΈ
|
|
306
363
|
|
|
307
364
|
β
Task 1-1 completed
|
|
308
365
|
```
|
|
309
366
|
|
|
310
|
-
###
|
|
367
|
+
### 6. Code Analysis (Claude Code)
|
|
311
368
|
|
|
312
|
-
```
|
|
313
|
-
|
|
369
|
+
```
|
|
370
|
+
User: /vibe.analyze
|
|
371
|
+
|
|
372
|
+
Claude:
|
|
373
|
+
νλ‘μ νΈ μ 체λ₯Ό λΆμνκ² μ΅λλ€.
|
|
314
374
|
|
|
315
375
|
π Code Quality Report
|
|
316
376
|
|
|
@@ -325,15 +385,14 @@ Recommendations:
|
|
|
325
385
|
1. Refactor src/service.py into 3 modules
|
|
326
386
|
2. Apply Dependency Injection pattern
|
|
327
387
|
3. Extract unrelated utilities from src/utils.py
|
|
328
|
-
|
|
329
|
-
Report saved: .vibe/reports/analysis-2025-11-17.md
|
|
330
388
|
```
|
|
331
389
|
|
|
332
|
-
###
|
|
390
|
+
### 7. UI Mockup (Claude Code)
|
|
333
391
|
|
|
334
|
-
```
|
|
335
|
-
|
|
392
|
+
```
|
|
393
|
+
User: /vibe.ui "login form"
|
|
336
394
|
|
|
395
|
+
Claude:
|
|
337
396
|
βββββββββββββββββββββββββββββββββββββββββββ
|
|
338
397
|
β Welcome Back β
|
|
339
398
|
βββββββββββββββββββββββββββββββββββββββββββ€
|
|
@@ -353,11 +412,7 @@ $ vibe ui "login form with email, password, and submit button"
|
|
|
353
412
|
βββββββββββββββββββββββββββββββββββββββββββ
|
|
354
413
|
|
|
355
414
|
Required Components:
|
|
356
|
-
-
|
|
357
|
-
- EmailInput.tsx (Email field)
|
|
358
|
-
- PasswordInput.tsx (Password field with masking)
|
|
359
|
-
- Button.tsx (Submit button)
|
|
360
|
-
- LoginForm.tsx (Form container)
|
|
415
|
+
- EmailInput.tsx, PasswordInput.tsx, Button.tsx
|
|
361
416
|
```
|
|
362
417
|
|
|
363
418
|
---
|
|
@@ -370,16 +425,16 @@ Create `CLAUDE.md` in your project root to enable automatic tech stack detection
|
|
|
370
425
|
|
|
371
426
|
### 2. Execute Phase by Phase
|
|
372
427
|
|
|
373
|
-
|
|
428
|
+
Execute and verify each phase independently in Claude Code:
|
|
374
429
|
|
|
375
|
-
```
|
|
376
|
-
vibe
|
|
430
|
+
```
|
|
431
|
+
/vibe.run --phase 1 # Backend development
|
|
377
432
|
# Verify, test, commit
|
|
378
433
|
|
|
379
|
-
vibe
|
|
434
|
+
/vibe.run --phase 2 # Frontend development
|
|
380
435
|
# Verify, test, commit
|
|
381
436
|
|
|
382
|
-
vibe
|
|
437
|
+
/vibe.run --phase 3 # Integration
|
|
383
438
|
# Verify, test, commit
|
|
384
439
|
```
|
|
385
440
|
|
|
@@ -389,12 +444,12 @@ Each task includes acceptance criteria. Ensure all criteria pass before marking
|
|
|
389
444
|
|
|
390
445
|
### 4. Leverage MCP Tools
|
|
391
446
|
|
|
392
|
-
Use analysis commands before refactoring:
|
|
447
|
+
Use analysis commands in Claude Code before refactoring:
|
|
393
448
|
|
|
394
|
-
```
|
|
395
|
-
vibe
|
|
396
|
-
vibe
|
|
397
|
-
vibe
|
|
449
|
+
```
|
|
450
|
+
/vibe.analyze --code # Identify complexity hotspots
|
|
451
|
+
/vibe.analyze --deps # Check for outdated/vulnerable packages
|
|
452
|
+
/vibe.analyze --arch # Detect circular dependencies
|
|
398
453
|
```
|
|
399
454
|
|
|
400
455
|
---
|