@nclamvn/vibecode-cli 1.6.0 → 1.8.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.
- package/bin/vibecode.js +101 -1
- package/docs-site/README.md +41 -0
- package/docs-site/blog/2019-05-28-first-blog-post.md +12 -0
- package/docs-site/blog/2019-05-29-long-blog-post.md +44 -0
- package/docs-site/blog/2021-08-01-mdx-blog-post.mdx +24 -0
- package/docs-site/blog/2021-08-26-welcome/docusaurus-plushie-banner.jpeg +0 -0
- package/docs-site/blog/2021-08-26-welcome/index.md +29 -0
- package/docs-site/blog/authors.yml +25 -0
- package/docs-site/blog/tags.yml +19 -0
- package/docs-site/docs/commands/agent.md +162 -0
- package/docs-site/docs/commands/assist.md +71 -0
- package/docs-site/docs/commands/build.md +53 -0
- package/docs-site/docs/commands/config.md +30 -0
- package/docs-site/docs/commands/debug.md +173 -0
- package/docs-site/docs/commands/doctor.md +34 -0
- package/docs-site/docs/commands/go.md +128 -0
- package/docs-site/docs/commands/index.md +79 -0
- package/docs-site/docs/commands/init.md +42 -0
- package/docs-site/docs/commands/learn.md +82 -0
- package/docs-site/docs/commands/lock.md +33 -0
- package/docs-site/docs/commands/plan.md +29 -0
- package/docs-site/docs/commands/review.md +31 -0
- package/docs-site/docs/commands/snapshot.md +34 -0
- package/docs-site/docs/commands/start.md +32 -0
- package/docs-site/docs/commands/status.md +37 -0
- package/docs-site/docs/commands/undo.md +83 -0
- package/docs-site/docs/configuration.md +72 -0
- package/docs-site/docs/faq.md +83 -0
- package/docs-site/docs/getting-started.md +119 -0
- package/docs-site/docs/guides/agent-mode.md +94 -0
- package/docs-site/docs/guides/debug-mode.md +83 -0
- package/docs-site/docs/guides/magic-mode.md +107 -0
- package/docs-site/docs/installation.md +98 -0
- package/docs-site/docs/intro.md +67 -0
- package/docs-site/docusaurus.config.ts +141 -0
- package/docs-site/package-lock.json +18039 -0
- package/docs-site/package.json +48 -0
- package/docs-site/sidebars.ts +70 -0
- package/docs-site/src/components/HomepageFeatures/index.tsx +72 -0
- package/docs-site/src/components/HomepageFeatures/styles.module.css +16 -0
- package/docs-site/src/css/custom.css +30 -0
- package/docs-site/src/pages/index.module.css +23 -0
- package/docs-site/src/pages/index.tsx +44 -0
- package/docs-site/src/pages/markdown-page.md +7 -0
- package/docs-site/src/theme/Footer/index.tsx +127 -0
- package/docs-site/src/theme/Footer/styles.module.css +285 -0
- package/docs-site/static/.nojekyll +0 -0
- package/docs-site/static/img/docusaurus-social-card.jpg +0 -0
- package/docs-site/static/img/docusaurus.png +0 -0
- package/docs-site/static/img/favicon.ico +0 -0
- package/docs-site/static/img/logo.svg +1 -0
- package/docs-site/static/img/undraw_docusaurus_mountain.svg +171 -0
- package/docs-site/static/img/undraw_docusaurus_react.svg +170 -0
- package/docs-site/static/img/undraw_docusaurus_tree.svg +40 -0
- package/docs-site/tsconfig.json +8 -0
- package/package.json +2 -1
- package/src/commands/ask.js +230 -0
- package/src/commands/debug.js +109 -1
- package/src/commands/docs.js +167 -0
- package/src/commands/git.js +1024 -0
- package/src/commands/migrate.js +341 -0
- package/src/commands/refactor.js +205 -0
- package/src/commands/review.js +126 -1
- package/src/commands/security.js +229 -0
- package/src/commands/shell.js +486 -0
- package/src/commands/test.js +194 -0
- package/src/commands/watch.js +556 -0
- package/src/debug/image-analyzer.js +304 -0
- package/src/index.js +27 -0
- package/src/utils/image.js +222 -0
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
---
|
|
2
|
+
sidebar_position: 13
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# vibecode debug
|
|
6
|
+
|
|
7
|
+
**Debug Mode** - Intelligent 9-step bug fixing.
|
|
8
|
+
|
|
9
|
+
## Synopsis
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
vibecode debug [description...] [options]
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Description
|
|
16
|
+
|
|
17
|
+
The `debug` command uses a systematic 9-step protocol to identify, fix, and prevent bugs. It combines error analysis, AI-powered fixing, and automated verification.
|
|
18
|
+
|
|
19
|
+
## Arguments
|
|
20
|
+
|
|
21
|
+
| Argument | Description |
|
|
22
|
+
|----------|-------------|
|
|
23
|
+
| `description` | Description of the error (optional) |
|
|
24
|
+
|
|
25
|
+
## Options
|
|
26
|
+
|
|
27
|
+
| Option | Description |
|
|
28
|
+
|--------|-------------|
|
|
29
|
+
| `-i, --interactive` | Interactive debug session |
|
|
30
|
+
| `-a, --auto` | Auto-scan and fix errors |
|
|
31
|
+
| `-l, --log <text>` | Provide error log directly |
|
|
32
|
+
| `--image <path>` | Provide error screenshot |
|
|
33
|
+
| `--attempts <n>` | Max fix attempts (default: 3) |
|
|
34
|
+
| `-v, --verbose` | Show detailed output |
|
|
35
|
+
| `-q, --quiet` | Minimal output |
|
|
36
|
+
|
|
37
|
+
## Examples
|
|
38
|
+
|
|
39
|
+
### Interactive Mode
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
vibecode debug
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
### With Error Description
|
|
46
|
+
|
|
47
|
+
```bash
|
|
48
|
+
vibecode debug "TypeError: Cannot read properties of undefined"
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
### Auto-Scan Mode
|
|
52
|
+
|
|
53
|
+
```bash
|
|
54
|
+
vibecode debug --auto
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
### From Error Log
|
|
58
|
+
|
|
59
|
+
```bash
|
|
60
|
+
vibecode debug --log "Error: ENOENT: no such file or directory"
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
### With Screenshot
|
|
64
|
+
|
|
65
|
+
```bash
|
|
66
|
+
vibecode debug --image ./error-screenshot.png
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
## The 9-Step Protocol
|
|
70
|
+
|
|
71
|
+
### 1. EVIDENCE
|
|
72
|
+
Gather error information from logs, description, or screenshots.
|
|
73
|
+
|
|
74
|
+
### 2. REPRODUCE
|
|
75
|
+
Confirm the error exists by running relevant commands.
|
|
76
|
+
|
|
77
|
+
### 3. ANALYZE
|
|
78
|
+
Identify root cause using pattern matching and AI analysis.
|
|
79
|
+
|
|
80
|
+
### 4. HYPOTHESIZE
|
|
81
|
+
Generate fix hypotheses ranked by confidence.
|
|
82
|
+
|
|
83
|
+
### 5. TEST
|
|
84
|
+
Prepare fix prompt and validate approach.
|
|
85
|
+
|
|
86
|
+
### 6. FIX
|
|
87
|
+
Apply fix via Claude Code.
|
|
88
|
+
|
|
89
|
+
### 7. VERIFY
|
|
90
|
+
Confirm the fix works by re-running tests.
|
|
91
|
+
|
|
92
|
+
### 8. DOCUMENT
|
|
93
|
+
Log the fix for future reference.
|
|
94
|
+
|
|
95
|
+
### 9. PREVENT
|
|
96
|
+
Add prevention rules to CLAUDE.md.
|
|
97
|
+
|
|
98
|
+
## Error Translation
|
|
99
|
+
|
|
100
|
+
Vibecode translates technical errors to human-friendly Vietnamese:
|
|
101
|
+
|
|
102
|
+
```
|
|
103
|
+
❌ TypeError: Cannot read properties of undefined (reading 'map')
|
|
104
|
+
|
|
105
|
+
Translates to:
|
|
106
|
+
|
|
107
|
+
╭────────────────────────────────────────────────────────────╮
|
|
108
|
+
│ ❌ LỖI: Biến chưa được định nghĩa │
|
|
109
|
+
│ │
|
|
110
|
+
│ Vấn đề: Code đang cố truy cập thuộc tính 'map' │
|
|
111
|
+
│ của một biến undefined │
|
|
112
|
+
│ │
|
|
113
|
+
│ 💡 Gợi ý: │
|
|
114
|
+
│ • Kiểm tra biến có được khởi tạo trước khi sử dụng │
|
|
115
|
+
│ • Thêm optional chaining (?.) khi truy cập thuộc tính │
|
|
116
|
+
│ • Kiểm tra null/undefined với if statement │
|
|
117
|
+
│ │
|
|
118
|
+
╰────────────────────────────────────────────────────────────╯
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
## Output
|
|
122
|
+
|
|
123
|
+
```
|
|
124
|
+
🔍 VIBECODE DEBUG - Intelligent Bug Fixing
|
|
125
|
+
|
|
126
|
+
[1/9 EVIDENCE] Gathering error information...
|
|
127
|
+
Type: TypeError
|
|
128
|
+
Category: RUNTIME
|
|
129
|
+
Error: Biến chưa được định nghĩa
|
|
130
|
+
→ Code đang cố truy cập thuộc tính 'map' của một biến undefined
|
|
131
|
+
|
|
132
|
+
[2/9 REPRODUCE] Confirming error exists...
|
|
133
|
+
✓ Error confirmed
|
|
134
|
+
|
|
135
|
+
[3/9 ANALYZE] Analyzing root cause...
|
|
136
|
+
Root cause: Missing null check
|
|
137
|
+
Confidence: 85%
|
|
138
|
+
|
|
139
|
+
[4/9 HYPOTHESIZE] Generating fix hypotheses...
|
|
140
|
+
Generated 2 hypothesis(es):
|
|
141
|
+
- Add optional chaining... (90%)
|
|
142
|
+
- Add null check... (85%)
|
|
143
|
+
|
|
144
|
+
[5/9 TEST] Preparing fix...
|
|
145
|
+
[6/9 FIX] Applying fix via Claude Code...
|
|
146
|
+
[7/9 VERIFY] Verifying fix...
|
|
147
|
+
✓ Fix verified successfully!
|
|
148
|
+
|
|
149
|
+
[8/9 DOCUMENT] Documenting fix...
|
|
150
|
+
[9/9 PREVENT] Adding prevention rules...
|
|
151
|
+
|
|
152
|
+
✅ Bug fixed and documented!
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
## Learning Integration
|
|
156
|
+
|
|
157
|
+
After each fix, Vibecode asks for feedback:
|
|
158
|
+
|
|
159
|
+
```
|
|
160
|
+
? Fix này có đúng không?
|
|
161
|
+
✅ Đúng, hoạt động tốt
|
|
162
|
+
❌ Không đúng
|
|
163
|
+
🔄 Đúng một phần
|
|
164
|
+
⏭️ Bỏ qua
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
Your feedback helps improve future suggestions.
|
|
168
|
+
|
|
169
|
+
## See Also
|
|
170
|
+
|
|
171
|
+
- [Debug Mode Guide](../guides/debug-mode) - In-depth guide
|
|
172
|
+
- [learn](./learn) - View learning statistics
|
|
173
|
+
- [assist](./assist) - Direct AI assistance
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
---
|
|
2
|
+
sidebar_position: 5
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# vibecode doctor
|
|
6
|
+
|
|
7
|
+
Check configuration and diagnose issues.
|
|
8
|
+
|
|
9
|
+
## Synopsis
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
vibecode doctor
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Description
|
|
16
|
+
|
|
17
|
+
Runs diagnostic checks:
|
|
18
|
+
- Node.js version
|
|
19
|
+
- Claude Code availability
|
|
20
|
+
- Workspace integrity
|
|
21
|
+
- Configuration validity
|
|
22
|
+
|
|
23
|
+
## Example Output
|
|
24
|
+
|
|
25
|
+
```
|
|
26
|
+
🔍 Vibecode Doctor
|
|
27
|
+
|
|
28
|
+
✓ Node.js 20.10.0
|
|
29
|
+
✓ Claude Code installed
|
|
30
|
+
✓ Workspace valid
|
|
31
|
+
✓ Configuration OK
|
|
32
|
+
|
|
33
|
+
All checks passed!
|
|
34
|
+
```
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
---
|
|
2
|
+
sidebar_position: 11
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# vibecode go
|
|
6
|
+
|
|
7
|
+
**Magic Mode** - Build an entire project with one command.
|
|
8
|
+
|
|
9
|
+
## Synopsis
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
vibecode go <description> [options]
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Description
|
|
16
|
+
|
|
17
|
+
The `go` command is Vibecode's "magic mode" - it takes a natural language description and builds a complete project automatically. It combines all workflow steps into one seamless experience.
|
|
18
|
+
|
|
19
|
+
## Arguments
|
|
20
|
+
|
|
21
|
+
| Argument | Description |
|
|
22
|
+
|----------|-------------|
|
|
23
|
+
| `description` | Natural language description of what to build |
|
|
24
|
+
|
|
25
|
+
## Options
|
|
26
|
+
|
|
27
|
+
| Option | Description |
|
|
28
|
+
|--------|-------------|
|
|
29
|
+
| `-t, --template <name>` | Use template (landing, saas, cli, api) |
|
|
30
|
+
| `-i, --iterate` | Enable iterative build mode |
|
|
31
|
+
| `-m, --max <n>` | Max iterations for iterative mode |
|
|
32
|
+
| `-o, --open` | Auto-open result when done |
|
|
33
|
+
|
|
34
|
+
## Examples
|
|
35
|
+
|
|
36
|
+
### Basic Usage
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
vibecode go "A landing page for my SaaS startup"
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
### With Template
|
|
43
|
+
|
|
44
|
+
```bash
|
|
45
|
+
vibecode go "Portfolio website" --template landing
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
### Iterative Mode
|
|
49
|
+
|
|
50
|
+
Build, test, and fix until tests pass:
|
|
51
|
+
|
|
52
|
+
```bash
|
|
53
|
+
vibecode go "React todo app with tests" --iterate --max 5
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
### Auto-Open Result
|
|
57
|
+
|
|
58
|
+
```bash
|
|
59
|
+
vibecode go "Simple blog" --open
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
## What Happens
|
|
63
|
+
|
|
64
|
+
When you run `go`, Vibecode automatically:
|
|
65
|
+
|
|
66
|
+
1. **INIT** - Creates project directory
|
|
67
|
+
2. **INTAKE** - Captures requirements from description
|
|
68
|
+
3. **BLUEPRINT** - Designs architecture
|
|
69
|
+
4. **CONTRACT** - Generates contract
|
|
70
|
+
5. **LOCK** - Locks contract with spec hash
|
|
71
|
+
6. **PLAN** - Creates execution plan
|
|
72
|
+
7. **BUILD** - Generates code with Claude Code
|
|
73
|
+
8. **REVIEW** - Runs tests and validates
|
|
74
|
+
|
|
75
|
+
## Progress Display
|
|
76
|
+
|
|
77
|
+
```
|
|
78
|
+
╭────────────────────────────────────────────────────────────╮
|
|
79
|
+
│ 🚀 VIBECODE MAGIC MODE │
|
|
80
|
+
│ │
|
|
81
|
+
│ "Landing page for my startup" │
|
|
82
|
+
│ → startup-landing │
|
|
83
|
+
│ │
|
|
84
|
+
╰────────────────────────────────────────────────────────────╯
|
|
85
|
+
|
|
86
|
+
[████████████████████░░░░░░░░░░░░░░░░░░░░] 45%
|
|
87
|
+
|
|
88
|
+
✓ INIT
|
|
89
|
+
✓ INTAKE
|
|
90
|
+
✓ BLUEPRINT
|
|
91
|
+
✓ CONTRACT
|
|
92
|
+
✓ LOCK
|
|
93
|
+
◐ PLAN (in progress)
|
|
94
|
+
○ BUILD
|
|
95
|
+
○ REVIEW
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
## Output
|
|
99
|
+
|
|
100
|
+
On success:
|
|
101
|
+
|
|
102
|
+
```
|
|
103
|
+
╭────────────────────────────────────────────────────────────╮
|
|
104
|
+
│ 🎉 BUILD COMPLETE! │
|
|
105
|
+
│ │
|
|
106
|
+
│ 📁 Project: startup-landing │
|
|
107
|
+
│ 📂 Location: /Users/you/startup-landing │
|
|
108
|
+
│ 🔐 Spec: abc123... │
|
|
109
|
+
│ 📄 Files: 12 created │
|
|
110
|
+
│ 🧪 Tests: 8/8 passed │
|
|
111
|
+
│ ⏱️ Duration: 2.5 minutes │
|
|
112
|
+
│ │
|
|
113
|
+
│ 💡 Next: cd startup-landing │
|
|
114
|
+
│ │
|
|
115
|
+
╰────────────────────────────────────────────────────────────╯
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
## Tips
|
|
119
|
+
|
|
120
|
+
- **Be specific**: More detail = better results
|
|
121
|
+
- **Mention tech stack**: "React app with Tailwind" vs just "website"
|
|
122
|
+
- **Include features**: "with auth, dashboard, and API"
|
|
123
|
+
|
|
124
|
+
## See Also
|
|
125
|
+
|
|
126
|
+
- [Magic Mode Guide](../guides/magic-mode) - In-depth guide
|
|
127
|
+
- [agent](./agent) - For complex multi-module projects
|
|
128
|
+
- [build](./build) - For step-by-step control
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
---
|
|
2
|
+
sidebar_position: 1
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# Commands Overview
|
|
6
|
+
|
|
7
|
+
Vibecode CLI provides 16 commands organized into four categories.
|
|
8
|
+
|
|
9
|
+
## Quick Reference
|
|
10
|
+
|
|
11
|
+
| Command | Description | Example |
|
|
12
|
+
|---------|-------------|---------|
|
|
13
|
+
| `go` | Magic mode - one command build | `vibecode go "todo app"` |
|
|
14
|
+
| `agent` | Multi-module autonomous build | `vibecode agent "e-commerce"` |
|
|
15
|
+
| `debug` | Intelligent bug fixing | `vibecode debug "TypeError..."` |
|
|
16
|
+
| `assist` | Direct AI assistance | `vibecode assist "how to..."` |
|
|
17
|
+
|
|
18
|
+
## Categories
|
|
19
|
+
|
|
20
|
+
### Workflow Commands
|
|
21
|
+
|
|
22
|
+
Setup and state management:
|
|
23
|
+
|
|
24
|
+
| Command | Description |
|
|
25
|
+
|---------|-------------|
|
|
26
|
+
| [`init`](./init) | Initialize Vibecode workspace |
|
|
27
|
+
| [`start`](./start) | Start guided session |
|
|
28
|
+
| [`status`](./status) | Display current state |
|
|
29
|
+
| [`lock`](./lock) | Lock contract and generate spec hash |
|
|
30
|
+
| [`doctor`](./doctor) | Check configuration |
|
|
31
|
+
|
|
32
|
+
### Build Commands
|
|
33
|
+
|
|
34
|
+
Code generation and review:
|
|
35
|
+
|
|
36
|
+
| Command | Description |
|
|
37
|
+
|---------|-------------|
|
|
38
|
+
| [`plan`](./plan) | Create execution plan |
|
|
39
|
+
| [`build`](./build) | Build with AI |
|
|
40
|
+
| [`review`](./review) | Review against criteria |
|
|
41
|
+
| [`snapshot`](./snapshot) | Create release snapshot |
|
|
42
|
+
| [`config`](./config) | Manage configuration |
|
|
43
|
+
|
|
44
|
+
### Power Features
|
|
45
|
+
|
|
46
|
+
Advanced AI capabilities:
|
|
47
|
+
|
|
48
|
+
| Command | Description |
|
|
49
|
+
|---------|-------------|
|
|
50
|
+
| [`go`](./go) | Magic mode - full automated build |
|
|
51
|
+
| [`agent`](./agent) | Multi-module autonomous builder |
|
|
52
|
+
| [`debug`](./debug) | 9-step intelligent debugging |
|
|
53
|
+
| [`assist`](./assist) | Direct Claude Code access |
|
|
54
|
+
|
|
55
|
+
### Polish Features
|
|
56
|
+
|
|
57
|
+
UX improvements:
|
|
58
|
+
|
|
59
|
+
| Command | Description |
|
|
60
|
+
|---------|-------------|
|
|
61
|
+
| [`undo`](./undo) | Rollback to previous state |
|
|
62
|
+
| [`learn`](./learn) | View AI learning stats |
|
|
63
|
+
|
|
64
|
+
## Global Options
|
|
65
|
+
|
|
66
|
+
All commands support:
|
|
67
|
+
|
|
68
|
+
```bash
|
|
69
|
+
--help, -h Show help
|
|
70
|
+
--version, -V Show version
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
## Interactive Mode
|
|
74
|
+
|
|
75
|
+
Run `vibecode` with no arguments for interactive wizard:
|
|
76
|
+
|
|
77
|
+
```bash
|
|
78
|
+
vibecode
|
|
79
|
+
```
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
---
|
|
2
|
+
sidebar_position: 1
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# vibecode init
|
|
6
|
+
|
|
7
|
+
Initialize a Vibecode workspace in the current directory.
|
|
8
|
+
|
|
9
|
+
## Synopsis
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
vibecode init [options]
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Options
|
|
16
|
+
|
|
17
|
+
| Option | Description |
|
|
18
|
+
|--------|-------------|
|
|
19
|
+
| `-f, --force` | Overwrite existing workspace |
|
|
20
|
+
| `-q, --quiet` | Minimal output |
|
|
21
|
+
|
|
22
|
+
## Examples
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
# Basic initialization
|
|
26
|
+
vibecode init
|
|
27
|
+
|
|
28
|
+
# Force overwrite existing
|
|
29
|
+
vibecode init --force
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## What It Does
|
|
33
|
+
|
|
34
|
+
1. Creates `.vibecode/` directory
|
|
35
|
+
2. Initializes `state.json`
|
|
36
|
+
3. Creates session structure
|
|
37
|
+
4. Sets initial state to `initialized`
|
|
38
|
+
|
|
39
|
+
## See Also
|
|
40
|
+
|
|
41
|
+
- [start](./start) - Start guided session
|
|
42
|
+
- [status](./status) - Check current state
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
---
|
|
2
|
+
sidebar_position: 16
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# vibecode learn
|
|
6
|
+
|
|
7
|
+
View and manage AI learnings from feedback.
|
|
8
|
+
|
|
9
|
+
## Synopsis
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
vibecode learn [options]
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Options
|
|
16
|
+
|
|
17
|
+
| Option | Description |
|
|
18
|
+
|--------|-------------|
|
|
19
|
+
| `-s, --stats` | Show learning statistics |
|
|
20
|
+
| `-c, --clear` | Clear all learnings |
|
|
21
|
+
| `-e, --export` | Export learnings to file |
|
|
22
|
+
| `-f, --force` | Skip confirmation |
|
|
23
|
+
|
|
24
|
+
## Examples
|
|
25
|
+
|
|
26
|
+
### View Statistics
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
vibecode learn --stats
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
Output:
|
|
33
|
+
```
|
|
34
|
+
╭────────────────────────────────────────────────────────────╮
|
|
35
|
+
│ 📊 LEARNING STATISTICS │
|
|
36
|
+
╰────────────────────────────────────────────────────────────╯
|
|
37
|
+
|
|
38
|
+
📁 Project Learnings
|
|
39
|
+
Tổng fixes: 15
|
|
40
|
+
Thành công: 12 (80%)
|
|
41
|
+
|
|
42
|
+
🌍 Global Learnings
|
|
43
|
+
Tổng fixes: 45
|
|
44
|
+
Thành công: 38 (84.4%)
|
|
45
|
+
|
|
46
|
+
📂 Theo Error Category
|
|
47
|
+
RUNTIME ██████████ 5/5 (100%)
|
|
48
|
+
SYNTAX ████████░░ 4/5 (80%)
|
|
49
|
+
MODULE ██████░░░░ 3/5 (60%)
|
|
50
|
+
|
|
51
|
+
⚙️ Preferences đã lưu: 3
|
|
52
|
+
📅 Learning gần nhất: 10 phút trước
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
### Export Learnings
|
|
56
|
+
|
|
57
|
+
```bash
|
|
58
|
+
vibecode learn --export
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
### Clear Learnings
|
|
62
|
+
|
|
63
|
+
```bash
|
|
64
|
+
vibecode learn --clear --force
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
## How Learning Works
|
|
68
|
+
|
|
69
|
+
1. After each successful fix, Vibecode asks for feedback
|
|
70
|
+
2. Feedback is stored locally and globally (anonymized)
|
|
71
|
+
3. Future suggestions use past successes
|
|
72
|
+
4. Higher confidence for patterns with good track record
|
|
73
|
+
|
|
74
|
+
## Storage
|
|
75
|
+
|
|
76
|
+
- Local: `.vibecode/learning/`
|
|
77
|
+
- Global: `~/.vibecode/learning/`
|
|
78
|
+
|
|
79
|
+
## See Also
|
|
80
|
+
|
|
81
|
+
- [debug](./debug) - Generates learnings
|
|
82
|
+
- [assist](./assist) - Uses learnings
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
---
|
|
2
|
+
sidebar_position: 4
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# vibecode lock
|
|
6
|
+
|
|
7
|
+
Lock contract and generate spec hash.
|
|
8
|
+
|
|
9
|
+
## Synopsis
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
vibecode lock [options]
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Options
|
|
16
|
+
|
|
17
|
+
| Option | Description |
|
|
18
|
+
|--------|-------------|
|
|
19
|
+
| `-d, --dry-run` | Validate without locking |
|
|
20
|
+
| `-f, --force` | Lock even with warnings |
|
|
21
|
+
|
|
22
|
+
## Description
|
|
23
|
+
|
|
24
|
+
Locking a contract:
|
|
25
|
+
1. Validates contract completeness
|
|
26
|
+
2. Generates unique spec hash
|
|
27
|
+
3. Prevents further contract changes
|
|
28
|
+
4. Enables build phase
|
|
29
|
+
|
|
30
|
+
## See Also
|
|
31
|
+
|
|
32
|
+
- [start](./start) - Create contract
|
|
33
|
+
- [build](./build) - Build from locked contract
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
---
|
|
2
|
+
sidebar_position: 6
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# vibecode plan
|
|
6
|
+
|
|
7
|
+
Create execution plan from locked contract.
|
|
8
|
+
|
|
9
|
+
## Synopsis
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
vibecode plan
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Description
|
|
16
|
+
|
|
17
|
+
Generates:
|
|
18
|
+
1. Step-by-step execution plan
|
|
19
|
+
2. Coder pack for Claude Code
|
|
20
|
+
3. File structure preview
|
|
21
|
+
|
|
22
|
+
## Prerequisites
|
|
23
|
+
|
|
24
|
+
- Contract must be locked (`vibecode lock`)
|
|
25
|
+
|
|
26
|
+
## See Also
|
|
27
|
+
|
|
28
|
+
- [lock](./lock) - Lock contract first
|
|
29
|
+
- [build](./build) - Execute the plan
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
---
|
|
2
|
+
sidebar_position: 8
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# vibecode review
|
|
6
|
+
|
|
7
|
+
Review build against acceptance criteria.
|
|
8
|
+
|
|
9
|
+
## Synopsis
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
vibecode review [options]
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Options
|
|
16
|
+
|
|
17
|
+
| Option | Description |
|
|
18
|
+
|--------|-------------|
|
|
19
|
+
| `--skip-manual` | Skip manual verification |
|
|
20
|
+
|
|
21
|
+
## Description
|
|
22
|
+
|
|
23
|
+
Runs:
|
|
24
|
+
1. Automated tests
|
|
25
|
+
2. Acceptance criteria check
|
|
26
|
+
3. Manual verification prompts (optional)
|
|
27
|
+
|
|
28
|
+
## See Also
|
|
29
|
+
|
|
30
|
+
- [build](./build) - Build first
|
|
31
|
+
- [snapshot](./snapshot) - Create release
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
---
|
|
2
|
+
sidebar_position: 9
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# vibecode snapshot
|
|
6
|
+
|
|
7
|
+
Create release snapshot with version bump.
|
|
8
|
+
|
|
9
|
+
## Synopsis
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
vibecode snapshot [options]
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Options
|
|
16
|
+
|
|
17
|
+
| Option | Description |
|
|
18
|
+
|--------|-------------|
|
|
19
|
+
| `--patch` | Patch version (default) |
|
|
20
|
+
| `--minor` | Minor version |
|
|
21
|
+
| `--major` | Major version |
|
|
22
|
+
|
|
23
|
+
## Examples
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
# Patch release (1.0.0 -> 1.0.1)
|
|
27
|
+
vibecode snapshot
|
|
28
|
+
|
|
29
|
+
# Minor release (1.0.0 -> 1.1.0)
|
|
30
|
+
vibecode snapshot --minor
|
|
31
|
+
|
|
32
|
+
# Major release (1.0.0 -> 2.0.0)
|
|
33
|
+
vibecode snapshot --major
|
|
34
|
+
```
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
---
|
|
2
|
+
sidebar_position: 2
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# vibecode start
|
|
6
|
+
|
|
7
|
+
Start a guided Vibecode session.
|
|
8
|
+
|
|
9
|
+
## Synopsis
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
vibecode start [options]
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Options
|
|
16
|
+
|
|
17
|
+
| Option | Description |
|
|
18
|
+
|--------|-------------|
|
|
19
|
+
| `-r, --resume` | Resume existing session |
|
|
20
|
+
|
|
21
|
+
## Description
|
|
22
|
+
|
|
23
|
+
Launches an interactive session that guides you through:
|
|
24
|
+
1. Requirements capture (intake)
|
|
25
|
+
2. Architecture design (blueprint)
|
|
26
|
+
3. Contract creation
|
|
27
|
+
4. Contract locking
|
|
28
|
+
|
|
29
|
+
## See Also
|
|
30
|
+
|
|
31
|
+
- [init](./init) - Initialize workspace
|
|
32
|
+
- [lock](./lock) - Lock contract
|