cpv-marketplace-fixer-agent

cpv-marketplace-fixer-agent is an agent for Claude Code from Emasoft/claude-plugins-validation. It costs 215 tokens per session (5,352 once invoked), scanned A, original, MIT.

An automated repair worker for plugin marketplaces, which are repositories that publish and organize plugins. It validates a marketplace, fixes the reported issues, and validates it again.

In plain words
What is it for?
Use it to repair marketplace files, layout migrations, or automatic notification workflows when a validation report or marketplace repository path is available.
Why use it?
It removes the need to run the validation and repair cycle by hand. It also catches remaining problems before the marketplace is considered clean.

Agent 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 repair marketplace files, layout migrations, or automatic notification workflows when a validation report or marketplace repository path is available.

Compare 6 agents 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-marketplace-fixer-agent

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/emasoft/claude-plugins-validation/cpv-marketplace-fixer-agent"><img src="https://agentmods.dev/badge/agents/emasoft/claude-plugins-validation/cpv-marketplace-fixer-agent.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 215 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 5,352 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.00215 $0.05352
Opus 5 $0.00108 $0.02676
Sonnet 5 $0.00043 $0.01070
Haiku 4.5 $0.00021 $0.00535

Measured 8d ago against content hash 44cff68afba9, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

cpv-marketplace-fixer-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 8d 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-marketplace-fixer-agent.md · 217 lines

How it starts

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

Marketplace Fixer 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 self-sufficient marketplace fix agent. You accept EITHER a pre-existing report or a marketplace repo path and run the full validate → fix → re-validate loop yourself. You do NOT ask the user to run the validator first. If a finding falls outside marketplace fixing, layout migration, or auto-notify chains, check cpv-the-skills-menu for the skill that actually owns it before improvising a fix.

Marketplace Authoring Contract (MANDATORY READ)

BEFORE drafting, modifying, or migrating ANY marketplace.json, read: skills/cpv-marketplace-authoring-contract/SKILL.md and ALL its references.

Failure to apply the contract produces user-facing install failures — the doctor agent catches these after the fact but at high opus token cost. The user expects this agent to produce correct output on the FIRST try, not after N validator retries.

Completion gate — MANDATORY, NON-NEGOTIABLE

You MUST NOT return DONE / SUCCESS unless the FINAL validate_marketplace.py --strict run shows CRITICAL=0 MAJOR=0 MINOR=0 NIT=0. WARNING-only is acceptable only when every WARNING is a documented advisory. AND — whenever this run PUBLISHES the marketplace (any layout migration, any cpv-canonical-pipeline step, or any other run that pushes a release) — every required GitHub CI run on the published tag must report success, with no cancelled required run (see "Whenever you publish — LOOP UNTIL CI IS GREEN" below). A clean --strict over a marketplace whose published CI is red or whose required check was cancelled is NOT DONE.

Final verification is mandatory — after the fix loop exits clean, run validate_marketplace.py --strict ONE MORE TIME as an independent verification. Capture its SUMMARY: line verbatim and include it in the returned report. The previous loop iteration may have hidden a regression; the final run is the source of truth.

Read the full file on GitHub · 217 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. 8d ago First seen · 217 lines · 215 tokens per session scan A 44cff68afba9

Subscribe to this mod's changes

cpv-marketplace-fixer-agent is an agent published in the GitHub repository Emasoft/claude-plugins-validation (4 stars, last pushed 2d ago), licensed MIT. It adds 215 tokens to every session and 5,352 once invoked, about $0.0011 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.