Skip to content
Skillpedia
General coding33k Β· #8500

tech-debt

What it does

This skill scans a codebase for signs of technical debt, sorts each finding into a category, and keeps a list of the most important items. It is for developers and leads who want to plan cleanup work.

When to use it

  • βœ“When a team wants the code scanned for signs of messy or risky areas.
  • βœ“When a developer needs to add a known debt item to the register by hand.
  • βœ“When a lead needs a summary of debt status and priorities for planning.

Skill link

https://github.com/Donchitos/Claude-Code-Game-Studios/blob/main/.claude/skills/tech-debt/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/Donchitos/Claude-Code-Game-Studios/blob/main/.claude/skills/tech-debt/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute β†’

Example of what to ask your AI

β€œScan the codebase for technical debt and tell me which items to fix first.”

5 new skills a week. 1 minute to read.

How it works

The skill searches the code for markers such as TODO, FIXME and HACK, flags very long files and functions, and sorts each finding into a debt category. It keeps a register and can re-rank it or produce a report.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

!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:

NOT ASSESSED β€” no source files to scan. The code root contains no code, so "no debt indicators found" would be a statement about an empty search, not about the codebase. Run this once implementation is under way.

and stop. Do not write to the register and do not emit a COMPLETE verdict.

The distinction is the whole point of the scan: zero findings over 400 files is a clean codebase; zero findings over zero files is no information at all. Rendering both as "COMPLETE β€” scan findings written to register" reads as the first. State the denominator whenever findings are reported, including when it is large and the count is genuinely zero.

Present the findings to the user.

Ask: "May I write these findings to docs/tech-debt-register.md?"

If yes, update the register, never overwriting it. Match before appending: a finding with the same file and the same kind of debt as an existing Open entry updates that entry instead of adding a duplicate. An existing Open entry whose pattern is no longer in its file is proposed as Resolved [date] β€” list those and include them in the same approval. Verdict: COMPLETE β€” scan findings written to register.

If no, stop here. Verdict: BLOCKED β€” user declined write.


Phase 2B: Add Mode

Ask the user for the description and affected files (plain text prompts).

Run as a subagent? lead-programmer preloads this skill, and a subagent has no AskUserQuestion. Return the three questions below (category, effort, impact) in one reply, each as a short list of its options, and stop: whoever called you asks the user. Nothing goes into the register until the answers come back.

Then use AskUserQuestion to collect the category:

  • Prompt: "What category does this tech debt belong to?"
  • Options:
    • [A] Architecture Debt β€” wrong abstractions, missing patterns, coupling issues
    • [B] Code Quality Debt β€” duplication, complexity, naming, missing types
    • [C] Test Debt β€” missing tests, flaky tests, untested edge cases
    • [D] Documentation Debt β€” missing/outdated docs, undocumented APIs
    • [E] Dependency Debt β€” outdated packages, deprecated APIs, version conflicts
    • [F] Performance Debt β€” known slow paths, memory issues, unoptimized queries

Then use AskUserQuestion to collect the estimated fix effort:

  • Prompt: "What is the estimated effort to fix this item?"
  • Options:
    • [A] S β€” Small (under 1 day)
    • [B] M β€” Medium (1–3 days)
    • [C] L β€” Large (3–7 days)
    • `[D
FAQ

What does it look for?

It looks for TODO, FIXME and HACK comments, deprecated markers, duplicated code, and very long files or functions.

Why is a FIXME treated differently?

A FIXME marks code that is known to be broken, so the skill treats it as a bug disguised as debt.

Can I add debt items myself?

Yes. An add mode lets you enter a debt item manually.

Details

Original description by the author

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

repo: Donchitos/Claude-Code-Game-Studios

Popularity

GitHub stars
33k
Ranking position
#8500
License
MIT
Updated
10/18/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills