tech-debt-tracker – skill Lập trình cho agent AI
Quét mã nguồn để tìm nợ kỹ thuật, chấm mức độ nghiêm trọng, theo dõi xu hướng và lập kế hoạch khắc phục theo thứ tự ưu tiên. Dùng khi người dùng nhắc đến nợ kỹ thuật, chất lượng mã, ưu tiên tái cấu trúc, chấm điểm nợ, sprint dọn dẹp, hoặc đánh giá sức khỏe mã. Cũng dùng để lập kế hoạch hiện đại hóa mã legacy và ước tính chi phí bảo trì.
Cài skill tech-debt-tracker bằng một lệnh
Chọn công cụ bạn đang dùng, copy lệnh và dán vào terminal. Skill sẽ nằm trong thư mục skills của công cụ đó và sẵn sàng dùng ở phiên làm việc tiếp theo.
Claude Code
mkdir -p ~/.claude/skills && curl -fsSL https://skill.dn1nguoi.com/z/tech-debt-tracker-47ff1.tgz | tar xz -C ~/.claude/skills
Gọi trong Claude Code: /tech-debt-tracker – rồi mô tả công việc bạn muốn làm.
Codex
mkdir -p ~/.codex/skills && curl -fsSL https://skill.dn1nguoi.com/z/tech-debt-tracker-47ff1.tgz | tar xz -C ~/.codex/skills
Gọi trong Codex: $tech-debt-tracker – rồi mô tả công việc bạn muốn làm.
Hermes Agent
mkdir -p ~/.hermes/skills && curl -fsSL https://skill.dn1nguoi.com/z/tech-debt-tracker-47ff1.tgz | tar xz -C ~/.hermes/skills
Gọi trong Hermes Agent: /tech-debt-tracker – rồi mô tả công việc bạn muốn làm.
DeepSeek
mkdir -p ~/.deepcode/skills && curl -fsSL https://skill.dn1nguoi.com/z/tech-debt-tracker-47ff1.tgz | tar xz -C ~/.deepcode/skills
Gọi trong DeepSeek: /tech-debt-tracker – rồi mô tả công việc bạn muốn làm.
Nội dung SKILL.md
Nội dung SKILL.md gốc bằng tiếng Anh.
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
python3 scripts/debt_scanner.py /path/to/codebase --format json --output debt_inventory.jsonEmits 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
python3 scripts/debt_prioritizer.py debt_inventory.json --framework wsjf --team-size 6 --sprint-capacity 20 --format json --output debt_priorities.jsonFrameworks: 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:
python3 scripts/debt_dashboard.py --input-dir snapshots/ --period monthly --format both --output debt_dashboardOr 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.
Skill liên quan
- iterate-pr – Lặp lại việc chỉnh sửa PR cho đến khi CI pass. Dùng khi cần sửa lỗi CI, xử lý phản hồi…
- java – Hướng dẫn viết mã chuyên biệt cho ngôn ngữ Java.
- java-pro – Thành thạo Java 21+ với các tính năng hiện đại như virtual threads, pattern matching và…
- javascript-mastery – 33+ khái niệm JavaScript thiết yếu mà mọi lập trình viên nên biết, lấy cảm hứng từ…
- javascript-pro – Thành thạo JavaScript hiện đại với ES6+, các mẫu async và API Node.js. Xử lý promise…
- javascript-testing-patterns – Hướng dẫn toàn diện triển khai chiến lược kiểm thử vững chắc cho ứng dụng…
- javascript-typescript-typescript-scaffold – Khởi tạo khung dự án TypeScript với công cụ build, kiểm tra kiểu, kiểm thử và cấu hình.
- jest-skill – Tạo test unit và integration với Jest trong JavaScript hoặc TypeScript. Bao gồm mocking…