agentleFS
pvnarppvnarp/agent-skills/skills/tech-debt/SKILL.md

tech-debt

Skill1 starsChanged 9 months agoMITView on GitHub

Identifies, categorizes, prioritizes, and plans paydown of technical debt. Covers making the business case, sequencing alongside feature work, and tracking progress. Use when auditing tech debt, planning maintenance work, or justifying refactoring to stakeholders.

20 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use asset-spec, create-control-manifest and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • cenconq25Skill

    asset-spec

    Generates per-asset visual specifications and AI-generation prompts from PRDs and the design bible. Produces structured spec files and updates a master asset manifest. Use after design bible is approved and a UX spec or PRD identifies assets to produce. Output: design/assets/<asset>.md plus design/assets/manifest.md.

    Also in 5 projects that use this

  • cenconq25Skill

    create-control-manifest

    Produces a flat, immediately-actionable rules sheet — do this, never do that, per system and per layer — extracted from accepted ADRs, technical preferences, and framework reference docs. More directly usable than ADRs for day-to-day implementation. Run after /architecture-review passes.

    Also in 5 projects that use this

  • CoralGameSkill

    playtest-report

    Generates a structured playtest report template or analyzes existing playtest notes into a structured format. Use this to standardize playtest feedback collection and analysis.

    Also in 6 projects that use this

  • CoralGameSkill

    team-audio

    Orchestrate audio team: audio-director + sound-designer + technical-artist + gameplay-programmer for full audio pipeline from direction to implementation.

    Also in 6 projects that use this

  • +7 more from cenconq25
  • +1 more from CoralGame

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 16 edited versions we read keep these.

  • 2

    Distinctive

    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 a feature touches debt-heavy code, include the cleanup in the feature estimate.

    line 123
  2. Distinctive:

    Keep a living tech debt register (issue tracker, wiki, or dedicated file):

    line 127

“Common” is measured: kept by at least 6 in 10 of the 16 edited versions of this file we could read. “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

Technical Debt Management

Tech debt is borrowed time. Like financial debt, it's not inherently bad - but you need to track it, pay interest on it, and have a paydown plan.

What IS Tech Debt (And What Isn't)

Tech Debt

  • Shortcuts taken deliberately to ship faster ("we'll fix this after launch")
  • Code that worked when written but hasn't evolved with requirements
  • Missing tests that make changes risky
  • Outdated dependencies with known issues
  • Architecture that doesn't fit current scale/requirements

NOT Tech Debt (Just Bad Code)

  • Bugs (fix them now)
  • Code that was never adequate (that's just poor engineering, not debt)
  • "I'd write it differently" (style preferences aren't debt)
  • Features that need redesign (that's product work, not debt)

Step 1: Inventory

Scan the codebase and catalog debt. Be specific.

Debt Record Template

ITEM: [specific description]
LOCATION: [files, modules, or systems affected]
TYPE: [code / architecture / dependency / testing / infrastructure]
IMPACT: [what it costs you TODAY - developer time, bugs, fragility, onboarding difficulty]
RISK: [what happens if you DON'T fix it - data loss, security, scaling failure]
EFFORT: [S / M / L / XL]
URGENCY: [blocking / degrading / annoying / dormant]

Where to Look

AreaSigns of Debt
HotspotsFiles changed most frequently (git log). Frequent changes = fragile code.
Bug clustersModules that generate the most bugs.
Onboarding friction"Nobody understands how this works" areas.
Dependency auditUnmaintained deps, major version gaps, known CVEs.
Test coverage gapsCore logic with no tests.
Build/deploy pain30-min builds, manual deploy steps, flaky CI.
Performance bottlenecksKnown slow paths everyone works around.
Copy-paste codeSame logic in 5 places, each slightly different.

Step 2: Categorize

CategoryDescriptionExamples
Deliberate-prudentKnown shortcut, planned payoff"Ship with SQLite, migrate to Postgres next quarter"
Deliberate-recklessKnown shortcut, no plan"We'll figure it out later" (later never comes)
Accidental-prudentLearned better approach"We didn't know about X pattern when we built this"
Accidental-recklessDidn't know, didn't carePoor code quality, no reviews, no standards

Focus on: deliberate-prudent (planned payoff) and accidental-prudent (now we know better). Reckless debt often means the code needs rewriting, not refactoring.

Step 3: Prioritize

Score each item on two axes:

Impact (How much does it cost you?)

  • High: Slows every sprint, causes bugs, blocks features
  • Medium: Periodic pain, occasional bugs, extra complexity
  • Low: Annoyance, cosmetic, rarely encountered

Risk (What happens if you ignore it?)

  • High: Security vulnerability, data loss, scaling cliff
  • Medium: Growing maintenance cost, harder to hire/onboard
  • Low: Suboptimal but stable

Priority Matrix

High ImpactMedium ImpactLow Impact
High RiskFix NOWFix this quarterSchedule
Medium RiskFix this quarterScheduleBacklog
Low RiskScheduleBacklogIgnore

Step 4: Making the Business Case

Engineers say: "We need to refactor." Business hears: "We want to stop shipping features."

Instead, frame debt in business terms:

Tech TalkBusiness Talk
"The auth module needs refactoring""Every security fix takes 3x longer because auth is tangled - next breach response will be slow"
"We should upgrade the ORM""Our current version has 4 known CVEs. Upgrading unblocks 2 feature requests."
"Tests are missing for payments""We can't safely change payment flow - last time an untested change caused $X in failed transactions"
"The build is too slow""Engineers wait 25 min per build. That's X hours/week of lost productivity across the team."

The Paydown Pitch

DEBT: [what]
COST OF CARRYING: [what it costs you per sprint/month in concrete terms]
COST TO FIX: [effort estimate]
PAYBACK PERIOD: [when the fix pays for itself]
RISK OF NOT FIXING: [worst case scenario and likelihood]

Step 5: Paydown Strategies

The 20% Rule

Reserve ~20% of sprint capacity for debt paydown. Every sprint. Non-negotiable. This is interest payment.

Boy Scout Rule

"Leave the code better than you found it." Small improvements alongside feature work. Rename a confusing function. Add a missing test. Extract a helper.

Dedicated Debt Sprints

Quarterly sprint focused entirely on debt. Works for larger items that can't be done incrementally.

Strangler Fig Pattern

For large architectural debt: build the new system alongside the old one. Route traffic gradually. Decommission old system when new one handles 100%.

Opportunistic Paydown

When a feature touches debt-heavy code, include the cleanup in the feature estimate. "This feature takes 3 days. If we also clean up the auth module while we're in there, it's 5 days, and every future auth change goes from 3 days to 1 day."

Tracking

Keep a living tech debt register (issue tracker, wiki, or dedicated file):

## Tech Debt Register

| ID | Item | Type | Impact | Risk | Effort | Status |
|----|------|------|--------|------|--------|--------|
| TD-001 | Auth module coupling | architecture | High | High | L | In Progress |
| TD-002 | Missing payment tests | testing | High | Medium | M | Scheduled Q2 |
| TD-003 | Node.js 16 → 20 | dependency | Medium | High | M | Backlog |

Review monthly. Update status. Celebrate paydowns.

Anti-Patterns

Anti-PatternProblemFix
"Big rewrite"Takes forever, ships nothing, failsIncremental improvement, strangler fig
Tracking without actingList grows, nothing gets fixedReserve sprint capacity, enforce 20% rule
Gold plating as debt paydown"Refactoring" that's really over-engineeringScope debt fixes tightly. Fix the problem, not the world.
Only fixing debt when it breaksReactive, not proactiveSchedule regular paydown
No business justificationDebt paydown gets deprioritizedFrame in business terms (cost, risk, speed)

Utility Scripts

  • scripts/debt_inventory.sh [directory] - Scan for TODO/FIXME/HACK/WORKAROUND/XXX/TEMP comments, files over 500 lines, and large functions. Groups by file with category counts.

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.