tech-debt-scan

Installation
SKILL.md

Activation Contract

Use this skill to scan a whole repo (global) or given paths/modules (targeted) for technical debt, meaning complexity with a nameable symptom (references/02-complexity-model.md), in code, tests, and architecture/docs/infra, and prioritize it. Not for latent bugs (bug-scan), test strength (mutation-test), security (api-security-scan), dependency upgrades (update-dependencies), or applying refactors (refactor).

Hard Rules

  • NEVER modify production code, tests, or config; NEVER apply fixes. remediation is one line of direction, not a patch.
  • ALWAYS open with one option prompt before any work: mode, categories, and output format (chat | markdown); never infer any of them from the prompt.
  • Every finding needs a symptom, a cause, file:line, and measured evidence: evidence.method (command or files read) and evidence.result (number, count, or quoted fact). No opinion-only findings; discard findings with no present symptom and count them in discarded.
  • Author only scores (integers 1-5 per references/06-prioritization-evidence.md); priority = impact × frequency × reach / effort and severity are derived by reconcile.py, never written by hand.
  • Previous reports are leads, never evidence: re-measure every inherited finding in scope.
  • docs/tech-debt/{YYYY-MM-DD}.json is the only artifact; never write a ledger or a rendered file.
  • Delegate reconnaissance and measurement to read-only subagents with assets/recon-subagent.md and assets/measure-subagent.md, at most 3 concurrent; they return facts, scoring and severity stay with you.
  • ALWAYS state what was not reviewed.
  • ALWAYS run python3 assets/reconcile.py --report <report.json>, then python3 assets/validate_report.py --file <report.json>; fix every ERROR: until exit 0. Never overwrite an existing report.

Decision Gates

Installs
8
GitHub Stars
2
First Seen
Oct 25, 2026