@su-record/vibe 2.2.2 → 2.2.3
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 +152 -152
- 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/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.md +323 -323
- package/LICENSE +21 -21
- package/README.md +724 -721
- package/agents/explorer.md +48 -0
- package/agents/implementer.md +53 -0
- package/agents/research/best-practices-agent.md +139 -0
- package/agents/research/codebase-patterns-agent.md +147 -0
- package/agents/research/framework-docs-agent.md +181 -0
- package/agents/research/security-advisory-agent.md +167 -0
- package/agents/review/architecture-reviewer.md +107 -0
- package/agents/review/complexity-reviewer.md +116 -0
- package/agents/review/data-integrity-reviewer.md +88 -0
- package/agents/review/git-history-reviewer.md +103 -0
- package/agents/review/performance-reviewer.md +86 -0
- package/agents/review/python-reviewer.md +152 -0
- package/agents/review/rails-reviewer.md +139 -0
- package/agents/review/react-reviewer.md +144 -0
- package/agents/review/security-reviewer.md +80 -0
- package/agents/review/simplicity-reviewer.md +140 -0
- package/agents/review/test-coverage-reviewer.md +116 -0
- package/agents/review/typescript-reviewer.md +127 -0
- package/agents/searcher.md +54 -0
- package/agents/simplifier.md +119 -0
- package/agents/tester.md +49 -0
- package/commands/vibe.analyze.md +239 -0
- package/commands/vibe.compound.md +261 -0
- package/commands/vibe.continue.md +88 -0
- package/commands/vibe.diagram.md +178 -0
- package/commands/vibe.e2e.md +266 -0
- package/commands/vibe.reason.md +306 -0
- package/commands/vibe.review.md +324 -0
- package/commands/vibe.run.md +836 -0
- package/commands/vibe.setup.md +97 -0
- package/commands/vibe.spec.md +383 -0
- package/commands/vibe.ui.md +137 -0
- package/commands/vibe.verify.md +238 -0
- package/dist/cli/index.js +389 -389
- package/dist/cli/index.js.map +1 -1
- package/dist/lib/MemoryManager.js +92 -92
- 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/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/package.json +69 -66
- package/skills/git-worktree.md +178 -0
- package/skills/priority-todos.md +236 -0
- package/templates/constitution-template.md +184 -184
- package/templates/contract-backend-template.md +517 -517
- package/templates/contract-frontend-template.md +594 -594
- package/templates/feature-template.md +96 -96
- package/templates/hooks-template.json +103 -103
- package/templates/spec-template.md +199 -199
- package/.claude/vibe/rules/tools/mcp-hi-ai-guide.md +0 -665
- package/.claude/vibe/rules/tools/mcp-workflow.md +0 -51
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
# /vibe.setup
|
|
2
|
+
|
|
3
|
+
vibe 플러그인 MCP 서버 설정
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## 실행 절차
|
|
8
|
+
|
|
9
|
+
### 1. 현재 MCP 서버 상태 확인
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
claude mcp list
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
### 2. context7 설정 (필수)
|
|
16
|
+
|
|
17
|
+
context7이 없으면 설치:
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
claude mcp add context7 -- npx -y @anthropic/context7-mcp@latest
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
### 3. GPT 설정 (선택)
|
|
24
|
+
|
|
25
|
+
GPT 연동이 필요하면:
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
# 1. vibe-gpt MCP 서버 추가
|
|
29
|
+
claude mcp add vibe-gpt -- npx -y @anthropic/vibe-gpt-mcp@latest
|
|
30
|
+
|
|
31
|
+
# 2. OAuth 인증 (브라우저 열림)
|
|
32
|
+
# 첫 사용 시 자동으로 인증 페이지로 이동
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
**용도:**
|
|
36
|
+
- security-advisory-agent: CVE/보안 취약점 DB 지식 보강
|
|
37
|
+
- python-reviewer: Python 코드 리뷰 2nd opinion
|
|
38
|
+
|
|
39
|
+
### 4. Gemini 설정 (선택)
|
|
40
|
+
|
|
41
|
+
Gemini 연동이 필요하면:
|
|
42
|
+
|
|
43
|
+
```bash
|
|
44
|
+
# 1. vibe-gemini MCP 서버 추가
|
|
45
|
+
claude mcp add vibe-gemini -- npx -y @anthropic/vibe-gemini-mcp@latest
|
|
46
|
+
|
|
47
|
+
# 2. OAuth 인증 (브라우저 열림)
|
|
48
|
+
# 첫 사용 시 자동으로 인증 페이지로 이동
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
**용도:**
|
|
52
|
+
- framework-docs-agent: context7 문서 부재 시 웹 검색으로 최신 문서 보강
|
|
53
|
+
|
|
54
|
+
---
|
|
55
|
+
|
|
56
|
+
## 설정 확인
|
|
57
|
+
|
|
58
|
+
설정 후 확인:
|
|
59
|
+
|
|
60
|
+
```bash
|
|
61
|
+
claude mcp list
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
예상 출력:
|
|
65
|
+
```
|
|
66
|
+
context7: connected
|
|
67
|
+
vibe-gpt: connected (optional)
|
|
68
|
+
vibe-gemini: connected (optional)
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
---
|
|
72
|
+
|
|
73
|
+
## 문제 해결
|
|
74
|
+
|
|
75
|
+
### MCP 서버 연결 실패
|
|
76
|
+
|
|
77
|
+
```bash
|
|
78
|
+
# 서버 제거 후 재등록
|
|
79
|
+
claude mcp remove context7
|
|
80
|
+
claude mcp add context7 -- npx -y @anthropic/context7-mcp@latest
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
### OAuth 인증 만료
|
|
84
|
+
|
|
85
|
+
```bash
|
|
86
|
+
# 인증 갱신 (해당 MCP 도구 호출 시 자동 갱신)
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
---
|
|
90
|
+
|
|
91
|
+
## 참고
|
|
92
|
+
|
|
93
|
+
- GPT/Gemini 없이도 vibe는 정상 작동합니다
|
|
94
|
+
- 외부 LLM은 특정 에이전트의 보조 역할만 수행
|
|
95
|
+
- context7만 있어도 대부분의 기능 사용 가능
|
|
96
|
+
|
|
97
|
+
ARGUMENTS: $ARGUMENTS
|
|
@@ -0,0 +1,383 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Create SPEC document with Specification Agent
|
|
3
|
+
argument-hint: "feature name"
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# /vibe.spec
|
|
7
|
+
|
|
8
|
+
Create a SPEC document (Specification Agent).
|
|
9
|
+
|
|
10
|
+
## Usage
|
|
11
|
+
|
|
12
|
+
```
|
|
13
|
+
/vibe.spec "feature-name"
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
## Rules Reference
|
|
17
|
+
|
|
18
|
+
**Must follow `.claude/vibe/rules/`:**
|
|
19
|
+
- `core/development-philosophy.md` - Surgical precision, simplicity
|
|
20
|
+
- `core/quick-start.md` - Korean first, DRY, SRP
|
|
21
|
+
- `core/communication-guide.md` - Communication principles
|
|
22
|
+
|
|
23
|
+
## Description
|
|
24
|
+
|
|
25
|
+
Collect requirements through conversation with the user and create an **AI-executable PTCF structured SPEC document**.
|
|
26
|
+
|
|
27
|
+
> **PTCF**: Persona, Task, Context, Format - Google Gemini prompt optimization framework
|
|
28
|
+
|
|
29
|
+
## External LLM Integration (Optional)
|
|
30
|
+
|
|
31
|
+
When external LLMs are enabled in `.claude/vibe/config.json`, automatically utilize during SPEC creation:
|
|
32
|
+
|
|
33
|
+
```
|
|
34
|
+
/vibe.spec "complex feature"
|
|
35
|
+
↓
|
|
36
|
+
[Claude Opus] Create SPEC draft
|
|
37
|
+
↓
|
|
38
|
+
[GPT enabled?] → Cross-review design via MCP(vibe-gpt)
|
|
39
|
+
↓
|
|
40
|
+
[Gemini enabled?] → UI/UX consultation via MCP(vibe-gemini)
|
|
41
|
+
↓
|
|
42
|
+
[Claude] Finalize SPEC
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
| External LLM | Role | When Used |
|
|
46
|
+
|--------------|------|-----------|
|
|
47
|
+
| GPT 5.2 | Architecture/design review | After SPEC draft completion |
|
|
48
|
+
| Gemini 3 | UI/UX consultation | During design reference discussion |
|
|
49
|
+
|
|
50
|
+
**Activation:**
|
|
51
|
+
```bash
|
|
52
|
+
vibe gpt <api-key> # Enable GPT
|
|
53
|
+
vibe gemini <api-key> # Enable Gemini
|
|
54
|
+
vibe status # Check current settings
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
## Process
|
|
58
|
+
|
|
59
|
+
### 1. Project Analysis
|
|
60
|
+
|
|
61
|
+
**Existing project** (`vibe init`):
|
|
62
|
+
- Source code analysis: `package.json`, `pyproject.toml`, `pubspec.yaml`, `go.mod`, etc.
|
|
63
|
+
- Reference `CLAUDE.md` file (tech stack)
|
|
64
|
+
- Infer framework from file structure
|
|
65
|
+
|
|
66
|
+
**New project** (`vibe init <project-name>`):
|
|
67
|
+
- Suggest tech stack (2-3 options)
|
|
68
|
+
|
|
69
|
+
### 2. Collect Requirements via Conversation
|
|
70
|
+
|
|
71
|
+
**Principles:**
|
|
72
|
+
- Ask **one question at a time**
|
|
73
|
+
- Present options **with numbers** + "Feel free to describe in your own words"
|
|
74
|
+
- **Natural conversation** without fixed order
|
|
75
|
+
|
|
76
|
+
**Required confirmations:**
|
|
77
|
+
- Purpose (Why): Why is it needed?
|
|
78
|
+
- User (Who): Who will use it?
|
|
79
|
+
- Feature scope (What): What features are needed?
|
|
80
|
+
- Tech stack: Confirm existing stack or suggest new
|
|
81
|
+
- Design reference: UI/UX to reference
|
|
82
|
+
|
|
83
|
+
### 3. Parallel Research (v2.1.0) - Run AFTER requirements confirmed
|
|
84
|
+
|
|
85
|
+
**⚠️ IMPORTANT: Research starts ONLY after requirements are confirmed via Q&A**
|
|
86
|
+
|
|
87
|
+
Requirements confirmed when:
|
|
88
|
+
- Feature type decided (e.g., "passkey authentication")
|
|
89
|
+
- Tech stack confirmed (e.g., "React + Supabase")
|
|
90
|
+
- Core requirements collected
|
|
91
|
+
|
|
92
|
+
```
|
|
93
|
+
┌─────────────────────────────────────────────────────────────────┐
|
|
94
|
+
│ 🔍 PARALLEL RESEARCH AGENTS (After requirements confirmed) │
|
|
95
|
+
├─────────────────────────────────────────────────────────────────┤
|
|
96
|
+
│ │
|
|
97
|
+
│ Task 1: best-practices-agent │
|
|
98
|
+
│ └── Best practices for [confirmed feature] + [confirmed stack] │
|
|
99
|
+
│ │
|
|
100
|
+
│ Task 2: framework-docs-agent │
|
|
101
|
+
│ └── Latest docs for [confirmed stack] (via context7) │
|
|
102
|
+
│ │
|
|
103
|
+
│ Task 3: codebase-patterns-agent │
|
|
104
|
+
│ └── Analyze similar patterns in existing codebase │
|
|
105
|
+
│ │
|
|
106
|
+
│ Task 4: security-advisory-agent │
|
|
107
|
+
│ └── Security advisories for [confirmed feature] │
|
|
108
|
+
│ │
|
|
109
|
+
└─────────────────────────────────────────────────────────────────┘
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
**Execution (ALL in parallel):**
|
|
113
|
+
```
|
|
114
|
+
# Generate specific prompts based on confirmed requirements
|
|
115
|
+
Task(model: "haiku", subagent_type: "Explore",
|
|
116
|
+
prompt: "Research best practices for [passkey auth] with [React + Supabase]")
|
|
117
|
+
Task(model: "haiku", subagent_type: "Explore",
|
|
118
|
+
prompt: "Get Supabase Auth + WebAuthn docs from context7")
|
|
119
|
+
Task(model: "haiku", subagent_type: "Explore",
|
|
120
|
+
prompt: "Find existing auth patterns in this codebase")
|
|
121
|
+
Task(model: "haiku", subagent_type: "Explore",
|
|
122
|
+
prompt: "Check OWASP WebAuthn security guidelines")
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
**Research results are reflected in SPEC's Context section.**
|
|
126
|
+
|
|
127
|
+
### 4. Write SPEC Document (PTCF Structure)
|
|
128
|
+
|
|
129
|
+
Create `.claude/vibe/specs/{feature-name}.md`:
|
|
130
|
+
|
|
131
|
+
```markdown
|
|
132
|
+
# SPEC: {feature-name}
|
|
133
|
+
|
|
134
|
+
## Persona
|
|
135
|
+
<role>
|
|
136
|
+
Define AI role and expertise for implementation
|
|
137
|
+
- Senior developer on the project
|
|
138
|
+
- Follow existing code patterns
|
|
139
|
+
- Write testable code
|
|
140
|
+
</role>
|
|
141
|
+
|
|
142
|
+
## Context
|
|
143
|
+
<context>
|
|
144
|
+
### Background
|
|
145
|
+
- Why this feature is needed
|
|
146
|
+
- Who will use it
|
|
147
|
+
|
|
148
|
+
### Tech Stack
|
|
149
|
+
- Backend: {technology}
|
|
150
|
+
- Frontend: {technology}
|
|
151
|
+
- Database: {technology}
|
|
152
|
+
|
|
153
|
+
### Related Code
|
|
154
|
+
- `src/xxx/`: Existing implementation to reference
|
|
155
|
+
- `src/yyy/`: Files to modify
|
|
156
|
+
|
|
157
|
+
### Design Reference
|
|
158
|
+
- {Reference app/service}
|
|
159
|
+
</context>
|
|
160
|
+
|
|
161
|
+
## Task
|
|
162
|
+
<task>
|
|
163
|
+
### Phase 1: {phase-name}
|
|
164
|
+
1. [ ] {specific task}
|
|
165
|
+
- File: `path/to/file`
|
|
166
|
+
- Verify: `command`
|
|
167
|
+
2. [ ] {specific task}
|
|
168
|
+
|
|
169
|
+
### Phase 2: {phase-name}
|
|
170
|
+
1. [ ] {specific task}
|
|
171
|
+
2. [ ] {specific task}
|
|
172
|
+
|
|
173
|
+
### Phase 3: Testing and Verification
|
|
174
|
+
1. [ ] Unit Tests
|
|
175
|
+
2. [ ] Integration Tests
|
|
176
|
+
</task>
|
|
177
|
+
|
|
178
|
+
## Constraints
|
|
179
|
+
<constraints>
|
|
180
|
+
- Follow existing code patterns
|
|
181
|
+
- Localize error messages
|
|
182
|
+
- Separate configuration via environment variables
|
|
183
|
+
- {other constraints}
|
|
184
|
+
</constraints>
|
|
185
|
+
|
|
186
|
+
## Output Format
|
|
187
|
+
<output_format>
|
|
188
|
+
### Files to Create
|
|
189
|
+
- `path/to/new/file.ts`
|
|
190
|
+
- `path/to/new/file.test.ts`
|
|
191
|
+
|
|
192
|
+
### Files to Modify
|
|
193
|
+
- `path/to/existing/file.ts`
|
|
194
|
+
|
|
195
|
+
### Verification Commands
|
|
196
|
+
- `npm test`
|
|
197
|
+
- `npm run build`
|
|
198
|
+
</output_format>
|
|
199
|
+
|
|
200
|
+
## Acceptance Criteria
|
|
201
|
+
<acceptance>
|
|
202
|
+
- [ ] {verifiable criterion 1}
|
|
203
|
+
- [ ] {verifiable criterion 2}
|
|
204
|
+
- [ ] All tests pass
|
|
205
|
+
- [ ] Build succeeds
|
|
206
|
+
</acceptance>
|
|
207
|
+
```
|
|
208
|
+
|
|
209
|
+
### 5. Create Feature File (BDD) - Required
|
|
210
|
+
|
|
211
|
+
**Must** create `.claude/vibe/features/{feature-name}.feature` file.
|
|
212
|
+
|
|
213
|
+
**Creation rules:**
|
|
214
|
+
1. Convert each SPEC Acceptance Criteria → one Scenario
|
|
215
|
+
2. Include Happy Path (normal case) + Edge Case (exception case)
|
|
216
|
+
3. Follow Given-When-Then format
|
|
217
|
+
|
|
218
|
+
**Feature structure:**
|
|
219
|
+
```markdown
|
|
220
|
+
# Feature: {feature-name}
|
|
221
|
+
|
|
222
|
+
**SPEC**: `.claude/vibe/specs/{feature-name}.md`
|
|
223
|
+
|
|
224
|
+
## User Story
|
|
225
|
+
**As a** {user}
|
|
226
|
+
**I want** {feature}
|
|
227
|
+
**So that** {value}
|
|
228
|
+
|
|
229
|
+
## Scenarios
|
|
230
|
+
|
|
231
|
+
### Scenario 1: {Happy Path}
|
|
232
|
+
\`\`\`gherkin
|
|
233
|
+
Scenario: {title}
|
|
234
|
+
Given {precondition}
|
|
235
|
+
When {action}
|
|
236
|
+
Then {result}
|
|
237
|
+
\`\`\`
|
|
238
|
+
**Verification**: SPEC AC #1
|
|
239
|
+
|
|
240
|
+
### Scenario 2: {Edge Case}
|
|
241
|
+
...
|
|
242
|
+
|
|
243
|
+
## Coverage
|
|
244
|
+
| Scenario | SPEC AC | Status |
|
|
245
|
+
|----------|---------|--------|
|
|
246
|
+
| 1 | AC-1 | ⬜ |
|
|
247
|
+
```
|
|
248
|
+
|
|
249
|
+
### 6. Ambiguity Scan - Required
|
|
250
|
+
|
|
251
|
+
After creating SPEC draft, **must perform systematic ambiguity check**.
|
|
252
|
+
|
|
253
|
+
**Check categories:**
|
|
254
|
+
|
|
255
|
+
| Category | Check Items |
|
|
256
|
+
|----------|-------------|
|
|
257
|
+
| **Functional Scope** | Missing features, unclear behavior definitions |
|
|
258
|
+
| **Data Model** | Undefined entities, unclear relationships |
|
|
259
|
+
| **Non-Functional** | Missing performance requirements, security considerations |
|
|
260
|
+
| **Edge Cases** | Boundary conditions, error handling scenarios |
|
|
261
|
+
| **Integration Points** | External system integration, API contracts |
|
|
262
|
+
|
|
263
|
+
**Check process:**
|
|
264
|
+
|
|
265
|
+
```
|
|
266
|
+
1. Create SPEC draft
|
|
267
|
+
↓
|
|
268
|
+
2. Scan by category for ambiguity
|
|
269
|
+
↓
|
|
270
|
+
3. Present list of found ambiguities
|
|
271
|
+
↓
|
|
272
|
+
4. Request user clarification
|
|
273
|
+
↓
|
|
274
|
+
5. Refine SPEC
|
|
275
|
+
↓
|
|
276
|
+
6. Re-check (until 0 ambiguities)
|
|
277
|
+
```
|
|
278
|
+
|
|
279
|
+
**Ambiguity output format:**
|
|
280
|
+
|
|
281
|
+
```markdown
|
|
282
|
+
## 🔍 Ambiguity Scan Results
|
|
283
|
+
|
|
284
|
+
### Functional Scope
|
|
285
|
+
- ⚠️ "Login failure behavior" not defined
|
|
286
|
+
- ⚠️ "Session expiration handling" unclear
|
|
287
|
+
|
|
288
|
+
### Edge Cases
|
|
289
|
+
- ⚠️ Concurrent login permission undefined
|
|
290
|
+
- ⚠️ No password retry limit specified
|
|
291
|
+
|
|
292
|
+
Please clarify the above items.
|
|
293
|
+
```
|
|
294
|
+
|
|
295
|
+
### 7. Quality Validation
|
|
296
|
+
|
|
297
|
+
Self-evaluate against `.claude/vibe/rules/quality/checklist.md` (0-100 score)
|
|
298
|
+
|
|
299
|
+
## Output
|
|
300
|
+
|
|
301
|
+
- `.claude/vibe/specs/{feature-name}.md` - PTCF structured SPEC
|
|
302
|
+
- `.claude/vibe/features/{feature-name}.feature` - BDD Feature file
|
|
303
|
+
- Ambiguity scan results (0 ambiguities confirmed)
|
|
304
|
+
- Quality score and improvement suggestions
|
|
305
|
+
|
|
306
|
+
## Example
|
|
307
|
+
|
|
308
|
+
```
|
|
309
|
+
User: /vibe.spec "brick-game"
|
|
310
|
+
|
|
311
|
+
Claude:
|
|
312
|
+
You're making a brick game! What style are you thinking of?
|
|
313
|
+
|
|
314
|
+
1. Classic Breakout style
|
|
315
|
+
2. Arkanoid (with power-up items)
|
|
316
|
+
3. Custom style with special gameplay
|
|
317
|
+
|
|
318
|
+
Feel free to describe in your own words.
|
|
319
|
+
|
|
320
|
+
User: 1
|
|
321
|
+
|
|
322
|
+
Claude: What platform will it run on?
|
|
323
|
+
|
|
324
|
+
1. Web (browser)
|
|
325
|
+
2. Mobile (iOS/Android)
|
|
326
|
+
3. Desktop
|
|
327
|
+
|
|
328
|
+
User: 1
|
|
329
|
+
|
|
330
|
+
Claude:
|
|
331
|
+
Here are tech stack suggestions for web game development:
|
|
332
|
+
|
|
333
|
+
1. **Phaser.js** (Recommended) - Game framework with built-in physics engine
|
|
334
|
+
2. **Canvas + JavaScript** - Lightweight with fine control
|
|
335
|
+
3. **PixiJS + Matter.js** - High-performance rendering
|
|
336
|
+
|
|
337
|
+
User: 1
|
|
338
|
+
|
|
339
|
+
Claude: What design style?
|
|
340
|
+
|
|
341
|
+
1. Retro pixel (Atari Breakout)
|
|
342
|
+
2. Neon graphics (Arkanoid)
|
|
343
|
+
3. Modern 3D effects
|
|
344
|
+
|
|
345
|
+
User: 2
|
|
346
|
+
|
|
347
|
+
[Conversation continues...]
|
|
348
|
+
|
|
349
|
+
Claude: SPEC draft created. Running ambiguity scan.
|
|
350
|
+
|
|
351
|
+
## 🔍 Ambiguity Scan Results
|
|
352
|
+
|
|
353
|
+
### Functional Scope
|
|
354
|
+
- ⚠️ Game over condition not defined (ball drop vs lives system)
|
|
355
|
+
- ⚠️ Stage clear condition unclear
|
|
356
|
+
|
|
357
|
+
### Edge Cases
|
|
358
|
+
- ⚠️ Ball reflection angle when hitting paddle edge
|
|
359
|
+
- ⚠️ Multiple brick collision handling
|
|
360
|
+
|
|
361
|
+
Please clarify the above items.
|
|
362
|
+
|
|
363
|
+
User: 3 lives, clear when all bricks destroyed, edge reflects at 45 degrees
|
|
364
|
+
|
|
365
|
+
Claude: Thank you. SPEC has been refined.
|
|
366
|
+
|
|
367
|
+
🔍 Re-check result: 0 ambiguities
|
|
368
|
+
|
|
369
|
+
✅ SPEC document complete!
|
|
370
|
+
📄 .claude/vibe/specs/brick-game.md (PTCF structure)
|
|
371
|
+
📄 .claude/vibe/features/brick-game.feature
|
|
372
|
+
📊 Quality score: 92/100 (A)
|
|
373
|
+
```
|
|
374
|
+
|
|
375
|
+
## Next Step
|
|
376
|
+
|
|
377
|
+
```
|
|
378
|
+
/vibe.run "brick-game"
|
|
379
|
+
```
|
|
380
|
+
|
|
381
|
+
---
|
|
382
|
+
|
|
383
|
+
ARGUMENTS: $ARGUMENTS
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Preview UI with ASCII art
|
|
3
|
+
argument-hint: "UI description"
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# /vibe.ui
|
|
7
|
+
|
|
8
|
+
Preview UI with ASCII art.
|
|
9
|
+
|
|
10
|
+
## Usage
|
|
11
|
+
|
|
12
|
+
```
|
|
13
|
+
/vibe.ui "login page"
|
|
14
|
+
/vibe.ui "dashboard" --layout grid
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Process
|
|
18
|
+
|
|
19
|
+
### 1. Analyze UI Description
|
|
20
|
+
|
|
21
|
+
Analyze user's requested UI description:
|
|
22
|
+
- Page/component name
|
|
23
|
+
- Required UI elements (buttons, inputs, cards, etc.)
|
|
24
|
+
- Layout structure (header-footer, sidebar, grid, etc.)
|
|
25
|
+
|
|
26
|
+
### 2. Use MCP Tool
|
|
27
|
+
|
|
28
|
+
Use `mcp__su-record-hi-ai__preview_ui_ascii` tool to generate ASCII art:
|
|
29
|
+
|
|
30
|
+
```javascript
|
|
31
|
+
{
|
|
32
|
+
page_name: "Login Page",
|
|
33
|
+
layout_type: "centered",
|
|
34
|
+
components: [
|
|
35
|
+
{ type: "header", label: "Welcome", position: "top" },
|
|
36
|
+
{ type: "input", label: "Email", position: "center" },
|
|
37
|
+
{ type: "input", label: "Password", position: "center" },
|
|
38
|
+
{ type: "button", label: "Login", position: "center" }
|
|
39
|
+
]
|
|
40
|
+
}
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
### 3. Output ASCII Art
|
|
44
|
+
|
|
45
|
+
Output generated ASCII art:
|
|
46
|
+
|
|
47
|
+
```
|
|
48
|
+
┌─────────────────────────────────────────┐
|
|
49
|
+
│ Welcome │
|
|
50
|
+
├─────────────────────────────────────────┤
|
|
51
|
+
│ │
|
|
52
|
+
│ ┌─────────────────────┐ │
|
|
53
|
+
│ Email: │ │ │
|
|
54
|
+
│ └─────────────────────┘ │
|
|
55
|
+
│ │
|
|
56
|
+
│ ┌─────────────────────┐ │
|
|
57
|
+
│ Pass: │ │ │
|
|
58
|
+
│ └─────────────────────┘ │
|
|
59
|
+
│ │
|
|
60
|
+
│ ┌─────────────────────┐ │
|
|
61
|
+
│ │ Login │ │
|
|
62
|
+
│ └─────────────────────┘ │
|
|
63
|
+
│ │
|
|
64
|
+
└─────────────────────────────────────────┘
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
### 4. Generate Component List
|
|
68
|
+
|
|
69
|
+
Suggest list of components needed for UI:
|
|
70
|
+
|
|
71
|
+
**Required Components:**
|
|
72
|
+
- `Header.tsx` - Header ("Welcome")
|
|
73
|
+
- `LoginForm.tsx` - Form container
|
|
74
|
+
- `Input.tsx` - Reusable input field
|
|
75
|
+
- `Button.tsx` - Login button
|
|
76
|
+
|
|
77
|
+
**Expected File Structure:**
|
|
78
|
+
```
|
|
79
|
+
src/
|
|
80
|
+
├── components/
|
|
81
|
+
│ ├── common/
|
|
82
|
+
│ │ ├── Input.tsx
|
|
83
|
+
│ │ └── Button.tsx
|
|
84
|
+
│ └── auth/
|
|
85
|
+
│ ├── Header.tsx
|
|
86
|
+
│ └── LoginForm.tsx
|
|
87
|
+
└── pages/
|
|
88
|
+
└── LoginPage.tsx
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
## Example
|
|
92
|
+
|
|
93
|
+
```
|
|
94
|
+
User: /vibe.ui "Dashboard page - header, sidebar, main content (3 cards), footer"
|
|
95
|
+
|
|
96
|
+
Claude: Generating dashboard UI preview...
|
|
97
|
+
|
|
98
|
+
┌────────────────────────────────────────────────────────┐
|
|
99
|
+
│ [Logo] Dashboard [User] [Logout] │
|
|
100
|
+
├────────┬───────────────────────────────────────────────┤
|
|
101
|
+
│ │ │
|
|
102
|
+
│ Home │ ┌──────────┐ ┌──────────┐ ┌──────────┐ │
|
|
103
|
+
│ Stats │ │ Card 1 │ │ Card 2 │ │ Card 3 │ │
|
|
104
|
+
│ Users │ │ │ │ │ │ │ │
|
|
105
|
+
│ Settings│ │ 100 │ │ 200 │ │ 50 │ │
|
|
106
|
+
│ │ └──────────┘ └──────────┘ └──────────┘ │
|
|
107
|
+
│ │ │
|
|
108
|
+
│ │ │
|
|
109
|
+
├────────┴───────────────────────────────────────────────┤
|
|
110
|
+
│ © 2025 Company Privacy | Terms │
|
|
111
|
+
└────────────────────────────────────────────────────────┘
|
|
112
|
+
|
|
113
|
+
**Required Components:**
|
|
114
|
+
1. Header (logo, user menu)
|
|
115
|
+
2. Sidebar (navigation)
|
|
116
|
+
3. StatsCard (reusable card)
|
|
117
|
+
4. Footer (copyright, links)
|
|
118
|
+
5. DashboardLayout (overall layout)
|
|
119
|
+
|
|
120
|
+
**Layout Structure:**
|
|
121
|
+
- Layout: sidebar (fixed left)
|
|
122
|
+
- Main: grid (3 columns)
|
|
123
|
+
- Responsive: Changes to 1 column on mobile
|
|
124
|
+
|
|
125
|
+
Next step:
|
|
126
|
+
vibe spec "dashboard page"
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
## Notes
|
|
130
|
+
|
|
131
|
+
- For complex UI, request in multiple parts
|
|
132
|
+
- Layout options: `sidebar`, `header-footer`, `grid`, `centered`, `split`
|
|
133
|
+
- ASCII art is for quick visualization before actual implementation
|
|
134
|
+
|
|
135
|
+
---
|
|
136
|
+
|
|
137
|
+
ARGUMENTS: $ARGUMENTS
|