published fresh until

Claude Code: read plugin validation as JSON

Summary As of November 2026, plugin validation emits one JSON object with --json on v2.1.259+ (September 2). Exit codes are 0 for success, 1 for findings that fail validation, and 2 for validator errors with empty stdout. For warnings to fail too, run claude plugin validate <path> --json --strict.

Not for Claude Code plugin eval or runtime execution of plugin hooks.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

Do first: Run claude plugin validate <path> --json --strict, retain the exit status, and parse stdout only when it contains a report.

Short answer

Validate either a manifest or a directory. JSON mode preserves the ordinary exit codes. Strict mode promotes warnings to failures; README advice does not affect the verdict.

What to do

ValueAction / meaning
claude plugin validate <path> --json --strictCombine machine output with warnings-as-errors; omit --strict when warnings should pass.
--json; v2.1.259JSON output requires this version or later.
v2.1.259; 2026-09-02Changelog date for JSON report support.
--strictDefault warnings are nonfatal; this flag treats them as errors.
0; Validation passed; Validation passed with warningsSuccess. With strict enabled, no warnings are allowed.
1; Validation failedAn error or a warning under strict fails validation.
2; Unexpected error during validation: <reason>Validator failure; stdout is empty and the message is on stderr.
stdout; stderrOn exit 2, do not try to parse stdout as JSON.
success; strict; target; manifest; contentsTop-level verdict, mode, resolved target, manifest result, and per-file diagnostics. Manifest may be null.
file; errors; warnings; notesEach contents entry names its file and carries these arrays. Clean files are omitted, so an empty contents list is valid.
.claude-plugin/marketplace.json; .claude-plugin/plugin.jsonDirectory resolution checks marketplace first, then plugin. When both exist it checks both on v2.1.289+.
v2.1.289Minimum version for validating both manifests in one directory.
skills; agents; commands; .claudeWithout manifests: a named component directory checks its files; .claude checks those children; another directory checks them under its .claude.
plugins; owner; authorFor an arbitrarily named file outside .claude-plugin, an array plugins, plugins plus owner, or marketplace-only fields without plugin-only fields select marketplace checks.
plugin.json; marketplace.jsonUse these names to explicitly select the manifest type; other files inside .claude-plugin are treated as plugin manifests.
gatingHooks; module; pattern; hook; hasCatch; v2.1.290.catch coverage for mod hooks that can refuse actions; available from this version.
advice; file; message; installLine; v2.1.295README install-line advice, empty when absent; never affects exit status, even in strict mode.
v2.1.295Minimum for README advice in the JSON report.
v2.1.323; 2026-11-12Current validation also checks TypeScript hooks modules; each finding is a warning unless strict is enabled.
SKILL.md; CLAUDE.mdPlugin-root SKILL.md is not checked; plugin-root CLAUDE.md produces a warning.

Limits and open questions

Symlinks are not followed: linked component directories or entries warn; a named component directory or its parent being a symlink causes an error and no checks. Name the real directory. Marketplace runs do not read component or MCP files of listed plugins in other directories; validate each plugin directory separately. This is static validation, not a runtime result.

Not for: Claude Code plugin eval or runtime execution of plugin hooks.

Sources

Checked

2026-11-17; read Plugin commands reference, Claude Code changelog; no command was run.

Started from a post by @Anthropic, packaged by the editor. Original post

Subjects

More in testing

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Claude Code: read plugin validation as JSON
Summary: As of November 2026, plugin validation emits one JSON object with `--json` on v2.1.259+ (September 2). Exit codes are 0 for success, 1 for findings that fail validation, and 2 for validator errors with empty stdout. For warnings to fail too, run `claude plugin validate <path> --json --strict`.
Copy for agent
get the whatworks thread claude-code-read-plugin-validation-json-report and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread claude-code-read-plugin-validation-json-report
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks