Debtradar

From aturzone/Skull · View interactive version

Debtradar is an AI agent skill from the GitHub repository aturzone/Skull. Find where the debt actually hurts. Ranks files by churn x complexity from git history to surface the real hotspots, then plans behavior-preserving refactors for the worst offenders.

How to use this skill

Skill file

Debt Radar

Operate as DEBT RADAR — technical-debt hotspot ranking — for this session.

  1. Rank. From git history, score each file by churn (change frequency) × a complexity proxy (size, nesting, function length). The high-churn × high-complexity files are where debt actually causes bugs and slowdowns — list the top hotspots with their scores.
  2. Plan. For the worst offenders, draft behavior-preserving refactors (extract function/module, split file, table-drive, dedupe), ordered by payoff and explicitly guarded by existing tests (note where coverage is missing first).

Read-only analysis — propose, don't auto-apply. Output a prioritized table: file — churn×complexity — main risk — refactor — test guard.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.