tech-debt-triage
Skill1 starsChanged 6 months agoMITView on GitHub
Inventory technical debt and prioritize it by interest paid, not by annoyance - quantify cost, classify, and produce a ranked paydown plan that survives contact with a roadmap. Use when the user asks what to refactor first, wants a tech debt audit, needs to justify cleanup work to stakeholders, or asks whether to fix or live with a known problem.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- kienbui1995/magic-powerstheir own version, first seen Apr 10, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- kienbui1995/magic-powers★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository50 other files it gives its agents.
- accessibility-reviewSkill
- adr-authorSkill
- api-designSkill
- architecture-reviewSkill
- caching-strategySkill
- changelogSkill
- ci-cd-pipelineSkill
- codebase-explorationSkill
- code-reviewSkill
- code-style-guideSkill
- context-engineeringSkill
- conventional-commitsSkill
- cost-optimizationSkill
- database-migrationSkill
- data-privacy-reviewSkill
- debuggingSkill
- dependency-updateSkill
- deprecation-migrationSkill
- error-handlingSkill
- feature-flag-rolloutSkill
- filament-resource-designSkill
- flux-ui-patternsSkill
- git-workflowSkill
- i18n-reviewSkill
- idea-refineSkill
- incident-responseSkill
- incremental-implementationSkill
- inertia-patternsSkill
- laravel-ai-featuresSkill
- laravel-eloquent-performanceSkill
- laravel-queue-designSkill
- laravel-testingSkill
- livewire-component-designSkill
- llm-feature-designSkill
- observabilitySkill
- onboarding-docSkill
- performance-budgetSkill
- pr-descriptionSkill
- primevue-patternsSkill
- refactoringSkill
- release-checklistSkill
- resilience-patternsSkill
- runbook-authorSkill
- security-auditSkill
- spec-writingSkill
- task-breakdownSkill
- test-writingSkill
- threat-modelingSkill
- using-elyra-skillsSkill
- vue-component-patternsSkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 22
Before a big feature lands in a debt-heavy area
- Very specific: line 69
Keep slices small and independently shippable (see refactoring for the how)
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Tech Debt Triage
Debt isn't bad code — it's code that charges interest: slower features, more bugs, harder onboarding. Triage means paying down the highest interest first, not the ugliest file.
When to use
- "What should we refactor first?" / "How bad is our tech debt?"
- Justifying cleanup time to stakeholders who want features
- Deciding fix-now vs live-with-it for a known problem
- Before a big feature lands in a debt-heavy area
Principles
- Interest, not ugliness. Hideous code nobody touches costs nothing. Mildly awkward code changed weekly costs plenty.
- Debt = (friction per change) × (change frequency). Both factors are measurable; measure them.
- Not all debt should be paid. "Accepted, documented, revisit-trigger set" is a legitimate outcome.
- Paydown rides with features. Standalone "refactor sprints" get cancelled; debt work attached to roadmap items ships.
Process
1. Inventory — collect candidates from evidence
# Churn: most-changed files (where interest accrues)
git log --since="6 months ago" --format= --name-only | sort | uniq -c | sort -rn | head -20
# Self-reported debt
grep -rn "TODO\|FIXME\|HACK\|XXX" --include="*.{php,ts,js,py}" . | wc -lPlus: bug-dense modules (issue tracker), areas devs complain about, slow/flaky test zones, outdated deps blocking upgrades, missing tests around critical paths.
2. Locate the hotspots
Cross churn with complexity: large + complex + frequently changed = hotspot. A complex file with zero changes in a year is not a priority, whatever the linter says.
3. Classify each item
| Type | Example | Typical move |
| Blocking | Can't upgrade framework; deploy takes a day | Schedule explicitly |
| Taxing | Every feature in module X takes 2× | Pay down with next feature there |
| Risky | No tests around payments; single point of failure | Insure (tests/monitoring) first, fix second |
| Cosmetic | Naming, style, "I'd have done it differently" | Usually: leave it |
4. Score: interest vs paydown cost
For each item, estimate honestly:
- Interest/month: dev-hours lost, bugs caused, opportunities blocked
- Paydown cost: effort to fix, including testing and migration risk
- Rank by interest ÷ cost. High interest + low cost = do now. Low interest + high cost = accept and document.
5. Plan the paydown
- Attach each top item to a roadmap vehicle: "fix X as part of feature Y in that area"
- Keep slices small and independently shippable (see
refactoringfor the how) - For accepted debt: write down the decision and a revisit trigger ("if module X causes one more sev-2…") — see
adr-author
6. Make it visible
Track 2–3 trend metrics, not twenty: e.g. time-to-ship in the hotspot, bug count in the area, dependency freshness. Report movement, not vibes.
Output format
## Tech debt triage: <project/area>
**Evidence gathered:** churn, TODO count, bug clusters, dev input.
### Ranked debt
| # | Item | Type | Interest/mo | Cost | Action |
|---|------|------|-------------|------|--------|
| 1 | … | taxing | high (≈X h) | M | pay down with feature Y |
| 2 | … | risky | … | L | add tests now |
| … | … | cosmetic | low | M | **accepted** — revisit if … |
### Top 3 recommendation
1. … (why this first)
### Accepted debt log
- <item>: accepted <date>, trigger: …Anti-patterns
- ❌ Ranking by ugliness or personal taste instead of measured interest
- ❌ The "big rewrite" as the answer to diffuse debt
- ❌ A debt backlog with 200 items and no scores — that's a graveyard, not a plan
- ❌ Refactoring cold spots because they're easy wins (they win nothing)
- ❌ Asking for a "cleanup sprint" with no quantified payoff — it loses to features every time
- ❌ Paying down debt with no tests in place first in risky areas
- ❌ Never re-running the triage — debt rankings rot in months
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

