tech-debt
Create a new technical debt entry in the tech-debt/ directory. Use when identifying technical debt to formalize, track, or document for future resolution.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Create a new technical debt entry in the tech-debt/ directory. Use when identifying technical debt to formalize, track, or document for future resolution.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Verify gates one last time and merge an assistant PR (new-assistant or vendor-evolution). Use when the issue is at phase:merge-ready.
Scaffold (new-assistant) or refactor (vendor-evolution), document, test, and open a draft PR. Use when the issue is at phase:approved or phase:implementing and the contributor is starting or resuming work.
Open the right `type:new-assistant` / `type:vendor-evolution` GitHub issue from a free-form intent. Use when the user says they want to support / fix / evolve a vendor and has not yet filed an issue.
Review an open assistant PR against the dual-track checklist (dated documentation first, then code), with per-issue-type addenda for new vendors vs evolution. Use when the issue is at phase:review.
Routes to the correct sub-skill of the assistant family based on the issue's type:* and phase:* labels. Use when the user mentions a vendor onboarding or evolution and is unsure which skill to run.
Tally tester sign-off comments on a phase:testing issue, audit any attached connector logs for sanitization gaps, and draft follow-ups for incomplete confirmations. Use whenever a tester comments.
| name | tech-debt |
| description | Create a new technical debt entry in the tech-debt/ directory. Use when identifying technical debt to formalize, track, or document for future resolution. |
| model | sonnet |
You are an agent specialized in formalizing technical debt for this project.
Create a structured entry in tech-debt/ documenting a technical debt item with enough context for a future agent (or developer) to understand and resolve it autonomously, without needing additional context.
tech-debt/<yyyymmdd>_<criticality>_<tshirt-size>_<summary>/
<yyyymmdd>: today's date — use the currentDate from context if available, otherwise run date +%Y%m%d<criticality>: low | medium | high | critical<tshirt-size>: XS | S | M | L | XL | XXL<summary>: kebab-case, max 5 words, EnglishExamples:
tech-debt/20260401_high_M_missing-domain-validation/tech-debt/20260401_critical_XL_split-god-service/This skill runs in the current conversation context. Start by mining what is already known from the conversation before asking the user anything:
If the conversation provides sufficient context, proceed directly to Phase 2. Only ask the user for information that is genuinely missing:
Then explore the relevant code areas to confirm what the user described:
Glob and Grep to locate affected filesRead to understand the current state of the codeBefore creating a new entry, check existing debt entries to avoid duplicates.
ls tech-debt/ 2>/dev/null
If the directory is empty or doesn't exist, skip this phase.
Otherwise, scan directory names only first: look for summaries that semantically overlap with the debt being reported (same module, same problem keyword, similar area).
If one or more candidate directories are found, read their debt.md directly and compare:
If a similar or identical entry already exists, stop and inform the user:
debt.md)Do not create a new entry without explicit user confirmation if a similar one exists.
| Level | Description |
|---|---|
low | Cosmetic or minor inconsistency; minimal impact on maintainability or AI understanding |
medium | Noticeable inconsistency or duplication; moderate impact on maintainability |
high | Significant complexity or misleading patterns; notably degrades AI code generation quality |
critical | Architectural issue or fundamentally broken pattern; high risk of bugs, regressions, and AI misunderstanding |
Evaluate based on:
| Size | Effort |
|---|---|
XS | < 1 hour — trivial change |
S | 1–4 hours — straightforward |
M | ~1 day — moderate effort |
L | 2–3 days — significant refactoring |
XL | ~1 week — major effort |
XXL | > 1 week — architectural change |
tech-debt/<dirname>/debt.md using the template belowgit add "tech-debt/<dirname>/debt.md"
git commit -m "feat(tech-debt): record <summary> debt entry"
---
title: <Short title of the technical debt>
date: YYYY-MM-DD
criticality: low | medium | high | critical
size: XS | S | M | L | XL | XXL
---
## Problem
[Clear description of the issue: what is wrong, where it is in the codebase, how it came to exist.]
## Impact
What problems this debt causes today and in the future:
- **Maintainability**: ...
- **AI code generation quality**: ...
- **Bug/regression risk**: ...
## Affected files / areas
- `path/to/file` — reason
- `path/to/other/` — reason
## Refactoring paths
Concrete steps to resolve the debt. Be specific enough that an autonomous agent could execute them:
1. Step one
2. Step two
3. ...
## Acceptance criteria
How do we know the debt has been fully resolved?
- [ ] Criterion 1
- [ ] Criterion 2
## Additional context
[Optional: related PRs, decisions, constraints, screenshots, or why this debt was accepted at the time.
Any extra asset (image, diagram, etc.) can be added to the same directory and referenced here.]
Output: