Identify, record and pay down technical debt in a game project. A scanner that builds a debt register (TODO / FIXME / HACK markers with their age from git blame, hotspot files that change often and are large, big files and long functions, duplicated code, leftovers like console.log and commented-out code), how to judge each item (impact × likelihood ÷ effort), when to pay it (before building on...
Download skill (.zip) Files on GitHubGame technical debt
Debt is anything that makes future changes slower or riskier. Some is fine; unknown debt is the dangerous kind.
Scan
python3 <skill>/scripts/debt-scan.py <project> # print
python3 <skill>/scripts/debt-scan.py <project> --write docs/TECH_DEBT.md # write the register (keeps your hand-written table)
Finds: TODO / FIXME / HACK / “temporary” markers with age (git blame), hotspots (files changed most in the last year ×
their size), files over 400 lines and functions over 80, identical 6-line blocks in several places, and leftovers (console.log,
debugger, commented-out code). Combine with game-code-review’s review-scan.py for bug-shaped problems.
Judge each item
Fill the register’s table by hand:
| # | Debt | Where | Impact | Effort | Plan |
|---|---|---|---|---|---|
| 1 | Collision code copy-pasted in 3 enemies | src/entities/*.js |
H (every new enemy copies bugs) | M | Extract moveAndCollide before adding level 3 enemies |
| 2 | play.js 420 lines | src/scenes/play.js |
M | M | Split HUD + spawner out when touching it next |
| 3 | Old TODO “add sound” | menu.js:12 |
L | S | Do it in the polish milestone |
Pay it when:
- Now: it blocks the next feature, causes bugs, or sits in a hotspot you’re about to change.
- While there: you’re touching that file anyway (leave it better than you found it, in a separate commit).
- Never: code that’s stable, rarely touched and works. Write “accepted” with the reason.
Rules
- Record debt you knowingly add:
// HACK(2026-11-28): fixed spawn point until level loader exists. TECH_DEBT #4. - Paying debt is refactoring: same behavior, verified (game-refactoring, game-regression-testing).
- Put the big items in the backlog as
[debt](game-backlog-management), and reserve some time per milestone (~10–20%). - Re-scan each milestone; a marker that’s been there 90+ days is either a real backlog item or should be deleted.