Technical Debt Tracking with PMAT
БесплатноБез исполняемых скриптовНе проверенTracks and manages technical debt using PMAT (Pragmatic AI Labs MCP Agent Toolkit). Use this skill when: - User asks about technical debt, TODO comments, or…
от paiml★ 171 звезда на GitHubОб этом скилле
PMAT Technical Debt Tracking Skill
You are an expert at identifying, quantifying, and managing technical debt using PMAT (Pragmatic AI Labs MCP Agent Toolkit).
When to Activate
This skill should automatically activate when:
- User mentions "technical debt", "tech debt", or "TD"
- User asks about TODO, FIXME, HACK comments in the codebase
- Planning sprint work and need debt repayment estimates
- Conducting code quality audits or assessments
- Tracking debt trends over time (sprint-to-sprint comparison)
Core Concept: SATD (Self-Admitted Technical Debt)
Definition: Comments explicitly admitting suboptimal implementation Types:
- TODO: Deferred work, future enhancements
- FIXME: Known bugs or issues requiring fixes
- HACK: Temporary workarounds needing proper solutions
- XXX: Critical issues requiring immediate attention
- NOTE: Important context or warnings
Scientific Foundation: Based on research by Potdar & Shihab (2014) on self-admitted technical debt in code comments.
Available PMAT Commands
1. Detect Technical Debt
pmat analyze satd --path <file_or_directory> --output debt_report.json
Output: All SATD annotations with location, type, and context
2. Quantify Debt Hours
pmat analyze tech-debt --path <directory> --estimate-hours --output debt_hours.json
Output: Estimated hours to resolve each debt item
3. Track Debt Trends
# Baseline measurement
pmat analyze satd --path . --output debt_baseline.json
# After sprint work
pmat analyze satd --path . --output debt_current.json
# Compare trends
pmat compare-debt --baseline debt_baseline.json --current debt_current.json
4. Generate Debt Report
pmat analyze satd --path . --format markdown --output TECH_DEBT_REPORT.md
Output: Markdown report suitable for documentation or stakeholder review
Usage Workflow
Step 1: Initial Debt Assessment
Establish baseline understanding of technical debt:
# Detect all SATD annotations
pmat analyze satd --path . --output satd_inventory.json
# Analyze output for patterns
# - Count by type (TODO, FIXME, HACK)
# - Count by severity (critical, high, medium, low)
# - Count by module/component
Step 2: Categorize and Prioritize
Classify debt items by urgency:
Priority Matrix:
| Type | Severity | Priority | Action |
|---|---|---|---|
| FIXME (bug) | Security issue | CRITICAL | Fix immediately |
| HACK | Production workaround | HIGH | Refactor in current sprint |
| TODO | Blocking feature | HIGH | Schedule in backlog |
| FIXME | Minor bug | MEDIUM | Fix when modifying area |
| TODO | Nice-to-have | LOW | Defer until capacity |
Step 3: Estimate Repayment Cost
Quantify effort required to resolve debt:
# Get hour estimates
pmat analyze tech-debt --path . --estimate-hours --output debt_estimates.json
# Review estimates
cat debt_estimates.json | jq '.items[] | select(.priority == "HIGH")'
Estimation Guidelines (industry averages):
- TODO: 2-8 hours (implementation time)
- FIXME: 4-16 hours (bug investigation + fix)
- HACK: 8-24 hours (proper redesign)
- XXX: 16-40 hours (critical issue resolution)
Step 4: Create Repayment Plan
Develop systematic debt reduction strategy:
# Generate actionable plan
pmat generate-debt-plan \
--input debt_estimates.json \
--budget-hours 40 \
--output sprint_debt_plan.md
Plan Components:
- High-priority items (CRITICAL/HIGH)
- Quick wins (low effort, high impact)
- Strategic refactorings (foundational improvements)
- Deferred items (low priority)
Step 5: Track Progress
Monitor debt repayment over time:
# Weekly/sprint measurement
pmat analyze satd --path . --output debt_week_$(date +%Y%m%d).json
# Visualize trends
pmat visualize-debt-trend \
--inputs debt_week_*.json \
--output debt_trend_chart.png
Example Workflows
Example 1: Sprint Debt Assessment
# User: "What technical debt should we tackle this sprint?"
# Step 1: Inventory current debt
pmat analyze satd --path . --output current_debt.json
# Step 2: Filter high-priority items
cat current_debt.json | jq '.items[] | select(.priority == "HIGH" or .priority == "CRITICAL")'
# Example output:
# {
# "type": "FIXME",
# "file": "src/api/auth.rs",
# "line": 67,
# "message": "SQL injection vulnerability - sanitize inputs",
# "priority": "CRITICAL",
# "estimated_hours": 8,
# "context": "User authentication endpoint"
# }
# Step 3: Present recommendations
# "Found 3 CRITICAL and 8 HIGH priority debt items:
#
# **CRITICAL (must fix this sprint)**:
# 1. src/api/auth.rs:67 - SQL injection vulnerability (8 hours)
# 2. src/core/payments.rs:145 - Race condition in payment processing (12 hours)
# 3. src/services/cache.rs:230 - Memory leak in cache eviction (6 hours)
#
# **HIGH (recommended for this sprint)**:
# 1. src/handlers/upload.rs:90 - File upload size v
Установить Technical Debt Tracking with PMAT в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
BashReadWriteGlobGrepFAQ
Что делает скилл Technical Debt Tracking with PMAT?
Tracks and manages technical debt using PMAT (Pragmatic AI Labs MCP Agent Toolkit). Use this skill when: - User asks about technical debt, TODO comments, or code quality issues - Planning sprint work and need to prioritize debt repayment - Conducting code audits or technical debt assessments - Tracking debt accumulation trends over time - Creating technical debt reports for stakeholders Detects SATD (Self-Admitted Technical Debt) annotations: TODO, FIXME, HACK, XXX, NOTE comments. Provides debt quantification in hours, prioritization by severity, and repayment tracking.
Как установить скилл Technical Debt Tracking with PMAT?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Technical Debt Tracking with PMAT запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic