From claude-backup-sync
Restore Claude Code config from GitHub backup repository to local machine.
How this skill is triggered — by the user, by Claude, or both
Slash command
/claude-backup-sync:restore-configThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Restore Claude Code config from GitHub backup repository to local machine.
Restore Claude Code config from GitHub backup repository to local machine.
User says: "restore config", "pull config", "sync from backup", "/restore-config"
CONFIG_FILE="$HOME/.claude/scripts/backup-config.json"
REPO=$(python3 -c "import json; print(json.load(open('$CONFIG_FILE'))["repo"])")
BRANCH=$(python3 -c "import json; print(json.load(open('$CONFIG_FILE')).get("branch", "main"))")
CLONE_DIR="$HOME/.claude/backup-repo"
if [ \! -d "$CLONE_DIR/.git" ]; then
gh repo clone "$REPO" "$CLONE_DIR" -- -b "$BRANCH"
else
git -C "$CLONE_DIR" pull --rebase origin "$BRANCH"
fi
Ask the user which categories to restore using AskUserQuestion (multiSelect):
Copy files from $CLONE_DIR/claude/ back to ~/.claude/:
claude/settings.json → ~/.claude/settings.jsonclaude/CLAUDE.md → ~/.claude/CLAUDE.mdclaude/.mcp.json → ~/.claude/.mcp.jsonclaude/agents/ → ~/.claude/agents/claude/rules/ → ~/.claude/rules/claude/commands/ → ~/.claude/commands/claude/skills/ → ~/.claude/skills/claude/hud/ → ~/.claude/hud/claude/scripts/ → ~/.claude/scripts/.zshrc → ~/.zshrc.gitconfig → ~/.gitconfig.ssh_config → ~/.ssh/configFor Brewfile: brew bundle install --file="$CLONE_DIR/Brewfile"
IMPORTANT: .mcp.json contains ${ENV_VAR} placeholders instead of real API keys.
Tell the user they need to set the actual environment variables after restore.
Report in Korean:
npx claudepluginhub ohjuhun/claude-backup-sync --plugin claude-backup-syncManages Claude Code user configs (~/.claude/, ~/.claude.json): storage cleanup, backup/restore, reset with MCP preservation, history/plans/sessions/stats, health audits.
Shares Claude Code resources (memories, skills, hooks, scripts, commands) between projects via a centralized claude-settings repo. Copies .claude/* files and publishes them, with private info scanning and optional auto mode.
Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.