plugin-validator

plugin-validator is an agent for coding agents from athola/claude-night-market. It costs 37 tokens per session (1,184 once invoked), scanned A, original, MIT.

An automated checker for the folder structure and metadata of Claude Code plugins. It checks the plugin manifest, referenced files, naming, hooks, and skill metadata.

In plain words
What is it for?
Use it to validate a plugin's `plugin.json`, skills, commands, agents, hooks, and newer Claude Code 2.1.0 metadata fields.
Why use it?
It catches missing files, invalid JSON, incorrect paths, naming errors, and incomplete skill information before a plugin is used or shared.

Agent

Part of the abstract plugin — 13 skills, 17 commands, 6 agents, 4 hooks 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/athola/claude-night-market/plugin-validator
Clone the repo
git clone --depth 1 https://github.com/athola/claude-night-market

Or install abstract, the plugin that ships this one along with the rest of its 13 skills, 17 commands, 6 agents, 4 hooks.

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 plugin-validator

README.md
[![agentmods](https://agentmods.dev/badge/agents/athola/claude-night-market/plugin-validator.svg)](https://agentmods.dev/agents/athola/claude-night-market/plugin-validator)
Your own site
<a href="https://agentmods.dev/agents/athola/claude-night-market/plugin-validator"><img src="https://agentmods.dev/badge/agents/athola/claude-night-market/plugin-validator.svg" alt="Measured on agentmods" height="20"></a>
Per session 37 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,184 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.00037 $0.01184
Opus 5 $0.00018 $0.00592
Sonnet 5 $0.00007 $0.00237
Haiku 4.5 $0.00004 $0.00118

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

Security

Grade A, and why

plugin-validator 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 4d 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.

plugins/abstract/agents/plugin-validator.md · 154 lines

How it starts

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

Plugin Validator Agent

Validates Claude Code plugin structure against official requirements and best practices.

Capabilities

  • Validates .claude-plugin/plugin.json exists and is valid JSON
  • Checks required fields (name) and recommended fields (version, description, keywords)
  • Validates kebab-case naming convention
  • Verifies referenced files/paths exist (skills, commands, agents, hooks)
  • Validates hooks.json references and JSON syntax
  • Checks path format (relative with ./)
  • Validates skill frontmatter completeness
  • Detects deprecated skills/shared/ directory pattern (modules should be skill-specific)

Claude Code 2.1.0+ Validation

The validator recognizes and validates new 2.1.0 frontmatter fields:

Field Valid Values Description
context fork Run in forked sub-agent context
agent string Agent type for skill execution
user-invocable boolean Visibility in slash command menu
hooks object PreToolUse/PostToolUse/Stop hooks
allowed-tools list YAML-style tool list with wildcards

Wildcard Patterns Validated:

  • Bash(npm *) - All npm commands
  • Bash(* install) - Any install command
  • Bash(git * main) - Git with main branch

Wildcard Normalization (2.1.20+):

  • ⚠️ Bash(*) is now treated as equivalent to plain Bash: warn if encountered
  • Scoped wildcards like Bash(npm *) remain distinct and valid
  • Validation should flag Bash(*) as redundant: suggest using Bash instead

Agent Memory Field (2.1.33+)

Agents can declare persistent memory scope in frontmatter:

Value Scope
user Persisted across all projects for the user
project Persisted within a specific project
local Local to current session

Validation: Warn if memory value is not one of: user, project, local.

Sub-Agent Restrictions (2.1.33+)

Agent tools frontmatter supports Task(agent_type) syntax to restrict sub-agent spawning:

Read the full file on GitHub · 154 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. 4d ago First seen · 154 lines · 37 tokens per session scan A 96df5c2e6597

Subscribe to this mod's changes

plugin-validator is an agent published in the GitHub repository athola/claude-night-market (335 stars, last pushed today), licensed MIT. It adds 37 tokens to every session and 1,184 once invoked, about $0.0002 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-30.

Related

Other agents, from other repositories

aws-cost-saver

AWS cost optimization scanner with Compute Optimizer ML integration, data transfer analysis, and 173 checks across 11 domains. Use when scanning AWS accounts for cost savings opportunities.

ccplugins/awesome-claude-code-plugins · 39 tokens

mobile-engineer

React Native and Expo specialist for building Solana mobile dApps. Handles mobile wallet adapter integration, transaction signing UX, deep linking, and mobile-specific performance optimization. Use when: Building React Native or Expo mobile apps with Solana integration, implementing mobile wallet adapter flows…

solanabr/solana-ai-kit · 72 tokens

codebase-documenter

Use this agent when you need to analyze a service or codebase component and create comprehensive documentation in CLAUDE.md files. This agent should be invoked after implementing new services, major refactoring, or when documentation needs updating to reflect the current codebase structure. Examples: Context: The user…

xbim08/awesome-claude-code-plugins · 267 tokens

analyst

Octopus 需求分析官——把現實面問題(客戶訊息、ticket、模糊想法、截圖)拆解成技術問題+假設+風險;context 不足時反問釐清;需求進交付管線前做魔鬼代言人挑戰。.

SatoruoGojoo/octopus · 72 tokens

security

Security auditing and vulnerability prevention.

mischasigtermans/laravel-altitude · 7 tokens

probe

Read-only discovery delegate. Investigates one bounded question and returns findings with sources and a recommendation. Never edits anything. Use for codebase exploration and external research; run in the foreground.

markskrypka/stem · 39 tokens