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.mdCopy 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
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
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 indicatorsaddβ Add a new tech debt entry manuallyprioritizeβ Re-prioritize the existing debt registerreportβ 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:
TODOcomments (count and categorize)FIXMEcomments (these are bugs disguised as debt)HACKcomments (workarounds that need proper solutions)@deprecatedmarkers- 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.
Popularity
- GitHub stars
- 33k
- Ranking position
- #8500
- License
- MIT
- Updated
- 10/18/2026
Comments
- β¦
More skills from this repository
adopt
33kChecks whether an existing game project's documents follow the studio template's formats, then writes a numbered migration plan to fix any gaps.
architecture-decision
33kWrites an architecture decision record for a technical choice, covering context, alternatives, and consequences, with review by the right technical roles.
architecture-review
33kChecks that your technical decisions cover every design requirement, do not conflict, and fit the engine version, with a clear pass or concern verdict.
art-bible
33kWrites an art bible that defines your game's visual identity, so asset production follows one clear set of style rules.
Similar skills
diffs
394kLets your agent produce a real, shareable diff of edits as a viewer link or image file, instead of a hand-written summary.
coding-agent
394kHelps your agent hand a larger coding job to Codex, Claude Code, or OpenCode as a background worker, then check on its progress.
gh-issues
394kHelps your agent find GitHub issues, pick the ones to work on, and open pull requests with fixes, including follow-up on review comments.