com um clique
sync-with-claude
Sync files from ~/.claude to claude-code-config repository
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Menu
Sync files from ~/.claude to claude-code-config repository
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Baseado na classificação ocupacional SOC
Expert guidance for creating, building, and using Claude Code agents and the Task tool. Use when working with agents, setting up agent configurations, understanding how agents work, or using the Task tool to launch specialized agents.
Complete SaaS ideation to implementation workflow - from idea discovery to task breakdown
Run structured APEX implementation (Analyze, Plan, Execute, eXamine) with parallel agents, tests, adversarial review, and proof-backed verification. Use for features, bug fixes, or code changes that need disciplined execution and real-flow evidence.
Deep iterative research using progressive flow psychology (diverge-analyze-converge-execute) with parallel agents, skeptical analysis, and multi-perspective synthesis. Use for thorough topic exploration, decision-making research, or when you need battle-tested conclusions.
Automated CI/CD pipeline fixer - watches CI, fixes errors locally, commits, and loops until green. Use when CI is failing and you want to automatically fix and verify changes.
Improve unclear UX copy, error messages, microcopy, labels, and instructions. Makes interfaces easier to understand and use.
| name | sync-with-claude |
| description | Sync files from ~/.claude to claude-code-config repository |
| allowed-tools | Bash(cp :*), Bash(diff :*), Bash(ls :*), Bash(cat :*), Bash(mkdir :*), Bash(git status*), Bash(find :*), Bash(date :*), Bash(rsync :*), Bash(rm :*), Bash(bash :*), Bash(chmod :*), Bash(sed :*), Read, Write, Edit |
Sync configuration files from ~/.claude to claude-code-config folder in this repository.
~/.claude$CWD/claude-code-configAlways exclude:
node_modules/ - Dependencies (reinstall locally)data/ - Runtime data*.db - Database files*.log - Log filesbun.lockb - Lock files.DS_Store - macOS filesmelvyn/ - Personal commands (NEVER sync this folder)Additional exclusions: See references/do-not-copy.md for personal/private paths that must NEVER be copied.
Protected paths: See references/do-not-change.md for paths in the target that must NEVER be updated or deleted.
Read both exclusion lists before syncing:
Run rsync with --dry-run to list ALL changes without applying them:
# Preview commands sync (preserve setup-tmux in target)
rsync -avn --delete --exclude 'melvyn' --exclude 'prompts/setup-tmux.md' ~/.claude/commands/ $CWD/claude-code-config/commands/
# Preview skills sync
rsync -avn --delete \
--exclude 'melvyn-dub-cli' \
--exclude 'melvyn-softcompact' \
--exclude 'variations-generator' \
--exclude '__disabled__' \
~/.claude/skills/ $CWD/claude-code-config/skills/
# Preview agents sync
rsync -avn --delete ~/.claude/agents/ $CWD/claude-code-config/agents/
# Preview scripts sync (preserve .claude/ in target)
rsync -avn --delete \
--exclude 'node_modules' \
--exclude 'data' \
--exclude '*.db' \
--exclude '*.log' \
--exclude 'bun.lockb' \
--exclude '.DS_Store' \
--exclude '.claude' \
~/.claude/scripts/ $CWD/claude-code-config/scripts/
# Preview settings.json diff
diff ~/.claude/settings.json $CWD/claude-code-config/settings.json || true
Present a clear summary of what will be:
ASK USER FOR CONFIRMATION before proceeding. Do NOT sync without explicit approval.
# Sync commands (exclude melvyn/ folder, preserve setup-tmux in target)
rsync -av --delete --exclude 'melvyn' --exclude 'prompts/setup-tmux.md' ~/.claude/commands/ $CWD/claude-code-config/commands/
# Sync skills (exclude paths from do-not-copy.md)
rsync -av --delete \
--exclude 'melvyn-dub-cli' \
--exclude 'melvyn-softcompact' \
~/.claude/skills/ $CWD/claude-code-config/skills/
# Sync agents
rsync -av --delete ~/.claude/agents/ $CWD/claude-code-config/agents/
# Sync scripts (with exclusions, preserve .claude/ in target)
rsync -av --delete \
--exclude 'node_modules' \
--exclude 'data' \
--exclude '*.db' \
--exclude '*.log' \
--exclude 'bun.lockb' \
--exclude '.DS_Store' \
--exclude '.claude' \
~/.claude/scripts/ $CWD/claude-code-config/scripts/
# Sync settings.json
cp ~/.claude/settings.json $CWD/claude-code-config/settings.json
ALWAYS run the after-sync script to replace hardcoded absolute paths (e.g. /Users/melvynx/.claude/) with the portable {CLAUDE_PATH}/ placeholder:
bash $CWD/.claude/skills/sync-with-claude/scripts/after-sync.sh $CWD/claude-code-config/settings.json
git statusUser: Sync now #$ARGUMENTS