agentleFS
kienbui1995kienbui1995/magic-powers/skills/tech-debt-triage/SKILL.md

tech-debt-triage

Skill0 starsChanged 8 months agoMITView on GitHub

Use when prioritizing technical debt, deciding what to fix vs live with, or allocating time for debt reduction

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 3 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    When technical debt is accumulating and affecting velocity, morale, or reliability, and the team needs a structured approach to address it.

    line 9
  2. Distinctive:

    Create a debt register: name, location, rough effort, last touched date.

    line 22
  3. Distinctive:

    No measurement of whether debt reduction improved velocity

    line 58

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Tech Debt Triage

When to Use

When technical debt is accumulating and affecting velocity, morale, or reliability, and the team needs a structured approach to address it.

Core Jobs

1. Make Debt Visible

Collect all known debt items:

  • Developer gripes in retros
  • TODO/FIXME comments in code
  • Slow test suites, flaky tests
  • Manual processes that should be automated
  • Known architectural shortcomings (no abstraction layer, tight coupling)
  • Security vulnerabilities below critical threshold

Create a debt register: name, location, rough effort, last touched date.

2. Classify Debt

TypeExampleTreatment
CriticalSecurity vuln, data corruption riskFix this sprint
HighCauses bugs, slows feature dev significantlySchedule soon
MediumSlows dev, not blockingBatch with related work
LowAnnoyance, cosmeticOpportunistic (fix when passing by)

3. Prioritize with Business Impact

Score: (Developer pain × Feature velocity impact) / Effort

  • High pain + high velocity impact + low effort → fix now
  • Low pain + low impact → deprioritize, don't spend cycles on it

4. Allocate Time

Options:

  • Explicit allocation: 20% of sprint capacity reserved for debt
  • Paired with features: fix debt in the area you're already touching
  • Debt sprints: occasional full sprints for major rework (use sparingly)

5. Prevent Accumulation

  • Definition of done includes: "no new debt added without a ticket"
  • Code review: flag debt additions, not just bugs
  • Architectural decisions get ADRs so future debt is intentional

Key Outputs

  • Debt register with classification
  • Prioritized top 5 debt items this quarter
  • Time allocation policy
  • Debt-prevention process

Anti-Patterns

  • "We'll fix it later" with no ticket created
  • Debt sprints as the only mechanism (too infrequent)
  • Prioritizing low-impact cosmetic debt over high-impact architectural debt
  • No measurement of whether debt reduction improved velocity

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.