$npx -y skills add toroleapinc/claude-brain --skill brain-syncManually sync brain with remote. Exports local state, pushes to remote, pulls updates from other machines, merges, and applies.
| 1 | The user wants to manually trigger a full brain sync cycle. |
| 2 | |
| 3 | ## Steps |
| 4 | |
| 5 | 1. Check that brain is initialized: |
| 6 | ```bash |
| 7 | if [ ! -f ~/.claude/brain-config.json ]; then |
| 8 | echo "Brain not initialized. Run /brain-init first." |
| 9 | exit 1 |
| 10 | fi |
| 11 | ``` |
| 12 | |
| 13 | 2. Push local changes: |
| 14 | ```bash |
| 15 | bash "${CLAUDE_PLUGIN_ROOT}/scripts/push.sh" |
| 16 | ``` |
| 17 | |
| 18 | 3. Pull and merge remote changes: |
| 19 | ```bash |
| 20 | bash "${CLAUDE_PLUGIN_ROOT}/scripts/pull.sh" --auto-merge |
| 21 | ``` |
| 22 | |
| 23 | 4. Show the sync result summary. Check: |
| 24 | - What changed (new skills, merged memory, updated settings) |
| 25 | - Any conflicts that need resolution |
| 26 | - Updated sync timestamps |
| 27 | |
| 28 | 5. If there are conflicts, suggest: "Run /brain-conflicts to review and resolve." |