cloud-sync
Set up or check claude-mem cloud sync with cmem.ai Pro. Use when the user says "set up cloud sync", "sync my memories", "cmem pro", "cloud backup", "sync status", or wants their memory database backed up or synced to their cmem.ai account.
npx skills add thedotmack/claude-mem --skill cloud-sync --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Cloud Sync (cmem.ai Pro) The installed worker syncs through SyncHub. There is one client, one durable operation log, and no separate sync daemon. This skill checks status or writes the three connection values issued by **cmem.ai → Connect**. **Security rule:** never print the sync token, put it in argv, or log it. Confirm only its length. Preserve every unrelated setting and keep `~/.claude-mem/settings.json` mode `0600`. ## 1. Check status Resolve the worker port and query the always-registered status route: ```bash PORT="${CLAUDE_MEM_WORKER_PORT:-$(node -e "const fs=require('fs'),p=require('path'),os=require('os');const uid=(typeof process.getuid==='function'?process.getuid():77);const fallback=String(37700+(uid%100));try{const s=JSON.parse(fs.readFileSync(p.join(os.homedir(),'.claude-mem','settings.json'),'utf-8'));process.stdout.write(String(s.CLAUDE_MEM_WORKER_PORT||fallback));}catch{process.stdout.write(fallback);}" 2>/dev/null)}" curl -s "http://127.0.0.1:${PORT}/api/sync/status" ``` - `configured: true` and `hub.reachable: true` → the worker completed an authenticated `GET /v1/sync/status` against SyncHub. Report `deviceId`, pending counts, `lastFlushAt`, `lastError`, and
- 1. Check status
- 2. Obtain the connection
- 3. Write installed-client settings
- 4. Restart and verify
- 5. Report
curl -s "http://127.0.0.1:${PORT}/api/sync/status"
node - <<'EOF'
curl -s -X POST "http://127.0.0.1:${PORT}/api/admin/restart"What does the cloud-sync skill do?
Set up or check claude-mem cloud sync with cmem.ai Pro. Use when the user says "set up cloud sync", "sync my memories", "cmem pro", "cloud backup", "sync status", or wants their memory database backed up or synced to their cmem.ai account.
How do I install it?
Run `npx skills add thedotmack/claude-mem --skill cloud-sync --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From thedotmack/claude-mem, a repository with 89,517 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.