**Command:** `quality:debt [target]`
/plugin marketplace add nguyenthienthanh/aura-frog/plugin install aura-frog@aurafrogquality/Command: quality:debt [target]
Agent: qa-automation
Version: 1.0.0
Identify and track technical debt including TODOs, FIXMEs, deprecated code, unused imports, dead code, and code smells.
# Analyze entire project
quality:debt
# Analyze specific directory
quality:debt src/components
# Show only high-priority debt
quality:debt --priority high
# Export report
quality:debt --export debt-report.md
# Grep for TODO, FIXME, HACK, XXX
grep -rn "TODO\|FIXME\|HACK\|XXX" src/
// @deprecated Use newFunction() instead
function oldFunction() {}
// TypeScript
/** @deprecated */
export function legacyApi() {}
# JavaScript/TypeScript (ts-unused-exports)
npx ts-unused-exports tsconfig.json
# Python (vulture)
vulture . --min-confidence 80
# Go (deadcode)
deadcode ./...
# JavaScript/TypeScript (jscpd)
npx jscpd src/
# Python (pylint duplicate-code)
pylint --disable=all --enable=duplicate-code .
# Technical Debt Report
**Project:** my-project
**Date:** 2025-11-26
**Total Debt Items:** 42
---
## Summary
**Debt Level:** 🟡 MODERATE
| Category | Count | Priority |
|----------|-------|----------|
| TODO Comments | 18 | Medium |
| FIXME Comments | 6 | High |
| Deprecated Code | 4 | High |
| Unused Exports | 8 | Low |
| Code Duplication | 3 | Medium |
| Code Smells | 3 | Medium |
**Estimated Time to Fix:** 12-16 hours
---
## 🔴 High Priority (10 items)
### FIXME Comments (6)
**src/services/auth.ts:45**
```typescript
// FIXME: Token refresh logic is broken, needs proper error handling
async refreshToken() {
// Temporary workaround
return localStorage.getItem('token');
}
src/utils/validation.ts:78
// FIXME: This regex doesn't handle international phone numbers
const phoneRegex = /^[0-9]{10}$/;
src/api/v1/users.ts
/**
* @deprecated Use fetchUserProfile() from v2 API
* This function will be removed in v3.0
*/
export function getUserData(userId: string) {
return api.get(`/v1/users/${userId}`);
}
src/components/UserProfile.tsx:120
// TODO: Add loading skeleton
<div>Loading...</div>
src/hooks/useApi.ts:34
// TODO: Implement request caching
src/utils/formatters.ts & src/helpers/format.ts
src/utils/helpers.ts
export function formatDate() {} // ❌ Never imported
export function parseDate() {} // ❌ Never imported
src/services/api.ts:156-180
// Old implementation (before refactor)
// function oldApiCall() {
// ...25 lines of commented code...
// }
Debt Growth:
Most Common:
Debt Ratio: 8.5% (codebase lines with debt / total lines)
Debt Age:
Most Debt-Prone Areas:
src/services/ - 15 itemssrc/utils/ - 12 itemssrc/components/ - 10 itemsAdd to JIRA Backlog:
Next Review: 2025-12-10 (2 weeks)
---
## 🎨 Configuration
**.debtignore:**
node_modules/ dist/ build/ *.test.ts *.spec.ts
**debt-rules.yaml:**
```yaml
priorities:
FIXME: high
TODO: medium
HACK: high
XXX: low
age_thresholds:
high: 30 # days
medium: 60
low: 90
debt_ratio_target: 5 # percent
Command: quality:debt Version: 1.0.0