Skills

Tech Debt

Track, categorize and prioritize technical debt across the codebase, scans for debt...

Install

npx skills add Donchitos/Claude-Code-Game-Studios --skill tech-debt -g -a claude-code -y
Category
Engineering
Updated
17d ago
License
MIT
Context cost
Mediumabout 2,408 tokens
Runs scripts
No, instructions only

What it does

Track, categorize and prioritize technical debt across the codebase, scans for debt indicators, maintains a register.

!bash "${CLAUDE_SKILL_DIR}/../../hooks/yaml-helper.sh" resolve_config --keys automation,workflow

Tech Debt

Every AskUserQuestion call follows .claude/docs/automation-modes.md (collaborative asks always · guided major-only · autonomous logs and proceeds; automation_always_ask categories always prompt).

Phase 1: Parse Subcommand

Determine the mode from the argument:

  • scan, Scan the codebase for tech debt indicators
  • add, Add a new tech debt entry manually
  • prioritize, Re-prioritize the existing debt register
  • report, Generate a summary report of current debt status

If no subcommand is provided, output usage and stop. Verdict: FAIL, missing required subcommand.


Phase 2A: Scan Mode

Search the code root (resolve per .claude/docs/code-root-resolution.md: src/, Assets/ or Source/ by engine) for debt indicators:

  • TODO comments (count and categorize)
  • FIXME comments (these are bugs disguised as debt)
  • HACK comments (workarounds that need proper solutions)
  • @deprecated markers
  • Duplicated code blocks (similar patterns in multiple files)
  • Files over 500 lines (potential god objects)
  • Functions over 50 lines (potential complexity)

Categorize each finding:

  • Architecture Debt: Wrong abstractions, missing patterns, coupling issues
  • Code Quality Debt: Duplication, complexity, naming, missing types
  • Test Debt: Missing tests, flaky tests, untested edge cases
  • Documentation Debt: Missing docs, outdated docs, undocumented APIs
  • Dependency Debt: Outdated packages, deprecated APIs, version conflicts
  • Performance Debt: Known slow paths, unoptimized queries, memory issues

Before presenting anything, establish that there was something to scan. Count the source files the scan actually covered. If the code root is unresolved, report NOT ASSESSED, code root unresolved and stop as below. If that count is zero, the code root is absent, or holds no source files, report:

Read the whole SKILL.md on GitHub

More in Engineering