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.
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.
$ npx skills add Donchitos/Claude-Code-Game-Studios --skill tech-debt -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install Donchitos/Claude-Code-Game-Studios tech-debt --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ 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-srcUse ~/.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/
Install the "tech-debt" agent skill from https://github.com/Donchitos/Claude-Code-Game-Studios/tree/main/.claude/skills/tech-debt into .claude/skills/tech-debt/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "tech-debt", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/Donchitos/Claude-Code-Game-Studios/tree/main/.claude/skills/tech-debtType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add Donchitos/Claude-Code-Game-Studios --skill tech-debt -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install Donchitos/Claude-Code-Game-Studios tech-debt --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/Donchitos/Claude-Code-Game-Studios.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.claude/skills/tech-debt .agents/skills/tech-debt && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "tech-debt" agent skill from https://github.com/Donchitos/Claude-Code-Game-Studios/tree/main/.claude/skills/tech-debt into .agents/skills/tech-debt/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "tech-debt", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add Donchitos/Claude-Code-Game-Studios --skill tech-debt -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install Donchitos/Claude-Code-Game-Studios tech-debt --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/Donchitos/Claude-Code-Game-Studios.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.claude/skills/tech-debt .cursor/skills/tech-debt && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "tech-debt" agent skill from https://github.com/Donchitos/Claude-Code-Game-Studios/tree/main/.claude/skills/tech-debt into .cursor/skills/tech-debt/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "tech-debt", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/Donchitos/Claude-Code-Game-Studios.git --path .claude/skills/tech-debt--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add Donchitos/Claude-Code-Game-Studios --skill tech-debt -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install Donchitos/Claude-Code-Game-Studios tech-debt --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/Donchitos/Claude-Code-Game-Studios.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.claude/skills/tech-debt .gemini/skills/tech-debt && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "tech-debt" agent skill from https://github.com/Donchitos/Claude-Code-Game-Studios/tree/main/.claude/skills/tech-debt into .gemini/skills/tech-debt/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "tech-debt", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install Donchitos/Claude-Code-Game-Studios tech-debtInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add Donchitos/Claude-Code-Game-Studios --skill tech-debt -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/Donchitos/Claude-Code-Game-Studios.git skills-src && mkdir -p .github/skills && cp -r skills-src/.claude/skills/tech-debt .github/skills/tech-debt && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "tech-debt" agent skill from https://github.com/Donchitos/Claude-Code-Game-Studios/tree/main/.claude/skills/tech-debt into .github/skills/tech-debt/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "tech-debt", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add Donchitos/Claude-Code-Game-Studios --skill tech-debt -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install Donchitos/Claude-Code-Game-Studios tech-debt --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/Donchitos/Claude-Code-Game-Studios.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.claude/skills/tech-debt .opencode/skills/tech-debt && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "tech-debt" agent skill from https://github.com/Donchitos/Claude-Code-Game-Studios/tree/main/.claude/skills/tech-debt into .opencode/skills/tech-debt/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "tech-debt", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
tech-debtScans 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.
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.
2 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit b21fa0f. It shows what the files ask for, not the result of running them.
Pre-approves these tools, so the agent can use them without asking each time:
ReadGlobGrepWriteEditAskUserQuestionBash(bash "*/.claude/skills/tech-debt/../../hooks/yaml-helper.sh" resolve_config *)From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
bashFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
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.
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.
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.
The full file from Donchitos/Claude-Code-Game-Studios at commit b21fa0f, republished under its MIT licence (© Donchitos). 1,253 words, ~2,380 tokens.
.claude/skills/tech-debt/SKILL.md (or your agent's skills folder).!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).
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 statusIf no subcommand is provided, output usage and stop. Verdict: FAIL — missing required subcommand.
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 markersCategorize each finding:
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.
Ask the user for the description and affected files (plain text prompts).
Then use AskUserQuestion to collect the category:
[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 queriesThen use AskUserQuestion to collect the estimated fix effort:
[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:
[A] Low / [B] Med / [C] High / [D] CriticalPresent 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.
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.
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:
Added date and its Resolved [date] statusFlag 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.
/sprint-plan to schedule high-priority debt items into the next sprint./tech-debt report at the start of each sprint to track debt trends over time.## 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:
TD- and three digits, one above the highest ID already in the
register (TD-001 in a new one). IDs are never reused.Architecture, Code Quality, Test, Documentation, Dependency,
Performance — the spelling /story-done writes, so Report Mode groups them once.— when the debt has no single file.S, M, L or XL, as in Add Mode; — if not yet estimated.Low, Med, High or Critical: the cost if left unfixed; —
if not yet judged./tech-debt prioritize writes; — until it runs.Open when added. Resolved YYYY-MM-DD records the day the debt
was fixed; Accepted — reason records a conscious decision to keep it.YYYY-MM-DD. Report Mode counts items
added and resolved from this date and the Resolved date.Backlog.© Donchitos, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in .claude/skills/tech-debt of Donchitos/Claude-Code-Game-Studios.
Open the folder on GitHubat commit b21fa0f
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.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Tech Debt Register this skillDonchitos/Claude-Code-Game-Studios | 26k | — | ~2.4k | Automated safety check: Pass | MIT | |
| Systematic Code Refactoringluongnv89/claude-howto | 42k | — | ~3k | Automated safety check: Pass | MIT | |
| Code Refactoring Workflowluongnv89/claude-howto | 42k | — | ~3.1k | Automated safety check: Pass | MIT | |
| Tech Debt Analyzerailabs-393/ai-labs-claude-skills | 454 | 2 repos | ~3.9k | Automated safety check: Pass | MIT | |
| FIXME Resolvertailcallhq/forgecode | 7.6k | — | ~1.1k | Automated safety check: Pass | Apache-2.0 | |
| DesloppifyGit-on-my-level/codex-autorunner | 875 | — | ~3.4k | Automated safety check: Pass | MIT |
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.
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.
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.
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.
Git-on-my-level/codex-autorunner
Codebase health scanner and technical debt tracker. An agent skill from Git-on-my-level/codex-autorunner.
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.
Donchitos/Claude-Code-Game-Studios
Audits game assets against naming conventions, file size budgets and format standards, and finds orphaned assets and missing references.
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.
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.
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.
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.
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.
Categories
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.
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.
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.
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.
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.
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 *).
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.
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.
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.
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.
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.
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.