Plan — Lập kế hoạch
Tạo kế hoạch implementation chi tiết từ ý tưởng. Có research agents chạy song song để tìm hiểu codebase trước khi plan./plan:fast, /plan:hard, /plan:two, /plan:parallel, /plan:cro, /plan:ci đã bỏ. Thay bằng /plan (tự chọn depth), cộng với /plan validate, /plan red-team. Xem cấu trúc skill mới để biết đầy đủ.Cú pháp
Luồng hoạt động bên trong
Khi bạn gõ/plan "task", đây là những gì xảy ra bên trong:
Bước 1: Pre-Creation Check
./plans/ xem có plan nào đang active hoặc liên quan không.- Có plan active → hỏi: “Tiếp tục plan này? [Y/n]”
- Có plan gợi ý từ branch → hỏi: “Kích hoạt plan này hay tạo mới?”
- Không có plan → tạo mới
Bước 2: Cross-Plan Scan
blockedBy/blocks ở CẢ HAI plan.Bước 3: Scope Challenge
--fast hoặc task quá đơn giản (<20 từ).Bước 4: Mode Detection
Bước 5: Spawn Research Agents (song song)
--fast.Bước 6: Codebase Analysis
./docs/), scout codebase nếu cần, hiểu patterns hiện có.Bước 7: Plan Creation (planner subagent)
plan.md— overview, phases, status, linksphase-01-*.md,phase-02-*.md— chi tiết từng phase
Bước 8: Red Team Review (hard/parallel/two)
/plan red-team — adversarial reviewers cố tìm lỗ hổng trong plan.Bước 9: Validation Interview (hard/parallel/two)
/plan validate — hỏi câu hỏi critical để validate plan.Bước 10: Hydrate Tasks + Output
Lệnh Plan chính
Skill auto-detects độ phức tạp task và chọn research mode thích hợp.Sub-commands: Validate & Red Team
Sau khi plan được tạo, sử dụng các commands sau để review:Cách sử dụng Plan Validation & Red Team
/plan validate {file} — Validate plan
Gọi skill validation để hỏi câu hỏi critical về assumptions trong plan:
- Có bỏ sót edge cases?
- Dependencies đầy đủ?
- Estimation thực tế?
/plan red-team {file} — Adversarial Review
Gọi red team tìm lỗ hổng, trade-offs chưa cân nhắc:
- Architecture weakness?
- Scope creep risks?
- Performance concerns?
Ví dụ thực tế
- Input
- Output
So sánh với chat trực tiếp
Khi nào dùng / không dùng
Sub-commands
Plan Review bổ sung (Persona-based)
Sau khi plan được tạo, có thể gọi thêm review từ các personas khác nhau:Lưu ý & Best Practices
- Plan quá rộng (8+ files trong 1 phase) → khó review, dễ conflict
- Skip
/plan validate→ assumptions sai, phải rewrite plan - Không đọc research output → plan dựa trên assumptions thay vì facts
- Skip CEO/Eng review cho high-stakes features → thiếu alignment
- Skill auto-detects độ phức tạp; với task phức tạp, nó tự spawn researchers
- Mỗi phase nên dưới 5 files — chia nhỏ nếu quá rộng
- Luôn validate plan trước khi cook:
/plan validate path/to/plan.md - Dùng
/plan-ceo-review+/plan-eng-reviewcho features liên quan tới business/architecture
Sau khi plan xong
Review plan
- Đúng requirements không?
- Architecture hợp lý?
- Steps đúng thứ tự?
Validate & Red Team (tùy chọn)
Implement
Chi tiết lệnh Plan (Accordion)
/plan — Plan với auto-detect depth
/plan — Plan với auto-detect depth
/plan "task description"Tạo kế hoạch implementation chi tiết. Skill tự động detect độ phức tạp:- Task đơn giản (<20 từ) → skip scope challenge, minimal research
- Task trung bình → spawn 1-2 researchers, optional red team
- Task phức tạp (multi-file, arch change) → spawn 2+ researchers, red team bắt buộc
/plan validate — Validate assumptions
/plan validate — Validate assumptions
/plan validate {file.md}Hỏi câu hỏi critical để validate assumptions trong plan đã tạo:- Edge cases bị bỏ sót?
- Dependencies đầy đủ?
- Estimation thực tế?
- Requirements rõ ràng?
/plan red-team — Adversarial review
/plan red-team — Adversarial review
/plan red-team {file.md}Gọi red team tìm lỗ hổng, trade-offs chưa cân nhắc:- Architecture weakness?
- Scope creep risks?
- Performance concerns?
- Security holes?
- Team alignment issues?
/plan-ceo-review — CEO/founder perspective
/plan-ceo-review — CEO/founder perspective
/plan-ceo-reviewCEO/founder review kế hoạch từ business angle:- Phù hợp business goals?
- Timeline realistic?
- Competition + market implications?
- 10-star solution hay safe incremental?
/plan-eng-review — Eng manager perspective
/plan-eng-review — Eng manager perspective
/plan-eng-reviewEng manager review kế hoạch từ execution angle:- Tech risk assessment?
- Resource planning realistic?
- Dependency lock-in?
- Team readiness?