Command Palette

Search for a command to run...

Назад к скиллам
скилл № 92008

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от 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:

  1. Max 1–3 units of work per batch: Focus on 1–3 closely related leaves or a single critical hotspot.
  2. Shift-left proof: Every maturity climb requires genuine disk evidence (passing *_test.go, benchmarks, real runtime wiring), never synthetic markers or mock-only claims.
  3. 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.
  4. Denominator honesty: Advancing maturity increases realized points without shrinking the denominator, genuinely raising the production-grade percentage.
  5. Multi-dimensional health upgrade: Debt retirement must elevate the lane's health status from degraded or critical toward healthy, 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

  1. Dual-Repo Companion:
    • If working in fak (internal/<lane>), check Related.CompanionUnitOfWork for counterpart in fak-private (platform/<lane>).
    • If working in fak-private, check counterpart in fak (internal/<lane> or pkg/<lane>).
    • Run go -C ../fak-private run ./cmd/fak-boundary explain <unit_of_work> (from fak; in fak-private run go run ./cmd/fak-boundary explain <unit_of_work>) before making cross-repo edits to ensure 5-gate compliance.
  2. 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).
  3. Registered DOS Trees:
    • Check Related.DosTrees declare
Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

  1. 01Read
  2. 02Bash
  3. 03Write
  4. 04Edit
  5. 05Grep
  6. 06Glob

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), без исполняемых скриптов.

Похожие скиллы

Сравнить debt-clean с