Skip to content

ci: validate plugin manifests against each client's JSON Schema - #11

Open
kamkali wants to merge 4 commits into
mainfrom
ci/manifest-checks
Open

kamkali wants to merge 4 commits into
mainfrom
ci/manifest-checks

Conversation

@kamkali

@kamkali kamkali commented Oct 28, 2026 •

Copy link
Copy Markdown
Collaborator
  • Adds one job, Manifest checks, on every PR and push to main.
  • It validates each manifest with ajv-cli against a JSON Schema pinned in ci/schemas/, checks that every manifest has the same plugin name and version, and runs claude plugin validate . --strict.
  • No custom validator, no fixtures, no lockfile: the workflow is 71 lines, the rest is pinned schemas.

What runs

flowchart LR
  A["plugin.json, mcp.json"] --> S1["Agent Plugins schemas"]
  B[".cursor-plugin/plugin.json"] --> S2["Cursor plugin schema"]
  C[".cursor-plugin/marketplace.json"] --> S3["Cursor marketplace schema"]
  C --> Q["quirks schema"]
  V["all manifests"] --> J["jq: one name, one version"]
  CL[".claude-plugin/*"] --> CC["claude plugin validate"]
  S1 & S2 & S3 & Q & J & CC --> OK{"pass?"}
Loading
Step What it does
Validate manifests ajv-cli@5.0.0 + ajv-formats@3.0.1, one call per manifest and schema
Same name and version everywhere jq collects the plugin name and version from every manifest and marketplace entry; fails unless each has exactly one value
Claude plugin validate Claude Code 2.1.326, checks .claude-plugin/*, .mcp.json and the skills

quirks.schema.json holds the one runtime rule no published schema states: a Cursor marketplace source must be a relative path. A URL passes the published schema and breaks installs.

Evidence

Each step ran locally on this branch and fails on a broken copy:

Check On the repo Broken copy
ajv, 5 validations 5× valid unknown key in .cursor-plugin/plugin.json: exit 1
quirks valid URL source in marketplace: invalid
version exit 0 9.9.9 in one manifest: exit 1

Try it

  1. In .cursor-plugin/marketplace.json, set the entry source to "https://github.com/clickup/clickup-plugin". The Validate manifests step fails on the quirks schema.
  2. Change version in .antigravity-plugin/plugin.json to 9.9.9. Same version everywhere fails and prints both versions.
  3. Add "bogus": 1 to .cursor-plugin/plugin.json. The Cursor plugin schema rejects it.

Risks

  • Pinned schemas do not follow upstream changes on their own. ci/README.md lists where each one comes from.
  • npx downloads ajv-cli on each run; versions are pinned.

🤖 Generated with Claude Code


Note

Low Risk
CI and documentation only; no changes to runtime plugin behavior or production code paths.

Overview
Adds a Manifest checks GitHub Actions workflow on every PR and push to main. It AJV-validates each client manifest (plugin.json, mcp.json, Cursor plugin/marketplace files) against pinned copies in ci/schemas/, including a local quirks schema for Cursor-only rules (e.g. marketplace source must be a repo-relative path).

The job also fails when plugin name or version disagree across all plugin and marketplace manifests, and runs claude plugin validate . --strict after installing a pinned Claude Code release. ci/README.md documents which upstream schema each file mirrors and how to refresh them.

Reviewed by Cursor Bugbot for commit d297839. Bugbot is set up for automated code reviews on this repo. Configure here.

@kamkali kamkali changed the title ci(core-services): add per-client manifest checks [CORE-10843] ci(core-services): validate plugin manifests for Claude, Cursor and Codex on every PR [CLK-1654048] Nov 5, 2026
@kamkali
kamkali changed the base branch from main to kkalis/clk-1654050-drop-cursor-plugin November 5, 2026 10:31
@kamkali kamkali changed the title ci(core-services): validate plugin manifests for Claude, Cursor and Codex on every PR [CLK-1654048] ci(core-services): per-PR manifest checks for Claude Code, Cursor and Agent Plugins [CLK-1654048] Nov 17, 2026
@kamkali
kamkali changed the base branch from kkalis/clk-1654050-drop-cursor-plugin to main November 19, 2026 13:07
@kamkali
kamkali marked this pull request as ready for review November 19, 2026 13:07

@cursor cursor Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stale Bugbot comment from a previous run.

Comment thread ci/manifest-rules.mjs Resolved
@kamkali kamkali changed the title ci(core-services): per-PR manifest checks for Claude Code, Cursor and Agent Plugins [CLK-1654048] ci(core-services): per-PR manifest checks in CUE for Claude Code, Cursor and Agent Plugins [CLK-1654048] Nov 19, 2026

@cursor cursor Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stale Bugbot comment from a previous run.

Comment thread ci/scenarios.mjs Resolved
@kamkali kamkali changed the title ci(core-services): per-PR manifest checks in CUE for Claude Code, Cursor and Agent Plugins [CLK-1654048] ci: validate plugin manifests with ajv and pinned JSON Schemas Nov 19, 2026

@cursor cursor Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stale Bugbot comment from a previous run.

Comment thread ci/validate.mjs Resolved
Every PR that touches a manifest runs ajv against pinned copies of the
Claude, Cursor and MCP schemas. Cursor also reads .claude-plugin when
.cursor-plugin is missing, so those files are checked against the
Cursor rules too.
@kamkali kamkali changed the title ci: validate plugin manifests with ajv and pinned JSON Schemas ci: validate plugin manifests against each client's JSON Schema Nov 20, 2026

@cursor cursor Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stale Bugbot comment from a previous run.

Comment thread .github/workflows/manifest-checks.yml Resolved
The version step now also compares the plugin name in every plugin manifest
and every marketplace plugin entry. A marketplace's own name is skipped. An
empty value now fails instead of passing as one distinct value.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015n9iUfHXG1jwHPHR4e5NYD

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit ae9684d. Configure here.

Comment thread .github/workflows/manifest-checks.yml Resolved
The two jq calls shared one command substitution, so errexit ignored a
failure of the first one. Each call now has its own assignment.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015n9iUfHXG1jwHPHR4e5NYD
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.

1 participant