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.
Health Score Breakdown:

/debt-analysis — Technical Debt

Output:
  • Debt inventory: categorized list (architecture, code, test, docs, infra)
  • Prioritization: impact × effort matrix
  • Refactoring roadmap: phased plan with estimates

Ví dụ thực tế


Khi nào dùng / không dùng


Skill bổ trợ

Prefix: /health, /health --detailed, /health --trendsDashboard sức khỏe: coverage, complexity, duplication, maintainability score (0-10).
Khi dùng: Đầu sprint, plan refactoring, executive reporting.
Prefix: /tech-debt, /tech-debt --register, /tech-debt --prioritizeIdentify + register tech debt: architecture, code, tests, docs. Prioritization matrix.
Khi dùng: Quarterly planning, after refactoring, before major changes.
Prefix: /ck-code-review, /ck-code-review <file>, /ck-code-review --fixAI-assisted code review: patterns, best practices, potential bugs.
Khi dùng: Before PR submission, quality gate, learning.