cpv-batch-validate

A batch command that checks every plugin in a marketplace, list, or single input in parallel. A plugin is an add-on package, and a marketplace is a collection or catalogue of plugins.

In plain words
What is it for?
Use it to inspect local plugins, GitHub repositories, marketplaces, or lists of plugin folders. It combines the results into one severity table.
Why use it?
It avoids validating plugins one at a time and keeps the main working session from carrying all of the detailed checking work.

Command

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 commands/emasoft/claude-plugins-validation/cpv-batch-validate
Clone the repo
git clone --depth 1 https://github.com/Emasoft/claude-plugins-validation
Per session 78 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,593 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.00078 $0.02593
Opus 5 $0.00039 $0.01296
Sonnet 5 $0.00016 $0.00519
Haiku 4.5 $0.00008 $0.00259

Measured 2d ago against content hash b7b5b0617247, 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-validate 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 2d 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.

commands/cpv-batch-validate.md · 273 lines

How it starts

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

/cpv-batch-validate — Validate every plugin in a marketplace, in parallel

For users who manage a fleet of plugins (a marketplace, a list of project folders, or a Git org), /cpv-validate-plugin on each one in turn is slow AND quietly burns context every time the user re-loads the same handful of validators. /cpv-batch-validate delegates each plugin to its own cpv-plugin-validator-agent subagent in parallel — one fresh haiku context per plugin, all dispatched from a single main-session message. Total main-session cost is ~3-4K tokens for any batch size; per-plugin work happens out-of-band in the subagent contexts.

Input grammar (TRDD-3dcbb37c §1):

Shape Example
Single plugin (local) ./my-plugin
Single plugin (URL) https://github.com/owner/plugin or owner/plugin
Marketplace (local) ./marketplace-root
Marketplace (URL) https://github.com/owner/marketplace-repo
List on CLI ./a ./b ./c (whitespace-separated)
List in file @/tmp/inputs.txt (one spec per line, # comments OK)
Comma-separated ./a,./b,./c

URL inputs are cloned into ${TMPDIR}/cpv-batch-input-<uuid>/; marketplace inputs enumerate .claude-plugin/marketplace.json and clone every plugin referenced. All temp clones are cleaned up automatically when the batch finishes.

You are the orchestrator

You — the model running THIS turn — orchestrate the batch from the main session. You do NOT validate anything yourself. You delegate to N parallel cpv-plugin-validator-agent subagents via the Agent tool, each in batch_validate mode.

Critical rules:

  • NEVER scan plugin contents yourself. Even if the resolver surfaces 17 plugins, you read ZERO source files.
  • NEVER print findings inline. The agents write per-plugin status JSONs; the orchestrator just aggregates them into a status table.
  • NEVER use AskUserQuestion. Plain-text prompts only.

Step 0 — Resolve arguments

The user supplies:

  • A target spec (required; first positional argument — accepts every shape from the table above).
  • Optional --max-parallel N (default 8, cap 16).

Read the full file on GitHub · 273 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. 2d ago First seen · 273 lines · 78 tokens per session scan A b7b5b0617247

Subscribe to this mod's changes

cpv-batch-validate is a command published in the GitHub repository Emasoft/claude-plugins-validation (4 stars, last pushed 4d ago), licensed MIT. It adds 78 tokens to every session and 2,593 once invoked, about $0.0004 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.