tech-debt
Track, categorize, and prioritize technical debt across the codebase.
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Menu
Track, categorize, and prioritize technical debt across the codebase.
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Baseado na classificação ocupacional SOC
Generate customized .claude/ harness framework with Fusion Architecture (GAN-inspired + Domain Specialists). TRIGGER when user wants to set up AI-assisted development structure, create a new project harness, add structure to existing projects, or mentions 'harness', 'scaffold', 'framework setup'. Supports all domains through template + dynamic generation.
Negotiates 'done' criteria between Generator, Evaluator, and architect-lead before implementation begins. Converts subjective goals into testable, gradable criteria with clear domain responsibilities.
Guided database migration workflow — from schema design to rollback documentation.
Production incident response workflow — triage, root cause analysis, and resolution.
Save current progress with structured handoff artifact. Enables context reset for long-running tasks and session recovery.
Analyze existing web development codebase and generate documentation for AI-assisted development. Use when adding harness to existing projects (1→N).
| name | tech-debt |
| description | Track, categorize, and prioritize technical debt across the codebase. |
| argument-hint | [directory or 'all'] |
| user-invocable | true |
| allowed-tools | Read, Glob, Grep, AskUserQuestion |
Scan, categorize, and prioritize technical debt for systematic reduction.
Search for common debt patterns:
TODO/FIXME comments
grep -rn "TODO\|FIXME\|HACK\|XXX" src/
Deprecated patterns
Code smells
Missing tests
Documentation gaps
Group findings by category:
| Category | Examples |
|---|---|
| Architecture | Circular dependencies, module boundary violations |
| Code Quality | Duplicate code, large functions, magic numbers |
| Testing | Missing tests, low coverage, flaky tests |
| Documentation | Missing docs, outdated comments |
| Dependencies | Outdated packages, security vulnerabilities |
| Performance | N+1 queries, unindexed columns, memory leaks |
| Security | Hardcoded secrets, missing validation |
Rate each debt item:
| Severity | Criteria | Example |
|---|---|---|
| CRITICAL | Blocks development or causes production issues | Security vulnerability, data loss risk |
| HIGH | Significantly impacts productivity or quality | Missing tests on critical path, broken CI |
| MEDIUM | Causes friction but has workaround | Code duplication, missing documentation |
| LOW | Nice to fix, low impact | Cosmetic issues, minor optimizations |
Estimate time to resolve:
| Effort | Time | Criteria |
|---|---|---|
| Small | <2 hours | Localized fix, no dependencies |
| Medium | 2-8 hours | Multiple files, some testing needed |
| Large | 1-3 days | Architecture change, many files affected |
| Epic | >3 days | Major refactor, affects multiple teams |
Calculate priority score:
Priority = Severity × Impact / Effort
CRITICAL = 4, HIGH = 3, MEDIUM = 2, LOW = 1
Epic = 4, Large = 3, Medium = 2, Small = 1
Higher score = Higher priority to fix.
# Technical Debt Report
## Summary
- Total Items: [N]
- Critical: [N]
- High: [N]
- Medium: [N]
- Low: [N]
## Priority Queue
### Priority 1: CRITICAL Issues
| ID | Description | Category | Location | Effort |
|----|-------------|----------|----------|--------|
| TD-001 | [Description] | Security | file:line | Medium |
### Priority 2: HIGH Impact / Low Effort
| ID | Description | Category | Location | Effort |
|----|-------------|----------|----------|--------|
### Priority 3: Medium Priority Items
| ID | Description | Category | Location | Effort |
|----|-------------|----------|----------|--------|
## By Category
### Architecture
- [List of architecture debt]
### Code Quality
- [List of code quality debt]
### Testing
- [List of testing debt]
### Documentation
- [List of documentation debt]
### Dependencies
- [List of dependency debt]
## Recommended Sprint Allocation
- **This Sprint**: [Items to tackle now]
- **Next Sprint**: [Items to plan for]
- **Backlog**: [Items to track for later]
## Debt Reduction Strategy
1. [Recommended approach for systematic reduction]
2. [Process improvements to prevent new debt]