Skip to content

Commit 60915b2

Browse files
authored
Merge pull request #5 from leancodepl/ci/claude-plugin-validate
CI: run `claude plugin validate` to catch plugin-spec drift
2 parents 2939d5d + baf6b10 commit 60915b2

4 files changed

Lines changed: 21 additions & 3 deletions

File tree

.github/workflows/validate-plugins.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,22 @@ jobs:
2525

2626
- name: Validate plugin structure
2727
run: go run ./cmd/validate-plugins
28+
29+
spec:
30+
name: Claude Code plugin spec check
31+
runs-on: ubuntu-latest
32+
timeout-minutes: 5
33+
steps:
34+
- name: Checkout
35+
uses: actions/checkout@v4
36+
37+
- name: Setup Node
38+
uses: actions/setup-node@v4
39+
with:
40+
node-version: 22
41+
42+
- name: Install Claude Code CLI
43+
run: npm install -g @anthropic-ai/claude-code@2.1.173
44+
45+
- name: Validate against the Claude Code plugin schema
46+
run: claude plugin validate . --strict

AGENTS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ Validate plugin structure locally with Go:
4646
go run ./cmd/validate-plugins
4747
```
4848

49-
CI runs the same structure validation plus Go formatting/lint on every PR. After pushing, watch CI with `gh pr checks <pr-number>`.
49+
CI runs the same structure validation, Go formatting/lint, and the official Claude Code plugin-spec check (`claude plugin validate . --strict`, warnings fail the build) on every PR. After pushing, watch CI with `gh pr checks <pr-number>`.
5050

5151
## Platform notes
5252

plugins/lean-core/.claude-plugin/plugin.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
"displayName": "LeanCode Core",
55
"description": "Entry point for the LeanCode AI plugins marketplace. Explains what's available and helps contributors open PRs to add or improve plugins.",
66
"version": "0.1.0",
7-
"stability": "experimental",
87
"author": {
98
"name": "LeanCode"
109
},

plugins/lean-core/skills/lean-contribute/SKILL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ Per-plugin semver in `.claude-plugin/plugin.json`.
122122
- **MINOR** — new skill, new reference, new behavior; expanded scope; additive change.
123123
- **MAJOR** — rename, removal, or reversal of existing guidance.
124124

125-
Optional `stability` field on each plugin: `experimental`, `beta`, or `stable`.
125+
Keep `plugin.json` to fields in the official Claude Code plugin manifest schema — CI runs `claude plugin validate . --strict`, which fails on unrecognized fields.
126126

127127
### What Claude Code does with the version
128128

0 commit comments

Comments
 (0)