---
name: technical-debt-quantifier-a2d82fbc7ba5
description: Measure, categorize, and prioritize technical debt for migration planning and remediation
allowed-tools: ["Bash", "Read", "Write", "Grep", "Glob", "Edit"]
graph:
  domains: [domain:software-engineering]
  specializations: [specialization:code-migration-modernization]
  skillAreas: [skill-area:code-analysis-linting, skill-area:prioritization-frameworks]
  roles: [role:tech-lead, role:engineering-manager]
  workflows: [workflow:technical-debt-reduction]
  topics: [topic:refactoring]
---

# Technical Debt Quantifier Skill

Measures, categorizes, and prioritizes technical debt to support informed decision-making for migration planning and debt remediation strategies.

## Purpose

Enable technical debt management for:
- Debt categorization and inventory
- Remediation effort estimation
- Interest calculation (ongoing cost)
- Priority scoring
- Trend tracking

## Capabilities

### 1. Debt Categorization
- Code debt (smells, complexity)
- Architecture debt (coupling, cohesion)
- Test debt (coverage gaps)
- Documentation debt
- Infrastructure debt

### 2. Remediation Effort Estimation
- Estimate fix time per item
- Calculate total remediation cost
- Identify quick wins
- Plan sprint allocation

### 3. Interest Calculation
- Calculate ongoing maintenance cost
- Estimate productivity impact
- Project future debt growth
- Model compound interest

### 4. Priority Scoring
- Score by business impact
- Weight by risk level
- Factor in remediation cost
- Calculate ROI of fixes

### 5. Debt-to-Value Ratio
- Compare debt to feature velocity
- Benchmark against industry
- Track debt percentage
- Set organizational targets

### 6. Trend Tracking
- Monitor debt over time
- Track remediation progress
- Identify debt sources
- Report debt velocity

## Tool Integrations

| Tool | Purpose | Integration Method |
|------|---------|-------------------|
| SonarQube | Debt calculation | API |
| CodeScene | Hotspot analysis | API |
| Codacy | Quality metrics | API |
| Code Climate | Maintainability | API |
| NDepend | .NET debt analysis | CLI |

## Output Schema

```json
{
  "analysisId": "string",
  "timestamp": "ISO8601",
  "debt": {
    "total": {
      "estimatedHours": "number",
      "monetaryValue": "number",
      "items": "number"
    },
    "byCategory": {
      "code": {},
      "architecture": {},
      "test": {},
      "documentation": {}
    },
    "byPriority": {
      "critical": [],
      "high": [],
      "medium": [],
      "low": []
    }
  },
  "metrics": {
    "debtRatio": "number",
    "debtPerLoc": "number",
    "interestRate": "number"
  },
  "trends": {
    "thirtyDay": "number",
    "ninetyDay": "number"
  },
  "recommendations": []
}
```

## Integration with Migration Processes

- **legacy-codebase-assessment**: Debt quantification
- **technical-debt-remediation**: Prioritization

## Related Skills

- `code-smell-detector`: Debt identification
- `static-code-analyzer`: Quality metrics

## Related Agents

- `technical-debt-auditor`: Deep debt analysis


---
Source attribution: a5c-ai
Original project: https://github.com/a5c-ai/babysitter
License: MIT
License information: https://opensource.org/license/mit
Original upstream instructions; downloaded from Mega AI Hub.

## Upstream license notice

MIT License

Copyright (c) 2026 Gabriel Moreira

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.



# Mega AI Hub resource metadata

Creator / publisher: a5c-ai
Original project: https://github.com/a5c-ai/babysitter
Attribution basis: Upstream repository explicitly recorded in package mirror path

Fields of work: Development & Engineering, Product Management
Roles: Backend Developer, DevOps / SRE, Product Manager, QA / Test Engineer, Technical Product Manager
Specialties: Backend
Tools: Codacy, Codescene, Ndepend, Sonarqube, Code Climate
Country applicability: Country not specified
Classification basis: Source catalog labels
Instruction SHA-256: b2d04ac1e32e6ac1038a1a593e68d9a8d2a8c302701b98ddacbd12dd38043883
