All playbooks

Engineering managers, founders, and consultants

Technical debt prioritization playbook

Debt work fails when it is framed as taste. It earns planning time when it is tied to risk, delivery drag, incidents, onboarding, and upcoming roadmap work.

Step 1

Group findings by risk type

A usable debt inventory is grouped by the kind of drag it creates, not by the tool that found it.

  • Security and dependency hygiene
  • Architecture coupling and dependency cycles
  • Test gaps around critical flows
  • Documentation, environment, and onboarding gaps

Step 2

Score impact and likelihood

High-impact, high-likelihood debt deserves attention even if the code is not ugly. Low-impact ugliness can wait.

  • User, revenue, or data-risk impact
  • Frequency of change in the affected area
  • Past incidents, regressions, or support load
  • Upcoming roadmap dependency

Step 3

Sequence by fix shape

The first cleanup sprint should reduce risk without requiring the team to pause product development.

  • Contain secrets, vulnerable dependencies, and critical test gaps first
  • Extract duplicated logic only where future work is already planned
  • Split large refactors into reviewable issues
  • Reserve rewrite discussions for cases with evidence

Step 4

Track score movement

A roadmap should show whether the codebase is getting easier or harder to change over time.

  • Re-run audits after cleanup batches
  • Track repeated findings and recurring hotspots
  • Attach score changes to planning notes
  • Keep accepted debt visible in GitHub issues

Run this playbook on a real repository

CodeTruss builds the architecture map, health scores, ranked findings, report, GitHub issues, and opt-in fix PRs from the repository itself.