Assess, quantify, and prioritize technical debt using code analysis, metrics, and impact analysis. Use when planning refactoring, evaluating codebases, or making architectural decisions.
Systematically identify, measure, and manage technical debt to make informed decisions about code quality investments.
Minimal working example:
interface DebtItem {
id: string;
title: string;
description: string;
category: "code" | "architecture" | "test" | "documentation" | "security";
severity: "low" | "medium" | "high" | "critical";
effort: number; // hours
impact: number; // 1-10 scale
interest: number; // cost per sprint if not fixed
}
class TechnicalDebtAssessment {
private items: DebtItem[] = [];
addDebtItem(item: DebtItem): void {
this.items.push(item);
}
calculatePriority(item: DebtItem): number {
const severityWeight = {
low: 1,
medium: 2,
high: 3,
critical: 4,
};
// ... (see reference guides for full implementation)
Detailed implementations in the references/ directory:
| Guide | Contents | |---|---| | Technical Debt Calculator | Technical Debt Calculator | | Code Quality Scanner | Code Quality Scanner |
Copy a source-pinned command for your client. You run it yourself.
Destination: .claude/skills/technical-debt-assessment · pinned to the source commit
git clone https://github.com/aj-geddes/useful-ai-prompts.git
cd useful-ai-prompts
git checkout 3f5182cfd739fc113f4af5244a1cf342ad7f7911
mkdir -p ".claude/skills/technical-debt-assessment"
cp -r "skills/technical-debt-assessment" ".claude/skills/technical-debt-assessment"Review the source before running. This copies files into your project; it is not a one-click install and does not verify runtime safety.
Scanner static-checks@0.1.0 · commit 3f5182cfd739. Static checks cannot prove runtime safety – review the source and the exact diff before installing. How checks work.
No static rules matched. This is not a safety guarantee.