debt-inventory
Build a deduplicated technical-debt inventory with file-level evidence, benefit, effort, regression risk, confidence, and action. Use after a read-only baseline; do not use to list generic smells or implement findings.
- License 许可
- MPL-2.0
- 最近更新
- 2026-11-13
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- debt-inventory
- updated
- 1785974400000
- metadata
- { "version": "1.0.1", "akm-type": "skill", "akm-updated": "2026-08-06" }
- description
- Build a deduplicated technical-debt inventory with file-level evidence, benefit, effort, regression risk, confidence, and action. Use after a read-only baseline; do not use to list generic smells or implement findings.
- compatibility
- Requires an assessed source repository and write access only to the approved report path.
02 资源文件 1
- 资产文件assets/inventory-template.md648 B
03 SKILL.md 正文
Debt Inventory
When To Use It
Use after baseline assessment to convert observed duplication, dead code, coupling, complexity, test gaps, stale documentation, and operational risks into reviewable findings.
When Not To Use It
Do not use before repository orientation, as a style-opinion list, or to turn tool warnings into findings without source confirmation.
Required Inputs
- Repository assessment and architecture map
- Scope and baseline failures
- Existing static-analysis, dependency, security, and coverage output
skills/coding/debt-inventory/assets/inventory-template.md
Procedure
- Inspect duplicate implementations, unreachable code, dependencies, cycles, layer violations, oversized responsibilities, branching, error handling, characterization gaps, obsolete compatibility code, stale docs, and security, reliability, or performance risks.
- Confirm each candidate in current code and assign a stable
TD-NNNID. - Capture paths, symbols, line ranges or commands, evidence, expected benefit, effort, regression risk, confidence, and recommended action.
- Record counter-evidence and indirect-use uncertainty.
- Merge findings with the same cause; do not inflate counts with symptoms.
- During read-only assessment, keep the draft under
.refactoring/. After that phase closes and report promotion is approved, write the reviewed inventory toknowledge/coding/technical-debt/inventory.mdin the stash, or todocs/technical-debt/inventory.mdin a target repository, without changing source code.
Constraints
- Do not modify source code.
- A tool score alone is not evidence of debt.
- Do not label code dead until indirect, generated, configuration-driven, reflective, plugin, serialization, and external use have been checked.
- Do not present a behavior change as cleanup.
Expected Output
A table and detailed entries for every finding with ID, category, paths and symbols, evidence, benefit, effort, risk, confidence, action, required tests, and approval needs. Include rejected candidates and why they were rejected.
Verification
Confirm every cited path exists, every symbol or line range resolves, every quantitative claim has a reproducible command, and all required template fields are populated. Sample high-priority findings manually against source.
Stop Or Escalation Conditions
Stop assigning actionable status when evidence is inaccessible, use may be
external, expected behavior is disputed, or the finding depends on a public API
or data migration. Mark it needs investigation and state the evidence or
owner required.
04 同仓库更多 Skills
tax-filing-checklist
Walk through the steps and documents needed to file an individual federal income tax return
patient-vitals-charting
Record patient vital signs consistently and flag values outside the normal reference range
pasta-from-scratch
Make fresh egg pasta dough from scratch, roll it, and cut it into shapes
knife-sharpening
Sharpen and hone kitchen knives to keep an edge safe and effective
first-aid-response
Respond to a first aid emergency using a scene-safety-first, ABC-based (airway, breathing, circulation) approach
contract-review-basics
Review a contract draft for missing terms, ambiguous language, and risky clauses before signing