Awesome-claude sync
Use when the user wants to sync their Claude Code config (settings, skills, memories) with the remote repo. One command that commits local changes, pulls remote changes, rebases, and pushes.
install
source · Clone the upstream repo
git clone https://github.com/andreiverdes/awesome-claude
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/andreiverdes/awesome-claude "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/sync" ~/.claude/skills/andreiverdes-awesome-claude-sync && rm -rf "$T"
manifest:
skills/sync/SKILL.mdsource content
Git Sync
Syncs
~/.claude with the remote repo. Commits local, pulls remote, pushes result. One command.
Steps
1. Check repo
cd ~/.claude && git remote -v
If no remote, ask the user for the repo URL:
git remote add origin <url>
2. Commit local changes
cd ~/.claude git add -A git diff --cached --quiet || git commit -m "sync $(hostname) $(date +%Y-%m-%d-%H%M)"
3. Pull + rebase
git pull --rebase
If conflicts:
- Show conflicting files
- For
— show diff, ask which to keepsettings.json - For
— keep both versions if different files, ask if same filememory/*.md - For
— show diff, ask which is correctskills/** - Resolve and
git rebase --continue
4. Push
git push
5. Report
git log --oneline -5
Show what changed in one line.