cpv-batch-caching-audit

cpv-batch-caching-audit is a skill for Claude Code, Codex from Emasoft/claude-plugins-validation. It costs 93 tokens per session (957 once invoked), scanned A, original, MIT.

A read-only audit that checks many plugins for seven documented patterns that can invalidate prompt caching. Prompt caching reuses previously processed instructions, so changes to them can reduce that reuse.

In plain words
What is it for?
Use it to audit local plugins, GitHub repositories, marketplaces, lists, or list files for cache-invalidation findings and receive references to the affected files.
Why use it?
It lets you survey cache-related problems without changing plugin files. Fixes can be handled later with the separate optimization workflow.

Skill for Claude CodeCodex

Part of the claude-plugins-validation plugin — 52 skills, 14 commands, 14 agents, 10 plugins shipped together

Install

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.

agentmods
npx agentmods add skills/emasoft/claude-plugins-validation/cpv-batch-caching-audit
Any agent
npx skills add Emasoft/claude-plugins-validation --skill cpv-batch-caching-audit
Clone the repo
git clone --depth 1 https://github.com/Emasoft/claude-plugins-validation

Made for: Claude Code, Codex.

Or install claude-plugins-validation, the plugin that ships this one along with the rest of its 52 skills, 14 commands, 14 agents, 10 plugins.

Wrote 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.

agentmods badge for cpv-batch-caching-audit

README.md
[![agentmods](https://agentmods.dev/badge/skills/emasoft/claude-plugins-validation/cpv-batch-caching-audit.svg)](https://agentmods.dev/skills/emasoft/claude-plugins-validation/cpv-batch-caching-audit)
Your own site
<a href="https://agentmods.dev/skills/emasoft/claude-plugins-validation/cpv-batch-caching-audit"><img src="https://agentmods.dev/badge/skills/emasoft/claude-plugins-validation/cpv-batch-caching-audit.svg" alt="Measured on agentmods" height="20"></a>
Per session 93 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 957 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5 $0.00093 $0.00957
Opus 5 $0.00046 $0.00478
Sonnet 5 $0.00019 $0.00191
Haiku 4.5 $0.00009 $0.00096

Measured 5d ago against content hash 2174afd0d766, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

cpv-batch-caching-audit scanned grade A with 0 findings 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 5d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/cpv-batch-caching-audit/SKILL.md · 96 lines

How it starts

The opening of the file, as written. The whole thing — 96 lines — stays where its author put it; the contents beside it link to each section on GitHub.

cpv-batch-caching-audit

Overview

Read-only parallel cache audit. Runs Phase 1 (Audit) of the cpv-cache-optimizer-agent workflow across every plugin in the user's input spec — detecting the seven documented prompt-cache invalidation patterns (CA-01..CA-07) per plugin without applying fixes. Apply fixes later with /cpv-batch-caching-optimize (which uses the same input grammar).

Same input grammar and dispatch shape as cpv-batch-validate. The orchestrator body lives in this plugin's commands/cpv-batch-caching-audit.md slash-command file.

Prerequisites

  • claude-plugins-validation plugin installed (provides the cpv-cache-optimizer-agent, the universal input resolver, and the cache validator).
  • For URL inputs: git on PATH and network access to github.com.
  • Read access to every plugin's tree — cache findings include references to specific lines in SKILL.md, agent.md, CLAUDE.md, etc.

Inputs

See the cpv-batch-validate input table — every shape is supported identically.

Instructions

  1. Confirm the user wants AUDIT-ONLY. If they want to APPLY fixes, route to cpv-batch-caching-optimize.
  2. Invoke the slash command body:
    /cpv-batch-caching-audit <user's spec> [--max-parallel N]
    
  3. Each agent runs Phase 1 only (no Phase 2 fix, no Phase 3 re-validate, no Phase 4 broader refactor).
  4. The user gets the final status table + a one-line summary (DONE: plugins=N clean=X findings=Y warning-only=Z).
  5. If any plugin has findings, suggest /cpv-batch-caching-optimize <same spec>.

Output

  • Unicode-bordered status table (one row per plugin).
  • One-line DONE summary.
  • Per-plugin cache-audit reports under $MAIN_ROOT/reports/validate_cache/<ts±tz>-<plugin>.md.
  • Per-plugin status JSONs under <session_dir>/plugin-<index>.status.json.

Token contract

Same as cpv-batch-validate.

Error Handling

Condition Behaviour
Empty input Resolver raises; orchestrator surfaces and stops.
Zero-plugin resolve "Nothing to cache-audit. ✓" + stop.
Plugin tree unreadable Per-plugin status JSON shows failed with the I/O error in notes.
One agent fails Failed plugin gets failed label; others complete normally.
Network failure during URL clone Resolver raises with a remediation message; no partial batch.

Read the full file on GitHub · 96 lines

Changes

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.

  1. 5d ago First seen · 96 lines · 93 tokens per session scan A 2174afd0d766

Subscribe to this mod's changes

cpv-batch-caching-audit is a skill published in the GitHub repository Emasoft/claude-plugins-validation (4 stars, last pushed yesterday), licensed MIT. It adds 93 tokens to every session and 957 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

llm-app-patterns

Production-ready patterns for building LLM applications. Covers RAG pipelines, agent architectures, prompt IDEs, and LLMOps monitoring. Use when designing AI applications, implementing RAG, building agents, or setting up LLM observability.

davila7/claude-code-templates · 54 tokens

prompt-optimization

Improve a prompt on the evaluations workbench through a measured loop. Score the baseline first, then duplicate the target column, form a hypothesis from failing rows, edit the copy's prompt draft, run, compare pass rate and cost, and repeat until the numbers hold. Use when the user asks to optimize or improve a…

langwatch/langwatch · 105 tokens

enhance-prompt

Transforms vague UI ideas into polished, Stitch-optimized prompts. Enhances specificity, adds UI/UX keywords, injects design system context, and structures output for better generation results.

google-labs-code/stitch-skills · 41 tokens

prompt-engineer

Writes, refactors, and evaluates prompts for LLMs — generating optimized prompt templates, structured output schemas, evaluation rubrics, and test suites. Use when designing prompts for new LLM applications, refactoring existing prompts for better accuracy or token efficiency, implementing chain-of-thought or few-shot…

Jeffallan/claude-skills · 93 tokens

ideogram4

Prompting patterns for Ideogram 4 text-to-image — best-in-class in-image text rendering and exact color/layout control via structured JSON captions. Use when generating images that need legible on-image text (title cards, thumbnails, logos, signage, CTAs), precise brand colors, or controlled spatial layout. Triggers…

digitalsamba/claude-code-video-toolkit · 99 tokens

omh-model-optimization

This is a Hermes-native model-optimization workflow skill.

rlaope/oh-my-hermes · 82 tokens