refresh-cachedoc-numbers
Refresh the recent-operational cachevalue numbers in a guarded doc (e.g. docs/integrations/fable5-more-usage-for-free.md) when this-week's telemetry has moved…
от anthony-chaudhary★ 50 звёзд на GitHub
Установить refresh-cachedoc-numbers в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
/refresh-cachedoc-numbers — re-capture a cachevalue doc's live numbers, honestly
A doc under this gate (see tools/docnumbers/README.md) quotes recent
operational telemetry — this week's fleet fak cachevalue report, the last few
days of dev sessions. Those windows advance, so the numbers go stale. This skill
re-captures them from live fak, reconciles the doc to the fresh capture, and
proves the result with the hermetic audit — instead of hand-editing prose and
hoping the arithmetic still closes.
The distrust that matters: the new numbers come from a fresh --json
capture, and every one of them must land back in a committed snapshot the audit
checks. You are not "updating the text" — you are re-deriving the evidence and
making the text match it.
Steps
See what's guarded and whether it's stale.
fak cachedoc-numbers-auditA
WARN [staleness]line, or aFAIL, tells you which manifest needs a refresh.Readthat manifest (tools/docnumbers/<stem>.json) and its doc.Re-derive the frozen snapshots from live
fak.fak cachedoc-numbers-audit --refresh # add --manifest <stem>.json to scope itRun this from the repo root, where
fakhas its data context. It rewrites the snapshots undersnapshot_dirfor every source that has acmd, and prints how many fields each got. Sources withcmd: nullare machine-specific per-session captures — recapture those by hand withfak cachevalue status --session <id> --jsonif the doc still cites them.Read the fresh snapshots and reconcile the doc. For each changed field,
Editthe doc's rendered number to the correctly-rounded fresh value, andEditthe manifest's matchingexpected(and anyappears_asstring that embeds the number). Re-derive any invariantexpect/partsand thesnapshot_date. Keep the provenance labels (WITNESSED/OBSERVED/ESTIMATED) truthful — a value's provenance does not change just because it moved.The audit will reject a doc number that is not a correct rounding of its snapshot field, an
expectedthat disagrees with the snapshot, or a decomposition that no longer sums. Let it drive you: fix what it names.Prove it.
go test -v ./internal/cachedocaudit/... # contract still holds fak cachedoc-numbers-audit # the corpus is cleanOptionally
--liveto confirm the cited fields still exist in fresh output. Both must exit 0 with no FAIL before you commit.Commit the doc, manifest, and snapshots together — they are one artifact. Stamp the commit with the doc's lane (
fak <leaf>; usemcp__fak__fak_index_laneif unsure).
Guardrails
- Never edit a rendered number without also moving its snapshot +
expected; a number the audit can't trace to a committed field is exactly what this gate exists to stop. - Don't invent precision. Match the doc's existing rounding (a
≈value gets 3% slack; a plain value must round correctly). If a field is now zero or missing after--refresh, you likely ran it outside the repo'sfakdata context — re-run from the repo root before trusting it. - This skill only touches guarded docs. Committed benchmark claims belong to
BENCHMARK-AUTHORITY.md(repo root); the README's numbers totools/readme_freshness_audit.py. Don't cross those streams.
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
- 01
Read - 02
Bash - 03
Edit - 04
Grep - 05
Glob
FAQ
Что делает скилл refresh-cachedoc-numbers?
Refresh the recent-operational cachevalue numbers in a guarded doc (e.g. docs/integrations/fable5-more-usage-for-free.md) when this-week's telemetry has moved on. Re-derives the frozen snapshots from live `fak cachevalue report`, reconciles the doc's rendered numbers + snapshot_date to the fresh capture, and re-runs the hermetic audit (fak cachedoc-numbers-audit, gated in `make cachedoc-numbers-lint`) until every rendered number binds to a committed snapshot field and the doc's arithmetic invariants hold. Use when this named workflow matches the task.
Как установить скилл refresh-cachedoc-numbers?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл refresh-cachedoc-numbers запускает скрипты?
Нет, скилл состоит только из инструкций (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…