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.
remediationis 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, acause,file:line, and measured evidence:evidence.method(command or files read) andevidence.result(number, count, or quoted fact). No opinion-only findings; discard findings with no present symptom and count them indiscarded. - Author only
scores(integers 1-5 perreferences/06-prioritization-evidence.md);priority = impact × frequency × reach / effortandseverityare derived byreconcile.py, never written by hand. - Previous reports are leads, never evidence: re-measure every inherited finding in scope.
docs/tech-debt/{YYYY-MM-DD}.jsonis the only artifact; never write a ledger or a rendered file.- Delegate reconnaissance and measurement to read-only subagents with
assets/recon-subagent.mdandassets/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>, thenpython3 assets/validate_report.py --file <report.json>; fix everyERROR:until exit 0. Never overwrite an existing report.