Agent skill

Tech Debt Register

by Donchitos in Donchitos/Claude-Code-Game-Studios

Scans a codebase for debt indicators, sorts findings into six debt categories and maintains a prioritized register you can add to, re-rank and report on.

MITAuto-check passedDevelopment

Install Tech Debt Register

skills CLI
$ npx skills add Donchitos/Claude-Code-Game-Studios --skill tech-debt -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install Donchitos/Claude-Code-Game-Studios tech-debt --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/Donchitos/Claude-Code-Game-Studios.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/tech-debt .claude/skills/tech-debt && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
tech-debt
GitHub stars
26k
Token cost
~2.4k tokens
SKILL.md length
1,253 words
Files
1
Skills in repo
73
Repo updated
First seen
Licence
MIT

At a glance

Scans a codebase for debt indicators, sorts findings into six debt categories and maintains a prioritized register you can add to, re-rank and report on.

  • Works in 2 steps: Parse Subcommand → Next Steps
  • Taking stock of TODO, FIXME and HACK comments across a codebase
  • SKILL.md covers Phase 1: Parse Subcommand, Phase 2A: Scan Mode, Phase 2B: Add Mode and Phase 2C: Prioritize Mode, plus 2 more sections
  • Calls bash

What it does

The skill takes one of four subcommands: `scan`, `add`, `prioritize` or `report`, and fails with a usage message if none is given. A scan searches the engine's code root for TODO, FIXME and HACK comments, deprecation markers, duplicated blocks, files over 500 lines and functions over 50 lines, then classifies each finding as architecture, code quality, test, documentation, dependency or performance debt.

Before presenting results it counts the source files the scan actually covered. If the code root is unresolved or holds no source files, it reports NOT ASSESSED and stops without writing to the register, since zero findings over zero files says nothing about the codebase. The register persists between runs and can be re-prioritized or summarized as a status report.

When your agent uses it

  • Taking stock of TODO, FIXME and HACK comments across a codebase
  • Recording a known shortcut as a debt entry with a category
  • Re-ranking the debt register before planning a cleanup sprint

Example prompts

  • “Run a tech debt scan over the source code.”
  • “Add a debt entry for the duplicated damage calculation in the combat module.”
  • “Re-prioritize the debt register and give me a summary report.”

Requirements

  • Source files under the project's code root
  • Pre-approved tools (allowed-tools): Read, Glob, Grep, Write, Edit, AskUserQuestion, Bash(bash "*/.claude/skills/tech-debt/../../hooks/yaml-helper.sh" resolve_config *)

Workflow steps

2 steps, taken from the step headings in SKILL.md.

  1. Parse Subcommand
  2. Next Steps

What it can do on your machine

Read from SKILL.md and the folder at commit b21fa0f. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Read
    • Glob
    • Grep
    • Write
    • Edit
    • AskUserQuestion
    • Bash(bash "*/.claude/skills/tech-debt/../../hooks/yaml-helper.sh" resolve_config *)

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • bash

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Tech Debt Register loads about 2.4k tokens when it runs. Until then it costs about 32 tokens; SKILL.md has 1,253 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~32
When it runs · the whole SKILL.md, loaded when a task matches
~2.4k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from Donchitos/Claude-Code-Game-Studios at commit b21fa0f, republished under its MIT licence (© Donchitos). 1,253 words, ~2,380 tokens.

Download SKILL.mdSave it as .claude/skills/tech-debt/SKILL.md (or your agent's skills folder).
name
tech-debt
description
Track, categorize and prioritize technical debt across the codebase — scans for debt indicators, maintains a register.
allowed-tools
Read, Glob, Grep, Write, Edit, AskUserQuestion, Bash(bash "*/.claude/skills/tech-debt/../../hooks/yaml-helper.sh" resolve_config *)
argument-hint
[scan|add|prioritize|report]
user-invocable
true
model
sonnet

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

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).

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] XL — Extra Large (over 1 week)

Then use AskUserQuestion to collect the impact if left unfixed — the register's Impact column, which /tech-debt prioritize scores:

  • Prompt: "What does this cost if it is never fixed?"
  • Options: [A] Low / [B] Med / [C] High / [D] Critical

Present the complete new entry to the user.

Match before appending: if an existing Open entry already has the same file and the same category, show it to the user and ask whether to update that entry instead of adding a duplicate.

Ask: "May I append this entry to docs/tech-debt-register.md?" (or, on a match, "May I update the existing entry instead?")

If yes, append the entry (or update the matched one). Verdict: COMPLETE — entry added to register.

If no, stop here. Verdict: BLOCKED — user declined write.


Show full SKILL.md (553 more words)Show less

Phase 2C: Prioritize Mode

Read the debt register at docs/tech-debt-register.md. If it does not exist: Verdict: NOT ASSESSED — no register at docs/tech-debt-register.md; run /tech-debt scan first. Stop.

Score each item from its own columns: impact ÷ effort, with Impact Low 1, Med 2, High 3, Critical 4 and Effort S 1, M 2, L 3, XL 4, rounded to one decimal and written to Priority. Higher scores first; ties go to the older Added date. An item whose Impact or Effort is — gets no score: list it after the scored items as "not scored — [column] not judged" rather than guessing one.

Re-sort the register by priority score and recommend which items to include in the next sprint.

Present the re-prioritized register to the user.

Ask: "May I write the re-prioritized register back to docs/tech-debt-register.md?"

If yes, write the updated file. Verdict: COMPLETE — register re-prioritized and saved.

If no, stop here. Verdict: BLOCKED — user declined write.


Phase 2D: Report Mode

Read the debt register. If it does not exist: Verdict: NOT ASSESSED — no register to report on; run /tech-debt scan first. Stop.

Generate summary statistics:

  • Open items by category, and total estimated fix effort for them
  • Items added and items resolved during the current sprint, from each entry's Added date and its Resolved [date] status
  • Trending direction (growing / stable / shrinking) — added vs resolved in that window

Flag any items that have been in the register for more than 3 sprints.

Output the report to the user. This mode is read-only — no files are written. Verdict: COMPLETE — debt report generated.


Phase 3: Next Steps

  • Run /sprint-plan to schedule high-priority debt items into the next sprint.
  • Run /tech-debt report at the start of each sprint to track debt trends over time.
Debt Register Format
markdown
## Technical Debt Register
Last updated: [Date]
Total items: [N] | Estimated total effort: [T-shirt sizes summed]

| ID | Category | Description | Files | Effort | Impact | Priority | Status | Added | Sprint |
|----|----------|-------------|-------|--------|--------|----------|--------|-------|--------|
| TD-001 | [Cat] | [Description] | [files] | [S/M/L/XL] | [Low/Med/High/Critical] | [Score] | [Open / Resolved YYYY-MM-DD / Accepted — reason] | [YYYY-MM-DD] | [Sprint to fix or "Backlog"] |

Every skill that adds a row — this one, and /story-done when it logs deviations as debt — writes all ten columns in this order, and a skill that creates the file writes the header and table head above first:

  • ID — TD- and three digits, one above the highest ID already in the register (TD-001 in a new one). IDs are never reused.
  • Category — one of the six categories under Scan Mode, written without "Debt": Architecture, Code Quality, Test, Documentation, Dependency, Performance — the spelling /story-done writes, so Report Mode groups them once.
  • Description — what the debt is and why it was taken on.
  • Files — the affected paths, comma-separated; — when the debt has no single file.
  • Effort — S, M, L or XL, as in Add Mode; — if not yet estimated.
  • Impact — Low, Med, High or Critical: the cost if left unfixed; — if not yet judged.
  • Priority — the score /tech-debt prioritize writes; — until it runs.
  • Status — Open when added. Resolved YYYY-MM-DD records the day the debt was fixed; Accepted — reason records a conscious decision to keep it.
  • Added — the day the row was written, YYYY-MM-DD. Report Mode counts items added and resolved from this date and the Resolved date.
  • Sprint — the sprint scheduled to fix it, or Backlog.
Rules
  • Tech debt is not inherently bad — it is a tool. The register tracks conscious decisions.
  • Every debt entry must explain WHY it was accepted (deadline, prototype, missing info)
  • "Scan" should run at least once per sprint to catch new debt
  • Items older than 3 sprints without action should either be fixed or consciously accepted with a documented reason

© Donchitos, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .claude/skills/tech-debt of Donchitos/Claude-Code-Game-Studios.

Open the folder on GitHubat commit b21fa0f

Compare with similar skills

Tech Debt Register next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Tech Debt Register compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Tech Debt Register this skillDonchitos/Claude-Code-Game-Studios26k—~2.4kAutomated safety check: PassMIT
Systematic Code Refactoringluongnv89/claude-howto42k—~3kAutomated safety check: PassMIT
Code Refactoring Workflowluongnv89/claude-howto42k—~3.1kAutomated safety check: PassMIT
Tech Debt Analyzerailabs-393/ai-labs-claude-skills4542 repos~3.9kAutomated safety check: PassMIT
FIXME Resolvertailcallhq/forgecode7.6k—~1.1kAutomated safety check: PassApache-2.0
DesloppifyGit-on-my-level/codex-autorunner875—~3.4kAutomated safety check: PassMIT

Similar skills

  • Systematic Code Refactoring

    luongnv89/claude-howto

    Guides refactoring in phases based on Martin Fowler's method: research, test coverage check, planning and small tested steps, with your approval at each phase.

    42k GitHub stars~3k tokensUpdated 7 days ago
    DevelopmentAuto-check passed
  • Code Refactoring Workflow

    luongnv89/claude-howto

    Guides systematic, test-backed refactoring in the style of Martin Fowler, moving through research, planning and small incremental changes with your approval at each phase.

    42k GitHub stars~3.1k tokensUpdated 7 days ago
    DevelopmentAuto-check passed
  • Tech Debt Analyzer

    ailabs-393/ai-labs-claude-skills

    This skill should be used when analyzing technical debt in a codebase, documenting code quality issues, creating technical debt registers, or assessing code maintainability.

    454 GitHub starsUsed in 2 repos~3.9k tokens
    DevelopmentAuto-check passed
  • FIXME Resolver

    tailcallhq/forgecode

    Finds every FIXME comment in a codebase, groups related ones across files into one task, implements the work they describe and removes the comments once it is done.

    7.6k GitHub stars~1.1k tokensUpdated today
    DevelopmentAuto-check passed
  • Desloppify

    Git-on-my-level/codex-autorunner

    Codebase health scanner and technical debt tracker. An agent skill from Git-on-my-level/codex-autorunner.

    875 GitHub stars~3.4k tokensUpdated today
    DevelopmentAuto-check passed
  • Code Quality Gate

    fengshao1227/ccg-workflow

    Scans code for complexity, long functions, duplicated blocks, naming problems and code smells with a Node script, then reports and suggests refactors.

    5.9k GitHub stars~593 tokensUpdated 22 days ago
    DevelopmentAuto-check: notes

More from Donchitos/Claude-Code-Game-Studios

All 73 skills in this repo
  • Game Asset Audit

    Donchitos/Claude-Code-Game-Studios

    Audits game assets against naming conventions, file size budgets and format standards, and finds orphaned assets and missing references.

    26k GitHub stars~2k tokensUpdated 8 days ago
    Auto-check passed
  • Game Asset Spec Writer

    Donchitos/Claude-Code-Game-Studios

    Writes per-asset visual specs and AI image-generation prompts for a game's characters, enemies and screens, driven by the GDD, art bible and an entity inventory.

    26k GitHub stars~5k tokensUpdated 8 days ago
    Auto-check passed
  • Game Balance Check

    Donchitos/Claude-Code-Game-Studios

    Checks game data and formulas for balance outliers, broken progression, degenerate strategies and economy problems, and answers 'could not run' when the data is missing.

    26k GitHub stars~2.2k tokensUpdated 8 days ago
    Auto-check passed
  • Structured Bug Reports

    Donchitos/Claude-Code-Game-Studios

    Turns a description into a structured bug report, or scans code for likely bugs, then verifies and closes reports through four modes.

    26k GitHub stars~2.5k tokensUpdated 8 days ago
    Auto-check: notes
  • Bug Triage

    Donchitos/Claude-Code-Game-Studios

    Reviews the open bug backlog, separates severity from priority, assigns fixes to sprints and reports systemic trends, writing a dated triage file.

    26k GitHub stars~2.3k tokensUpdated 8 days ago
    Auto-check passed
  • Changelog Generator for Games

    Donchitos/Claude-Code-Game-Studios

    Generates an internal or player-facing changelog from git commits and sprint data, filtering out framework maintenance commits so that only work on the game itself reaches release copy.

    26k GitHub stars~2.5k tokensUpdated 8 days ago
    Auto-check: notes

Categories

Questions about Tech Debt Register

What does Tech Debt Register do?

Scans a codebase for debt indicators, sorts findings into six debt categories and maintains a prioritized register you can add to, re-rank and report on. The skill takes one of four subcommands: `scan`, `add`, `prioritize` or `report`, and fails with a usage message if none is given. A scan searches the engine's code root for TODO, FIXME and HACK comments, deprecation markers, duplicated blocks, files over 500 lines and functions over 50 lines, then classifies each finding as architecture, code quality, test, documentation, dependency or performance debt.

When should I use Tech Debt Register?

Tech Debt Register fits situations like: taking stock of TODO, FIXME and HACK comments across a codebase; recording a known shortcut as a debt entry with a category; re-ranking the debt register before planning a cleanup sprint.

How do I install Tech Debt Register in Claude Code?

Run `npx skills add Donchitos/Claude-Code-Game-Studios --skill tech-debt -a claude-code`. Or copy the skill folder (.claude/skills/tech-debt in Donchitos/Claude-Code-Game-Studios) into .claude/skills/tech-debt in your project. Claude Code loads it when a task matches its description.

How do I install Tech Debt Register in Codex?

Run `npx skills add Donchitos/Claude-Code-Game-Studios --skill tech-debt -a codex`. Or copy the skill folder (.claude/skills/tech-debt in Donchitos/Claude-Code-Game-Studios) into .agents/skills/tech-debt in your project. Codex loads it when a task matches its description.

Can I use Tech Debt Register in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add Donchitos/Claude-Code-Game-Studios --skill tech-debt -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/tech-debt, .gemini/skills/tech-debt, .github/skills/tech-debt and .opencode/skills/tech-debt in your project.

What does Tech Debt Register need to run?

Going by SKILL.md and its folder, Tech Debt Register needs the command-line tools its instructions call (bash). Our summary lists: Source files under the project's code root. Its frontmatter pre-approves these tools: Read, Glob, Grep, Write, Edit, AskUserQuestion, Bash(bash "*/.claude/skills/tech-debt/../../hooks/yaml-helper.sh" resolve_config *).

Does Tech Debt Register access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Tech Debt Register safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Tech Debt Register use?

Tech Debt Register is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Tech Debt Register use?

About 2.4k tokens (SKILL.md is roughly 9.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Tech Debt Register?

Skills that share tags, products or a category with Tech Debt Register: Systematic Code Refactoring (luongnv89/claude-howto, 42k stars), Code Refactoring Workflow (luongnv89/claude-howto, 42k stars), Tech Debt Analyzer (ailabs-393/ai-labs-claude-skills, 454 stars) and FIXME Resolver (tailcallhq/forgecode, 7.6k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Tech Debt Register?

Donchitos (a GitHub user) maintains it in Donchitos/Claude-Code-Game-Studios, which has 25,871 GitHub stars. The repository holds 73 skills in this directory. The repository was last updated on September 29, 2026.

Source: Donchitos/Claude-Code-Game-Studios on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.