cpv-marketplace-authoring-contract

cpv-marketplace-authoring-contract is a skill for Claude Code from Emasoft/claude-plugins-validation. It costs 51 tokens per session (1,213 once invoked), scanned A, original, MIT.

A set of rules for writing or changing marketplace.json, the file that describes which plugins a marketplace offers. It defines the accepted fields, names, versions, sources, and marketplace layouts.

In plain words
What is it for?
Use it when creating, editing, or migrating marketplace entries, especially when deciding how to represent local plugins, remote plugins, versions, and repositories.
Why use it?
It prevents common formatting and metadata errors before validation. Following the rules makes entries consistent with the plugins they refer to.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

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

Good fit Use it when creating, editing, or migrating marketplace entries, especially when deciding how to represent local plugins, remote plugins, versions, and repositories.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/emasoft/claude-plugins-validation/cpv-marketplace-authoring-contract
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.

Any agent
npx skills add Emasoft/claude-plugins-validation --skill cpv-marketplace-authoring-contract
Clone the repo
git clone --depth 1 https://github.com/Emasoft/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-authoring-contract

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/emasoft/claude-plugins-validation/cpv-marketplace-authoring-contract"><img src="https://agentmods.dev/badge/skills/emasoft/claude-plugins-validation/cpv-marketplace-authoring-contract.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 51 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,213 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.00051 $0.01213
Opus 5 $0.00026 $0.00607
Sonnet 5 $0.00010 $0.00243
Haiku 4.5 $0.00005 $0.00121

Measured 12d ago against content hash f49589683578, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

cpv-marketplace-authoring-contract 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 12d 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-marketplace-authoring-contract/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.

Marketplace Authoring Contract

Overview

Seven sub-rules make marketplace.json authoring deterministic. Agents internalise them and emit correct entries on the FIRST try; validate_marketplace.py --strict (upstream cross-validation runs unconditionally) becomes a safety net.

Prerequisites

  • FS write access to the marketplace.json
  • validate_marketplace.py --strict runnable (upstream cross-validation runs unconditionally — no flag needed)
  • Remote sources: upstream plugin.json reachable via TRDD-c0ee9543 Phase B fetcher

Instructions

Read the seven sub-rules in order:

  1. name-canonicalisation — entry name equals upstream byte-for-byte.
  2. version-strategy — omit on remote, require on local.
  3. known-fields — closed 15-field allowlist.
  4. source-shape — per-source field rules.
  5. layout-decision-tree — count, then same/different repos.
  6. common-pitfalls — PIT-001..PIT-007.
  7. preflight-recipe — 4-step preflight.

Copy this checklist and track your progress:

  • Step 1 baseline (modify/migrate flows only)
  • Step 2 fetch upstream + cross-check
  • Layout pinned before drafting
  • Source shape matches canonical example
  • No PIT-NNN pattern in draft
  • Step 3 emit
  • Step 4 post-emit validator (exit 0 or known-baseline only)

Output

marketplace.json passing the validator on the FIRST try, zero new findings vs baseline.

Error Handling

Error Resolution
Upstream fetch fails Emit placeholder draft; step 4 blocks ship
Non-canonical name requested Refuse via name-canonicalisation.md#refusal-templates
Unknown field requested Refuse via known-fields.md#refusal-patterns
Step 4 new finding Re-enter step 2, fix, re-emit
Finding unclear Stop, ask user

Read the full file on GitHub · 96 lines

Files

What ships with it

7 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 12d ago First seen · 96 lines · 51 tokens per session scan A f49589683578

Subscribe to this mod's changes

cpv-marketplace-authoring-contract is a skill published in the GitHub repository Emasoft/claude-plugins-validation (4 stars, last pushed 5d ago), licensed MIT. It adds 51 tokens to every session and 1,213 once invoked, about $0.0003 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.