Get the FREE Ultimate OpenClaw Setup Guide →

tech-debt

npx machina-cli add skill anthropics/knowledge-work-plugins/tech-debt --openclaw
Files (1)
SKILL.md
1.4 KB

Tech Debt Management

Systematically identify, categorize, and prioritize technical debt.

Categories

TypeExamplesRisk
Code debtDuplicated logic, poor abstractions, magic numbersBugs, slow development
Architecture debtMonolith that should be split, wrong data storeScaling limits
Test debtLow coverage, flaky tests, missing integration testsRegressions ship
Dependency debtOutdated libraries, unmaintained dependenciesSecurity vulns
Documentation debtMissing runbooks, outdated READMEs, tribal knowledgeOnboarding pain
Infrastructure debtManual deploys, no monitoring, no IaCIncidents, slow recovery

Prioritization Framework

Score each item on:

  • Impact: How much does it slow the team down? (1-5)
  • Risk: What happens if we don't fix it? (1-5)
  • Effort: How hard is the fix? (1-5, inverted — lower effort = higher priority)

Priority = (Impact + Risk) x (6 - Effort)

Output

Produce a prioritized list with estimated effort, business justification for each item, and a phased remediation plan that can be done alongside feature work.

Source

git clone https://github.com/anthropics/knowledge-work-plugins/blob/main/engineering/skills/tech-debt/SKILL.mdView on GitHub

Overview

Tech Debt Management identifies, categorizes, and prioritizes debt across code, architecture, test, dependency, documentation, and infrastructure. It uses a simple scoring model to surface the most impactful work and deliver a phased remediation plan that can run alongside new features.

How This Skill Works

Create a living inventory of debt items in the six categories. Score each item on Impact, Risk, and Effort (1-5) and compute Priority with Priority = (Impact + Risk) x (6 - Effort). Produce a prioritized list with estimated effort, business justification, and a phased remediation plan aligned to feature work.

When to Use It

  • Triggered by phrases like 'tech debt' or 'technical debt audit' to start a formal debt review.
  • When someone asks 'what should we refactor' or seeks refactoring guidance based on observed debt.
  • During conversations about code health, code quality, refactoring priorities, or the maintenance backlog.
  • During backlog refinement to categorize items into code, architecture, test, dependency, documentation, or infrastructure debt for triage.
  • In sprint or release planning to generate a phased remediation plan that can run alongside feature work.

Quick Start

  1. Step 1: Build a living inventory of debt items across code, architecture, tests, dependencies, docs, and infrastructure.
  2. Step 2: Score each item with Impact, Risk, and Effort (1-5) and compute Priority using Priority = (Impact + Risk) x (6 - Effort).
  3. Step 3: Output a prioritized list with estimated effort, business justification, and a phased remediation plan that aligns with feature work.

Best Practices

  • Start with a comprehensive debt inventory covering all six categories.
  • Score items using Impact, Risk, and Effort, and apply the Priority formula to rank work.
  • Keep a living backlog with clear business justification and rough effort estimates.
  • Align debt remediation with feature work and set quick wins to regain velocity.
  • Regularly review and re-prioritize debt as risks and business needs evolve.

Example Use Cases

  • Code debt: Duplicated logic and poor abstractions lead to bugs; refactor into shared utilities and cleaner interfaces as a phased task.
  • Architecture debt: A monolith that should be split; plan modular boundaries or incremental extraction to reduce scaling risk.
  • Test debt: Low test coverage and flaky tests; add high-value integration tests and stabilize the test suite.
  • Dependency debt: Outdated libraries and unmaintained dependencies; upgrade with compatibility checks and a release plan.
  • Documentation debt: Missing runbooks and outdated READMEs; create living docs to improve onboarding and incident response.

Frequently Asked Questions

Add this skill to your agents
Sponsor this space

Reach thousands of developers