Command Palette

Search for a command to run...

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

steerability-score

One repeatable pass that keeps fak as STEERABLE as it grows — the one scorecard whose every KPI is growth-invariant, so a 2x-larger repo with the same…

БесплатноБез исполняемых скриптов
anthony-chaudharyот anthony-chaudhary★ 50 звёзд на GitHub

Установить steerability-score в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

/steerability-score — keep steering effort flat as the repo grows

What this does. Every sibling scorecard reports an absolute count of defects, which mechanically climbs as the repo grows — a 3×-bigger tree has ~3× the surfaces. None of them answers the question this skill owns: as fak doubles in size, does the effort to steer, change, and navigate it stay roughly flat, and if it drifts, do we know and can we correct? This is that pass. It is an instance of the shared scorecard doctrine, pointed at the one surface measured in shape, not size.

The shape: run the scorecard → read the index + the worst drift axis → raise the index by adding REAL modularity (never gaming) → re-measure and prove the index rose → commit ONLY your lane by explicit path.

The headline is a 0–100 steerability index — a weighted mean of growth-invariant KPIs — not a debt pile. That is the design: a count would trend just from getting bigger, so it can't answer "is steering effort flat." The index can. Drive it UP.


The measure (eleven KPIs, four groups, all growth-invariant)

tools/steerability_scorecard.py folds these into the index + a steerability_debt integer (for control-pane membership). HARD KPIs emit debt; SOFT KPIs score the index but never emit debt — because their only cheap fix would be gaming.

Group KPI HARD/SOFT what it measures (growth-invariant form)
modularity file_size_dist SOFT p90 file length vs a fixed reference (percentile — scale-free)
modularity func_size_dist SOFT fraction of functions over the soft length line (a rate)
modularity god_file_rate SOFT rate of files over the hard ceiling (code_quality owns the COUNT)
modularity god_func_rate SOFT rate of functions over the hard ceiling (code_quality owns the COUNT)
coupling fan_in_gini SOFT Gini of the internal-import fan-in graph (flat = steerable)
coupling hub_share SOFT the single most-depended-on package's share of all packages
coupling dispatch_god_file HARD a cmd/* dispatch file over the hard ceiling
navigability package_doc_frac SOFT fraction of packages with a // Package x doc-comment
correction ratchet_present HARD the control-pane baseline parses + this scorecard is wired
correction worst_pkg_drift SOFT worst package's LOC growth vs the pinned baseline
correction churn_concentration SOFT, HEAD-relative Gini of recent-commit churn (a hot spot)

Why only two HARD KPIs, both ~0 on a disciplined tree. This scorecard stays ORTHOGONAL to code_quality: god-files and tests are already that scorecard's HARD debt, and both fold into the same control-pane total. Re-emitting them here would double-count the same monolith in the portfolio sum. So steerability scores size/coupling on the invariant rate (SOFT) and leaves the raw count to code_quality. The only things it emits debt for are the two whose cheapest fix is genuinely real work — splitting a dispatch monolith (dispatch_god_file) and committing the correction ratchet (ratchet_present). On a healthy tree both are zero, and the signal lives in the index and the drift signals. That is correct, not a bug.

churn_concentration is the one HEAD-relative KPI (the code_quality.ship_integrity precedent): it reads recent git history, so its number moves as commits land even on a byte-identical tree. Pin --range HEAD~N..HEAD for a stable read. It can never anchor the baseline.


Step 1 — Run the scorecard (it builds your work-list)

From the repo root:

python tools/steerability_scorecard.py            # human scorecard (index + per-KPI + drift signals)
python tools/steerability_scorecard.py --json      # machine payload (the loop uses this)

Read corpus.index, corpus.index_by_group, and corpus.breakdown (per-KPI, worst first). The per-KPI soft arrays are the drift work-list — where steerability is heading even when no hard debt exists yet. Record the baseline: write down index = S and the worst group, because the whole point is to prove the delta.

Step 2 — Raise the index worst-axis-first, using REAL structural moves only

Attack the lowest group score (corpus.index_by_group), then the lowest KPI in it. The genuine moves, by KPI:

  • dispatch_god_file (the one HARD coupling defect). A cmd/* file over the ceiling means every new verb fights the same monolith. Split the verb table into per-command files (the modularize move: behavior- preserving code motion along real seams). This is the highest-value steerability fix — it directly cuts the blast radius of adding a command.
  • hub_share / fan_in_gini (coupling, SOFT but the heart of steerability). A package imported by a large fraction of the tree is a chokepoint every change route
Полный SKILL.md на GitHub

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

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

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

FAQ

Что делает скилл steerability-score?

One repeatable pass that keeps fak as STEERABLE as it grows — the one scorecard whose every KPI is growth-invariant, so a 2x-larger repo with the same discipline scores the same. Runs the steerability scorecard (tools/steerability_scorecard.py) over the working tree, reads the 0-100 steerability index + the advisory drift signals (coupling hubs, p90 sizes, long-function rate, package drift, churn hot spots), drives the index UP and the worst drift axis DOWN by adding REAL modularity (split a cmd dispatch monolith. Use when this named workflow matches the task.

Как установить скилл steerability-score?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл steerability-score запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

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

Сравнить steerability-score с