Tech debt tracker

From robertbstillwell/marketing-skills · View interactive version

Tech debt tracker is an AI agent skill from the GitHub repository robertbstillwell/marketing-skills. **Category**: Engineering Process Automation

How to use this skill

Skill file

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.

Technical Debt Classification Framework

1. Code Debt

Code-level issues that make the codebase harder to understand, modify, and maintain.

Indicators:

Impact:

Detection Methods:

2. Architecture Debt

High-level design decisions that seemed reasonable at the time but now limit scalability or maintainability.

Indicators:

Impact:

Detection Methods:

3. Test Debt

Inadequate or missing test coverage, poor test quality, and testing infrastructure issues.

Indicators:

Impact:

Detection Methods:

4. Documentation Debt

Missing, outdated, or poor-quality documentation that makes the system harder to understand and maintain.

Indicators:

Impact:

Detection Methods:

5. Dependency Debt

Issues related to external libraries, frameworks, and system dependencies.

Indicators:

Impact:

Detection Methods:

6. Infrastructure Debt

Operations and deployment-related technical debt.

Indicators:

Impact:

Detection Methods:

Severity Scoring Framework

Each piece of tech debt is scored on multiple dimensions to determine overall severity:

Impact Assessment (1-10 scale)

Development Velocity Impact

Quality Impact

Team Productivity Impact

Business Impact

Effort Assessment

Size (Story Points or Hours)

Risk Level

Skill Requirements

Interest Rate Calculation

Technical debt accrues "interest" - the additional cost of leaving it unfixed. This interest rate helps prioritize which debt to pay down first.

Interest Rate Formula

Interest Rate = (Impact Score × Frequency of Encounter) / Time Period

Where:

Cost of Delay Calculation

Cost of Delay = Interest Rate × Time Until Fix × Team Size Multiplier

Example Calculation

Scenario: Legacy authentication module with poor error handling

Interest Rate = 7 × 15 = 105 points per sprint
Cost of Delay = 105 × 3 × 1.2 = 378 total cost points

This debt item should be prioritized over lower-cost items.

Debt Inventory Management

Data Structure

Each debt item is tracked with the following attributes:

{
  "id": "DEBT-2024-001",
  "title": "Legacy user authentication module",
  "category": "code",
  "subcategory": "error_handling",
  "location": "src/auth/legacy_auth.py:45-120",
  "description": "Authentication error handling uses generic exceptions",
  "impact": {
    "velocity": 7,
    "quality": 8,
    "productivity": 6,
    "business": 5
  },
  "effort": {
    "size": "M",
    "risk": "medium",
    "skill_required": "mid"
  },
  "interest_rate": 105,
  "cost_of_delay": 378,
  "priority": "high",
  "created_date": "2024-01-15",
  "last_updated": "2024-01-20",
  "assigned_to": null,
  "status": "identified",
  "tags": ["security", "user-experience", "maintainability"]
}

Status Lifecycle

  1. Identified - Debt detected but not yet analyzed
  2. Analyzed - Impact and effort assessed
  3. Prioritized - Added to backlog with priority
  4. Planned - Assigned to specific sprint/release
  5. In Progress - Actively being worked on
  6. Review - Implementation complete, under review
  7. Done - Debt resolved and verified
  8. Won't Fix - Consciously decided not to address

Prioritization Frameworks

1. Cost-of-Delay vs Effort Matrix

Plot debt items on a 2D matrix:

Priority Quadrants:

2. Weighted Shortest Job First (WSJF)

WSJF Score = (Business Value + Time Criticality + Risk Reduction) / Effort

Where each component is scored 1-10:

3. Technical Debt Quadrant

Based on Martin Fowler's framework:

Quadrant 1: Reckless & Deliberate

Quadrant 2: Prudent & Deliberate

Quadrant 3: Reckless & Inadvertent

Quadrant 4: Prudent & Inadvertent

Refactoring Strategies

1. Strangler Fig Pattern

Gradually replace old system by building new functionality around it.

When to use:

Implementation:

  1. Identify boundaries for extraction
  2. Create abstraction layer
  3. Route new features to new implementation
  4. Gradually migrate existing features
  5. Remove old implementation

2. Branch by Abstraction

Create abstraction layer to allow parallel implementations.

When to use:

Implementation:

  1. Create abstraction interface
  2. Implement abstraction for current system
  3. Replace direct calls with abstraction calls
  4. Implement new version behind same abstraction
  5. Switch implementations via configuration
  6. Remove old implementation

3. Feature Toggles

Use configuration flags to control code execution.

When to use:

Implementation:

  1. Identify decision points in code
  2. Add toggle checks at decision points
  3. Implement both old and new paths
  4. Test both paths thoroughly
  5. Gradually move toggle to new implementation
  6. Remove old path and toggle

4. Parallel Run

Run old and new implementations simultaneously to verify correctness.

When to use:

Implementation:

  1. Implement new version alongside old
  2. Run both versions with same inputs
  3. Compare outputs and log discrepancies
  4. Investigate and fix discrepancies
  5. Build confidence through parallel execution
  6. Switch to new implementation
  7. Remove old implementation

Sprint Allocation Recommendations

Debt-to-Feature Ratio

Maintain healthy balance between new features and debt reduction:

Team Velocity < 70% of capacity:

Team Velocity 70-85% of capacity:

Team Velocity > 85% of capacity:

Sprint Planning Integration

Story Point Allocation:

Debt Budget Tracking:

Quarterly Planning

Debt Initiatives:

Success Metrics:

Stakeholder Reporting

Executive Dashboard

Key Metrics:

Monthly Report Structure:

  1. Executive Summary (3 bullet points)
  2. Health Score Trend (6-month view)
  3. Top 3 Risk Items (business impact focus)
  4. Investment Recommendation (resource allocation)
  5. Success Stories (debt reduced last month)

Engineering Team Dashboard

Daily Metrics:

Sprint Reviews:

Product Manager Reports

Feature Impact Analysis:

Customer Impact Translation:

Implementation Roadmap

Phase 1: Foundation (Weeks 1-2)

  1. Set up debt scanning infrastructure
  2. Establish debt taxonomy and scoring criteria
  3. Scan initial codebase and create baseline inventory
  4. Train team on debt identification and reporting

Phase 2: Process Integration (Weeks 3-4)

  1. Integrate debt tracking into sprint planning
  2. Establish debt budgets and allocation rules
  3. Create stakeholder reporting templates
  4. Set up automated debt scanning in CI/CD

Phase 3: Optimization (Weeks 5-6)

  1. Refine scoring algorithms based on team feedback
  2. Implement trend analysis and predictive metrics
  3. Create specialized debt reduction initiatives
  4. Establish cross-team debt coordination processes

Phase 4: Maturity (Ongoing)

  1. Continuous improvement of detection algorithms
  2. Advanced analytics and prediction models
  3. Integration with planning and project management tools
  4. Organization-wide debt management best practices

Success Criteria

Quantitative Metrics:

Qualitative Metrics:

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.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.