Absolute debt

From maddhruv/absolute · View interactive version

Absolute debt is an AI agent skill from the GitHub repository maddhruv/absolute. Lint and typecheck debt paydown: clear pre-existing repo-wide lint/type violations and suppressions (@ts-ignore, # type: ignore) one rule per wave, fixing causes not symptoms. Runs on green main. For diff-scoped quality use absolute-simplify. Triggers on "absolute debt", "fix our lint warnings", "cl

How to use this skill

Skill file

Start your first response with the ๐Ÿงพ emoji.

Absolute Debt

Pay down accumulated lint and type-checker debt across the repo โ€” existing warnings,

errors, and suppressions that built up over time โ€” in safe waves, by rule, with tests green

after each. The goal is a genuinely clean lint + typecheck, not a quieter one.

Runs the shared engine in references/health-engine.md โ€” read it for the

DETECT โ†’ SCAN โ†’ TRIAGE โ†’ FIX โ†’ VERIFY โ†’ REPORT loop and the safety contract. This file

covers only what's specific to lint/type debt.


When to use

debt vs simplify: simplify improves your working diff's quality. debt clears

pre-existing repo-wide lint/type violations on green main. Use debt for standing

cleanup, not for changes you're actively making.


What it scans

| Ecosystem | Lint debt | Type debt |

|---|---|---|

| JS/TS | eslint . (full report, by rule) | tsc --noEmit |

| Python | ruff check / flake8 | mypy / pyright |

| Go | golangci-lint run | go vet ./..., staticcheck |

Also inventory suppressions as debt in their own right: eslint-disable*,

@ts-ignore/@ts-expect-error, # type: ignore, # noqa, //nolint. Each is a hidden

violation. Count violations grouped by rule (not by file) โ€” that's how you wave them.


Risk ranking (TRIAGE)

| Wave | Class | Default |

|---|---|---|

| 1 | autofixable lint (eslint --fix, ruff --fix, gofmt) | fix now โ€” mechanical, safe |

| 2 | manual lint by rule, low behavioral risk (unused, style, imports) | fix this pass, one rule at a time |

| 3 | type errors, and lint rules that can change behavior if "fixed" wrong | gated โ€” review each, may need real logic |

| 4 | removing suppressions (@ts-ignore etc.) | gated โ€” each may surface a real bug |

Fix one rule across the repo per wave, not one file across all rules โ€” keeps diffs

reviewable and regressions bisectable. Config tightening (enable rule / raise strictness) is

itself a finding: propose it, then clear what it surfaces.


Fix & verify

wrong somewhere โ€” fix the type, don't cast to any/add # type: ignore.

nothing regress.


Gotchas

  1. Fixing by suppressing. @ts-ignore to clear a type error adds debt. Forbidden here.
  2. any / cast to win. Silences the checker, keeps the bug. Fix the real type.
  3. One-file-all-rules waves. Mixes concerns, unreviewable. Go one-rule-all-files.
  4. Autofix without review. --fix can change behavior (e.g. prefer-const on a

reassigned var via a bug). Run tests after autofix too.

  1. Disabling the rule instead of fixing. Loosening config to hit zero is debt laundering,

not paydown.


Companion commands

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.