cpv-main-menu

cpv-main-menu is a command for Claude Code from Emasoft/claude-plugins-validation. It costs 36 tokens per session (1,044 once invoked), scanned A, original, MIT.

A command that opens an interactive menu for the CPV tools in a coding assistant. The menu groups commands for checking, fixing, optimizing, diagnosing, updating, creating, publishing, and managing work.

In plain words
What is it for?
Use it to browse and launch CPV actions, ask for help, or exit from the menu.
Why use it?
It gives one place to find the available CPV commands without memorizing each command name.

Command for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_ROOT} variable. Also seen: mentions subagents; names the AskUserQuestion tool.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

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

Good fit Use it to browse and launch CPV actions, ask for help, or exit from the menu.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add Emasoft/claude-plugins-validation
Claude Code
/plugin install claude-plugins-validation

Made for: Claude Code.

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

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-main-menu

README.md
[![agentmods](https://agentmods.dev/badge/commands/emasoft/claude-plugins-validation/cpv-main-menu/github.svg)](https://agentmods.dev/commands/emasoft/claude-plugins-validation/cpv-main-menu)
Your own site
<a href="https://agentmods.dev/commands/emasoft/claude-plugins-validation/cpv-main-menu"><img src="https://agentmods.dev/badge/commands/emasoft/claude-plugins-validation/cpv-main-menu/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.

agentmods 80×15 button for cpv-main-menu

Your own site · 80×15
<a href="https://agentmods.dev/commands/emasoft/claude-plugins-validation/cpv-main-menu"><img src="https://agentmods.dev/badge/commands/emasoft/claude-plugins-validation/cpv-main-menu.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 36 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,044 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00036 $0.01044
Opus 5.5 $0.00014 $0.00418
Sonnet 5.5 $0.00007 $0.00209
Haiku 4.5 $0.00004 $0.00104

Measured 1mo ago against content hash a13284d30a51, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

cpv-main-menu 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 1mo 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-main-menu.md · 81 lines

How it starts

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

/cpv-main-menu — CPV Main Menu

One inline entry point to every CPV command, skill, and agent, shown as a post-turn Stop-hook menu (rendered via systemMessage, so it never enters the transcript or prompt cache). Every menu has a 0 — Cancel / Exit row; sub-menus also have B — Back.

The full menu tree AND the fixed key→action routing map are the single source of truth in menu-tree.md (cpv-main-menu-skill, auto-loaded). Do NOT restate the menu rows or the key map here — read them there.

Categories (the top menu — full rows + routing live in menu-tree.md)

Validate · Fix · Optimize for Cache · Diagnose · Update · Create · Publish & Migrate · Manage — plus H (Help / About), A (Ask the agent), 0 (Cancel / Exit).

Workflow (runs inline in the main session — no subagent fork)

  1. Queue the top menu. One Bash call: export CPV_SKILL_MENUS_DIR to the skill's skill-menus/ dir, then python "${CLAUDE_PLUGIN_ROOT}/scripts/print_menu.py" fixed 5 >/dev/null 2>&1 (loads the pre-baked skill-menus/05-main.json). Then END THE TURN emitting ZERO chat text — the claude-menu-system Stop hook renders the menu via systemMessage, so it costs no context. NEVER print the menu inline; NEVER use Write/Edit to stage a spec (print_menu.py loads it by index — that is why the Bash card stays tiny and silent).
  2. Wait for the user's key (number or letter, case-insensitive).
  3. 0 at any level → reply Cancelled — no actions taken. and stop. B in a sub-menu → re-queue the parent menu.
  4. Category key → look up its action_id in menu-tree.md, run that sub-menu's heredoc recipe, and end the turn silently.
  5. Leaf key → ask any required arguments as plain-text questions, then execute that command's workflow inline (read its .md, run its bash) — actually run it, don't just name it. Every validator call goes through python "${CLAUDE_PLUGIN_ROOT}/scripts/remote_validation.py" <alias> — never the plugin-cache scripts directly.
  6. Report the compact summary + report-file path, then run the §3.99 "do something else?" heredoc (or the §3.10 post-validate menu for Validate leaves) and end silently. 0 → Done.

Read the full file on GitHub · 81 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. 1mo ago First seen · 81 lines · 36 tokens per session scan A a13284d30a51

Subscribe to this mod's changes

cpv-main-menu is a command published in the GitHub repository Emasoft/claude-plugins-validation (4 stars, last pushed 3d ago), licensed MIT. It adds 36 tokens to every session and 1,044 once invoked, about $0.0001 per session on Opus 5.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.