viepilot 1.0.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 (84) hide show
  1. package/CHANGELOG.md +230 -0
  2. package/LICENSE +23 -0
  3. package/README.md +550 -0
  4. package/bin/viepilot.cjs +222 -0
  5. package/bin/vp-tools.cjs +912 -0
  6. package/dev-install.sh +109 -0
  7. package/docs/README.md +125 -0
  8. package/docs/advanced-usage.md +366 -0
  9. package/docs/api/README.md +12 -0
  10. package/docs/api/graphql-schema.md +5 -0
  11. package/docs/api/kafka-events.md +5 -0
  12. package/docs/api/rest-api.md +19 -0
  13. package/docs/api/websocket-api.md +5 -0
  14. package/docs/dev/architecture.md +226 -0
  15. package/docs/dev/cli-reference.md +324 -0
  16. package/docs/dev/contributing.md +195 -0
  17. package/docs/dev/deployment.md +204 -0
  18. package/docs/dev/getting-started.md +16 -0
  19. package/docs/dev/testing.md +171 -0
  20. package/docs/dev/ui-components-library.md +36 -0
  21. package/docs/getting-started.md +163 -0
  22. package/docs/skills-reference.md +399 -0
  23. package/docs/troubleshooting.md +297 -0
  24. package/docs/user/faq.md +117 -0
  25. package/docs/user/features/autonomous-mode.md +111 -0
  26. package/docs/user/features/checkpoint-recovery.md +76 -0
  27. package/docs/user/features/debug-mode.md +77 -0
  28. package/docs/user/features/ui-direction.md +29 -0
  29. package/docs/user/quick-start.md +157 -0
  30. package/docs/videos/01-installation.md +113 -0
  31. package/docs/videos/02-first-project.md +132 -0
  32. package/docs/videos/03-autonomous-mode.md +147 -0
  33. package/install.sh +144 -0
  34. package/lib/cli-shared.cjs +108 -0
  35. package/package.json +78 -0
  36. package/skills/vp-audit/SKILL.md +140 -0
  37. package/skills/vp-auto/SKILL.md +204 -0
  38. package/skills/vp-brainstorm/SKILL.md +75 -0
  39. package/skills/vp-crystallize/SKILL.md +175 -0
  40. package/skills/vp-debug/SKILL.md +96 -0
  41. package/skills/vp-docs/SKILL.md +258 -0
  42. package/skills/vp-evolve/SKILL.md +165 -0
  43. package/skills/vp-pause/SKILL.md +150 -0
  44. package/skills/vp-request/SKILL.md +250 -0
  45. package/skills/vp-resume/SKILL.md +141 -0
  46. package/skills/vp-rollback/SKILL.md +116 -0
  47. package/skills/vp-status/SKILL.md +137 -0
  48. package/skills/vp-task/SKILL.md +139 -0
  49. package/skills/vp-ui-components/SKILL.md +64 -0
  50. package/templates/phase/PHASE-STATE.md +35 -0
  51. package/templates/phase/SPEC.md +40 -0
  52. package/templates/phase/SUMMARY.md +67 -0
  53. package/templates/phase/TASK.md +101 -0
  54. package/templates/phase/VERIFICATION.md +49 -0
  55. package/templates/project/AI-GUIDE.md +114 -0
  56. package/templates/project/ARCHITECTURE.md +70 -0
  57. package/templates/project/CHANGELOG.md +36 -0
  58. package/templates/project/CONTRIBUTING.md +154 -0
  59. package/templates/project/CONTRIBUTORS.md +41 -0
  60. package/templates/project/PROJECT-CONTEXT.md +74 -0
  61. package/templates/project/PROJECT-META.md +133 -0
  62. package/templates/project/README.md +197 -0
  63. package/templates/project/ROADMAP.md +56 -0
  64. package/templates/project/SYSTEM-RULES.md +368 -0
  65. package/templates/project/TRACKER.md +50 -0
  66. package/ui-components/INDEX.md +9 -0
  67. package/ui-components/base/button/README.md +8 -0
  68. package/ui-components/base/button/metadata.json +8 -0
  69. package/ui-components/base/card/README.md +8 -0
  70. package/ui-components/base/card/metadata.json +8 -0
  71. package/ui-components/base/input/README.md +8 -0
  72. package/ui-components/base/input/metadata.json +8 -0
  73. package/workflows/audit.md +549 -0
  74. package/workflows/autonomous.md +425 -0
  75. package/workflows/brainstorm.md +257 -0
  76. package/workflows/crystallize.md +418 -0
  77. package/workflows/debug.md +241 -0
  78. package/workflows/documentation.md +587 -0
  79. package/workflows/evolve.md +258 -0
  80. package/workflows/pause-work.md +255 -0
  81. package/workflows/request.md +534 -0
  82. package/workflows/resume-work.md +226 -0
  83. package/workflows/rollback.md +202 -0
  84. package/workflows/ui-components.md +109 -0
package/README.md ADDED
@@ -0,0 +1,550 @@
1
+ # ViePilot
2
+
3
+ **Autonomous Vibe Coding Framework / Bộ khung phát triển tự động có kiểm soát**
4
+
5
+ [![Version](https://img.shields.io/badge/version-0.10.0-blue.svg)](CHANGELOG.md)
6
+ [![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](LICENSE)
7
+ [![Skills](https://img.shields.io/badge/skills-14-purple.svg)](#skills-reference)
8
+ [![Workflows](https://img.shields.io/badge/workflows-12-orange.svg)](#workflows)
9
+ [![Templates](https://img.shields.io/badge/templates-16-cyan.svg)](#templates)
10
+ [![Tests](https://img.shields.io/badge/tests-202%20passing-brightgreen.svg)](tests/)
11
+ [![GitHub](https://img.shields.io/github/stars/0-CODE/viepilot?style=social)](https://github.com/0-CODE/viepilot)
12
+
13
+ **Versioning:** Shield **0.10.0** is the **ViePilot framework SemVer** tracked in `.viepilot/TRACKER.md` and `CHANGELOG.md`. The npm `package.json` field `version` (**1.0.0**) is the Node package identifier for this repo and may differ; use the framework version for milestone releases and docs.
14
+
15
+ ViePilot là bộ skill framework cho phép AI assistant (Claude, GPT, etc.) phát triển dự án một cách **tự động**, **có kiểm soát**, và **có thể khôi phục**. Thiết kế theo các tiêu chuẩn chuyên nghiệp: Semantic Versioning, Conventional Commits, Keep a Changelog.
16
+
17
+ ViePilot is a skill framework that enables AI assistants to develop projects **autonomously**, with **control points**, and **recovery capability**. Built with professional standards: Semantic Versioning, Conventional Commits, Keep a Changelog.
18
+
19
+ ---
20
+
21
+ ## Quy mô dự án / Project Scale
22
+
23
+ | Chỉ số / Metric | Giá trị / Value |
24
+ |-----------------|-----------------|
25
+ | Total LOC | **~24,000+** (`.md`, `.js`, `.cjs`, `.yml`, `.json`, `.sh`; không gồm `node_modules`) |
26
+ | Skills | **14** |
27
+ | Workflows | **12** |
28
+ | Templates | **16** (Project: 11, Phase: 5) |
29
+ | CLI Commands | **14** (`vp-tools` + `viepilot install`) |
30
+ | Tests | **202** (3 files: unit + integration + AI compat) |
31
+ | ViePilot phases (repo) | **15** hoàn thành (xem `.viepilot/TRACKER.md`) |
32
+ | Standards | 5 (SemVer, Commits, Changelog, Comments, Contributors) |
33
+
34
+ ### Phân bổ / Breakdown
35
+
36
+ | Thành phần / Component | Số lượng / Count | Mô tả / Description |
37
+ |------------------------|------------------|---------------------|
38
+ | Skill Definitions | **14** | SKILL.md files với trigger, process, success criteria |
39
+ | Workflow Files | **12** | Step-by-step execution guides |
40
+ | Project Templates | 11 | AI-GUIDE, ARCHITECTURE, README, SYSTEM-RULES, etc. |
41
+ | Phase Templates | 5 | SPEC, PHASE-STATE, TASK, VERIFICATION, SUMMARY |
42
+ | CLI Tools | 2 | vp-tools.cjs (**13** commands) + viepilot.cjs (guided installer) |
43
+ | Test Files | 3 | Jest unit, integration, AI compatibility (202 tests) |
44
+
45
+ ---
46
+
47
+ ## Độ hoàn thiện / Completion Status
48
+
49
+ ```
50
+ Tổng thể / Overall: ████████████████████ 100% 🎉 M1.14 roadmap phases ✅ (v0.10.0)
51
+ ```
52
+
53
+ | Lĩnh vực / Area | Trạng thái | Chi tiết |
54
+ |-----------------|------------|----------|
55
+ | Core Skills (14) | ✅ Hoàn thiện | brainstorm, crystallize, auto, pause, resume, status, request, evolve, docs, task, debug, rollback, audit, ui-components |
56
+ | Workflows (12) | ✅ Hoàn thiện | Full step-by-step guides với success criteria |
57
+ | Project Templates (11) | ✅ Hoàn thiện | Placeholders cho customization |
58
+ | Phase Templates (5) | ✅ Hoàn thiện | Task tracking, verification, summary |
59
+ | CLI Tools (14 commands) | ✅ Hoàn thiện | State management, progress, versioning, checkpoints, guided installer |
60
+ | Tests (202) | ✅ Hoàn thiện | Unit, integration, AI provider compatibility |
61
+ | CI/CD | ✅ Hoàn thiện | GitHub Actions, Node 18/20/22 matrix, coverage >80% |
62
+ | Documentation | ✅ Hoàn thiện | dev/, user/, api/, videos/, examples/, troubleshooting |
63
+ | Standards | ✅ Hoàn thiện | SemVer, Conventional Commits, Keep a Changelog |
64
+ | Installation | ✅ Hoàn thiện | install.sh + dev-install.sh |
65
+
66
+ ---
67
+
68
+ ## Workflow Tổng quan / Workflow Overview
69
+
70
+ ```
71
+ ┌─────────────────────────────────────────────────────────────────────────────┐
72
+ │ DỰ ÁN MỚI / NEW PROJECT │
73
+ │ │
74
+ │ /vp-brainstorm ──► /vp-crystallize ──► /vp-auto ──► /vp-docs │
75
+ │ │ │ │ │ │
76
+ │ Ý tưởng Artifacts Working Docs │
77
+ │ Ideas & Roadmap Code │
78
+ └─────────────────────────────────────────────────────────────────────────────┘
79
+
80
+
81
+ ┌─────────────────────────────────────────────────────────────────────────────┐
82
+ │ DỰ ÁN ĐANG PHÁT TRIỂN / ONGOING PROJECT │
83
+ │ │
84
+ │ /vp-request ─────────────────────────────────────────────────┐ │
85
+ │ │ │ │
86
+ │ ├── 🐛 Bug Report ──────────► Fix ngay hoặc backlog │ │
87
+ │ ├── ✨ Feature Request ─────► Brainstorm → Phase │ │
88
+ │ ├── 🔧 Enhancement ─────────► Add to milestone │ │
89
+ │ ├── 🧹 Tech Debt ───────────► Refactor phase │ │
90
+ │ └── 💡 Brainstorm tiếp ─────► Explore → Decision │ │
91
+ │ │ │
92
+ │ /vp-evolve ─── Milestone mới / Major upgrade ─────────────────┘ │
93
+ │ │
94
+ │ /vp-pause ◄──────────────────► /vp-resume (bất kỳ lúc nào) │
95
+ │ │
96
+ └─────────────────────────────────────────────────────────────────────────────┘
97
+ ```
98
+
99
+ ---
100
+
101
+ ## Skills Reference
102
+
103
+ | Skill | Mô tả / Description | Trigger | Phase |
104
+ |-------|---------------------|---------|-------|
105
+ | `/vp-brainstorm` | Thu thập ý tưởng, quyết định / Collect ideas, decisions | "brainstorm", "ý tưởng" | Setup |
106
+ | `/vp-crystallize` | Tạo artifacts từ brainstorm / Generate artifacts | "crystallize", "setup" | Setup |
107
+ | `/vp-auto` | Autonomous phase/task loop; có `--fast`, `--from`, `--phase`, `--dry-run` / Autonomous execution (see Usage) | "auto", "vibe", "chạy" | Execute |
108
+ | `/vp-pause` | Lưu state để resume sau / Save state for later | "pause", "dừng" | Control |
109
+ | `/vp-resume` | Khôi phục context và tiếp tục / Restore and continue | "resume", "tiếp tục" | Control |
110
+ | `/vp-status` | Dashboard tiến độ / Progress dashboard | "status", "tiến độ" | Monitor |
111
+ | `/vp-request` | Bug/Feature/Enhancement/Debt / Ongoing requests | "bug", "feature", "yêu cầu" | Develop |
112
+ | `/vp-ui-components` | Curation + reuse UI component library | "ui components", "21st.dev" | Develop |
113
+ | `/vp-evolve` | Milestone mới, nâng cấp lớn / New milestone, major upgrade | "evolve", "milestone" | Develop |
114
+ | `/vp-docs` | Generate documentation / Tạo tài liệu | "docs", "tài liệu" | Finalize |
115
+ | `/vp-task` | Quản lý task thủ công / Manual task control | "task" | Manual |
116
+ | `/vp-debug` | Debug có hệ thống với state tracking / Systematic debugging | "debug", "gỡ lỗi" | Debug |
117
+ | `/vp-rollback` | Khôi phục về checkpoint / Rollback to checkpoint | "rollback", "revert" | Recovery |
118
+ | `/vp-audit` | Kiểm tra sync docs vs implementation | "audit", "kiểm tra" | Quality |
119
+
120
+ ---
121
+
122
+ ## Workflows
123
+
124
+ | Workflow | Mô tả / Description | Steps |
125
+ |----------|---------------------|-------|
126
+ | `brainstorm.md` | Interactive Q&A thu thập ý tưởng | 6 steps |
127
+ | `crystallize.md` | Metadata collection → Artifact generation | 12 steps |
128
+ | `autonomous.md` | Phase → Task → Verify → Iterate loop | 7 steps |
129
+ | `pause-work.md` | Gather state → HANDOFF.json → .continue-here.md | 6 steps |
130
+ | `resume-work.md` | Load state → Rebuild context → Route action | 8 steps |
131
+ | `request.md` | Detect type → Gather details → Triage → Track | 7 steps |
132
+ | `evolve.md` | Add feature / New milestone / Refactor modes | 5 steps |
133
+ | `documentation.md` | API / Dev / User docs generation | 5 steps |
134
+ | `debug.md` | New/continue/close debug session với state tracking | 7 steps |
135
+ | `rollback.md` | List checkpoints → Select → Revert safely | 5 steps |
136
+ | `audit.md` | Collect actual state → Parse docs → Report gaps | 6 steps |
137
+ | `ui-components.md` | Curate/classify/store reusable UI components | 6 steps |
138
+
139
+ ---
140
+
141
+ ## Templates
142
+
143
+ ### Project Templates (11)
144
+
145
+ | Template | Mô tả / Description |
146
+ |----------|---------------------|
147
+ | `AI-GUIDE.md` | Navigation cho AI - quick lookup, context loading strategy |
148
+ | `PROJECT-META.md` | Metadata: org, package, developer, headers |
149
+ | `ARCHITECTURE.md` | System design, services, data flow, tech decisions |
150
+ | `PROJECT-CONTEXT.md` | Domain knowledge, business rules, constraints |
151
+ | `SYSTEM-RULES.md` | Coding rules, comment standards, versioning, git conventions |
152
+ | `ROADMAP.md` | Phases, tasks, dependencies, verification |
153
+ | `TRACKER.md` | Live state, progress, decision log, version info |
154
+ | `CHANGELOG.md` | Keep a Changelog format |
155
+ | `CONTRIBUTING.md` | Contribution guidelines |
156
+ | `CONTRIBUTORS.md` | Attribution list |
157
+ | `README.md` | Professional README template |
158
+
159
+ ### Phase Templates (5)
160
+
161
+ | Template | Mô tả / Description |
162
+ |----------|---------------------|
163
+ | `SPEC.md` | Phase specification: goal, scope, requirements |
164
+ | `PHASE-STATE.md` | Task status table, blockers, decisions, metrics |
165
+ | `TASK.md` | Task details: objective, context, acceptance criteria, verification |
166
+ | `VERIFICATION.md` | Automated + manual checks, quality gate results |
167
+ | `SUMMARY.md` | Completion summary: tasks, decisions, files changed |
168
+
169
+ ---
170
+
171
+ ## Tech Stack
172
+
173
+ | Layer | Technology |
174
+ |-------|------------|
175
+ | **Skills** | Markdown-based SKILL.md with YAML frontmatter |
176
+ | **Workflows** | Step-by-step XML-like process definitions |
177
+ | **CLI** | Node.js (vp-tools.cjs, viepilot.cjs) |
178
+ | **State** | JSON (HANDOFF.json) + Markdown (TRACKER.md) |
179
+ | **Version Control** | Git tags for checkpoints (vp-p{N}-t{M}) |
180
+
181
+ ---
182
+
183
+ ## Bắt đầu nhanh / Quick Start
184
+
185
+ ### Cách 1: Một lệnh / One command
186
+
187
+ ```bash
188
+ git clone https://github.com/0-CODE/viepilot.git
189
+ cd viepilot
190
+ npx @0/viepilot install
191
+ ```
192
+
193
+ Chọn target profile trong wizard:
194
+ - Claude Code
195
+ - Cursor Agent
196
+ - Cursor IDE
197
+
198
+ Non-interactive:
199
+ ```bash
200
+ npx @0/viepilot install --target cursor-agent --yes
201
+ ```
202
+
203
+ ### Cách 2: Thủ công / Manual
204
+
205
+ ```bash
206
+ # Clone
207
+ git clone https://github.com/0-CODE/viepilot.git
208
+ cd viepilot
209
+
210
+ # Guided fallback from local source
211
+ node bin/viepilot.cjs install --target all --yes
212
+
213
+ # Copy skills to Cursor
214
+ cp -r skills/* ~/.cursor/skills/
215
+
216
+ # Copy workflows and templates
217
+ mkdir -p ~/.cursor/viepilot
218
+ cp -r workflows ~/.cursor/viepilot/
219
+ cp -r templates ~/.cursor/viepilot/
220
+ cp -r bin ~/.cursor/viepilot/
221
+
222
+ # Make CLI executable
223
+ chmod +x ~/.cursor/viepilot/bin/vp-tools.cjs
224
+ ```
225
+
226
+ ### Makefile Commands
227
+
228
+ ```bash
229
+ make install # Cài đặt ViePilot
230
+ make update # Cập nhật từ repo
231
+ make uninstall # Gỡ cài đặt
232
+ make help # Xem tất cả lệnh
233
+ ```
234
+
235
+ ---
236
+
237
+ ## Sử dụng / Usage
238
+
239
+ ### 1. Dự án mới / New Project
240
+
241
+ ```bash
242
+ # Bước 1: Brainstorm
243
+ /vp-brainstorm
244
+
245
+ # Bước 2: Tạo artifacts
246
+ /vp-crystallize
247
+
248
+ # Bước 3: Chạy autonomous
249
+ /vp-auto
250
+
251
+ # Bước 4: Generate docs
252
+ /vp-docs
253
+ ```
254
+
255
+ #### `/vp-auto` — flags và hành vi / Flags and behavior
256
+
257
+ | Gọi lệnh / Invocation | Ý nghĩa / Meaning |
258
+ |------------------------|-------------------|
259
+ | `/vp-auto` | Không truyền flag chỉ nghĩa là **không** bật `--fast`, `--from`, `--phase`, `--dry-run`. Workflow vẫn chọn phase chưa xong và lặp task. **Không** có trong spec quy tắc “không arg ⇒ bắt buộc dừng sau mỗi task”. |
260
+ | `/vp-auto --fast` | Bỏ qua các bước verify *tùy chọn* — thường ít điểm dừng hơn; gate bắt buộc (tests, lint, tiêu chí task) vẫn áp dụng. |
261
+ | `/vp-auto --from N` | Bắt đầu từ phase **N**. |
262
+ | `/vp-auto --phase N` | Chỉ chạy phase **N**. |
263
+ | `/vp-auto --dry-run` | Chỉ lập kế hoạch, không thực thi. |
264
+
265
+ **Thực tế trong Cursor / chat:** Một lượt AI thường kết thúc sau một task (hoặc tại control point: conflict, fail gate, bước *manual* trong file task). Để chạy tiếp, gọi lại `/vp-auto`, `/vp-resume`, hoặc nhắc rõ *“tiếp task kế trong phase …”*. Tài liệu chi tiết: [Autonomous mode](docs/user/features/autonomous-mode.md).
266
+
267
+ ### 2. Dự án đang phát triển / Ongoing Project
268
+
269
+ ```bash
270
+ # Report bug
271
+ /vp-request --bug
272
+
273
+ # Yêu cầu feature
274
+ /vp-request --feature
275
+
276
+ # Brainstorm thêm
277
+ /vp-request --brainstorm
278
+
279
+ # Xem requests
280
+ /vp-request --list
281
+ ```
282
+
283
+ ### 3. Pause/Resume
284
+
285
+ ```bash
286
+ # Lưu state
287
+ /vp-pause
288
+
289
+ # Tiếp tục
290
+ /vp-resume
291
+ ```
292
+
293
+ ### 4. Nâng cấp lớn / Major Upgrade
294
+
295
+ ```bash
296
+ /vp-evolve
297
+ # Options:
298
+ # 1. Add Feature
299
+ # 2. New Milestone
300
+ # 3. Refactor
301
+ ```
302
+
303
+ ---
304
+
305
+ ## Publish npm (Maintainers)
306
+
307
+ ```bash
308
+ npm run verify:release
309
+ npm publish --access public
310
+ npm run smoke:published
311
+ ```
312
+
313
+ CI workflow publish: `.github/workflows/release-npm.yml` (requires `NPM_TOKEN` secret).
314
+ Full guide: `docs/dev/deployment.md`.
315
+
316
+ ---
317
+
318
+ ## Cấu trúc dự án / Project Structure
319
+
320
+ ```
321
+ viepilot/
322
+ ├── skills/ # 13 Skill definitions
323
+ │ ├── vp-brainstorm/ # Thu thập ý tưởng
324
+ │ │ └── SKILL.md
325
+ │ ├── vp-crystallize/ # Tạo artifacts
326
+ │ ├── vp-auto/ # Autonomous execution
327
+ │ ├── vp-pause/ # Save state
328
+ │ ├── vp-resume/ # Restore state
329
+ │ ├── vp-status/ # Progress dashboard
330
+ │ ├── vp-request/ # Bug/Feature/Enhancement
331
+ │ ├── vp-evolve/ # Milestone/Upgrade
332
+ │ ├── vp-docs/ # Documentation
333
+ │ ├── vp-task/ # Manual task control
334
+ │ ├── vp-debug/ # Systematic debugging
335
+ │ ├── vp-rollback/ # Checkpoint recovery
336
+ │ └── vp-audit/ # Documentation sync
337
+
338
+ ├── workflows/ # 11 Workflow definitions
339
+ │ ├── brainstorm.md # Brainstorm session flow
340
+ │ ├── crystallize.md # Artifact generation flow
341
+ │ ├── autonomous.md # Execution loop
342
+ │ ├── pause-work.md # State preservation
343
+ │ ├── resume-work.md # Context restoration
344
+ │ ├── request.md # Request management
345
+ │ ├── evolve.md # Evolution flow
346
+ │ ├── documentation.md # Docs generation
347
+ │ ├── debug.md # Debug session workflow
348
+ │ ├── rollback.md # Rollback workflow
349
+ │ └── audit.md # Audit workflow
350
+
351
+ ├── templates/ # 16 Templates
352
+ │ ├── project/ # 11 Project-level templates
353
+ │ │ ├── AI-GUIDE.md
354
+ │ │ ├── PROJECT-META.md
355
+ │ │ ├── ARCHITECTURE.md
356
+ │ │ ├── PROJECT-CONTEXT.md
357
+ │ │ ├── SYSTEM-RULES.md
358
+ │ │ ├── ROADMAP.md
359
+ │ │ ├── TRACKER.md
360
+ │ │ ├── CHANGELOG.md
361
+ │ │ ├── CONTRIBUTING.md
362
+ │ │ ├── CONTRIBUTORS.md
363
+ │ │ └── README.md
364
+ │ │
365
+ │ └── phase/ # 5 Phase-level templates
366
+ │ ├── SPEC.md
367
+ │ ├── PHASE-STATE.md
368
+ │ ├── TASK.md
369
+ │ ├── VERIFICATION.md
370
+ │ └── SUMMARY.md
371
+
372
+ ├── lib/ # Shared CLI logic (coverage target for Jest)
373
+ │ └── cli-shared.cjs # Validators, project root, Levenshtein helpers
374
+
375
+ ├── bin/ # CLI tools
376
+ │ └── vp-tools.cjs # 13 commands (requires ../lib/cli-shared.cjs)
377
+
378
+ ├── tests/ # Test suite (202 tests)
379
+ │ ├── unit/ # Unit tests
380
+ │ │ ├── validators.test.js # CLI subprocess + in-process coverage tests
381
+ │ │ └── ai-provider-compat.test.js # 142 AI compat tests
382
+ │ └── integration/ # Integration tests
383
+ │ └── workflow.test.js # 22 E2E tests
384
+
385
+ ├── .github/workflows/ # CI/CD
386
+ │ └── ci.yml # Node 18/20/22 matrix
387
+
388
+ ├── docs/ # Documentation
389
+ │ ├── README.md # Documentation index
390
+ │ ├── getting-started.md # Hướng dẫn bắt đầu
391
+ │ ├── skills-reference.md # Chi tiết skills
392
+ │ ├── advanced-usage.md # Power user guide
393
+ │ ├── troubleshooting.md # Common issues
394
+ │ ├── api/ # API folder (N/A HTTP — see README there)
395
+ │ ├── videos/ # Video tutorial scripts
396
+ │ ├── dev/ # Developer guide
397
+ │ └── user/ # User guide
398
+
399
+ ├── examples/ # Example projects
400
+ │ ├── web-app/ # Next.js example
401
+ │ ├── api-service/ # Express + JWT example
402
+ │ └── cli-tool/ # Node.js CLI example
403
+
404
+ ├── install.sh # Installation script
405
+ ├── Makefile # Developer commands
406
+ ├── CHANGELOG.md # Version history
407
+ ├── CONTRIBUTING.md # Contribution guide
408
+ ├── SECURITY.md # Security policy
409
+ ├── LICENSE # MIT License
410
+ └── README.md # This file
411
+ ```
412
+
413
+ ---
414
+
415
+ ## Standards / Tiêu chuẩn
416
+
417
+ | Standard | Specification | Usage |
418
+ |----------|---------------|-------|
419
+ | **Semantic Versioning** | [semver.org](https://semver.org/) | Version management |
420
+ | **Conventional Commits** | [conventionalcommits.org](https://www.conventionalcommits.org/) | Git commit messages |
421
+ | **Keep a Changelog** | [keepachangelog.com](https://keepachangelog.com/) | Changelog format |
422
+ | **Comment Standards** | Good/Bad examples | Code documentation |
423
+ | **Contributor Recognition** | Emoji-based types | Attribution |
424
+
425
+ ---
426
+
427
+ ## Output Structure / Cấu trúc đầu ra
428
+
429
+ Khi dùng ViePilot cho một dự án, cấu trúc được tạo ra:
430
+
431
+ ```
432
+ your-project/
433
+ ├── .viepilot/ # ViePilot artifacts
434
+ │ ├── AI-GUIDE.md # AI navigation
435
+ │ ├── PROJECT-META.md # Project metadata
436
+ │ ├── ARCHITECTURE.md # System design
437
+ │ ├── PROJECT-CONTEXT.md # Domain knowledge
438
+ │ ├── SYSTEM-RULES.md # Coding standards
439
+ │ ├── ROADMAP.md # Development plan
440
+ │ ├── TRACKER.md # Progress tracking
441
+ │ ├── HANDOFF.json # Machine state
442
+ │ ├── schemas/ # Database, API schemas
443
+ │ ├── phases/ # Phase directories
444
+ │ │ ├── 01-setup/
445
+ │ │ │ ├── SPEC.md
446
+ │ │ │ ├── PHASE-STATE.md
447
+ │ │ │ ├── tasks/
448
+ │ │ │ ├── VERIFICATION.md
449
+ │ │ │ └── SUMMARY.md
450
+ │ │ └── ...
451
+ │ ├── requests/ # Bug/Feature requests
452
+ │ └── milestones/ # Archived milestones
453
+
454
+ ├── docs/
455
+ │ ├── brainstorm/ # Brainstorm sessions
456
+ │ ├── api/ # API documentation
457
+ │ ├── dev/ # Developer guides
458
+ │ └── user/ # User guides
459
+
460
+ ├── CHANGELOG.md
461
+ ├── CONTRIBUTING.md
462
+ ├── CONTRIBUTORS.md
463
+ ├── LICENSE
464
+ └── README.md
465
+ ```
466
+
467
+ ---
468
+
469
+ ## Tài liệu / Documentation
470
+
471
+ | Tài liệu / Document | Nội dung / Content |
472
+ |---------------------|-------------------|
473
+ | [Documentation Index](docs/README.md) | Tổng hợp tất cả tài liệu / Full docs index |
474
+ | [API / interfaces](docs/api/README.md) | Không có REST — CLI & file contracts / No HTTP API |
475
+ | [Getting Started](docs/getting-started.md) | Hướng dẫn bắt đầu / Quick start guide |
476
+ | [Quick Start (User)](docs/user/quick-start.md) | 5-minute guide |
477
+ | [Skills Reference](docs/skills-reference.md) | Chi tiết từng skill / Detailed skill docs |
478
+ | [CLI Reference](docs/dev/cli-reference.md) | vp-tools 13 commands |
479
+ | [Advanced Usage](docs/advanced-usage.md) | Power user features |
480
+ | [Troubleshooting](docs/troubleshooting.md) | Common issues & fixes |
481
+ | [Architecture](docs/dev/architecture.md) | System design |
482
+ | [Contributing Guide](docs/dev/contributing.md) | How to add skills/commands |
483
+ | [Testing Guide](docs/dev/testing.md) | Test structure & patterns |
484
+ | [Examples](examples/README.md) | 3 example projects |
485
+ | [CHANGELOG](CHANGELOG.md) | Lịch sử thay đổi / Version history |
486
+ | [CONTRIBUTING](CONTRIBUTING.md) | Hướng dẫn đóng góp / How to contribute |
487
+ | [SECURITY](SECURITY.md) | Chính sách bảo mật / Security policy |
488
+
489
+ ---
490
+
491
+ ## Đóng góp / Contributing
492
+
493
+ Chúng tôi hoan nghênh mọi đóng góp! / We welcome contributions!
494
+
495
+ ```bash
496
+ # Fork và clone
497
+ git clone https://github.com/0-CODE/viepilot.git
498
+ cd viepilot
499
+
500
+ # Tạo branch
501
+ git checkout -b feat/your-feature
502
+
503
+ # Commit theo Conventional Commits
504
+ git commit -m "feat(skill): add new capability"
505
+
506
+ # Push và tạo PR
507
+ git push origin feat/your-feature
508
+ ```
509
+
510
+ Xem [CONTRIBUTING.md](CONTRIBUTING.md) để biết chi tiết.
511
+
512
+ ---
513
+
514
+ ## Bảo mật / Security
515
+
516
+ Để báo cáo lỗ hổng bảo mật, vui lòng xem [SECURITY.md](SECURITY.md).
517
+
518
+ To report security vulnerabilities, please see [SECURITY.md](SECURITY.md).
519
+
520
+ ---
521
+
522
+ ## Tác giả / Author
523
+
524
+ | | |
525
+ |---|---|
526
+ | **Lead Developer** | Trần Thành Nhân |
527
+ | **Organization** | Công Ty TNHH TMDV CÔNG NGHỆ & GIẢI PHÁP CREPS VIỆT NAM |
528
+ | **Repository** | [github.com/0-CODE/viepilot](https://github.com/0-CODE/viepilot) |
529
+
530
+ Xem danh sách đóng góp tại / See all contributors at: [CONTRIBUTORS.md](CONTRIBUTORS.md)
531
+
532
+ ---
533
+
534
+ ## Giấy phép / License
535
+
536
+ MIT License - Xem [LICENSE](LICENSE) để biết chi tiết.
537
+
538
+ Copyright © 2026 Công Ty TNHH TMDV CÔNG NGHỆ & GIẢI PHÁP CREPS VIỆT NAM
539
+
540
+ ---
541
+
542
+ <p align="center">
543
+ <strong>ViePilot</strong> - <em>Vibe coding với sự kiểm soát / Vibe coding with control</em>
544
+ <br><br>
545
+ Developed by <strong>Trần Thành Nhân</strong>
546
+ <br>
547
+ <strong>Công Ty TNHH TMDV CÔNG NGHỆ & GIẢI PHÁP CREPS VIỆT NAM</strong>
548
+ <br><br>
549
+ Copyright © 2026
550
+ </p>