name: backup description: Backup Claude Code configuration to GitHub. Commits and pushes any changes to settings, skills, or other config files.
Backup Claude Config
Commit and push any changes to the claude-config repository.
Workflow
-
Check for changes
cd ~/claude-config && git status --shortIf no changes, inform user and stop.
-
Show what changed
cd ~/claude-config && git diff cd ~/claude-config && git diff --cached -
Stage all changes
cd ~/claude-config && git add -A -
Generate commit message Analyze the changes and create a descriptive message:
- "Update CLAUDE.md instructions"
- "Add new skill: <name>"
- "Update settings: enable <plugin>"
- "Update statusline script"
- Or combine if multiple: "Update settings and add skill"
-
Commit and push
cd ~/claude-config && git commit -m "<message>" cd ~/claude-config && git push -
Confirm success Report what was backed up.
Output Format
Checking claude-config for changes...
Changes detected:
M settings.json
A skills/newskill.md
Committed: Add newskill and update settings
Pushed to: https://github.com/GLaDO8/claude-config
Backup complete.
If no changes
Checking claude-config for changes...
No changes to backup. Config is up to date.
Never
- Don't commit if there are no changes
- Don't include sensitive data in commit messages
- Don't force push