Skip to content

CI: run claude plugin validate to catch plugin-spec drift#5

Merged
wzslr321 merged 2 commits into
mainfrom
ci/claude-plugin-validate
Jun 13, 2026
Merged

CI: run claude plugin validate to catch plugin-spec drift#5
wzslr321 merged 2 commits into
mainfrom
ci/claude-plugin-validate

Conversation

@wzslr321

Copy link
Copy Markdown
Member

Closes #4.

Adds a spec job to the Validate plugins workflow that runs the official Claude Code plugin validator:

  • Installs the CLI pinned to @anthropic-ai/claude-code@2.1.173 — schema warnings can change between releases, so version bumps are deliberate (comment in the workflow says so).
  • Runs claude plugin validate . — local/offline, no API key needed.
  • Phase 1 (this PR): fails on errors only. The command exits 0 on warnings (✔ Validation passed with warnings), verified locally against current main with its 1 known warning (stability in one plugin.json). So this lands green today while catching new spec violations — manifest typos, malformed hooks.json, bad skill frontmatter — and future schema drift.
  • Phase 2 (separate): decide what to do with stability, then tighten with --strict so warnings fail too. Left as a comment next to the step.

Also updates the AGENTS.md "Validation" CI summary to mention the new check.

Replaces leancodepl/ai-plugins-internal#27 — per the public → internal content-flow direction this belongs here first; this PR also doubles as a test case for the public → internal sync.

🤖 Generated with Claude Code

wzslr321 and others added 2 commits June 11, 2026 15:48
Add a `spec` job to the Validate plugins workflow that installs the
Claude Code CLI (pinned to 2.1.173 — schema warnings can change between
releases, so bumps should be deliberate) and runs
`claude plugin validate .` offline.

Phase 1 of #4: the command exits 0 on warnings, so this lands green on
current main (1 known warning: `stability` in one plugin.json) while
failing on real schema errors — manifest typos, malformed hooks.json,
bad skill frontmatter — and future spec drift. Phase 2 (--strict) comes
once the `stability` field question is settled.

Closes #4

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@wzslr321 wzslr321 merged commit 60915b2 into main Jun 13, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CI: run claude plugin validate to catch plugin-spec drift

1 participant