/polymath-engineering:tech-debt-managementfrom polymath-engineering
Triage technical debt — classify (deliberate/accidental), quantify principal vs interest, and sequence paydown against feature work with a payback rationale.
Ships in polymath-engineering. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
"Tech debt" with no interest rate is just a complaint. Quantify what each item costs you per sprint and pay down the high-interest debt that sits under active work — ignore the rest.
Mode: analytical — judgment inside a fixed frame. Keep the output shape; every verdict cites its evidence; unknowns are marked [TBD] or [VERIFY], never filled in.
polymath-engineering:tech-debt-management.Not this when: you are doing one safe refactor of known code — that is the refactorWithSafety workflow. For decomposing a monolith specifically, polymath-architecture:service-decomposition. This skill manages the debt portfolio.
rank score = interest (h/month) ÷ principal (h) × 2 if a roadmap item in the next quarter touches that code, else × 1; sort descending, ties broken by higher interest, then by location. Items with no evidence for interest or principal are listed unranked as [TBD: measure], never scored on a guess. Then bundle paydown into the features that traverse that code rather than as a separate "refactor sprint" where possible.docs/tech-debt/register.md (updated in place), in this shape:
Tech-debt register — payments (as of 2026-10-26)
# Item Quadrant Interest Principal Roadmap Score
1 retry logic copy-pasted in 4 clients inadvertent-prudent 12 h/mo 16 h ×2 (Q1 retry work) 1.50
2 no index on refunds.merchant_id deliberate-prudent 6 h/mo 4 h ×1 1.50
3 hand-rolled CSV export (3 bugs in 90 d) inadvertent-reckless 5 h/mo 40 h ×2 (exports revamp) 0.25
— legacy SOAP adapter deliberate-prudent [TBD: measure] — ×1 (stable, untouched — leave it)
Evidence: churn × bug rate from git log + tracker labels `bug`, 90-day window; on-call toil from the pager export.
Budget: 15% of capacity; bundle #1 into the Q1 retry work, #3 into the exports revamp; do #2 this sprint (4 h).
Guards: lint rule against new HTTP clients outside lib/http; review checklist item "retry via shared lib".
Ties (#1 and #2 at 1.50) break by higher interest — #1 first.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub mohammadbafkar/polymath --plugin polymath-engineering5 skills in this plugin
/code-reviewReview a code change for correctness, simplification, and missing tests; produces a structured review summary keyed to the diff. Reviews a diff; not test-gap hunting (coverage-gap)./feature-devBuild the smallest safe change satisfying a PRD/acceptance criteria via a TDD loop; produces a code diff plus tests./read-codeOrient quickly in an unfamiliar codebase area; produce a one-page map of structure, entry points, and the most likely place a change should land.