caching-and-incremental
Always-on meta-skill — cache audit results per file by content hash so unchanged files aren't re-analyzed on subsequent runs. Activate on every /audit…
от iktok90-design★ 31 звезда на GitHub
Установить caching-and-incremental в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Caching & incremental audit (meta-skill)
The first audit of a 50K-line codebase is slow. The second one shouldn't be. This skill governs cache reuse.
Cache layout
~/.cache/auditsentry/<repo-fingerprint>/
findings/
<sha256(file-content)>.json # findings for that exact file content
<sha256>.skill-versions # skill names + versions used to produce findings
manifest.json # mapping file-path → current sha256
Repo fingerprint = sha256 of the absolute repo root path (so different checkouts don't collide).
Procedure (per file F to audit)
Step 1 — Compute current hash
current_hash = sha256(read F)
Step 2 — Check manifest
- Look up
manifest[F]→cached_hash. - If
cached_hash == current_hash:- Load
findings/<current_hash>.json. - Verify
skill-versionsmatches current skill set. - If both match: return cached findings, mark file as cached in output.
- Load
- Otherwise → audit fresh and write to cache.
Step 3 — Write fresh result
After audit completes:
write findings/<current_hash>.json- Update
manifest[F] = current_hash
Step 4 — Garbage collect
Periodically (e.g. weekly): drop findings/*.json not referenced from any current manifest.
Invalidation triggers
Re-audit even if hash matches when:
- The list of active skills has changed since the cached result
- A new vulnerability skill was added that may apply
- User passes
--no-cacheor--rerun .auditsentry.ymlconfig has changed (different severity threshold, profile, etc.)
Cache disable
RUGPROOF_NO_CACHE=1env varcache: falsein.auditsentry.yml--no-cacheflag on any audit commandRUGPROOF_OFFLINE=1does NOT disable the local cache (it's still local I/O)RUGPROOF_PRIVACY=1writes cache only to a temp dir that's wiped on exit
Output
In the audit summary, show:
Cache: 27 files cached (78%) · 8 files re-analyzed
Speedup: ~6.4× vs cold run
This builds trust that the cache is doing real work.
When NOT to cache
/audit-deep— too thorough; user wants fresh/audit-strict— same reason/audit-live— fork state changes; never cache/exploit*— exploit attempts must run fresh
Related
- false-positive-feedback-loop — dismissals are a separate cache
- multi-pass-self-critique — strict mode bypasses cache
- /audit, /quick-scan, /audit-changes — main consumers
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл caching-and-incremental?
Always-on meta-skill — cache audit results per file by content hash so unchanged files aren't re-analyzed on subsequent runs. Activate on every /audit, /quick-scan, /audit-changes invocation.
Как установить скилл caching-and-incremental?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл caching-and-incremental запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
AnthropicGuide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
academy-guide
AnthropicStop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
internal-comms
AnthropicA set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
skill-development
AnthropicThis skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…