How this skill is triggered — by the user, by Claude, or both
Slash command
/claude-backup-sync:backup-setupThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Initial setup guide for claude-backup-sync plugin.
Initial setup guide for claude-backup-sync plugin.
User says: "backup setup", "setup backup", "configure backup", "/backup-setup"
gh auth status
If not authenticated, guide the user:
gh auth login -h github.com --web
For GitLab, guide the user to configure git credentials instead.
Ask the user for:
username/backup-repo)github.com, or gitlab.com, etc.)main)If the repository doesn't exist and host is github.com, offer to create it:
gh repo create <repo-name> --private --description "Claude Code config backup"
Create the config file at ~/.claude/scripts/backup-config.json:
mkdir -p ~/.claude/scripts
cat > ~/.claude/scripts/backup-config.json << EOF
{
"repo": "<user's repo>",
"branch": "main",
"host": "<user's host>"
}
EOF
Run the backup sync script to test:
bash ~/.claude/scripts/backup-sync.sh
Or if running from the plugin:
bash "${CLAUDE_PLUGIN_ROOT}/scripts/backup-sync.sh"
Check that the sync was successful by reading the log:
tail -5 ~/.claude/logs/backup-sync.log
Show the user the result and confirm setup is complete.
~/.claude/settings.json - Claude Code settings~/.claude/settings.local.json - Local settings~/.claude/CLAUDE.md - Global instructions~/.claude/.mcp.json - MCP config (API keys replaced with ${ENV_VAR} references)~/.claude/agents/ - Agent definitions~/.claude/rules/ - Rule files~/.claude/commands/ - Custom commands~/.claude/skills/ - Skills~/.claude/hud/ - HUD config~/.claude/scripts/ - Helper scripts~/.zshrc - Shell config~/.gitconfig - Git config~/.ssh/config - SSH config (as .ssh_config)Brewfile - Homebrew packages| Host | Example |
|---|---|
| GitHub | "host": "github.com" |
| GitLab | "host": "gitlab.com" |
| Self-hosted | "host": "git.mycompany.com" |
.mcp.json are automatically replaced with ${ENV_VAR} references/backup-config for manual sync anytime/restore-config to restore from backupnpx claudepluginhub ohjuhun/claude-backup-sync --plugin claude-backup-syncInteractive wizard configures repositories for Claude Code best practices by creating CLAUDE.md, slash commands, agents, hooks, and permissions. Activates on 'setup claude', 'init claude', or repo setup requests.
Syncs cc-settings with upstream Claude Code changelog (maintainer) or updates local cc-settings install (user).
Reference every Claude Code setting option from permissions, hooks, and sandbox to models, status line, and MCP servers. Use for config customization and troubleshooting.