Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add m-binimran/dev-pack --skill caching-revalidationgit clone --depth 1 https://github.com/m-binimran/dev-packWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/m-binimran/dev-pack/caching-revalidation)<a href="https://agentmods.dev/skills/m-binimran/dev-pack/caching-revalidation"><img src="https://agentmods.dev/badge/skills/m-binimran/dev-pack/caching-revalidation/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/m-binimran/dev-pack/caching-revalidation"><img src="https://agentmods.dev/badge/skills/m-binimran/dev-pack/caching-revalidation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00049 | $0.00399 |
| Opus 5.5 | $0.00020 | $0.00160 |
| Sonnet 5.5 | $0.00010 | $0.00080 |
| Haiku 4.5 | $0.00005 | $0.00040 |
Grade A, and why
caching-revalidation scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
`fetch(url, { next: { tags: ['projects'] } })`. What it actually says
caching-revalidation
Next.js caches aggressively by default. Most "my data won't update" bugs are caching, not logic.
Decide freshness per route
- Static (default where possible): marketing/content pages. Fast, cached at the edge.
- ISR: mostly-static with periodic refresh —
export const revalidate = 3600(seconds). - Dynamic: per-request/user data — reads of cookies/headers/
searchParams, orexport const dynamic = 'force-dynamic'.
Invalidate on write
- After a mutation (server action/route handler) that changes displayed data, call
revalidatePath('/path')orrevalidateTag('tag')so caches refresh. Tag fetches you'll need to bust:fetch(url, { next: { tags: ['projects'] } }). - For user-specific/never-cache reads, opt out:
fetch(url, { cache: 'no-store' }).
Common fixes
- "Stale after save" → you mutated but didn't
revalidatePath/Tag. - "User sees another user's data" → a per-user route got statically cached; make it dynamic.
- "Slow every load" → over-using
no-store; cache + revalidate instead.
Output
- Per affected route: static / ISR / dynamic, plus the revalidation call wired to each mutation.
Guardrails
- Never cache per-user/authenticated data at a shared layer.
- Don't blanket
force-dynamicto "fix" caching — target the actual route. - Verify freshness by actually triggering the mutation and reloading (don't assume).
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 3mo ago First seen · 33 lines · 49 tokens per session scan A f5c52e675889
caching-revalidation is a skill published in the GitHub repository m-binimran/dev-pack (2 stars, last pushed 5mo ago), licensed MIT. It adds 49 tokens to every session and 399 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
caching-revalidation compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| caching-revalidationm-binimran/dev-pack | Skill | 2 | 5mo ago | MIT | A | 49 | Claude Code, Codex |
| nemo-guardrailsdavila7/claude-code-templates | Skill | 34k | today | MIT | B | 61 | Claude Code, Codex |
| token-trackerautomateyournetwork/netclaw | Skill | 739 | today | Apache-2.0 | A | 22 | Claude Code, Codex |
| agent-safetyericrisco/rsc-harness | Skill | 682 | 5d ago | MIT | A | 79 | Claude Code, Codex |
| cuga-github-issuescuga-project/cuga-agent | Skill | 1.2k | yesterday | Apache-2.0 | A | 101 | Claude Code, Codex |
| cuga-contributor-workflowscuga-project/cuga-agent | Skill | 1.2k | yesterday | Apache-2.0 | A | 97 | Claude Code, Codex |
| paranoid-mode-honesty-not-cloneIgorGanapolsky/ThumbGate | Skill | 34 | today | MIT | A | 0 | Claude Code |