Audit — /qa-full:audit
Đánh giá nhanh sức khỏe dự án. Chỉ scan và report, không generate tests hay fix code.
Cập nhật bộ mới: Dùng
/health cho code quality dashboard chi tiết (0-10 score). Dùng /cso daily cho quick security audit hàng ngày.Cú pháp
5 Checks thực hiện
1
1. Scan codebase
Glob tìm tất cả source files + test files → đếm số lượng.
2
2. Coverage
Chạy
pnpm test --coverage → lấy lines/branches/functions %.3
3. Tech debt
Grep tìm:
- Files > 200 dòng
anytype trong TypeScriptTODO/FIXME/HACKcomments
4
4. Security
npm audit --audit-level=high- Grep tìm secrets trong code (API keys, passwords)
5
5. Architecture
- Tìm circular dependencies
- Files quá lớn (> 500 dòng)
Output: Health Score Report
- 85%+: Tốt
- 70-84%: Chấp nhận được
- Dưới 70%: Cần cải thiện
Khi nào dùng
- Nhận dự án mới, cần đánh giá tình trạng
- Đầu sprint muốn xem tổng quan
- Báo cáo cho PM/Lead về chất lượng code
- Trước khi quyết định refactor
Audit chỉ đọc và báo cáo. Nếu muốn tự động bổ sung tests, dùng
/qa-full:check. Nếu muốn full QA, dùng /qa-full:full.Related Skills
/health — Code quality dashboard (0-10 score)
/health — Code quality dashboard (0-10 score)
Prefix: Khi dùng: Khi cần biết chi tiết code quality score với breakdown từng metrics
/health, /health --detailedChạy comprehensive code quality check với scoring 0-10. Chi tiết hơn /qa-full:audit về code metrics./cso daily — Chief Security Officer audit (daily)
/cso daily — Chief Security Officer audit (daily)
Prefix: Khi dùng: Hàng ngày check security hoặc trước release gate
/cso daily, /cso comprehensiveQuick security audit: scan secrets, dependencies, OWASP, vulnerabilities. /cso daily cho daily check, /cso comprehensive cho deep audit trước release.