Code Quality — Đánh giá sức khỏe codebase
Đo lường và phân tích chất lượng code: health score, technical debt, complexity metrics.Cập nhật bộ mới:
/health (code quality dashboard 0-10), /tech-debt (debt register), /ck-code-review (code review automation).Cú pháp
Bảng tham chiếu nhanh
/code-health — Codebase Health
1
Bước 1: Scan metrics
Đo: test coverage, lint errors, type safety, complexity, duplication.
2
Bước 2: Assess quality
So sánh với thresholds. Score từ 0-100.
3
Bước 3: Report
Tổng hợp: strong points, weak areas, recommendations.
/debt-analysis — Technical Debt
- Debt inventory: categorized list (architecture, code, test, docs, infra)
- Prioritization: impact × effort matrix
- Refactoring roadmap: phased plan with estimates
Ví dụ thực tế
- /code-health output
- /debt-analysis output
Khi nào dùng / không dùng
Skill bổ trợ
/health — Code quality dashboard (0-10)
/health — Code quality dashboard (0-10)
Prefix: Khi dùng: Đầu sprint, plan refactoring, executive reporting.
/health, /health --detailed, /health --trendsDashboard sức khỏe: coverage, complexity, duplication, maintainability score (0-10)./tech-debt — Technical debt register
/tech-debt — Technical debt register
Prefix: Khi dùng: Quarterly planning, after refactoring, before major changes.
/tech-debt, /tech-debt --register, /tech-debt --prioritizeIdentify + register tech debt: architecture, code, tests, docs. Prioritization matrix./ck-code-review — Automated code review
/ck-code-review — Automated code review
Prefix: Khi dùng: Before PR submission, quality gate, learning.
/ck-code-review, /ck-code-review <file>, /ck-code-review --fixAI-assisted code review: patterns, best practices, potential bugs.