Claude Cursor Skill

tech-debt-tracker

Find, rank and track tech debt in a codebase. Use whenever the user asks what to refactor first, plans a cleanup sprint, modernizes legacy code or wants to know how messy the code is.

LLM Mart · 0 points · 0 views 0 listing impressions 0 install-command copies
Download beginwithu-agent-skills-skills_tech-debt-tracker-a960304.zip · 74 KB

Install

skills CLI npx skills add https://github.com/beginwithu/agent-skills/tree/main/skills/tech-debt-tracker
Claude Code claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install beginwithu-agent-skills@llmmart
Git git clone https://github.com/beginwithu/agent-skills.git

The skills CLI installs just this skill, for any of its supported agents. Claude Code installs the whole beginwithu/agent-skills collection as a plugin from our marketplace. Git is the plain clone.

README

Tech Debt Tracker

A comprehensive technical debt management system that helps engineering teams identify, prioritize, and track technical debt across codebases. This skill provides three interconnected tools for a complete debt management workflow.

Overview

Technical debt is like financial debt - it compounds over time and reduces team velocity if not managed systematically. This skill provides:

  • Automated Debt Detection: Scan codebases to identify various types of technical debt
  • Intelligent Prioritization: Use proven frameworks to prioritize debt based on business impact
  • Trend Analysis: Track debt evolution over time with executive-friendly dashboards

Tools

1. Debt Scanner (debt_scanner.py)

Scans codebases to automatically detect technical debt signals using AST parsing for Python and regex patterns for other languages.

Features:

  • Detects 15+ types of technical debt (large functions, complexity, duplicates, security issues, etc.)
  • Multi-language support (Python, JavaScript, Java, C#, Go, etc.)
  • Configurable thresholds and rules
  • Dual output: JSON for tools, human-readable for reports

Usage:

# Basic scan
python scripts/debt_scanner.py /path/to/codebase

# With custom config and output
python scripts/debt_scanner.py /path/to/codebase --config config.json --output report.json

# Different output formats
python scripts/debt_scanner.py /path/to/codebase --format both

2. Debt Prioritizer (debt_prioritizer.py)

Takes debt inventory and creates prioritized backlog using proven prioritization frameworks.

Features:

  • Multiple prioritization frameworks (Cost of Delay, WSJF, RICE)
  • Business impact analysis with ROI calculations
  • Sprint allocation recommendations
  • Effort estimation with risk adjustment
  • Executive and engineering reports

Usage:

# Basic prioritization
python scripts/debt_prioritizer.py debt_inventory.json

# Custom framework and team size
python scripts/debt_prioritizer.py inventory.json --framework wsjf --team-size 8

# Sprint capacity planning
python scripts/debt_prioritizer.py inventory.json --sprint-capacity 80 --output backlog.json

3. Debt Dashboard (debt_dashboard.py)

Analyzes historical debt data to provide trend analysis, health scoring, and executive reporting.

Features:

  • Health score trending over time
  • Debt velocity analysis (accumulation vs resolution)
  • Executive summary with business impact
  • Forecasting based on current trends
  • Strategic recommendations

Usage:

# Single directory of scans
python scripts/debt_dashboard.py --input-dir ./debt_scans/

# Multiple specific files
python scripts/debt_dashboard.py scan1.json scan2.json scan3.json

# Custom analysis period
python scripts/debt_dashboard.py data.json --period quarterly --team-size 6

Quick Start

1. Scan Your Codebase

# Scan your project
python scripts/debt_scanner.py ~/my-project --output initial_scan.json

# Review the results
python scripts/debt_scanner.py ~/my-project --format text

2. Prioritize Your Debt

# Create prioritized backlog
python scripts/debt_prioritizer.py initial_scan.json --output backlog.json

# View sprint recommendations
python scripts/debt_prioritizer.py initial_scan.json --format text

3. Track Over Time

# After multiple scans, analyze trends
python scripts/debt_dashboard.py scan1.json scan2.json scan3.json --output dashboard.json

# Generate executive report
python scripts/debt_dashboard.py --input-dir ./scans/ --format text

Configuration

Scanner Configuration

Create config.json to customize detection rules:

{
  "max_function_length": 50,
  "max_complexity": 10,
  "max_nesting_depth": 4,
  "ignore_patterns": ["*.test.js", "build/", "node_modules/"],
  "file_extensions": {
    "python": [".py"],
    "javascript": [".js", ".jsx", ".ts", ".tsx"]
  }
}

Team Configuration

Adjust tools for your team size and sprint capacity:

# 8-person team with 2-week sprints
python scripts/debt_prioritizer.py inventory.json --team-size 8 --sprint-capacity 160

Sample Data

The assets/ directory contains sample data for testing:

  • sample_codebase/: Example codebase with various debt types
  • sample_debt_inventory.json: Example debt inventory
  • historical_debt_*.json: Sample historical data for trending

Try the tools on sample data:

# Test scanner
python scripts/debt_scanner.py assets/sample_codebase

# Test prioritizer  
python scripts/debt_prioritizer.py assets/sample_debt_inventory.json

# Test dashboard
python scripts/debt_dashboard.py assets/historical_debt_*.json

Understanding the Output

Health Score (0-100)

  • 85-100: Excellent - Minimal debt, sustainable practices
  • 70-84: Good - Manageable debt level, some attention needed
  • 55-69: Fair - Debt accumulating, requires focused effort
  • 40-54: Poor - High debt level, impacts productivity
  • 0-39: Critical - Immediate action required

Priority Levels

  • Critical: Security issues, blocking problems (fix immediately)
  • High: Significant impact on quality or velocity (next sprint)
  • Medium: Moderate impact, plan for upcoming work (next quarter)
  • Low: Minor issues, fix opportunistically (when convenient)

Debt Categories

  • Code Quality: Large functions, complexity, duplicates
  • Architecture: Design issues, coupling problems
  • Security: Vulnerabilities, hardcoded secrets
  • Testing: Missing tests, poor coverage
  • Documentation: Missing or outdated docs
  • Dependencies: Outdated packages, license issues

Integration with Development Workflow

CI/CD Integration

Add debt scanning to your CI pipeline:

# In your CI script
python scripts/debt_scanner.py . --output ci_scan.json
# Compare with baseline, fail build if critical issues found

Sprint Planning

  1. Weekly: Run scanner to detect new debt
  2. Sprint Planning: Use prioritizer for debt story sizing
  3. Monthly: Generate dashboard for trend analysis
  4. Quarterly: Executive review with strategic recommendations

Code Review Integration

Use scanner output to focus code reviews:

# Scan PR branch
python scripts/debt_scanner.py . --output pr_scan.json

# Compare with main branch baseline
# Focus review on areas with new debt

Best Practices

Debt Management Strategy

  1. Prevention: Use scanner in CI to catch debt early
  2. Prioritization: Always use business impact for priority
  3. Allocation: Reserve 15-20% sprint capacity for debt work
  4. Measurement: Track health score and velocity impact
  5. Communication: Use dashboard reports for stakeholders

Common Pitfalls to Avoid

  • Analysis Paralysis: Don't spend too long on perfect prioritization
  • Technical Focus Only: Always consider business impact
  • Inconsistent Application: Ensure all teams use same approach
  • Ignoring Trends: Pay attention to debt accumulation rate
  • All-or-Nothing: Incremental debt reduction is better than none

Success Metrics

  • Health Score Improvement: Target 5+ point quarterly improvement
  • Velocity Impact: Keep debt velocity impact below 20%
  • Team Satisfaction: Survey developers on code quality satisfaction
  • Incident Reduction: Track correlation between debt and production issues

Advanced Usage

Custom Debt Types

Extend the scanner for organization-specific debt patterns:

  1. Add patterns to config.json
  2. Modify detection logic in scanner
  3. Update categorization in prioritizer

Integration with External Tools

  • Jira/GitHub: Import debt items as tickets
  • SonarQube: Combine with static analysis metrics
  • APM Tools: Correlate debt with performance metrics
  • Chat Systems: Send debt alerts to team channels

Automated Reporting

Set up automated debt reporting:

#!/bin/bash
# Daily debt monitoring script
python scripts/debt_scanner.py . --output daily_scan.json
python scripts/debt_dashboard.py daily_scan.json --output daily_report.json
# Send report to stakeholders

Troubleshooting

Common Issues

Scanner not finding files: Check ignore_patterns in config Prioritizer giving unexpected results: Verify business impact scoring Dashboard shows flat trends: Need more historical data points

Performance Tips

  • Use .gitignore patterns to exclude irrelevant files
  • Limit scan depth for large monorepos
  • Run dashboard analysis on subset for faster iteration

Getting Help

  1. Check the references/ directory for detailed documentation
  2. Review sample data and expected outputs
  3. Examine the tool source code for customization ideas

Contributing

This skill is designed to be customized for your organization's needs:

  1. Add Detection Rules: Extend scanner patterns for your tech stack
  2. Custom Prioritization: Modify scoring algorithms for your business context
  3. New Report Formats: Add output formats for your stakeholders
  4. Integration Hooks: Add connectors to your existing tools

The codebase is designed with extensibility in mind - each tool is modular and can be enhanced independently.


Remember: Technical debt management is a journey, not a destination. These tools help you make informed decisions about balancing new feature development with technical excellence. Start small, measure impact, and iterate based on what works for your team.

Skill manifest

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.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

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:

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.

Files (agent-skills)
  • assets
    • sample_codebase
      • src
        • frontend.js 14.5 KB
          Loading…
        • payment_processor.py 13.7 KB
          Loading…
        • user_service.py 9.3 KB
          Loading…
    • historical_debt_2024-01-15.json 8 KB
      Loading…
    • historical_debt_2024-02-01.json 6.4 KB
      Loading…
    • sample_debt_inventory.json 7.6 KB
      Loading…
  • expected_outputs
    • sample_dashboard_output.json 5.2 KB
      Loading…
    • sample_prioritization_output.json 44.6 KB
      Loading…
    • sample_scan_output.json 57 KB
      Loading…
  • references
    • debt-classification-taxonomy.md 10.2 KB
      Loading…
    • debt-frameworks.md 13.7 KB
      Loading…
    • prioritization-framework.md 10.6 KB
      Loading…
    • stakeholder-communication-templates.md 12.6 KB
      Loading…
  • scripts
    • debt_dashboard.py 39.9 KB
      Loading…
    • debt_prioritizer.py 33.9 KB
      Loading…
    • debt_scanner.py 25.7 KB
      Loading…
  • LICENSE 1 KB · in bundle
  • README.md 9.3 KB
    # Tech Debt Tracker
    
    A comprehensive technical debt management system that helps engineering teams identify, prioritize, and track technical debt across codebases. This skill provides three interconnected tools for a complete debt management workflow.
    
    ## Overview
    
    Technical debt is like financial debt - it compounds over time and reduces team velocity if not managed systematically. This skill provides:
    
    - **Automated Debt Detection**: Scan codebases to identify various types of technical debt
    - **Intelligent Prioritization**: Use proven frameworks to prioritize debt based on business impact
    - **Trend Analysis**: Track debt evolution over time with executive-friendly dashboards
    
    ## Tools
    
    ### 1. Debt Scanner (`debt_scanner.py`)
    
    Scans codebases to automatically detect technical debt signals using AST parsing for Python and regex patterns for other languages.
    
    **Features:**
    - Detects 15+ types of technical debt (large functions, complexity, duplicates, security issues, etc.)
    - Multi-language support (Python, JavaScript, Java, C#, Go, etc.)
    - Configurable thresholds and rules
    - Dual output: JSON for tools, human-readable for reports
    
    **Usage:**
    ```bash
    # Basic scan
    python scripts/debt_scanner.py /path/to/codebase
    
    # With custom config and output
    python scripts/debt_scanner.py /path/to/codebase --config config.json --output report.json
    
    # Different output formats
    python scripts/debt_scanner.py /path/to/codebase --format both
    ```
    
    ### 2. Debt Prioritizer (`debt_prioritizer.py`)
    
    Takes debt inventory and creates prioritized backlog using proven prioritization frameworks.
    
    **Features:**
    - Multiple prioritization frameworks (Cost of Delay, WSJF, RICE)
    - Business impact analysis with ROI calculations  
    - Sprint allocation recommendations
    - Effort estimation with risk adjustment
    - Executive and engineering reports
    
    **Usage:**
    ```bash
    # Basic prioritization
    python scripts/debt_prioritizer.py debt_inventory.json
    
    # Custom framework and team size
    python scripts/debt_prioritizer.py inventory.json --framework wsjf --team-size 8
    
    # Sprint capacity planning
    python scripts/debt_prioritizer.py inventory.json --sprint-capacity 80 --output backlog.json
    ```
    
    ### 3. Debt Dashboard (`debt_dashboard.py`)
    
    Analyzes historical debt data to provide trend analysis, health scoring, and executive reporting.
    
    **Features:**
    - Health score trending over time
    - Debt velocity analysis (accumulation vs resolution)
    - Executive summary with business impact
    - Forecasting based on current trends
    - Strategic recommendations
    
    **Usage:**
    ```bash
    # Single directory of scans
    python scripts/debt_dashboard.py --input-dir ./debt_scans/
    
    # Multiple specific files
    python scripts/debt_dashboard.py scan1.json scan2.json scan3.json
    
    # Custom analysis period
    python scripts/debt_dashboard.py data.json --period quarterly --team-size 6
    ```
    
    ## Quick Start
    
    ### 1. Scan Your Codebase
    
    ```bash
    # Scan your project
    python scripts/debt_scanner.py ~/my-project --output initial_scan.json
    
    # Review the results
    python scripts/debt_scanner.py ~/my-project --format text
    ```
    
    ### 2. Prioritize Your Debt
    
    ```bash
    # Create prioritized backlog
    python scripts/debt_prioritizer.py initial_scan.json --output backlog.json
    
    # View sprint recommendations
    python scripts/debt_prioritizer.py initial_scan.json --format text
    ```
    
    ### 3. Track Over Time
    
    ```bash
    # After multiple scans, analyze trends
    python scripts/debt_dashboard.py scan1.json scan2.json scan3.json --output dashboard.json
    
    # Generate executive report
    python scripts/debt_dashboard.py --input-dir ./scans/ --format text
    ```
    
    ## Configuration
    
    ### Scanner Configuration
    
    Create `config.json` to customize detection rules:
    
    ```json
    {
      "max_function_length": 50,
      "max_complexity": 10,
      "max_nesting_depth": 4,
      "ignore_patterns": ["*.test.js", "build/", "node_modules/"],
      "file_extensions": {
        "python": [".py"],
        "javascript": [".js", ".jsx", ".ts", ".tsx"]
      }
    }
    ```
    
    ### Team Configuration
    
    Adjust tools for your team size and sprint capacity:
    
    ```bash
    # 8-person team with 2-week sprints
    python scripts/debt_prioritizer.py inventory.json --team-size 8 --sprint-capacity 160
    ```
    
    ## Sample Data
    
    The `assets/` directory contains sample data for testing:
    
    - `sample_codebase/`: Example codebase with various debt types
    - `sample_debt_inventory.json`: Example debt inventory
    - `historical_debt_*.json`: Sample historical data for trending
    
    Try the tools on sample data:
    
    ```bash
    # Test scanner
    python scripts/debt_scanner.py assets/sample_codebase
    
    # Test prioritizer  
    python scripts/debt_prioritizer.py assets/sample_debt_inventory.json
    
    # Test dashboard
    python scripts/debt_dashboard.py assets/historical_debt_*.json
    ```
    
    ## Understanding the Output
    
    ### Health Score (0-100)
    
    - **85-100**: Excellent - Minimal debt, sustainable practices
    - **70-84**: Good - Manageable debt level, some attention needed
    - **55-69**: Fair - Debt accumulating, requires focused effort
    - **40-54**: Poor - High debt level, impacts productivity
    - **0-39**: Critical - Immediate action required
    
    ### Priority Levels
    
    - **Critical**: Security issues, blocking problems (fix immediately)
    - **High**: Significant impact on quality or velocity (next sprint)
    - **Medium**: Moderate impact, plan for upcoming work (next quarter)
    - **Low**: Minor issues, fix opportunistically (when convenient)
    
    ### Debt Categories
    
    - **Code Quality**: Large functions, complexity, duplicates
    - **Architecture**: Design issues, coupling problems
    - **Security**: Vulnerabilities, hardcoded secrets
    - **Testing**: Missing tests, poor coverage
    - **Documentation**: Missing or outdated docs
    - **Dependencies**: Outdated packages, license issues
    
    ## Integration with Development Workflow
    
    ### CI/CD Integration
    
    Add debt scanning to your CI pipeline:
    
    ```bash
    # In your CI script
    python scripts/debt_scanner.py . --output ci_scan.json
    # Compare with baseline, fail build if critical issues found
    ```
    
    ### Sprint Planning
    
    1. **Weekly**: Run scanner to detect new debt
    2. **Sprint Planning**: Use prioritizer for debt story sizing
    3. **Monthly**: Generate dashboard for trend analysis
    4. **Quarterly**: Executive review with strategic recommendations
    
    ### Code Review Integration
    
    Use scanner output to focus code reviews:
    
    ```bash
    # Scan PR branch
    python scripts/debt_scanner.py . --output pr_scan.json
    
    # Compare with main branch baseline
    # Focus review on areas with new debt
    ```
    
    ## Best Practices
    
    ### Debt Management Strategy
    
    1. **Prevention**: Use scanner in CI to catch debt early
    2. **Prioritization**: Always use business impact for priority
    3. **Allocation**: Reserve 15-20% sprint capacity for debt work
    4. **Measurement**: Track health score and velocity impact
    5. **Communication**: Use dashboard reports for stakeholders
    
    ### Common Pitfalls to Avoid
    
    - **Analysis Paralysis**: Don't spend too long on perfect prioritization
    - **Technical Focus Only**: Always consider business impact
    - **Inconsistent Application**: Ensure all teams use same approach
    - **Ignoring Trends**: Pay attention to debt accumulation rate
    - **All-or-Nothing**: Incremental debt reduction is better than none
    
    ### Success Metrics
    
    - **Health Score Improvement**: Target 5+ point quarterly improvement
    - **Velocity Impact**: Keep debt velocity impact below 20%
    - **Team Satisfaction**: Survey developers on code quality satisfaction
    - **Incident Reduction**: Track correlation between debt and production issues
    
    ## Advanced Usage
    
    ### Custom Debt Types
    
    Extend the scanner for organization-specific debt patterns:
    
    1. Add patterns to `config.json`
    2. Modify detection logic in scanner
    3. Update categorization in prioritizer
    
    ### Integration with External Tools
    
    - **Jira/GitHub**: Import debt items as tickets
    - **SonarQube**: Combine with static analysis metrics
    - **APM Tools**: Correlate debt with performance metrics
    - **Chat Systems**: Send debt alerts to team channels
    
    ### Automated Reporting
    
    Set up automated debt reporting:
    
    ```bash
    #!/bin/bash
    # Daily debt monitoring script
    python scripts/debt_scanner.py . --output daily_scan.json
    python scripts/debt_dashboard.py daily_scan.json --output daily_report.json
    # Send report to stakeholders
    ```
    
    ## Troubleshooting
    
    ### Common Issues
    
    **Scanner not finding files**: Check `ignore_patterns` in config
    **Prioritizer giving unexpected results**: Verify business impact scoring
    **Dashboard shows flat trends**: Need more historical data points
    
    ### Performance Tips
    
    - Use `.gitignore` patterns to exclude irrelevant files
    - Limit scan depth for large monorepos
    - Run dashboard analysis on subset for faster iteration
    
    ### Getting Help
    
    1. Check the `references/` directory for detailed documentation
    2. Review sample data and expected outputs
    3. Examine the tool source code for customization ideas
    
    ## Contributing
    
    This skill is designed to be customized for your organization's needs:
    
    1. **Add Detection Rules**: Extend scanner patterns for your tech stack
    2. **Custom Prioritization**: Modify scoring algorithms for your business context
    3. **New Report Formats**: Add output formats for your stakeholders
    4. **Integration Hooks**: Add connectors to your existing tools
    
    The codebase is designed with extensibility in mind - each tool is modular and can be enhanced independently.
    
    ---
    
    **Remember**: Technical debt management is a journey, not a destination. These tools help you make informed decisions about balancing new feature development with technical excellence. Start small, measure impact, and iterate based on what works for your team.
  • SKILL.md 4.5 KB
    ---
    name: tech-debt-tracker
    description: "Find, rank and track tech debt in a codebase. Use whenever the user asks what to refactor first, plans a cleanup sprint, modernizes legacy code or wants to know how messy the code is."
    ---
    
    # 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.
    

Comments

Sign in to join the conversation.

No comments yet. Start the conversation.

Reviews (0)

No reviews yet.