StoicBuilder

HandbookXV the PantheonTechnical debt

XVthe Pantheon, Design the system

Technical debt

1 min readUpdated 28 November

In plain words

Technical debt is the extra cost of future changes caused by shortcuts, outdated designs or missing tests, which can be fine to take on deliberately but needs to be tracked and paid down.

Where you see it

Every pricing change at Harbor takes a week, because plan names were hardcoded in 40 files during the launch rush. That week is the interest. Moving plans into one table would take two weeks once and save a week every time after.

Tech debt registeragent
Debt Interest Fix HitsPlan names hardcoded, 40 files ~1 week per pricing change 2 weeks pricing, monthlyNo tests on invoice totals 1 day of manual checks 3 days every billing releaseUnmaintained queue library no security fixes 1 week platform
Write down the interest, not only the debt. It turns an argument about taste into one about cost.

What goes wrong

  1. Calling everything you dislike debt

    Code written in a style you wouldn't choose isn't debt unless it slows down real changes. Track debt by what it costs, not by how it looks.

  2. Paying it all down at once

    A big rewrite to clear every debt stops feature work for months and often creates new debt. Pay it down where you're already working, costliest items first.

  3. Agent-made debt nobody noticed

    Agents produce working code fast, including duplicate helpers and three ways of doing one thing. Review for duplication, and tell the agent to reuse what already exists.

What to tell your agent

Copy this into Lovable, Bolt, Cursor or any agent
Find the five things in this codebase that most slow down changes, such as duplicated logic, hardcoded values, missing tests and outdated dependencies. For each, estimate the time it costs per change and the size of the fix, and suggest which to pay down first, as small changes we can make alongside feature work.

Quick check

Sign in to earn +10 XP for it

Which is the strongest case for paying down a piece of Harbor's technical debt next quarter?

Got a prompt that touches technical debt?

Paste it. You get a better prompt first, then the cards that explain it.

Check your own prompt

Free, no sign-up.