🎯 VOK Command Workflow Guide
Hướng dẫn trực quan giúp bạn hiểu cách VOK hoạt động và chọn đúng lệnh cho từng tình huống.
🔄 VOK Flow Diagram
Tổng quan cách VOK hoạt động từ khi gọi lệnh đến khi nhận kết quả.
ENTRY POINT
Bạn gõ
Bạn gõ vok từ bất kỳ đâu
vok
Global command - hoạt động ở mọi thư mục
CONFIG CHECK
VOK kiểm tra cấu hình
Đã có config?
❌ Chưa
🛠️
SETUP MENU
Chọn default model
✅ Rồi
➡️
CONTINUE
Load config
MODE SELECTION
Chọn chế độ chạy
Quick Mode
vok "task"Chạy 1 task, auto-route đến AI phù hợp, trả kết quả
Task → Smart Route → AI → Result
Session Mode
vok --sessionMở Claude Code terminal, dùng slash commands
/plan → /cook → /review → /git
Interactive Mode
vokREPL - gõ nhiều tasks liên tiếp
Prompt ↔ Response ↔ Prompt
SMART ROUTING
Tự động chọn AI Model
Task của bạn
"implement user auth"
🧠
Keyword Analyzer
implement
→
CODING
EXECUTION
Thực thi qua CCS
1
📄
Load Agent Prompt
.claude/agents/coder.md
.claude/agents/coder.md
→
2
📋
Inject Context
PROJECT_PLAN.md, DEV_LOG.md
PROJECT_PLAN.md, DEV_LOG.md
→
3
🚀
Execute via CCS
ccs glm -p "task"
ccs glm -p "task"
→
4
✅
Return Result
Code, explanations, files
Code, explanations, files
💬 Session Mode Flow
Khi bạn dùng vok --session, Claude Code terminal mở ra với các slash commands.
Claude Code via CCS
>
/plan "implement user authentication"
📝
Loading .claude/commands/plan.md...
🧠
Using Planner Agent...
✅
Created: plans/2024-12-25-auth/plan.md
>
/code @plan.md
⚡
Implementing step by step...
🌳 Decision Tree - Chọn lệnh nào?
Không biết dùng lệnh gì? Xem decision tree dưới đây!
🎯 Bạn muốn làm gì?
🆕 Dự án mới?
/bootstrap
📂 Join dự án?
/scout → /docs
🔨 Build feature?
⚡ Nhanh
/cook
🛡️ Kỹ
/plan → /code🐛 Fix bug?
/debug → /fix
📦 Git?
/git
🆕 Bắt đầu dự án mới
1
vok --session
Mở session mode
2
/bootstrap e-commerce với React + Node
AI research, plan, setup structure
3
/git commit "Initial setup"
Commit và push
📂 Join dự án có sẵn
1
cd /project && vok --session
Navigate và mở session
2
/scout "find auth files"
Explore codebase
3
/docs "summarize this codebase"
Hiểu project
💡 Use Cases - Ví dụ thực tế
Thêm Authentication
# Nhanh
/cook "implement JWT auth"
# Kỹ
/plan "auth system" → /code @plan.md
Sửa Bug Production
/debug "500 error on checkout"
/fix "payment timeout issue"
Design Dashboard
/brainstorm "dashboard layout"
/design "admin panel with charts"
Thêm API Endpoint
vok "create REST API for users"
# Routes to GLM (cheap, fast)
🔄 Common Workflows
⚡ FAST
Quick Feature
/cook→
/git push
🛡️ SAFE
Careful Feature
/plan→
/code→
/review→
/git
🐛 DEBUG
Fix Issues
/debug→
/fix→
/test💪 Pro Tips
Tiết kiệm chi phí
- Coding →
GLM($0.001) - Review →
Gemini(FREE) - Planning →
Agy(FREE) - Critical →
Claude
Đừng mix workflows
- ❌
/plan → /cook - ✅
/plan → /code - ✅
/cookstandalone
Parallel Execution
- Backend + Frontend chạy song song
- Subagents hoạt động parallel
- Config:
parallelExecution: true
📋 Quick Cheat Sheet
| Tình huống | Lệnh |
|---|---|
| Tạo project mới | /bootstrap |
| Chưa rõ cách làm | /brainstorm |
| Làm nhanh | /cook |
| Plan kỹ trước | /plan → /code |
| Không biết lỗi ở đâu | /debug |
| Biết lỗi, cần fix | /fix |
| Commit & push | /git push |
| Hiểu codebase | /scout |