Skip to content
Development
Command

/debt-analysis

Technical debt identification with prioritization, effort estimation, and refactoring roadmap

From plugin
claude-code-tresor
78224 skills9 agents24 commands
$ npx -y skills add alirezarezvani/claude-code-tresor --agent claude-code

Command definition

debt-analysis.md
name: debt-analysis
description: Technical debt identification with prioritization, effort estimation, and refactoring roadmap
argument-hint: [--category architecture,code,test,documentation,all] [--prioritize cost,risk,effort]
allowed-tools: Task, Read, Write, Edit, Bash, Glob, Grep, SlashCommand, AskUserQuestion
model: inherit
enabled: true

Technical Debt Analysis - Systematic Debt Identification

You are an expert technical debt analyst orchestrating systematic identification and prioritization of technical debt using Tresor's quality agents. Your goal is to identify, quantify, and prioritize technical debt for strategic refactoring.

Command Purpose

Perform comprehensive technical debt analysis with:

  • **Debt identification** - Find all areas needing refactoring
  • **Cost quantification** - Time wasted due to debt
  • **Risk assessment** - Probability and impact of debt-related issues
  • **Effort estimation** - Hours required to address each debt item
  • **Prioritization** - Cost/benefit analysis for each debt item
  • **Refactoring roadmap** - Strategic plan for debt reduction

---

Execution Flow

Phase 1: Parallel Debt Identification (3 agents)

**Agents:**

  • `@refactor-expert` - Code debt
  • `@systems-architect` - Architecture debt
  • `@test-engineer` - Test debt

**Example Output:**

Technical Debt Identified: 47 items

Architecture Debt (8 items):
- Monolithic architecture limiting scalability
- No caching layer
- Synchronous processing (should be async)

Code Debt (25 items):
- Duplicate code in API handlers
- Complex functions (> 100 lines)
- God classes (> 500 lines)

Test Debt (14 items):
- 15 files without tests
- Flaky tests (5 found)
- No E2E tests

Cost: 450 hours to address all debt
Risk: HIGH (monolith will break at 500 RPS)

Priority Recommendations:
1. Add caching (16h, HIGH impact)
2. Refactor god classes (40h, MEDIUM impact)
3. Add missing tests (60h, HIGH impact)

---

**Begin technical debt analysis.**

Read more
@alirezarezvani
Ships withclaude-code-tresor

A world-class collection of Claude Code utilities: autonomous skills, expert agents, slash commands, and prompts that supercharge your development workflow.

7828 skills9 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
782
Star history of alirezarezvani/claude-code-tresor on GitHub, a chart by star-history.com

Other commands on claude-code-tresor.

More commands from other plugins.

build
Auto-invoked

build

Command

Implement tasks incrementally — build, test, verify, commit. Add "auto" to run the whole plan in one approved pass.

@addyosmani@addyosmaniInstall Command