Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsBlogPro
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Authors
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges
  • Chrome Extension
  • Skill Manager

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

ProTermsPrivacyRefunds
Back to skills

Caching And Incremental

ASecurity

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.

36 stars
0 votes
0 copies
0 views
Added 10/4/2026
blockchainrustgo

Security Analysis

A100/100

Scanned 10/4/2026

$npx -y skills add iktok90-design/ai-smart-contract-auditor --skill caching-and-incremental --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Caching And Incremental?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Caching And Incremental
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/iktok90-design-caching-and-incremental/badge)](https://www.skillsdirectory.com/skills/iktok90-design-caching-and-incremental)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
Files
SKILL.md
---
name: caching-and-incremental
description: 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 & 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-versions` matches 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-cache` or `--rerun`
- `.auditsentry.yml` config has changed (different severity threshold, profile, etc.)

## Cache disable

- `RUGPROOF_NO_CACHE=1` env var
- `cache: false` in `.auditsentry.yml`
- `--no-cache` flag on any audit command
- `RUGPROOF_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 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

Attribution

iktok90-designiktok90-design
View sourceSee grades on GitHubMore from iktok90-design →
SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Related Skills

Nft Standards

Implement NFT standards (ERC-721, ERC-1155) with proper metadata handling, minting strategies, and marketplace integration. Use when creating NFT contracts, building NFT marketplaces, or implementing digital asset systems.

458250 votes

Nft Standards

Implement NFT standards (ERC-721, ERC-1155) with proper metadata handling, minting strategies, and marketplace integration. Use when creating NFT contracts, building NFT marketplaces, or implementing digital asset systems.

401990 votes

vyper-compiler

Vyper smart contract compiler internals. Use when working on the Vyper compiler codebase — compilation pipeline, Venom IR, semantic analysis, code generation, testing, or contributing. Triggers on vyper compiler development, Venom passes, AST/semantics changes, codegen work, or test writing.

51840 votes

Flash Loan Simulator

Simulate flash loan arbitrage strategies and profitability across DeFi protocols. Use when performing crypto analysis. Trigger with phrases like "analyze crypto", "check blockchain", or "monitor market".

27190 votes

On Chain Analytics

Perform on-chain analysis including whale tracking, token flows, and network activity. Use when performing crypto analysis. Trigger with phrases like "analyze crypto", "check blockchain", or "monitor market".

27190 votes
View all in blockchain →