dgx-spark-playbooks/.github/workflows/regenerate-skills.yml
Jason Kneen a680d0472b feat: scaffold skills plugin from DGX Spark playbooks
Adds a Claude Code plugin structure that exposes each NVIDIA DGX Spark
playbook as a triggerable skill, with an index skill ('dgx-spark') that
routes users to the right leaf based on intent and encodes the
relationship graph between playbooks (prerequisites, alternatives,
composes-with, upgrade paths).

Structure:
- overrides/*.md       hand-curated frontmatter + Related sections
- scripts/generate.mjs zero-dep Node generator: nvidia + overrides → skills
- scripts/install.sh   symlinks skills into ~/.claude/skills (--plugin mode available)
- skills/              committed, browsable, installable without Node
- .github/workflows/   auto-regenerates skills/ when playbooks/overrides change

Initial curated leaves: ollama, open-webui, vllm, connect-to-your-spark.
Remaining 37 leaves use generator fallback (title + tagline + summary
extracted from README) and can be curated incrementally via overrides/.
2026-04-19 10:22:08 +01:00

48 lines
1.0 KiB
YAML

name: Regenerate skills
on:
push:
branches: [main]
paths:
- 'nvidia/**/README.md'
- 'overrides/**'
- 'scripts/generate.mjs'
- 'plugin.json'
workflow_dispatch:
concurrency:
group: regenerate-skills-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: write
jobs:
regenerate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
persist-credentials: true
- uses: actions/setup-node@v4
with:
node-version: '20'
- name: Regenerate skills
run: node scripts/generate.mjs
- name: Commit if changed
run: |
if git diff --quiet skills/; then
echo "No changes to skills/ - skipping commit"
exit 0
fi
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add skills/
git commit -m "chore: regenerate skills/ from upstream playbooks [skip ci]"
git push