Turn Claude Code into a full game dev studio — 49 AI agents, 72 workflow skills, and a complete coordination system mirroring real studio hierarchy.
Skill Test Spec: /tech-debt
Skill Summary
/tech-debt tracks technical debt through four subcommands: scan, add,
prioritize and report. With no subcommand it prints usage and stops with
Verdict FAIL. scan searches the code root (resolved per engine: src/,
Assets/ or Source/) for TODO, FIXME, HACK and @deprecated markers,
duplicated blocks, files over 500 lines and functions over 50 lines, sorts the
findings into six debt categories, states how many files it covered, and asks
"May I write these findings to docs/tech-debt-register.md?" before appending
(never overwriting) entries — updating a matching Open row, and proposing an
Open row whose pattern is gone as Resolved [date]. New rows follow the
skill's Debt Register Format (next TD-NNN, ten columns, an Added date). A
scan over zero source files is NOT ASSESSED — no source files to scan, an
unresolved code root is NOT ASSESSED — code root unresolved, and both write
nothing. add collects an
entry through prompts and three AskUserQuestion choices, then asks "May I append
this entry to docs/tech-debt-register.md?". prioritize scores each register
item as impact ÷ effort from its Impact and Effort columns, re-sorts
and asks before writing it back; it recommends what goes in the next sprint, or at
workflow: minimal (no sprints) what to build next, and the closing next steps
send high-priority items to /sprint-plan or the brief's build order. The skill
resolves automation and workflow. report is read-only. No director gates are
invoked. Verdicts: COMPLETE, BLOCKED (user declined a write), FAIL (missing
subcommand), NOT ASSESSED.
Static Assertions (Structural)
Checked against the SKILL.md by /skill-test spec — no fixture needed.
- Has required frontmatter fields:
name,description,argument-hint,user-invocable,allowed-tools - Has ≥2 phase headings
- Contains verdict keywords: COMPLETE, BLOCKED, FAIL, NOT ASSESSED
- Contains "May I write" language (writes
docs/tech-debt-register.md) - Has a next-step handoff (Phase 3:
/sprint-plan,/tech-debt report)
Director Gate Checks
None. Tech debt tracking is an internal codebase analysis skill; no gates are invoked.
Fixture Defaults
Every case's project.yaml sets modes.rigor: minimal and
modes.automation: collaborative, with no project.local.yaml, unless its own
Fixture says otherwise. Rules: studio-tests/CLAUDE.md §
Fixture defaults.
Test Cases
Case 1: Happy Path — Scan appends new findings to an existing register
Fixture:
project.yaml:engine.name: godot;modes.automationunset (collaborative)docs/tech-debt-register.mdis in the skill's Debt Register Format and has 2Openrows:- TD-001 — Code Quality, Files
src/core/save_system.gd: a# HACKworkaround for a save-path bug. ThatHACKcomment is no longer in the file - TD-002 — Code Quality, Files
src/gameplay/combat.gd: the# TODOcomments in that file
- TD-001 — Code Quality, Files
src/gameplay/combat.gdhas 2# TODOcomments and 1# FIXMEcommentsrc/ui/hud.gdis 620 lines long; 12 source files insrc/in total
Input: /tech-debt scan
Expected behavior:
- Skill resolves the code root to
src/and scans it for debt indicators - Findings include the 2 TODOs, the FIXME (treated as a bug disguised as debt) and
hud.gdas a file over 500 lines - Each finding is sorted into one of the six categories (Architecture, Code Quality, Test, Documentation, Dependency, Performance)
- The output states the denominator — 12 source files scanned
- Matching against the register: the 2 TODOs share TD-002's file and kind, so they update TD-002; TD-001's
HACKis gone, so TD-001 is proposed asResolved [date]; the FIXME andhud.gdbecome new rows TD-003 and TD-004 - Skill presents the findings and the TD-001 resolution, then asks "May I write these findings to
docs/tech-debt-register.md?" — one approval covers both - On approval, TD-001's Status becomes
Resolved YYYY-MM-DDand the row stays; TD-002 is updated; TD-003 and TD-004 are appended with all ten columns, StatusOpen,Addedset to today (YYYY-MM-DD) and Priority— - Verdict: COMPLETE — scan findings written to register
Assertions:
- The scan covers the resolved code root
src/for TODO, FIXME, HACK,@deprecated, files >500 lines and functions >50 lines - Each finding is assigned one of the six debt categories
- The number of files scanned is stated with the findings
- "May I write" names
docs/tech-debt-register.mdand comes after the findings are shown - The two TODO findings update TD-002 instead of adding a duplicate row
- TD-001 is proposed as
Resolved [date]inside the same approval, and is kept in the register rather than deleted - New rows take the next IDs (TD-003, TD-004) and carry an
Addeddate; the register is updated in place, never replaced - Verdict is COMPLETE
Case 2: No Subcommand — Usage and FAIL
Fixture:
docs/tech-debt-register.mdexistssrc/contains source files with TODO comments
Input: /tech-debt
Expected behavior:
- Phase 1 finds no subcommand
- Skill outputs usage listing
scan,add,prioritizeandreport - Skill stops — no scan runs and the register is not read or written
- Verdict: FAIL — missing required subcommand
Assertions:
- Usage lists the four subcommands
- No scan is performed and no file is written
- Verdict is FAIL, stating the subcommand is missing
Case 3: Empty Code Root — NOT ASSESSED, not a clean scan
Fixture:
project.yaml:engine.name: godotsrc/exists but contains no source filesdocs/tech-debt-register.mdexists with 3 entries
Input: /tech-debt scan
Expected behavior:
- Skill resolves the code root to
src/and counts the files the scan covered: zero - Skill reports NOT ASSESSED — no source files to scan, explaining that "no debt indicators found" would describe an empty search, not the codebase
- Skill stops: no "May I write" prompt, no register write, no COMPLETE verdict
Assertions:
- A zero-file scan is reported as NOT ASSESSED — no source files to scan
- Output does not claim "no debt found" or a clean codebase
- The register is not written and no write is offered
- No COMPLETE verdict is emitted
Case 3b: Code Root Unresolved — NOT ASSESSED, nothing scanned on a guess
Fixture:
project.yamlhas noengine.name;.claude/docs/technical-preferences.mdreads[TO BE CONFIGURED]- Both
src/andSource/exist and hold source files, so the tree does not decide the root docs/tech-debt-register.mdexists with 3 entries
Input: /tech-debt scan
Expected behavior:
- The code root cannot be resolved per
.claude/docs/code-root-resolution.md - Skill reports
NOT ASSESSED — code root unresolvedand stops - Neither directory is scanned on a guess; no "May I write" prompt, no register write, no COMPLETE verdict
Assertions:
- Verdict is
NOT ASSESSED — code root unresolved - No debt findings are reported from a guessed root
- The register is not written and no write is offered
Case 4: Add Mode — User declines the write
Fixture:
docs/tech-debt-register.mdexists with 4 entriesmodes.automationunset (collaborative)
Input: /tech-debt add
Expected behavior:
- Skill asks in plain text for the description and affected files
- Skill uses
AskUserQuestionfor the category — six options, Architecture through Performance - Skill uses
AskUserQuestionfor the fix effort — S, M, L, XL - Skill uses
AskUserQuestionfor the impact if left unfixed — Low, Med, High, Critical - Skill presents the complete new entry
- Skill asks "May I append this entry to
docs/tech-debt-register.md?" - User declines — nothing is written
- Verdict: BLOCKED — user declined write
Assertions:
- Category is collected with
AskUserQuestionoffering the six debt categories - Effort is collected with
AskUserQuestionoffering S / M / L / XL - Impact is collected with
AskUserQuestionoffering Low / Med / High / Critical, soprioritizecan score the row - The full entry is shown before the append prompt
- On decline the register is unchanged and the verdict is BLOCKED
Case 4a: Add Mode — Matches an Existing Open Entry
Fixture:
docs/tech-debt-register.mdexists with anOpenentry for the same file and the same category as the one the user is about to add
Input: /tech-debt add
Expected behavior:
- Steps 1–5 of Case 4 run as usual
- Match before appending: before the append ask, the skill shows the
existing
Openentry (same file and category) and asks whether to update it instead of adding a duplicate - On "update", the matched entry is updated in place — no duplicate row is added
- On "add anyway" (the user declines the update), the skill still asks
"May I append this entry to
docs/tech-debt-register.md?" and, on yes, appends a new entry alongside the match
Assertions:
- A new entry with the same file and category as an existing
Openentry is never appended without first showing the match and asking - "Update" edits the matched row rather than adding a new one
- Declining the update does not end the run: the append is still offered, and asked for before it is written
Case 4b: Report Mode Without a Register — NOT ASSESSED
Fixture:
docs/tech-debt-register.mddoes not exist
Input: /tech-debt report
Expected behavior:
- Skill looks for the register and does not find it
- Verdict: NOT ASSESSED — no register to report on; run
/tech-debt scanfirst - No trend or totals are printed and nothing is written
Assertions:
- Verdict is NOT ASSESSED, not a report of zero items or a "stable" trend
- The output names
/tech-debt scanas the way to create the register - No file is written
Case 5: Prioritize in Full Review Mode — Scored, re-sorted, approved
Fixture:
project.yaml:modes.review_mode: full;modes.workflow: standard(pinned: unset resolves to minimal, which recommends the next build instead of a sprint)docs/tech-debt-register.mdhas 4 entries: TD-001 High/S, TD-002 Low/L, TD-003 Critical/M, TD-004 Med/— (Effort not yet estimated)
Input: /tech-debt prioritize
Expected behavior:
- Skill reads
docs/tech-debt-register.md - Each item is scored
impact ÷ effort(Impact Low 1 … Critical 4; Effort S 1 … XL 4): TD-001 3.0, TD-003 2.0, TD-002 0.3; TD-004 is listed after them as "not scored — Effort not judged" - The register is re-sorted by score and the skill recommends which items belong in the next sprint
- No director gate is invoked regardless of review mode
- Skill presents the re-prioritized register, then asks "May I write the re-prioritized register back to
docs/tech-debt-register.md?" - On approval the file is written
- Verdict: COMPLETE — register re-prioritized and saved
Assertions:
- Items are scored
impact ÷ effortfrom their own columns and re-sorted: TD-001, TD-003, TD-002 - TD-004 gets no invented score; it is listed as not scored, naming the missing Effort
- A next-sprint recommendation is given
- No director gate is invoked in any review mode
- The write happens only after the "May I write" prompt is approved
- Verdict is COMPLETE
- The next steps send high-priority items to
/sprint-plan
Case 5b: Prioritize at Workflow Minimal — Build next, not a sprint
Fixture:
project.yaml:modes.rigor: minimal(workflow resolves tominimal, which has no sprints);modes.automationunset (collaborative)docs/tech-debt-register.mdhas 3Openentries: TD-001 High/S, TD-002 Low/L, TD-003 Critical/Mdesign/game-brief.mdexists with a build order of three numbered items; noproduction/sprints/folder
Input: /tech-debt prioritize
Expected behavior:
- Skill resolves
workflow: minimaland reads the register - Items are scored and re-sorted as in Case 5: TD-001 3.0, TD-003 2.0, TD-002 0.3
- The recommendation says which items to build next, not which belong in the next sprint
- Skill asks "May I write the re-prioritized register back to
docs/tech-debt-register.md?" and writes on approval - Next steps tell the user to add the high-priority items to the brief's build order instead of running
/sprint-plan; they still include/tech-debt report - Verdict: COMPLETE — register re-prioritized and saved
Assertions:
- The recommendation is "which to build next"; the word "sprint" is not used as the place to put the items
- The next steps name the brief's build order (
design/game-brief.md) as where the high-priority items go -
/sprint-planis not recommended - Scoring, re-sort and the write-after-approval rule are the same as in Case 5
- Verdict is COMPLETE
Protocol Compliance
- Requires a subcommand; without one prints usage and stops with FAIL
-
scanresolves the code root per engine (src/,Assets/,Source/) and states the number of files covered - A zero-file or unresolved-root scan is NOT ASSESSED and writes nothing
- Every register write is preceded by a "May I write" / "May I append" prompt naming
docs/tech-debt-register.md, after the content is shown -
scanappends and never overwrites existing entries; a finding matching anOpenrow updates it, and anOpenrow whose pattern is gone is proposedResolved [date], never deleted - New rows follow the Debt Register Format: the next
TD-NNNID, all ten columns, anAddeddate inYYYY-MM-DD - A declined write ends with BLOCKED
- No director gates are invoked
- Ends with the Phase 3 next steps (
/sprint-plan,/tech-debt report); at workflowminimalthe sprint step becomes "add them to the brief's build order" - Resolves
automationandworkflowthroughresolve_config
Coverage Notes
reportmode with a register (read-only summary by category and effort, added and resolved counts from each row'sAddedandResolveddates, flagging items older than 3 sprints, Verdict COMPLETE — debt report generated) is not tested here.- Unity and Unreal scans differ only in the resolved root (
Assets/,Source/) and are not tested separately.