CI: run claude plugin validate to catch plugin-spec drift#5
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #4.
Adds a
specjob to the Validate plugins workflow that runs the official Claude Code plugin validator:@anthropic-ai/claude-code@2.1.173— schema warnings can change between releases, so version bumps are deliberate (comment in the workflow says so).claude plugin validate .— local/offline, no API key needed.✔ Validation passed with warnings), verified locally against currentmainwith its 1 known warning (stabilityin 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.stability, then tighten with--strictso 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