debt-clean
One repeatable, evidence-backed pass that retires a bounded batch of maturity debt worst-first across the system's dedicated debt lanes. Features rich…
от anthony-chaudhary★ 50 звёзд на GitHub
Установить debt-clean в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
/debt-clean — retire maturity debt worst-first in bounded batches
What this does. Every unit of work (feature, module, leaf) in the system carries a dedicated debt lane scored on a continuous 0.0–10.0 maturity curve. When new work is added at a partial maturity (e.g. 1/10 stub), it immediately enters the production grade denominator as debt with an accrued carrying cost.
This skill executes a bounded, disciplined cleaning pass: query and baseline the debt lanes, cross-index related things (dual-repo companions, dependents, proofs, benchmarks), run pre-flight health diagnostics, pick 1–3 high-leverage hotspots (worst carrying cost, critical compounding interest, or degraded health), fulfill the exact next action that advances the maturity curve, prove the debt dropped and health upgraded with
--compare, and commit by explicit path.
The shape: query & baseline debt lanes → cross-index related things & pre-flight health → pick bounded batch (1–3 units) → execute next action
(tests/integration/benchmarks/clean bloat) → verify package → prove debt drop & health upgrade with --compare → commit by
explicit path.
The Rule of Bounded Batches
Never attempt a repository-wide sweep in one pass (hundreds of WIP lanes cannot and should not be rushed in a single turn). Enforce strict scoping:
- Max 1–3 units of work per batch: Focus on 1–3 closely related leaves or a single critical hotspot.
- Shift-left proof: Every maturity climb requires genuine disk evidence (passing
*_test.go, benchmarks, real runtime wiring), never synthetic markers or mock-only claims. - No comment gaming; excess comments is BAD debt: Comments are NOT tracked as positive debt retirement. Do not add formulaic "Contract:", "Invariant:", or "Fail-closed:" comment headers or restate syntax. In fact, excess comments and comment bloat (>35% comment ratio or formulaic keyword clutter) are penalized as BAD debt with interest rate penalties.
- Denominator honesty: Advancing maturity increases realized points without shrinking the denominator, genuinely raising the production-grade percentage.
- Multi-dimensional health upgrade: Debt retirement must elevate the lane's health status
from
degradedorcriticaltowardhealthy, resolving flagged issue tokens.
Step 1 — Measure Baseline & Query Health
Run fak debt-lanes to capture the current state, query candidate work, and audit system health:
# Capture full baseline:
fak debt-lanes --json > baseline.json
fak debt-lanes --top 5
# Query lanes by keyword (matches lane name, unit of work, companion, drivers, or health issues):
fak debt-lanes --query <keyword> --top 5
# Filter lanes by multi-dimensional health verdict (healthy, degraded, critical):
fak debt-lanes --health degraded,critical --top 5
# Cross-index related things, dual-repo companions, and blast radius:
fak debt-lanes --cross-index --top 10
Multi-Dimensional Lane Health Dimensions
healthy: Score >= 0.85, test passing, clean comment hygiene, integrated into production graph, documented/benchmarked if core, low carrying interest.degraded: Untested stubs (missing_tests), excess comment bloat (comment_ratio > 35%or formulaic keyword noise), disconnected wiring (integrated=false), unbenchmarked, or unproven in runtime.critical: Compounding carrying cost (>25% interest rate) or untested core paths (criticality=core && has_tests=false) with high inbound dependents.
Note the headline figures:
- Production Grade: current letter and percentage (e.g.
Grade C, 75.4%). - Fleet Health: healthy, degraded, and critical counts with average health score.
- Denominator Points: total production baseline points.
- Total Debt: total principal + carrying cost.
- Top Hotspots: lanes carrying the highest carrying cost or highest maturity gap.
Step 2 — Cross-Index Related Things & Select Target (1–3 Units)
Inspect the specific target's status, evidence, health findings, and cross-indexed artifacts:
fak debt-lanes --lane <lane-name> --json
Cross-Indexing Checklist for Target Lane
- Dual-Repo Companion:
- If working in
fak(internal/<lane>), checkRelated.CompanionUnitOfWorkfor counterpart infak-private(platform/<lane>). - If working in
fak-private, check counterpart infak(internal/<lane>orpkg/<lane>). - Run
go -C ../fak-private run ./cmd/fak-boundary explain <unit_of_work>(fromfak; infak-privaterungo run ./cmd/fak-boundary explain <unit_of_work>) before making cross-repo edits to ensure 5-gate compliance.
- If working in
- Blast Radius & Inbound Dependents:
- Inspect
Related.Dependents(packages importing this lane). Core leaves with >10 dependents require non-breaking public APIs. - Inspect
Related.Dependencies(packages imported by this lane).
- Inspect
- Registered DOS Trees:
- Check
Related.DosTreesdeclare
- Check
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
- 01
Read - 02
Bash - 03
Write - 04
Edit - 05
Grep - 06
Glob
FAQ
Что делает скилл debt-clean?
One repeatable, evidence-backed pass that retires a bounded batch of maturity debt worst-first across the system's dedicated debt lanes. Features rich queryability (--query, --health), cross-indexes related items (dual-repo companions, tests, runtime-proofs, benchmarks, inbound blast radius), targets high-carrying-cost or degraded hotspots, advances maturity with tests, integration, and benchmarks, re-measures with --compare to prove the denominator was level-set, and commits by explicit path with (fak <leaf>). Use when cleaning or retiring maturity debt across units of work.
Как установить скилл debt-clean?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл debt-clean запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…