technical-debt-assessment — Claude Code skill: how to install
Systematically measures, categorizes, and prioritizes technical debt to help teams plan refactoring and allocate sprint time based on ROI.
npx skills add aj-geddes/useful-ai-prompts --skill technical-debt-assessment -a claude-codeWhat technical-debt-assessment does
This skill provides a structured framework to evaluate debt items across codebases. Each finding is cataloged with specific attributes: category (code, architecture, test, documentation, or security), estimated effort in hours, severity, and sprint-level interest cost.
Priority scoring weighs severity against impact on a 1 to 10 scale. The repository includes guides for a debt calculator and a code quality scanner in the references/ directory. Fixing every flaw simultaneously is a mistake; tracking ROI ensures high-interest issues get resolved first.
What it helps with
- Quantify technical debt impact across legacy repositories
- Prioritize refactoring tasks based on return on investment
- Categorize debt by code, architecture, security, and tests
- Estimate sprint interest costs for unresolved issues
Example prompts for the agent
- Assess technical debt in the payment service and structure findings as DebtItem entries
- Calculate priority scores for the current architecture refactoring backlog
- Identify high-severity debt items and calculate the cost per sprint
How to install technical-debt-assessment
1Skills CLI (Vercel)
npx skills add aj-geddes/useful-ai-prompts --skill technical-debt-assessment -a claude-code2Manually: put the files in place
~/.claude/skills/technical-debt-assessment/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/technical-debt-assessment/
1Skills CLI (Vercel)
npx skills add aj-geddes/useful-ai-prompts --skill technical-debt-assessment -a codex2Manually: put the files in place
.agents/skills/technical-debt-assessment/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add aj-geddes/useful-ai-prompts --skill technical-debt-assessment -a cursor2Manually: put the files in place
.cursor/skills/technical-debt-assessment/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install aj-geddes/useful-ai-prompts technical-debt-assessment2Manually: put the files in place
.github/skills/technical-debt-assessment/SKILL.md1Skills CLI (Vercel)
npx skills add aj-geddes/useful-ai-prompts --skill technical-debt-assessment -a gemini-cli2Platform CLI
gemini skills install https://github.com/aj-geddes/useful-ai-prompts --path skills/technical-debt-assessmentManually: put the files in place
.devin/skills/technical-debt-assessment/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add aj-geddes/useful-ai-prompts --skill technical-debt-assessment -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about technical-debt-assessment
How do I install technical-debt-assessment in Claude Code?
Run npx skills add aj-geddes/useful-ai-prompts --skill technical-debt-assessment -a claude-code in your terminal. The skill file is placed in ~/.claude/skills/technical-debt-assessment/SKILL.md.
What metrics does this skill track for each debt item?
It records category, severity, estimated effort in hours, an impact score from 1 to 10, and interest cost per sprint.
What debt categories are supported?
The skill groups items into code, architecture, test, documentation, and security.
Source text
SKILL.md · MIT
---
name: technical-debt-assessment
description: >
Assess, quantify, and prioritize technical debt using code analysis, metrics,
and impact analysis. Use when planning refactoring, evaluating codebases, or
making architectural decisions.
---
# Technical Debt Assessment
## Table of Contents
- [Overview](#overview)
- [When to Use](#when-to-use)
- [Quick Start](#quick-start)
- [Reference Guides](#reference-guides)
- [Best Practices](#best-practices)
## Overview
Systematically identify, measure, and manage technical debt to make informed decisions about code quality investments.
## When to Use
- Legacy code evaluation
- Refactoring prioritization
- Sprint planning
- Code quality initiatives
- Acquisition due diligence
- Architectural decisions
## Quick Start
Minimal working example:
```typescript
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)
```
## Reference Guides
Detailed implementations in the `references/` directory:
| Guide | Contents |
|---|---|
| [Technical Debt Calculator](references/technical-debt-calculator.md) | Technical Debt Calculator |
| [Code Quality Scanner](references/code-quality-scanner.md) | Code Quality Scanner |
## Best Practices
### ✅ DO
- Quantify debt impact
- Prioritize by ROI
- Track debt over time
- Include debt in sprints
- Document debt decisions
- Set quality gates
### ❌ DON'T
- Ignore technical debt
- Fix everything at once
- Skip impact analysis
- Make emotional decisions
© aj-geddes · MIT · aj-geddes/useful-ai-prompts