token-defaults-score
One repeatable pass that keeps fak's OUT-OF-THE-BOX token economy amazing — every stacking token-saving method that can SAFELY default is on by default…
от anthony-chaudhary★ 50 звёзд на GitHub
Установить token-defaults-score в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
token-defaults-score — keep the out-of-the-box token economy amazing
This is an instance of the scorecard doctrine (.claude/skills/scorecard/SKILL.md) —
read that for the shared five laws and the anti-gaming rule. This file is the per-surface
loop for fak's out-of-the-box token-saving defaults: of every stacking token-saving
method fak knows, which are ON by default when a user runs fak guard -- claude / fak serve with no flags — and are the high-value, low-loss ones turned on out of the box, each
honestly noted, none able to regress unnoticed?
The headline metric is token-defaults-debt (corpus.token_defaults_debt). Drive it to
zero, then — per the score-2x doctrine — HARDEN: produce the witness that promotes the
next off lever to a must-default.
The honesty law that makes this scorecard different
A token saver belongs ON by default the moment it is demonstrably safe — the operator's
"if it keeps ~the model's view and saves big, default it" rule. Demonstrably is the
load-bearing word: turning an unwitnessed lever on would ship an unproven claim, which
CLAIMS.md / CLAUDE.md forbid. So:
- A lossless saver (provider-cache passthrough, tool-floor pruning, vDSO dedup) has no fidelity tradeoff → it MUST be on; off is HARD debt.
- A bounded-loss saver (history compaction, oversized-result elision) is high-value, but it is hard debt to leave off ONLY when a committed witness quantifies its savings/fidelity tradeoff AND no gate remains. Unwitnessed → it is a SOFT "needs a witness," never a forced flip.
- An opt-in saver (the ctxplan view) stays off behind a documented gate; its witness (e.g. 13.3× fewer resident, 100% exact recall) makes it the next default to turn on once the gate (a watched-live session / live-loop wiring) clears.
The scorecard reads the REAL default from the entrypoint source and cross-checks the witness against committed docs — you cannot drop debt by editing the roster. Never turn an unwitnessed lever on to score. Produce the witness first.
The loop (the shared five steps, this surface)
Run it —
go run ./cmd/fak token-defaults-scorecard(human work-list);--json(machine payload);--markdown(the committed snapshot). Read the per-lever status table first — it's the "where each saver stands" view (default, witness, blocker, noted, locked).Retire token-defaults-debt worst-first — by changing reality:
lossless_stack/high_value_defaultsdefect → turn the saver ON by default (flip theDefault*const / the flag literal in bothguard.goandserve.go), add an honest loss note to the flag help, and regenerate the serve-wiring row (fak serve-wiring --md) so the audited verdict tracks the flip.default_on_lockeddefect → add a real assertion tocmd/fak/token_defaults_test.gothat pins the default (reds if a peer flips it back).dark_lever_gateddefect → document why the lever is dark + a safe value + the witness it needs, in the flag help / const comment.entrypoint_paritydefect → makeguard.goandserve.goagree, or regenerate the stale servewiring verdict.
Weigh the SOFT signals, then stop —
witness_statusis the roadmap, not a fix: an unwitnessed high-value lever needs a measurement (build/run the witness — e.g. a deterministic shed-ratio replay, or the watched-live dogfood the gate names), and a witnessed-gated lever needs its gate cleared. Producing a witness is real work; do it deliberately, then the next run promotes that lever to a must-default.Re-measure + prove — rerun
go run ./cmd/fak token-defaults-scorecard --jsonand compare the debt against the baseline you recorded; regenerate the snapshot (go run ./cmd/fak token-defaults-scorecard --markdown > docs/serving/token-defaults-scorecard.md); run the locks (go test ./cmd/fak -run TestTokenDefault).Commit only the scorecard lane, by explicit path — run
fak sync reconcile --apply, then commit viafak commit --path(nevergit add -A). End the subject with the(fak <leaf>)trailer (stamp the dominant leaf —toolsfor a scorecard-only pass,gateway/cmdwhen the same pass flips a default). Push viafak sync pushor[--push]. e.g.fak sync reconcile --apply fak commit --path cmd/fak/token_defaults.go --path cmd/fak/token_defaults_test.go --path docs/serving/token-defaults-scorecard.md -F msg [--push] fak sync push
The anti-gaming rule (this surface)
Retire a defect by changing the binary's real default / writing a real lock / producing a
real witness — never by editing the roster, loosening the witness regex, or pointing a
sentinel at a vacuous test. A default_on_locked defect is fixed by a test that actually
asserts the default and reds when it flips, not by a test that merely names the lever. Th
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл token-defaults-score?
One repeatable pass that keeps fak's OUT-OF-THE-BOX token economy amazing — every stacking token-saving method that can SAFELY default is on by default, honestly noted, and locked against regression. Runs the token-saving-defaults scorecard (`fak token-defaults-scorecard`) over the entrypoint source (cmd/fak/guard.go, cmd/fak/serve.go, the gateway Default* constants, and the audited servewiringData rows), turns each HARD defect into a required fix — turn a WITNESSED-safe bounded-loss saver on by default with an honest note, write the missing regression lock, document a dark lever's. Use when this named workflow matches the task.
Как установить скилл token-defaults-score?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл token-defaults-score запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
docx
AnthropicUse this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
xlsx
AnthropicUse this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
pptx
AnthropicUse this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…