Advanced Skills — Công cụ nâng cao
Bộ skills chuyên biệt cho các tác vụ phức tạp: debug có hệ thống, predict impact, generate scenarios, audit security.Bảng tham chiếu nhanh
| Lệnh | Mô tả | Use case |
|---|---|---|
/ck-debug | Debug systematic — root cause trước fix | Bug phức tạp, khó reproduce |
/ck-plan | Plan implementation chi tiết | Khi /plan chưa đủ sâu |
/ck-predict | 5 experts debate proposed changes | Trước khi merge PR lớn |
/ck-scenario | Generate edge cases (12 dimensions) | Viết test comprehensive |
/ck-security | STRIDE + OWASP security audit | Trước khi deploy |
/ck-loop | Iterative optimization loop | Tối ưu performance metric |
/ck-autoresearch | Autonomous research iterations | Nghiên cứu tự động N lần |
/ck-debug — Debug có hệ thống
Khác với/fix (fix nhanh), /ck-debug bắt buộc tìm root cause trước khi sửa.
/ck-predict — 5 Experts Debate
5 expert personas tranh luận về proposed changes trước khi implement:| Expert | Góc nhìn |
|---|---|
| Architect | Architecture impact, scalability |
| Security | Vulnerabilities, attack vectors |
| Performance | Speed, memory, N+1 queries |
| UX | User experience, edge cases |
| Ops | Deployment, monitoring, rollback |
/ck-scenario — Generate Edge Cases
Phân tích feature qua 12 dimensions để generate comprehensive test scenarios:| Dimension | Ví dụ |
|---|---|
| Input boundaries | Min/max values, empty strings, unicode |
| State transitions | Login → logout → re-login, expired tokens |
| Concurrency | 2 users edit same resource simultaneously |
| Error recovery | Network drop mid-transaction |
| Permission | Admin vs user vs guest access |
| Data volume | 1 record vs 100K records |
/ck-security — STRIDE + OWASP Audit
- STRIDE: Spoofing, Tampering, Repudiation, Information disclosure, DoS, Elevation
- OWASP Top 10: Injection, broken auth, XSS, SSRF, v.v.
/ck-loop & /ck-autoresearch — Iterative Optimization
Khi nào dùng / không dùng
| Dùng | Không dùng |
|---|---|
| Bug phức tạp, cần root cause | Bug đơn giản (dùng /fix:fast) |
| Trước merge PR lớn (predict) | Small changes, low risk |
| Viết test comprehensive (scenario) | Quick test cho 1 function |
| Security review trước deploy | Internal tool, no user data |
| Performance optimization loop | One-off performance check |