mirror of
https://github.com/NVIDIA/dgx-spark-playbooks.git
synced 2026-04-23 10:33:51 +00:00
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/.
27 lines
649 B
Bash
Executable File
27 lines
649 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Remove dgx-spark-playbooks symlinks from both skill-mode and plugin-mode install targets.
|
|
# Only removes symlinks — never touches real directories.
|
|
|
|
set -euo pipefail
|
|
|
|
SKILLS_DIR="${CLAUDE_SKILLS:-$HOME/.claude/skills}"
|
|
PLUGINS_DIR="${CLAUDE_PLUGINS:-$HOME/.claude/plugins}"
|
|
|
|
count=0
|
|
|
|
if [ -d "$SKILLS_DIR" ]; then
|
|
for link in "$SKILLS_DIR/dgx-spark" "$SKILLS_DIR/dgx-spark-"*; do
|
|
[ -L "$link" ] || continue
|
|
rm "$link"
|
|
count=$((count + 1))
|
|
done
|
|
fi
|
|
|
|
plugin_link="$PLUGINS_DIR/dgx-spark-playbooks"
|
|
if [ -L "$plugin_link" ]; then
|
|
rm "$plugin_link"
|
|
count=$((count + 1))
|
|
fi
|
|
|
|
echo "✓ Removed $count symlinks"
|