Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions .github/workflows/validate-plugins.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Validate Plugins

on:
push:
branches: [main]
paths:
- "plugins/**"
- ".claude-plugin/**"
pull_request:
paths:
- "plugins/**"
- ".claude-plugin/**"

jobs:
validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1

- name: Install Claude Code
run: npm install -g @anthropic-ai/claude-code@2.1.183

- name: Validate all plugins
run: |
failed=0
for plugin in plugins/*/; do
echo "::group::Validating $plugin"
if ! claude plugin validate "$plugin" --strict; then
echo "::error::Validation failed for $plugin"
failed=1
fi
echo "::endgroup::"
done
exit $failed

- name: Validate marketplace manifest
run: claude plugin validate . --strict
10 changes: 10 additions & 0 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,13 @@ Common `allowed-tools` patterns: `Bash(git *)`, `Bash(gh *)`, `Bash(npx ccusage*
- Each plugin has independent semver in `plugin.json`
- Root marketplace version bumps minor on every plugin release
- Tags: `{plugin}/v{version}`

### External Dependencies

Always pin external dependencies to an exact, reproducible version — no floating references anywhere in the project.

- **GitHub Actions**: pin `uses:` to a full commit SHA; add the exact patch version as a comment
- `actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1`
- To find SHA: `gh api repos/{owner}/{repo}/git/ref/tags/{tag} --jq '.object.sha'`
- **npm**: use exact version (`@2.1.183`), never a range or bare package name
- **Any other package manager or tool** (pip, cargo, brew, etc.): same rule — exact version only