/mauriciovieira-skills:sync-dotfilesfrom mauriciovieira-skills
Sync your local agent/editor config (e.g. ~/.claude/, ~/.cursor/) into a dotfiles git repo, show the diff, and prompt for a commit. Use when the user asks to "sync dotfiles", "push my claude/cursor config", "save my editor settings to dotfiles", or after editing global config that should propagate to other machines.
Ships in mauriciovieira-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Propagate intentional edits to your local agent/editor config back into a dotfiles git repo so they ship to your other machines.
This skill is config-agnostic: it asks you where your dotfiles repo lives and which sources to sync. It never hardcodes a private path.
cp, not a side effect of sync.git push and never git commit --amend — local commit only.~/.claude/settings.local.json).Ask the user for their dotfiles repo path if you don't already know it.
Where is your dotfiles repo? (absolute path, e.g. ~/dotfiles or
~/Repositories/<you>/dotfiles)
Set DOTFILES="<their answer>". If [ ! -d "$DOTFILES/.git" ], report that
it's not a git repo and stop.
Tip: if the user syncs often, suggest they record the path in their project or global
CLAUDE.mdso this skill can skip the question next time.
Ask which sources to sync (offer the common defaults; let them add/remove).
Each entry is a source → destination pair where the destination is a path
inside $DOTFILES. Common defaults:
| Source (local) | Destination (in repo) | Copy mode |
|---|---|---|
~/.claude/CLAUDE.md | <repo>/.claude/CLAUDE.md | file |
~/.claude/settings.json | <repo>/.claude/settings.json | file |
~/.claude/skills/ | <repo>/.claude/skills/ | rsync -aL --delete |
~/.cursor/cli-config.json | <repo>/.cursor/cli-config.json | file |
~/.cursor/mcp.json | <repo>/.cursor/mcp.json | file |
~/.cursor/rules/ | <repo>/.cursor/rules/ | rsync -a --delete |
Confirm the destination layout matches how the user's repo is actually
organised (some keep config at the repo root, others under a dotfiles/ or
.config/ subdir). Adjust the destination paths to match before copying.
Exclusions to confirm with the user:
~/.claude/settings.local.json — per-machine accept-list churn, skip.rsync (e.g. --exclude='browser-harness/').git -C "$DOTFILES" status --porcelain <destination paths from the sync list>
If non-empty, show the user and ask: continue, stash, or abort. Default abort.
For each file pair:
if [ -f "$SRC" ] && [ -f "$DST" ]; then
cp -f "$SRC" "$DST"
fi
For each directory pair (use -L to dereference symlinks so symlinked
skills/configs are captured as real files and the repo stays portable):
if [ -d "$SRC" ] && [ -d "$DST" ]; then
rsync -aL --delete --exclude='<local-only entries>' "$SRC" "$DST"
fi
Never copy excluded files (e.g. settings.local.json).
git -C "$DOTFILES" diff --stat <destination paths>
git -C "$DOTFILES" diff <destination paths>
If the diff is empty, report "no changes to sync" and stop.
Draft a Conventional Commits message from what changed. Examples:
chore(claude): update settings.json — add pnpm permissionchore(cursor): sync mcp.json from machinechore(claude,cursor): propagate hook updatesShow the user the proposed message. Ask: approve, edit, or abort.
git -C "$DOTFILES" add <destination paths>
git -C "$DOTFILES" commit -m "<approved message>"
git -C "$DOTFILES" rev-parse --short HEAD
Report the commit SHA. Do NOT git push. Do NOT --amend.
settings.local.json and similar).git push. Never --amend.$DOTFILES.cp — this skill will not
introduce new tracked files on its own.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub mauriciovieira/skills --plugin mauriciovieira-skills45 skills in this plugin
/ansible-kamalUse when bootstrapping a Rails project that needs Ubuntu VPS provisioning (Ansible) and Kamal 2 deploy (kamal-proxy on 80/443) — scaffolds infra/ansible, infra/kamal, config/deploy*.yml, .kamal/secrets* templates from a hardened reference layout, asking IP, DNS, and whether the host runs both staging+production or only a single domain./babysit-with-github-copilotBabysit a PR through GitHub Copilot review until merge. Use when the user asks to "babysit PR/batch-grill-meA relentless interview that asks every frontier question at once, round by round.Other plugins' skills for the same job