ci(workflows): add skill sync and validation workflows

- Add sync-claude-plugin workflow to auto-update marketplace.json when skills change
- Add validate-skill workflow to validate SKILL.md files on push/PR
- Add sync-marketplace.js script for skill discovery and count updates
This commit is contained in:
Ben Sabic
2026-01-25 20:34:53 +11:00
parent 21f0ce7f6e
commit 8a1dcc657e
3 changed files with 160 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
name: Sync Claude Plugin
on:
push:
branches: [main]
paths:
- 'skills/**'
jobs:
sync:
runs-on: ubuntu-slim
permissions:
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
persist-credentials: true
- name: Sync skills to marketplace.json
run: node .github/scripts/sync-marketplace.js
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v7
with:
commit_message: "chore: sync marketplace.json with skills directory"
file_pattern: .claude-plugin/marketplace.json