tech-debt-analyzer

This skill should be used when analyzing technical debt in a codebase, documenting code quality issues, creating technical debt registers, or assessing code maintainability. Use this for identifying code smells, architectural issues, dependency problems, missing documentation, security vulnerabilities, and creating comprehensive technical debt documentation.

31 stars

Best use case

tech-debt-analyzer is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

This skill should be used when analyzing technical debt in a codebase, documenting code quality issues, creating technical debt registers, or assessing code maintainability. Use this for identifying code smells, architectural issues, dependency problems, missing documentation, security vulnerabilities, and creating comprehensive technical debt documentation.

Teams using tech-debt-analyzer should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/tech-debt-analyzer/SKILL.md --create-dirs "https://raw.githubusercontent.com/travisjneuman/.claude/main/skills/tech-debt-analyzer/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/tech-debt-analyzer/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How tech-debt-analyzer Compares

Feature / Agenttech-debt-analyzerStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

This skill should be used when analyzing technical debt in a codebase, documenting code quality issues, creating technical debt registers, or assessing code maintainability. Use this for identifying code smells, architectural issues, dependency problems, missing documentation, security vulnerabilities, and creating comprehensive technical debt documentation.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# Technical Debt Analyzer

Systematically identify, analyze, and document technical debt.

## When to Use

**Use for:**

- Analyzing code quality issues
- Creating technical debt registers
- Assessing code maintainability
- Identifying dependency problems
- Documenting security vulnerabilities
- Planning refactoring efforts

**Don't use when:**

- Writing new code → use `generic-feature-developer`
- Code review → use `generic-code-reviewer`
- Writing tests → use `test-specialist`

## Quick Analysis Commands

```bash
# Find large files (>500 lines)
find src -name "*.ts" -exec wc -l {} + | awk '$1 > 500' | sort -rn

# Find TODO/FIXME markers
grep -rn "TODO\|FIXME\|HACK\|XXX" src/

# Check for console.log in production code
grep -rn "console.log" src/ --include="*.ts" --include="*.tsx"

# Find TypeScript 'any' usage
grep -rn ": any" src/ --include="*.ts" --include="*.tsx"

# Check outdated dependencies
npm outdated

# Security vulnerabilities
npm audit

# Unused exports (requires ts-unused-exports)
npx ts-unused-exports tsconfig.json
```

## Debt Categories

| Category      | Examples                                               |
| ------------- | ------------------------------------------------------ |
| Code Quality  | Large files, complex functions, TODO/FIXME markers     |
| Architectural | Tight coupling, missing abstractions, circular deps    |
| Test          | Missing coverage, fragile tests, slow execution        |
| Documentation | Missing README, outdated docs, no ADRs                 |
| Dependency    | Outdated packages, security vulnerabilities            |
| Performance   | N+1 queries, memory leaks, large bundles               |
| Security      | Missing validation, exposed secrets, XSS/SQL injection |

## Analysis Workflow

### 1. Automated Detection

**Code Smells to Check:**

- Large files (>500 lines)
- Complex functions (cyclomatic complexity >10)
- Debt markers (TODO, FIXME, HACK, XXX)
- Console statements in production code
- `any` types in TypeScript
- Long parameter lists (>5 params)
- Deep nesting (>4 levels)

**Dependency Issues:**

- Deprecated packages
- Duplicate functionality
- Loose version constraints
- Known vulnerabilities

### 2. Severity Assessment

| Severity | Criteria                              | Action          |
| -------- | ------------------------------------- | --------------- |
| Critical | Security vulns, data loss risk        | Immediate fix   |
| High     | Performance problems, blocking issues | Current sprint  |
| Medium   | Code quality, missing docs            | This quarter    |
| Low      | Minor smells, optimizations           | When convenient |

### 3. Priority Matrix

| Impact / Effort | Low       | Medium    | High      |
| --------------- | --------- | --------- | --------- |
| High Impact     | Do First  | Do Second | Plan & Do |
| Medium Impact   | Do Second | Plan & Do | Consider  |
| Low Impact      | Quick Win | Consider  | Avoid     |

## Debt Register Format

```markdown
## DEBT-001: Description

**Category:** Code Quality | **Severity:** High
**Location:** src/services/UserService.ts

**Description:** Brief description of the issue

**Impact:**

- Business: How it affects delivery
- Technical: Why it's problematic
- Risk: What could go wrong

**Proposed Solution:** What to do about it
**Effort:** Days/hours estimate
**Target:** Sprint/quarter
```

## Prevention Strategies

### Automated Guards

```json
{
  "rules": {
    "complexity": ["error", 10],
    "max-lines-per-function": ["error", 50],
    "max-params": ["error", 5],
    "max-depth": ["error", 4]
  }
}
```

### Maintenance Schedule

| Frequency | Tasks                              |
| --------- | ---------------------------------- |
| Weekly    | Review TODO/FIXME, update register |
| Monthly   | Dependency updates, debt review    |
| Quarterly | Full analysis, architecture review |

## Self-Critique Checklist

After completing debt analysis:

- [ ] All automated checks run
- [ ] Manual review of critical paths done
- [ ] Severity assessments justified
- [ ] Proposed solutions are actionable
- [ ] Priority matrix applied consistently
- [ ] Register entries are complete

## See Also

- [Code Review Standards](../_shared/CODE_REVIEW_STANDARDS.md) - Quality checks
- Project `CLAUDE.md` - Workflow rules

Related Skills

real-estate-analyzer

31
from travisjneuman/.claude

Property valuation, market analysis, investment ROI calculations, comparable analysis, and rental yield assessment. Use when evaluating real estate investments, analyzing property markets, or calculating returns.

learning-gap-analyzer

31
from travisjneuman/.claude

Map understanding, identify knowledge gaps, and build targeted learning plans with spaced repetition. Use when assessing knowledge levels, designing study plans, or optimizing learning paths.

fundraising-analyzer

31
from travisjneuman/.claude

Nonprofit fundraising performance analysis with donor segmentation, campaign ROI, retention metrics, and trend analysis. Use when evaluating fundraising effectiveness, analyzing donor data, or planning campaigns.

example-skill

31
from travisjneuman/.claude

Example skill - replace with your skill's description and activation keywords

websockets-realtime

31
from travisjneuman/.claude

Real-time communication with WebSockets, Server-Sent Events, and related technologies. Use when building chat, live updates, collaborative features, or any real-time functionality.

video-production

31
from travisjneuman/.claude

Professional video production from planning to delivery. Use when creating video content, editing workflows, motion graphics, or optimizing video for different platforms.

ui-research

31
from travisjneuman/.claude

Research-first UI/UX design workflow. Use BEFORE any frontend visual work to research modern patterns, gather inspiration from real products, and avoid generic AI-generated looks. Mandatory prerequisite for quality UI work.

ui-animation

31
from travisjneuman/.claude

Motion design and animation for user interfaces. Use when creating micro-interactions, page transitions, loading states, or any UI animation across web and mobile platforms.

travel-planner

31
from travisjneuman/.claude

Travel destination research and daily itinerary creation with logistics planning, budget tracking, and experience optimization. Use when planning trips, creating travel itineraries, comparing destinations, or organizing travel logistics.

test-specialist

31
from travisjneuman/.claude

This skill should be used when writing test cases, fixing bugs, analyzing code for potential issues, or improving test coverage for JavaScript/TypeScript applications. Use this for unit tests, integration tests, end-to-end tests, debugging runtime errors, logic bugs, performance issues, security vulnerabilities, and systematic code analysis.

tdd-workflow

31
from travisjneuman/.claude

Test-Driven Development workflow enforcement with RED-GREEN-REFACTOR cycle. Use when implementing features test-first or improving test coverage.

tauri-desktop

31
from travisjneuman/.claude

Tauri 2.0 project setup, Rust backend + web frontend, plugin system, IPC commands, security model, auto-update, and mobile support. Use when building lightweight cross-platform desktop or mobile apps with Tauri.