Manages the docs/TECHNICAL-DEBT.md document to ensure proper tracking of technical debt items.
Usage
- •
/tech-debt close <item-name>— Close a completed debt item - •
/tech-debt audit— Check document for issues - •
/tech-debt add— Add a new debt item
Subcommands
/tech-debt close <item-name>
Guides through properly closing a technical debt item.
Steps:
- •Read
docs/TECHNICAL-DEBT.md - •Search for the item by name (fuzzy match on item titles)
- •If not found, list available items and ask user to clarify
- •Verify the fix exists (ask user for PR number if not obvious from context)
- •MOVE the item to the Completed Items table (do NOT copy — remove from original section)
- •Add proper entry with: Item description | Sprint (or
-) | PR number | Date
Example entry:
markdown
| Item Name (brief description) | Sprint 7 | #65 | Feb 4, 2026 |
/tech-debt audit
Scans the document for common issues.
Checks to perform:
- •Duplicates — Item appears in both active sections AND Completed Items
- •Missing PR numbers — Completed Items with
-or blank PR column - •Stale items — Items marked as "Fixed" or "Completed" still in active sections
- •Numbering issues — Items not numbered sequentially within sections
Output format:
code
## Technical Debt Audit Results ### Issues Found - ❌ Duplicate: "Item Name" exists in Low Priority AND Completed Items - ❌ Missing PR: "Item Name" in Completed Items has no PR number - ⚠️ Stale: "Item Name" marked as Fixed but still in Medium Priority ### Summary Found X issues. Use `/tech-debt close` to fix duplicates.
If no issues: ✅ Technical debt document is clean. No issues found.
/tech-debt add
Guides through adding a new debt item with proper format.
Required information:
- •Priority — High, Medium, or Low
- •Title — Brief descriptive title
- •Source — Where was this identified? (PR number, sprint, investigation)
- •Files — Which files are affected?
- •Problem — What's the issue?
- •Suggested Fix — How should it be resolved?
Template to use:
markdown
### N. Item Title **Source:** PR #XX / Sprint N / Investigation **Files:** `path/to/file.ts`, `path/to/other.ts` **Status:** Description of current state **Problem:** Description of the issue. **Suggested Fix:** - Step 1 - Step 2
After adding, remind user to:
- •Number the item correctly within its priority section
- •Update "Last Updated" date at top of document
Important Rules
- •MOVE, don't copy — When closing items, DELETE from active section
- •Always include PR numbers — Every completed item needs a PR reference
- •Use today's date — Format:
Mon D, YYYY(e.g., Feb 4, 2026) - •Keep numbering sequential — Renumber remaining items after moves/deletes