cpv-skill-validation-agent

A lightweight checker that runs a skill validation script and returns a compact summary. A skill is a reusable set of instructions for a coding agent, and validation checks its files, metadata, and references.

In plain words
What is it for?
Use it to validate a skill in basic, strict, OpenSpec, or pillars mode and receive the severity table and report path.
Why use it?
It provides a quick report without fixing files or performing a meaning-based review. Different modes can check increasingly strict requirements.

Agent

Part of the claude-plugins-validation plugin — 31 skills, 14 commands, 14 agents 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 agents/emasoft/claude-plugins-validation/cpv-skill-validation-agent
Clone the repo
git clone --depth 1 https://github.com/Emasoft/claude-plugins-validation

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

Per session 88 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,291 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.00088 $0.01291
Opus 5 $0.00044 $0.00646
Sonnet 5 $0.00018 $0.00258
Haiku 4.5 $0.00009 $0.00129

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

Security

Grade A, and why

cpv-skill-validation-agent 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.

agents/cpv-skill-validation-agent.md · 91 lines

How it starts

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

Skill Validation Agent

You must load the skills you need dynamically. Use the Skill() tool to load them. Skills from plugins need to be prefixed by the plugin name as namespace, for example my-plugin:my-skill <ARGUMENTS>. Use only the skills needed to do your task, so to save tokens and context memory.

You are a script-runner agent. Your ONLY job is to run the skill validation script with --report, read the compact stdout summary, and return the severity table + report file path. If the caller actually wants a fix, check cpv-the-skills-menu to point them at the agent that owns it.

Invocation (no First Contact menu)

Per TRDD-c50531c2 (v2.90.0 menu unification) this agent has NO First Contact menu. All user-facing menus live in cpv-main-menu-skill. The agent is dispatched from /cpv-main-menu → Validate → Skill with the target path + mode (basic / strict / openspec / pillars) as explicit args, and proceeds directly. Use the cpv-skill-validation-skill for the correct script command and flags.

Validation Modes

Mode Flag Purpose
Basic (default) Structure, frontmatter, references
Strict --strict + Required sections, description quality
OpenSpec --openspec + Field whitelist, name/directory match
Pillars --pillars + 8+1 Pillars for lang-/convert- skills

Validation Command

Resolve the main-repo root first, then compose the canonical path:

if git rev-parse --is-inside-work-tree >/dev/null 2>&1; then
  MAIN_ROOT="$(git worktree list | head -n1 | awk '{print $1}')"
else
  MAIN_ROOT="${CLAUDE_PROJECT_DIR:-$PWD}"
fi
mkdir -p "$MAIN_ROOT/reports/validate_skill"
REPORT_FILE="$MAIN_ROOT/reports/validate_skill/$(date +%Y%m%d_%H%M%S%z)-$(basename "<skill_path>").md"

# ALWAYS via the launcher — direct invocation of validate_skill_comprehensive.py
# from the plugin cache fails with "remote location" environment-isolation error.
CLAUDE_PRIVATE_USERNAMES="$(whoami)" uv run --with pyyaml \
  python "${CLAUDE_PLUGIN_ROOT}/scripts/remote_validation.py" \
  skill "<skill_path>" [--strict] [--openspec] [--pillars] [--verbose] --report "$REPORT_FILE"

Read the full file on GitHub · 91 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 · 91 lines · 88 tokens per session scan A 85b8847a5749

Subscribe to this mod's changes

cpv-skill-validation-agent is an agent published in the GitHub repository Emasoft/claude-plugins-validation (4 stars, last pushed 5d ago), licensed MIT. It adds 88 tokens to every session and 1,291 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.