← Back to repository

tech-debt-tracker

扫描代码库中的技术债,评估严重程度,跟踪趋势,生成按优先级排序的修复计划。适用于用户提到技术债、代码质量、重构优先级、债务评分、清理冲刺或代码健康评估时,也用于遗留代码现代化规…

slug: tech-debt-tracker v1.0.0 Engineering Workflow By Alireza Rezvani 19 files · 327.6 KB Updated 2026-10-20 Measured +2.6% ↓ 0 downloads 💬 0 reviews Quality 94/100 by Alireza Rezvani
Sign in to download (1 shrimp) Reviews (0) View JSON
Benchmark 小幅提升 deepseek-chat · 2 tasks × 1 samples × 3 repeats · 多轮协作 · 盲评 Methodology →
+2.6%
Average score gap in blind review,
with vs. without the skill.
n=3 次重复均值,区间 0.6% ~ 4.8%
Bare model 57.7
With skill 58.8
Tested 2026-10-20 2 tasks × 1 samples Blind review · same model, same params Pure conversation — no real commands run
Show per-task details (2)
Task 1 · 我接手了一个 Python 数据管道项目,代码库看起来年久失修。先帮我评估一下技术债情况,告诉我最该优先修什么。
Sample 1 Bare 0.0 vs Skilled 0.0 两份质量接近,A在WSJF打分一致性、依赖覆盖论证和验证循环的严谨度上略胜,B在占位模板和反自欺检查上有亮点但存在排名标注与依赖顺序的小瑕疵。
Task 2 · 我们上个季度做了清理冲刺,领导问技术债到底有没有降。我手上有几个时间点的快照,帮我看看趋势并给出一份能直接汇报的结论。
Sample 1 Bare 84.0 vs Skilled 88.0 两份质量接近,A在冲刺窗口归因更严谨、对数据缺口的表述更克制,B的数字自查表更直观但基线选择稍弱。
Community tests Run by users with their own API keys — models and settings vary, for rough comparison only Sign in to test with my key →
Nobody has run it yet. Plug in your own key and test with your daily model — results stay in your records and never enter the official board.
—
☆☆☆☆☆
No ratings yet — tell it like it is after you've used it

One-line install

Downloading requires signing in first (free registration — just a username and password).Sign in →

Reviews · 0

Sign in to post a review.Sign in →

No reviews yet — be the first to share.

Quality check · 94/100

13 automated checks on metadata, examples, executability and completeness, for authors to self-improve; does not affect user ratings.

Version history

SKILL.md content

# Tech Debt Tracker

**Tier**: POWERFUL 🔥  
**Category**: Engineering Process Automation  
**Expertise**: Code Quality, Technical Debt Management, Software Engineering

## Overview

Tech debt is one of the most insidious challenges in software development - it compounds over time, slowing down development velocity, increasing maintenance costs, and reducing code quality. This skill provides a comprehensive framework for identifying, analyzing, prioritizing, and tracking technical debt across codebases.

Tech debt isn't just about messy code - it encompasses architectural shortcuts, missing tests, outdated dependencies, documentation gaps, and infrastructure compromises. Like financial debt, it accrues "interest" through increased development time, higher bug rates, and reduced team velocity.

## What This Skill Provides

This skill offers three interconnected tools that form a complete tech debt management system:

1. **Debt Scanner** - Automatically identifies tech debt signals in your codebase
2. **Debt Prioritizer** - Analyzes and prioritizes debt items using cost-of-delay frameworks
3. **Debt Dashboard** - Tracks debt trends over time and provides executive reporting

Together, these tools enable engineering teams to make data-driven decisions about tech debt, balancing new feature development with maintenance work.

## Quick Start — scan → prioritize → dashboard

All paths relative to this skill folder. The scanner's JSON output feeds the prioritizer directly; dated inventory snapshots feed the dashboard.

### 1. Scan the codebase

```bash
python3 scripts/debt_scanner.py /path/to/codebase --format json --output debt_inventory.json
```

Emits `debt_inventory.json` with `scan_metadata`, `summary`, `debt_items[]`, `file_statistics`, and `recommendations`. Report the `summary` counts to the user. (Dry run: `assets/sample_codebase`.)

### 2. Prioritize the backlog

```bash
python3 scripts/debt_prioritizer.py debt_inventory.json --framework wsjf --team-size 6 --sprint-capacity 20 --format json --output debt_priorities.json
```

Frameworks: `cost_of_delay` (default), `wsjf`, `rice`. Output contains `prioritized_backlog` (work top-down), `sprint_allocation` (paste into sprint planning), and `insights`.

### 3. Track trends over time

Keep dated snapshots (`debt_YYYY-MM-DD.json`), then:

```bash
python3 scripts/debt_dashboard.py --input-dir snapshots/ --period monthly --format both --output debt_dashboard
```

Or pass files explicitly (samples: `assets/historical_debt_2024-01-15.json assets/historical_debt_2024-02-01.json`). The dashboard reports trend direction and executive-ready summaries — use it to verify a cleanup sprint actually reduced debt.

### Verification loop

After a remediation sprint: re-run step 1, re-run step 3 with the new snapshot, and assert the targeted categories' counts dropped. A cleanup that doesn't move the dashboard is rework, not debt paydown.

## Technical Debt Classification Framework
→ See references/debt-frameworks.md for details (also: references/debt-classification-taxonomy.md, references/prioritization-framework.md, references/stakeholder-communication-templates.md)

## Common Pitfalls and How to Avoid Them

### 1. Analysis Paralysis
**Problem**: Spending too much time analyzing debt instead of fixing it.
**Solution**: Set time limits for analysis, use "good enough" scoring for most items.

### 2. Perfectionism
**Problem**: Trying to eliminate all debt instead of managing it.
**Solution**: Focus on high-impact debt, accept that some debt is acceptable.

### 3. Ignoring Business Context
**Problem**: Prioritizing technical elegance over business value.
**Solution**: Always tie debt work to business outcomes and customer impact.

### 4. Inconsistent Application
**Problem**: Some teams adopt practices while others ignore them.
**Solution**: Make debt tracking part of standard development workflow.

### 5. Tool Over-Engineering
**Problem**: Building complex debt management systems that nobody uses.
**Solution**: Start simple, iterate based on actual usage patterns.

Technical debt management is not just about writing better code - it's about creating sustainable development practices that balance short-term delivery pressure with long-term system health. Use these tools and frameworks to make informed decisions about when and how to invest in debt reduction.