@su-record/vibe 0.2.0 → 0.4.0

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 (40) hide show
  1. package/.claude/agents/simplifier.md +120 -0
  2. package/.claude/commands/vibe.reason.md +302 -0
  3. package/.claude/commands/vibe.run.md +133 -113
  4. package/.claude/commands/vibe.spec.md +143 -218
  5. package/.claude/commands/vibe.verify.md +7 -0
  6. package/.claude/settings.local.json +24 -2
  7. package/CLAUDE.md +41 -0
  8. package/README.md +182 -440
  9. package/bin/vibe +167 -152
  10. package/package.json +3 -6
  11. package/templates/hooks-template.json +26 -0
  12. package/.claude/commands/vibe.plan.md +0 -81
  13. package/.claude/commands/vibe.tasks.md +0 -83
  14. package/agents/backend-python-expert.md +0 -453
  15. package/agents/database-postgres-expert.md +0 -538
  16. package/agents/frontend-flutter-expert.md +0 -487
  17. package/agents/frontend-react-expert.md +0 -424
  18. package/agents/quality-reviewer.md +0 -542
  19. package/agents/specification-agent.md +0 -505
  20. package/scripts/install-mcp.js +0 -74
  21. package/scripts/install.sh +0 -70
  22. package/templates/plan-template.md +0 -237
  23. package/templates/tasks-template.md +0 -132
  24. /package/{skills → .agent/rules}/core/communication-guide.md +0 -0
  25. /package/{skills → .agent/rules}/core/development-philosophy.md +0 -0
  26. /package/{skills → .agent/rules}/core/quick-start.md +0 -0
  27. /package/{skills → .agent/rules}/languages/dart-flutter.md +0 -0
  28. /package/{skills → .agent/rules}/languages/python-fastapi.md +0 -0
  29. /package/{skills → .agent/rules}/languages/typescript-nextjs.md +0 -0
  30. /package/{skills → .agent/rules}/languages/typescript-react-native.md +0 -0
  31. /package/{skills → .agent/rules}/languages/typescript-react.md +0 -0
  32. /package/{skills → .agent/rules}/quality/bdd-contract-testing.md +0 -0
  33. /package/{skills → .agent/rules}/quality/checklist.md +0 -0
  34. /package/{skills → .agent/rules}/quality/testing-strategy.md +0 -0
  35. /package/{skills → .agent/rules}/standards/anti-patterns.md +0 -0
  36. /package/{skills → .agent/rules}/standards/code-structure.md +0 -0
  37. /package/{skills → .agent/rules}/standards/complexity-metrics.md +0 -0
  38. /package/{skills → .agent/rules}/standards/naming-conventions.md +0 -0
  39. /package/{skills → .agent/rules}/tools/mcp-hi-ai-guide.md +0 -0
  40. /package/{skills → .agent/rules}/tools/mcp-workflow.md +0 -0
package/README.md CHANGED
@@ -1,26 +1,23 @@
1
1
  # Vibe
2
2
 
3
- **SPEC-driven AI coding framework with integrated MCP tooling**
3
+ **SPEC-driven AI coding framework (Claude Code 전용)**
4
4
 
5
- Transform natural language requirements into production-ready code through structured specification, planning, and task decomposition.
5
+ SPEC 문서 하나로 AI가 바로 구현하는 2-step 워크플로우.
6
6
 
7
7
  [![npm version](https://img.shields.io/npm/v/@su-record/vibe.svg)](https://www.npmjs.com/package/@su-record/vibe)
8
8
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
9
- [![Smithery Badge](https://smithery.ai/badge/@su-record/hi-ai)](https://smithery.ai/protocol/@su-record/hi-ai)
10
- [![MCP Tools](https://img.shields.io/badge/MCP_Tools-38-blue.svg)](https://github.com/su-record/hi-ai)
9
+ [![MCP Tools](https://img.shields.io/badge/MCP_Tools-36-blue.svg)](https://github.com/su-record/hi-ai)
11
10
 
12
11
  ---
13
12
 
14
13
  ## Features
15
14
 
16
- - **Claude Code Optimized**: Built specifically for Claude Code with native slash commands and MCP integration
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)
19
- - **Automated Planning**: Generate technical implementation plans with architecture, cost analysis, and timeline
20
- - **Task Decomposition**: Break down features into phase-based, dependency-aware tasks
21
- - **Powered by @su-record/hi-ai**: 38 MCP tools combining skills and hi-ai for code analysis, quality validation, and insights
22
- - **Multi-language Support**: English and Korean interface
23
- - **AI Agent System**: 7 specialized agents for different tech stacks
15
+ - **Claude Code 전용**: 네이티브 슬래시 커맨드 + MCP 통합
16
+ - **2-Step 워크플로우**: SPEC RUN VERIFY (PLAN/TASKS 불필요)
17
+ - **PTCF 구조**: Persona, Task, Context, Format - Gemini 프롬프트 최적화
18
+ - **코딩 규칙 내장**: `.agent/rules/` - 품질 기준, 복잡도 제한, 안티패턴
19
+ - **자동 품질 검증**: code-simplifier 서브에이전트
20
+ - **36개 MCP 도구**: @su-record/hi-ai 통합
24
21
 
25
22
  ---
26
23
 
@@ -30,522 +27,267 @@ Transform natural language requirements into production-ready code through struc
30
27
  npm install -g @su-record/vibe
31
28
  ```
32
29
 
33
- This installs:
34
- - Vibe CLI (for initialization only)
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.
39
-
40
30
  ---
41
31
 
42
32
  ## Quick Start
43
33
 
44
- ### 1. Initialize Project (Terminal)
34
+ ### 1. 프로젝트 초기화 (터미널)
45
35
 
46
36
  ```bash
47
- # Option 1: Initialize in existing project
37
+ # 기존 프로젝트에서
48
38
  vibe init
49
39
 
50
- # Option 2: Create new project
51
- vibe init my-new-project
52
- cd my-new-project
40
+ # 프로젝트 생성
41
+ vibe init my-project
42
+ cd my-project
53
43
  ```
54
44
 
55
- This will:
56
- - Register MCP server for the project directory
57
- - Create `.vibe/` folder structure
58
- - Install agents, skills, and templates
59
-
60
- ### 2. Use Slash Commands (Claude Code)
61
-
62
- Open Claude Code in your project directory and use slash commands:
45
+ ### 2. 슬래시 커맨드 사용 (Claude Code)
63
46
 
64
47
  ```
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"
48
+ /vibe.spec "로그인 기능" # SPEC 작성 (대화형)
49
+ /vibe.run "로그인 기능" # 구현 실행
50
+ /vibe.verify "로그인 기능" # 검증
70
51
  ```
71
52
 
72
53
  ---
73
54
 
74
- ## Command Reference
75
-
76
- ### Terminal Commands (Initialization Only)
77
-
78
- | Command | Description | Example |
79
- |---------|-------------|---------|
80
- | `vibe init` | Initialize Vibe in current project | `vibe init` |
81
- | `vibe init <name>` | Create new project with Vibe | `vibe init my-app` |
82
- | `vibe help` | Show help message | `vibe help` |
83
-
84
- ### Claude Code Slash Commands (Development)
85
-
86
- #### Core Workflow
87
-
88
- | Command | Description | Example |
89
- |---------|-------------|---------|
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"` |
95
-
96
- #### Analysis & Tools
97
-
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` |
103
-
104
- ---
105
-
106
- ## MCP Integration
107
-
108
- Vibe includes 38 MCP tools across multiple categories:
109
-
110
- ### Code Analysis
111
- - `analyze_complexity` - Cyclomatic and cognitive complexity metrics
112
- - `validate_code_quality` - Code quality scoring and recommendations
113
- - `check_coupling_cohesion` - Module coupling and cohesion analysis
114
-
115
- ### Project Intelligence
116
- - `find_symbol` - Locate function/class definitions
117
- - `find_references` - Find all usages of symbols
55
+ ## Workflow
118
56
 
119
- ### Thinking & Planning
120
- - `create_thinking_chain` - Generate step-by-step reasoning
121
- - `step_by_step_analysis` - Detailed problem breakdown
122
- - `analyze_problem` - Structured problem analysis
123
-
124
- ### Quality & Standards
125
- - `apply_quality_rules` - Apply coding standards
126
- - `suggest_improvements` - Code improvement recommendations
127
-
128
- ### UI & Design
129
- - `preview_ui_ascii` - Generate ASCII UI mockups
130
-
131
- ### Memory & Context
132
- - `save_memory` - Store project context
133
- - `recall_memory` - Retrieve stored information
134
- - `auto_save_context` - Automatic context checkpointing
135
-
136
- **MCP Server Registration:**
137
-
138
- The MCP server is automatically registered when you run `vibe init` in your project. This registers the server **locally for your project only**, not globally.
139
-
140
- **Verify MCP server:**
141
- ```bash
142
- # Run this in your project directory
143
- claude mcp list
144
- # Expected output:
145
- # vibe: node /path/to/@su-record/vibe/node_modules/@su-record/hi-ai/dist/index.js - ✓ Connected
146
57
  ```
147
-
148
- **Important:** Each project that uses Vibe must run `vibe init` to register the MCP server for that specific project.
149
-
150
- ---
151
-
152
- ## Configuration
153
-
154
- ### .vibe/config.json
155
-
156
- ```json
157
- {
158
- "language": "ko",
159
- "agents": {
160
- "default": "backend-python-expert"
161
- },
162
- "mcp": {
163
- "enabled": true,
164
- "servers": ["vibe"]
165
- }
166
- }
167
- ```
168
-
169
- ### CLAUDE.md (Recommended)
170
-
171
- Place this file in your project root to enable automatic tech stack detection:
172
-
173
- ```markdown
174
- # CLAUDE.md
175
-
176
- ## Tech Stack
177
-
178
- ### Backend
179
- - Framework: FastAPI 0.104+
180
- - Database: PostgreSQL 17
181
- - Cache: Redis 7.2
182
-
183
- ### Frontend
184
- - Framework: Flutter 3.24+
185
- - State Management: Provider
58
+ ┌─────────────────────────────────────────────────────┐
59
+ │ /vibe.spec "기능명" │
60
+ │ ↓ 대화형 요구사항 수집 │
61
+ │ ↓ .vibe/specs/{기능명}.md (PTCF 구조) │
62
+ │ ↓ .vibe/features/{기능명}.feature (BDD) │
63
+ ├─────────────────────────────────────────────────────┤
64
+ │ /vibe.run "기능명" │
65
+ │ ↓ SPEC 읽고 바로 구현 │
66
+ │ ↓ Phase별 순차 실행 │
67
+ │ ↓ .agent/rules/ 규칙 준수 │
68
+ ├─────────────────────────────────────────────────────┤
69
+ /vibe.verify "기능명"
70
+ Acceptance Criteria 검증 │
71
+ │ ↓ 품질 점수 (A+ ~ F) │
72
+ └─────────────────────────────────────────────────────┘
186
73
  ```
187
74
 
188
75
  ---
189
76
 
190
- ## Specification Format
77
+ ## Commands
191
78
 
192
- Vibe uses EARS (Easy Approach to Requirements Syntax):
79
+ ### 터미널 (초기화만)
193
80
 
194
- ```markdown
195
- # SPEC: Feature Name
81
+ | 명령어 | 설명 |
82
+ |--------|------|
83
+ | `vibe init` | 현재 폴더에 vibe 초기화 |
84
+ | `vibe init <name>` | 새 프로젝트 생성 |
85
+ | `vibe help` | 도움말 |
86
+ | `vibe version` | 버전 정보 |
196
87
 
197
- ## Metadata
198
- - Created: 2025-01-17
199
- - Priority: HIGH
200
- - Language: en
201
-
202
- ## Requirements
88
+ ### Claude Code 슬래시 커맨드
203
89
 
204
- ### REQ-001: Requirement Title
205
- **WHEN** user performs action X
206
- **THEN** system SHALL perform Y
90
+ #### 핵심 워크플로우
207
91
 
208
- #### Acceptance Criteria
209
- - [ ] Criterion 1
210
- - [ ] Criterion 2
211
- - [ ] Criterion 3
212
-
213
- ### REQ-002: Another Requirement
214
- **WHERE** condition A exists
215
- **AND** condition B is true
216
- **THEN** system SHALL perform Z
217
- ```
218
-
219
- ---
92
+ | 명령어 | 설명 |
93
+ |--------|------|
94
+ | `/vibe.spec "기능명"` | SPEC 작성 (PTCF 구조) |
95
+ | `/vibe.run "기능명"` | 구현 실행 |
96
+ | `/vibe.run "기능명" --phase N` | 특정 Phase만 실행 |
97
+ | `/vibe.verify "기능명"` | 검증 |
220
98
 
221
- ## AI Agents
99
+ #### 분석 & 도구
222
100
 
223
- | Agent | Specialization | Tech Stack |
224
- |-------|----------------|------------|
225
- | Specification Agent | Requirements gathering through 6-question framework | Language-agnostic |
226
- | Planning Agent | Technical architecture and cost analysis | Cross-stack |
227
- | Task Agent | Phase-based task decomposition | Cross-stack |
228
- | Backend Python Expert | Python/FastAPI implementation | Python 3.11+, FastAPI, SQLAlchemy |
229
- | Frontend Flutter Expert | Flutter/Dart implementation | Flutter 3.24+, Dart 3.5+ |
230
- | Frontend React Expert | React/Next.js implementation | React 18+, Next.js 14+ |
231
- | Database PostgreSQL Expert | PostgreSQL/PostGIS design | PostgreSQL 17, PostGIS 3.4+ |
232
- | Quality Reviewer | Code review and quality validation | Multi-language |
101
+ | 명령어 | 설명 |
102
+ |--------|------|
103
+ | `/vibe.analyze` | 프로젝트 분석 |
104
+ | `/vibe.reason "문제"` | 체계적 추론 (9단계) |
105
+ | `/vibe.ui "설명"` | ASCII UI 미리보기 |
106
+ | `/vibe.diagram` | 다이어그램 생성 |
233
107
 
234
108
  ---
235
109
 
236
- ## Workflow Example
110
+ ## Project Structure
237
111
 
238
- ### 1. Initialize Project (Terminal)
112
+ `vibe init` 실행 생성되는 구조:
239
113
 
240
- ```bash
241
- $ vibe init
242
- 🔧 MCP 서버 확인 중...
243
- ✅ vibe MCP 서버 등록 완료
244
- ✅ vibe 초기화 완료!
245
-
246
- 생성된 구조:
247
- .vibe/
248
- ├── config.json
249
- ├── constitution.md
250
- ├── specs/ # SPEC documents (EARS format)
251
- ├── features/ # BDD Feature files (Gherkin)
252
- ├── plans/ # Technical plans
253
- └── tasks/ # Task breakdowns
254
114
  ```
255
-
256
- ### 2. Create Specification (Claude Code)
257
-
258
- **Note**: Examples shown in English. Claude responds in the language set in `.vibe/config.json` (default: Korean).
259
-
115
+ project/
116
+ ├── CLAUDE.md # 프로젝트 컨텍스트
117
+ ├── .claude/
118
+ │ ├── commands/ # 슬래시 커맨드 (7개)
119
+ │ └── agents/ # 서브에이전트 (simplifier)
120
+ ├── .agent/rules/ # 코딩 규칙
121
+ │ ├── core/ # 핵심 원칙 (수술적 정밀도, DRY, SRP)
122
+ │ ├── quality/ # 품질 체크리스트
123
+ │ ├── standards/ # 복잡도, 네이밍, 안티패턴
124
+ │ ├── languages/ # 언어별 규칙
125
+ │ └── tools/ # MCP 가이드
126
+ └── .vibe/
127
+ ├── config.json # 프로젝트 설정
128
+ ├── constitution.md # 프로젝트 원칙
129
+ ├── specs/ # SPEC 문서들
130
+ └── features/ # BDD Feature 파일들
260
131
  ```
261
- User: /vibe.spec "push notification settings"
262
-
263
- Claude (Specification Agent):
264
- [Analyzing source code]
265
- - Backend: Python (FastAPI)
266
- - Frontend: Flutter 3.24+
267
- - Database: PostgreSQL 17
268
-
269
- Existing project detected! Is this tech stack correct?
270
-
271
- User: Yes
272
-
273
- Claude:
274
- What types of notifications do you want to manage?
275
-
276
- User: Comments, likes, follows, announcements, events, marketing
277
-
278
- Claude:
279
- Do you need just ON/OFF toggle for each category, or detailed settings too?
280
-
281
- 1. ON/OFF only
282
- 2. Detailed settings (time, frequency, etc.)
283
- 3. Both
284
132
 
285
- Or you can describe directly.
286
-
287
- User: 1
288
-
289
- Claude:
290
- Which push notification service would you like to use?
291
-
292
- 1. Firebase Cloud Messaging (FCM) - Free, easy Flutter integration
293
- 2. OneSignal - Multi-platform, dashboard
294
- 3. Custom implementation
295
-
296
- Or you can describe directly.
297
-
298
- User: We're already using FCM
299
-
300
- Claude:
301
- Great! Which design reference would you like to follow?
302
-
303
- 1. iOS Settings > Notifications (toggle + grouping)
304
- 2. Slack notification settings (category-based)
305
- 3. Twitter notification settings (simple list)
133
+ ---
306
134
 
307
- Or you can describe directly.
308
-
309
- User: 1
135
+ ## SPEC Document (PTCF Structure)
310
136
 
137
+ ```markdown
138
+ # SPEC: {기능명}
139
+
140
+ ## Persona
141
+ <role>
142
+ AI의 역할과 전문성 정의
143
+ </role>
144
+
145
+ ## Context
146
+ <context>
147
+ - 배경, 목적
148
+ - 기술 스택
149
+ - 관련 코드
150
+ - 디자인 레퍼런스
151
+ </context>
152
+
153
+ ## Task
154
+ <task>
155
+ ### Phase 1: {단계명}
156
+ 1. [ ] 작업 1
157
+ 2. [ ] 작업 2
158
+
159
+ ### Phase 2: {단계명}
311
160
  ...
312
-
313
- ✅ SPEC document created!
314
- 📄 .vibe/specs/push-notification-settings.md
315
- 📄 .vibe/features/push-notification-settings.feature (BDD scenarios)
316
- ```
317
-
318
- ### 3. Generate Plan (Claude Code)
319
-
320
- ```
321
- User: /vibe.plan "push notification settings"
322
-
323
- Claude (Planning Agent):
324
- SPEC을 분석하여 기술 계획을 작성하겠습니다.
325
-
326
- ✅ PLAN 문서 작성 완료!
327
- 📄 .vibe/plans/push-notification-settings.md
328
-
329
- Summary:
330
- - 3 Phases: Backend Frontend → FCM Integration
331
- - Timeline: 28 hours (3.5 days)
332
- - Cost: +$0.50/month (Redis + FCM)
333
- - Testing: BDD (pytest-bdd) + Contract Testing (Pact)
334
- ```
335
-
336
- ### 4. Decompose Tasks (Claude Code)
337
-
338
- ```
339
- User: /vibe.tasks "push notification settings"
340
-
341
- Claude (Task Agent):
342
- PLAN을 기반으로 Task를 생성하겠습니다.
343
-
344
- ✅ TASKS 문서 작성 완료!
345
- 📄 .vibe/tasks/push-notification-settings.md
346
-
347
- Task Breakdown:
348
- - Total: 23 tasks
349
- - Phase 1 (Backend): 9 tasks (includes Contract Provider)
350
- - Phase 2 (Frontend): 9 tasks (includes Contract Consumer)
351
- - Phase 3 (Integration): 5 tasks (includes BDD Steps + Contract Verification)
352
- ```
353
-
354
- ### 5. Execute Tasks (Claude Code)
355
-
356
- ```
357
- User: /vibe.run "Task 1-1"
358
-
359
- Claude:
360
- Task 1-1 - Database Migration을 실행하겠습니다.
361
-
362
- 1. 구현 가이드 생성 (.vibe/guides/task-1-1.md)
363
- 2. Migration 파일 생성
364
- 3. Acceptance Criteria 검증
365
- 4. Task 상태 업데이트
366
-
367
- ✅ Task 1-1 completed
368
- ```
369
-
370
- ### 6. Code Analysis (Claude Code)
371
-
372
- ```
373
- User: /vibe.analyze
374
-
375
- Claude:
376
- 프로젝트 전체를 분석하겠습니다.
377
-
378
- 📊 Code Quality Report
379
-
380
- Overall Score: 85/100 (B+)
381
-
382
- Findings:
383
- - High complexity: src/service.py (CC: 15)
384
- - Low cohesion: src/utils.py (0.3)
385
- - Strong coupling: Controller ↔ Service (0.8)
386
-
387
- Recommendations:
388
- 1. Refactor src/service.py into 3 modules
389
- 2. Apply Dependency Injection pattern
390
- 3. Extract unrelated utilities from src/utils.py
391
- ```
392
-
393
- ### 7. UI Mockup (Claude Code)
394
-
395
- ```
396
- User: /vibe.ui "login form"
397
-
398
- Claude:
399
- ┌─────────────────────────────────────────┐
400
- │ Welcome Back │
401
- ├─────────────────────────────────────────┤
402
- │ │
403
- │ ┌─────────────────────┐ │
404
- │ Email: │ │ │
405
- │ └─────────────────────┘ │
406
- │ │
407
- │ ┌─────────────────────┐ │
408
- │ Pass: │ •••••••••••• │ │
409
- │ └─────────────────────┘ │
410
- │ │
411
- │ ┌─────────────────────┐ │
412
- │ │ Sign In │ │
413
- │ └─────────────────────┘ │
414
- │ │
415
- └─────────────────────────────────────────┘
416
-
417
- Required Components:
418
- - EmailInput.tsx, PasswordInput.tsx, Button.tsx
161
+ </task>
162
+
163
+ ## Constraints
164
+ <constraints>
165
+ - 기존 코드 패턴 준수
166
+ - 에러 메시지 한글화
167
+ </constraints>
168
+
169
+ ## Output Format
170
+ <output_format>
171
+ - 생성할 파일
172
+ - 수정할 파일
173
+ - 검증 명령어
174
+ </output_format>
175
+
176
+ ## Acceptance Criteria
177
+ <acceptance>
178
+ - [ ] 검증 기준 1
179
+ - [ ] 검증 기준 2
180
+ </acceptance>
419
181
  ```
420
182
 
421
183
  ---
422
184
 
423
- ## BDD & Contract Testing Workflow
185
+ ## Coding Rules (.agent/rules/)
424
186
 
425
- Vibe integrates BDD (Behavior-Driven Development) and Contract Testing throughout the development lifecycle:
187
+ ### 핵심 원칙
426
188
 
427
- ### Workflow Overview
189
+ - **수술적 정밀도**: 요청받지 않은 코드는 절대 수정하지 않음
190
+ - **한국어 우선**: 모든 커뮤니케이션은 한국어로
191
+ - **DRY**: 반복하지 말고 재사용
192
+ - **SRP**: 하나의 함수는 하나의 목적만
193
+ - **YAGNI**: 필요하지 않으면 만들지 않음
428
194
 
429
- ```
430
- /vibe.spec "feature"
431
- ↓ Generates SPEC (EARS) + Feature file (Gherkin)
195
+ ### 복잡도 기준
432
196
 
433
- /vibe.plan "feature"
434
- ↓ Analyzes Feature file, selects BDD tools (pytest-bdd, Pact, etc.)
197
+ | 메트릭 | 기준 |
198
+ |--------|------|
199
+ | 순환 복잡도 | ≤ 10 |
200
+ | 함수 길이 | ≤ 20줄 |
201
+ | 중첩 깊이 | ≤ 3단계 |
202
+ | 매개변수 | ≤ 5개 |
203
+ | 컴포넌트 JSX | ≤ 50줄 |
435
204
 
436
- /vibe.tasks "feature"
437
- ↓ Creates Contract Testing tasks (Provider, Consumer, Verification)
205
+ ### 품질 등급
438
206
 
439
- /vibe.run "Task X-Y"
440
- ↓ Implements test-first (Contract → Step Definitions → Code)
207
+ | 등급 | 점수 | 설명 |
208
+ |------|------|------|
209
+ | A+ | 95-100 | 완벽 |
210
+ | A | 90-94 | 우수 |
211
+ | B+ | 85-89 | 양호 |
212
+ | B | 80-84 | 개선 권장 |
213
+ | C | 70-79 | 개선 필요 |
214
+ | F | < 70 | 리팩토링 필요 |
441
215
 
442
- /vibe.verify "feature"
443
- ↓ Validates BDD Scenarios + Contract Tests
444
- ```
445
-
446
- ### Generated Files
216
+ ---
447
217
 
448
- - **`.vibe/features/{feature}.feature`** - Gherkin scenarios (Given-When-Then)
449
- - **`tests/steps/`** - BDD step definitions
450
- - **`pacts/` or `contracts/`** - Contract test files (Provider/Consumer)
218
+ ## MCP Integration
451
219
 
452
- ### Testing Tools by Language
220
+ 36개 MCP 도구 포함 (@su-record/hi-ai):
453
221
 
454
- | Language | BDD Tool | Contract Testing |
455
- |----------|----------|------------------|
456
- | Python | pytest-bdd, behave | Pact Python |
457
- | JavaScript/TS | cucumber, jest-cucumber | Pact JS |
458
- | Java/Kotlin | Cucumber JVM | Pact JVM, Spring Cloud Contract |
459
- | Dart/Flutter | gherkin, flutter_gherkin | Pact Dart |
222
+ - **코드 분석**: `analyze_complexity`, `validate_code_quality`
223
+ - **추론**: `apply_reasoning_framework`, `create_thinking_chain`
224
+ - **품질**: `apply_quality_rules`, `suggest_improvements`
225
+ - **UI**: `preview_ui_ascii`
226
+ - **메모리**: `save_memory`, `recall_memory`
460
227
 
461
- ### Example Feature File
228
+ ---
462
229
 
463
- ```gherkin
464
- Feature: Push Notification Settings
230
+ ## Example
465
231
 
466
- Scenario: User enables comment notifications
467
- Given the user is logged in
468
- And the notification settings page is displayed
469
- When the user toggles "Comments" notification to ON
470
- Then the setting should be saved successfully
471
- And the API should return status 200
472
- And the response time should be less than 500ms
473
232
  ```
233
+ User: /vibe.spec "벽돌게임"
474
234
 
475
- ---
476
-
477
- ## Best Practices
235
+ Claude:
236
+ 벽돌게임을 만드시는군요! 어떤 스타일을 생각하고 계신가요?
478
237
 
479
- ### 1. Document Your Tech Stack
238
+ 1. 클래식 벽돌깨기 (Breakout)
239
+ 2. 아르카노이드 (파워업 포함)
240
+ 3. 커스텀 스타일
480
241
 
481
- Create `CLAUDE.md` in your project root to enable automatic tech stack detection and prevent technology drift.
242
+ 또는 직접 설명해주셔도 됩니다.
482
243
 
483
- ### 2. Execute Phase by Phase
244
+ User: 1
484
245
 
485
- Execute and verify each phase independently in Claude Code:
246
+ Claude: 어떤 플랫폼에서 실행하시겠어요?
486
247
 
487
- ```
488
- /vibe.run --phase 1 # Backend development
489
- # Verify, test, commit
248
+ 1. 웹 (브라우저)
249
+ 2. 모바일
250
+ 3. 데스크톱
490
251
 
491
- /vibe.run --phase 2 # Frontend development
492
- # Verify, test, commit
252
+ User: 1
493
253
 
494
- /vibe.run --phase 3 # Integration
495
- # Verify, test, commit
496
- ```
254
+ Claude: 기술 스택을 제안드립니다:
497
255
 
498
- ### 3. Validate Acceptance Criteria
256
+ 1. Phaser.js (추천) - 게임 프레임워크
257
+ 2. Canvas + JavaScript
258
+ 3. PixiJS + Matter.js
499
259
 
500
- Each task includes acceptance criteria. Ensure all criteria pass before marking tasks complete.
260
+ User: 1
501
261
 
502
- ### 4. Leverage MCP Tools
262
+ [대화 계속...]
503
263
 
504
- Use analysis commands in Claude Code before refactoring:
264
+ SPEC 문서 작성 완료!
265
+ 📄 .vibe/specs/brick-game.md
266
+ 📄 .vibe/features/brick-game.feature
505
267
 
506
- ```
507
- /vibe.analyze --code # Identify complexity hotspots
508
- /vibe.analyze --deps # Check for outdated/vulnerable packages
509
- /vibe.analyze --arch # Detect circular dependencies
268
+ 다음 단계: /vibe.run "벽돌게임"
510
269
  ```
511
270
 
512
271
  ---
513
272
 
514
273
  ## Requirements
515
274
 
516
- - **Node.js**: 18.0.0 or higher
517
- - **npm**: 7.0.0 or higher
518
- - **Claude Code**: Required for slash commands
519
-
520
- ---
521
-
522
- ## Contributing
523
-
524
- Contributions are welcome! Please read our contributing guidelines before submitting pull requests.
525
-
526
- ---
527
-
528
- ## License
529
-
530
- MIT License - see [LICENSE](LICENSE) file for details
275
+ - **Node.js**: 18.0.0+
276
+ - **Claude Code**: 필수
531
277
 
532
278
  ---
533
279
 
534
280
  ## Links
535
281
 
536
282
  - **Repository**: [github.com/su-record/vibe](https://github.com/su-record/vibe)
537
- - **Issues**: [GitHub Issues](https://github.com/su-record/vibe/issues)
538
283
  - **MCP Server**: [@su-record/hi-ai](https://github.com/su-record/hi-ai)
539
- - **Documentation**: [Full Documentation](https://github.com/su-record/vibe/wiki)
284
+ - **Issues**: [GitHub Issues](https://github.com/su-record/vibe/issues)
540
285
 
541
286
  ---
542
287
 
543
- ## Support
288
+ ## License
544
289
 
545
- For questions and support:
546
- - Open an issue on GitHub
547
- - Check the documentation wiki
548
- - Review existing discussions
290
+ MIT License
549
291
 
550
292
  ---
551
293