Discover README/TODO/FIX debt, group by domain, pick items, grill an implementation plan
Triage documented tech debt, let the user choose what to fix, then sharpen a plan through a grilling session. Do not implement in the same turn as discovery or grilling. Do not write plan docs unless the user asks — the plan lives in chat.
Scan the current project (not this skills pack) for documented debt. Run discovery yourself; never ask the user to paste file lists.
Search for markdown and text files whose name or path suggests debt tracking:
| Pattern | Examples |
|---|---|
| Fix / debt docs | FIX.md, FIXES.md, TECH-DEBT.md, TECHDEBT.md, DEBT.md, BACKLOG.md |
| Todo docs | TODO.md, TODOS.md, PENDING.md |
| Readmes with debt sections | README.md, README.*.md, module-level README.md |
| Notes / hacks | NOTES.md, HACKS.md, KNOWN-ISSUES.md, LIMITATIONS.md |
| ADR / RFC gaps | docs/**/*.md containing unchecked items or explicit debt language |
Also grep markdown and common source comment styles for inline markers:
TODO|FIXME|HACK|XXX|TECH.?DEBT|DEPRECATED|WORKAROUND
Skip: node_modules, .git, dist, build, .next, coverage, vendor trees, and this skills pack if present in the repo.
For each hit, capture:
auth-readme-jwt-rotation)critical / moderate / minor / unknown from wording (security, broken, hack, nice-to-have)If the same issue appears in multiple places, merge into one item and note all sources.
Group items by domain. Infer domain from (in order):
domain:, [auth], #billing)src/auth/ → auth)Present a readable inventory. Default view: grouped by domain, domains sorted by item count (largest first). Offer regrouping if domains look wrong:
❓ **Q0** - **How should items be grouped?**
A)
By domain (recommended)
B)
By severity
C)
By source file
D)
Flat list (no grouping)
➡️ **Recommended: A.** Domain grouping matches how teams usually prioritize and assign work.
For each domain, list items like:
### auth (3 items)
1. **[auth-readme-jwt-rotation]** Rotate JWT signing keys — `src/auth/README.md`
> TODO: document and automate key rotation before prod
2. ...
End with a summary line: total items, domain count, severity breakdown.
Let the user pick what to tackle now. Use AskQuestion with allow_multiple: true when available. Options = item IDs (or numbered indices with ID in the label).
Also ask scope for this session:
❓ **Scope** - **How much should we plan in this session?**
A)
Only what I selected (recommended)
B)
Selected items plus obvious dependencies you find in code
C)
Everything in one domain I name
➡️ **Recommended: A.** Keeps the grilling session focused and finishable.
If nothing is found, say so plainly and suggest the user may track debt in README/TODO files — do not invent items.
For selected items only, run a grilling session using the same rules as /grill-me:
Grilling should cover, per item or batch when related:
Cross-item questions belong in the same round when they share prerequisites.
When the frontier is empty, write a concise plan in chat:
## Tech debt plan — <date or session label>
### Selected items
- [id] title — one-line outcome
### Order of work
1. ...
### Decisions
- ...
### Out of scope
- ...
### Verification
- ...
Wait for confirmation before any implementation. If the user confirms, they can invoke /grill-me-backed implementation in a follow-up or proceed manually.
Do not create *.md plan files unless the user explicitly asks for docs.
| After this skill | When |
|---|---|
/grill-me | User wants deeper alignment on one item before coding |
/request-refactor-plan | User wants a GitHub issue with tiny-commit steps |
/develop-with-tdd | User confirms plan and wants test-first implementation |
/create-commit | Work is done and needs conventional commits |