iktok90-design/ai-smart-contract-auditor/caching-and-incremental
Claude Code and agent skill by iktok90-design/ai-smart-contract-auditor
- community
Checking that the SKILL.md file is still in the repository.
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.
Install
npx vskill@latest install iktok90-design/ai-smart-contract-auditor/caching-and-incrementalSKILL.md
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>/
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.
- 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:
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
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/caching-and-incremental/SKILL.md
Popularity
- Repository stars
- 37
- Repository forks
- 5
- 7-day trend score
- 18
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/iktok90-design/ai-smart-contract-auditor/caching-and-incremental)