/debt-analysis
Technical debt identification with prioritization, effort estimation, and refactoring roadmap
$ npx -y skills add alirezarezvani/claude-code-tresor --agent claude-codeHow it fires
How this command gets triggered: by you, by Claude, or both.
- Fires itselfClaude auto-loads it when your prompt matches the work.
- You can call itInvoke it directly when you want it.
- Slash command
/debt-analysis
Context preview
What this command does when you run it.
Technical debt identification with prioritization, effort estimation, and refactoring roadmap
Command definition
debt-analysis.mdname: 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
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.**
A world-class collection of Claude Code utilities: autonomous skills, expert agents, slash commands, and prompts that supercharge your development workflow.
Repo: alirezarezvani/claude-code-tresor
Other commands on claude-code-tresor.
- /scaffold
Generate production-ready project structures, components, and boilerplate code with modern best practices and comprehensive tooling
Open command - /docs-gen
Generate comprehensive documentation from code including API docs, user guides, and interactive documentation with deployment automation
Open command - /deploy-validate
Pre-deployment validation with tests, security checks, config safety, and environment readiness verification
Open command - /health-check
Comprehensive system health verification for production monitoring and incident detection
Open command - /incident-response
Production incident coordination with emergency triage, RCA, and postmortem generation
Open command - /benchmark
Load testing and performance benchmarking with intelligent scenario generation
Open command

