Bash.tv → GitHub → itch.io

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 GitHub

Game 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:

Rules