/auditsentry:caching-and-incrementalfrom auditsentry
Caches code audit results per file by content hash so unchanged files are skipped on re-runs. Reduces audit time on incremental scans.
Ships in auditsentry. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
The first audit of a 50K-line codebase is slow. The second one shouldn't be. This skill governs cache reuse.
~/.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).
current_hash = sha256(read F)
manifest[F] → cached_hash.cached_hash == current_hash:
findings/<current_hash>.json.skill-versions matches current skill set.After audit completes:
write findings/<current_hash>.jsonmanifest[F] = current_hashPeriodically (e.g. weekly): drop findings/*.json not referenced from any current manifest.
Re-audit even if hash matches when:
--no-cache or --rerun.auditsentry.yml config has changed (different severity threshold, profile, etc.)RUGPROOF_NO_CACHE=1 env varcache: false in .auditsentry.yml--no-cache flag on any audit commandRUGPROOF_OFFLINE=1 does NOT disable the local cache (it's still local I/O)RUGPROOF_PRIVACY=1 writes cache only to a temp dir that's wiped on exitIn 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.
/audit-deep — too thorough; user wants fresh/audit-strict — same reason/audit-live — fork state changes; never cache/exploit* — exploit attempts must run freshWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
45 skills in this plugin
/access-controlDetect missing or incorrect access control — missing modifiers, wrong role checks, privileged function exposure, public initializers, and role-escalation paths. Activate on any function that mutates state, transfers funds, mints tokens, sets admin parameters, upgrades implementations, or pauses/unpauses./approval-issuesDetect ERC-20 approval pitfalls — approve race (front-run), missing safeApprove, infinite approvals, approval-without-revoke, Permit2 misuse, max-approval to untrusted contracts. Activate on `approve`, `safeApprove`, `permit`, `forceApprove`, `Permit2`, `IERC20.allowance`./centralization-riskDetect centralization and trust-assumption risks — admin powers, single-key risk, missing timelocks, upgrade authority, treasury keys, pause permanence, blacklisting authority, oracle authority. Activate on `onlyOwner`, `onlyRole`, `AccessControl`, upgrade authorizations, pause/unpause functions, mint/burn caps, treasury/fee setters./confidence-scoringAlways-on meta-skill — for every finding produced, attach a confidence level (HIGH/MEDIUM/LOW) and a reasoning trace. Activate on every /audit, /audit-deep, /audit-changes, /audit-live, /quick-scan invocation./cosmwasmDetect bug classes specific to CosmWasm (Rust) contracts — missing info.sender authorization in execute handlers, unbounded map iteration → gas/DoS, reply/submessage reply_id confusion, migrate admin backdoors, addr_validate vs raw string addresses, unchecked info.funds, Uint128 overflow, query reentrancy, and migration/version state. Activate on any `.rs` file with `use cosmwasm_std`, `#[entry_point]`, `ExecuteMsg`, `InstantiateMsg`, `QueryMsg`, `cw_storage_plus`, or `DepsMut`./cross-chain-messagingDetect cross-chain messaging bugs — replay protection gaps, untrusted-remote acceptance, default-config inheritance, validator-set misconfig, force-include vulnerabilities, chainId / domain-separator omissions. Activate on `_lzReceive`, `ccipReceive`, `handle` (Hyperlane), `receiveMessage`, `verifyVAA`, IRouterClient, IMailbox, EndpointV2, OApp/OFT, LayerZero / CCIP / Hyperlane / Wormhole / Axelar / Polyhedra integration code.npx claudepluginhub iktok90-design/ai-smart-contract-auditor --plugin auditsentryOther plugins' skills for the same job