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
| Value | Action / meaning |
|---|---|
| claude plugin validate <path> --json --strict | Combine machine output with warnings-as-errors; omit --strict when warnings should pass. |
| --json; v2.1.259 | JSON output requires this version or later. |
| v2.1.259; 2026-09-02 | Changelog date for JSON report support. |
| --strict | Default warnings are nonfatal; this flag treats them as errors. |
| 0; Validation passed; Validation passed with warnings | Success. With strict enabled, no warnings are allowed. |
| 1; Validation failed | An 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; stderr | On exit 2, do not try to parse stdout as JSON. |
| success; strict; target; manifest; contents | Top-level verdict, mode, resolved target, manifest result, and per-file diagnostics. Manifest may be null. |
| file; errors; warnings; notes | Each 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.json | Directory resolution checks marketplace first, then plugin. When both exist it checks both on v2.1.289+. |
| v2.1.289 | Minimum version for validating both manifests in one directory. |
| skills; agents; commands; .claude | Without manifests: a named component directory checks its files; .claude checks those children; another directory checks them under its .claude. |
| plugins; owner; author | For 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.json | Use 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.295 | README install-line advice, empty when absent; never affects exit status, even in strict mode. |
| v2.1.295 | Minimum for README advice in the JSON report. |
| v2.1.323; 2026-11-12 | Current validation also checks TypeScript hooks modules; each finding is a warning unless strict is enabled. |
| SKILL.md; CLAUDE.md | Plugin-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
- Plugin commands reference, Anthropic.
- Claude Code changelog, Anthropic, 2026-11-16.
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