- Copy the hook configuration below
- Paste into your Claude Code
settings.json - Done! Updates run automatically
Add to your settings.json in the hooks section:
{
"hooks": {
"skill:invoke": {
"description": "Auto-update Schwung skill from GitHub",
"command": "bash /Users/click/Desktop/Move/schwung/scripts/skill-update.sh",
"silent": true
}
}
}Option A: Via Claude Code UI
- Open Claude Code settings (gear icon)
- Find "Hooks" section
- Add new hook for
skill:invoke - Paste the command above
Option B: Direct File Edit
- Edit
.claude/settings.jsonin your home directory - Find (or create) the
"hooks"object - Add the configuration above
- Save and reload Claude Code
If you're starting fresh, here's a minimal example:
{
"version": "1.0",
"hooks": {
"skill:invoke": {
"description": "Auto-update Schwung skill from GitHub",
"command": "bash /Users/click/Desktop/Move/schwung/scripts/skill-update.sh",
"silent": true
}
}
}# Test the script directly
bash /Users/click/Desktop/Move/schwung/scripts/skill-update.sh
# Check that skill file was created/updated
ls -lh ~/.claude/skills/schwung-module-creator/SKILL.md- ✅ Each time you invoke the Schwung skill, it checks GitHub
- ✅ Only checks once per hour (smart throttling)
- ✅ Updates silently if a newer version exists
- ✅ Backs up old version before updating
- ✅ Continues normally even if GitHub is unreachable
See docs/SKILL-AUTO-UPDATE.md for:
- How it works (architecture)
- Troubleshooting
- Advanced configuration
- Manual update commands