cloud-sync
できること
このツールは、メモリのクラウド同期(cmem.ai Pro)の設定と状態確認を助けます。メモやテキストが保存され、別の場所からもアクセスできるようにします。
使う場面
- ✓メモリをバックアップしたいとき。
- ✓クラウド同期が正しく動作しているか確認したいとき。
- ✓同期サービスをインストールまたは更新した後。
スキルのリンク
https://github.com/thedotmack/claude-mem/blob/main/plugin/skills/cloud-sync/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“クラウド同期の状態を確認してください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
内部では、SyncHubというサービスと通信します。接続が有効か、データが正しく送信されているかを確認します。パスワードや秘密のトークンを尋ねられることは一切ありません。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
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 and points the user to the installer's cmem.ai sign-in, which writes the connection.
Security rule: never ask the user to paste the sync token into this chat,
and never put it in a command you write, print it, put it in argv, or log it. A
secret pasted into a chat lands in the transcript, which claude-mem itself can
capture and sync. The installer writes the token to
~/.claude-mem/settings.json (mode 0600) without it ever passing through
this conversation.
1. Check status
Resolve the worker port and query the always-registered status route:
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: trueandhub.reachable: true→ the worker completed an authenticatedGET /v1/sync/statusagainst SyncHub. ReportdeviceId, pending counts,lastFlushAt,lastError, and the Hub head/checkpoint; stop unless the user asked to replace the connection.configured: trueandhub.reachable: false→ reporthub.errorand say the SyncHub connection is not verified. A zero pending count orlastError: nullis not success because an empty queue performs no push.configured: false→ continue.- Connection refused, 404, or 503 immediately after restart → retry every three seconds for about 30 seconds before diagnosing the worker.
2. Connect through the installer
Ask the user to run this in their own terminal:
npx claude-mem install
and to choose CMEM Pro when the installer asks. The installer signs them in
through the browser (they approve a device code), then writes the sync token,
user id and SyncHub URL into ~/.claude-mem/settings.json itself and restarts
the worker. Nothing secret is typed into this chat.
If the user cannot run the installer interactively (CI, a remote box), point them to the headless setup guide, https://docs.claude-mem.ai/cmem-pro-headless, and let them apply its manual recipe in their own terminal or editor. Do not collect the values yourself.
The worker mints and persists a device id on first start and defaults the device name to the hostname.
3. Verify
Once the installer finishes, poll the status route every five seconds for up to 30 seconds. If the worker was not restarted, restart it first:
curl -s -X POST "http://127.0.0.1:${PORT}/api/admin/restart"
Success means configured: true, hub.reachable: true, and lastError: null.
The local route always makes an authenticated, read-only SyncHub status probe,
even when every pending count is zero; it never uses a legacy cmem.ai Pro status
route and never appends or advances sync state. Pending counts describe only
writes made after the SyncHub launch baseline; setup does not migrate a
pre-launch local corpus.
If hub.reachable is false, report hub.error. If lastError is non-null,
report it too, and suggest running npx claude-mem install again to refresh the
connection. Never include the token.
4. Report
Report device id, pending counts, last successful flush, Hub reachability and checkpoint, and any Hub/flush error. End with this privacy note:
Cloud sync uploads your observation narratives and full prompt text to your cmem.ai account.
よくある質問
SyncHubとは何ですか?
ローカルのメモリとcmem.ai Proのクラウドアカウントの間の通信を管理するサービスです。
同期トークンはどこに保存されていますか?
トークンはお使いのコンピュータに安全に保存され、チャットに共有されることはありません。保存場所は`~/.claude-mem/settings.json`ファイルです。
同期に失敗したらどうなりますか?
ツールが具体的なエラーを報告します。一般的には、`npx claude-mem install`コマンドを再度実行して接続を再確立することをおすすめします。
詳細
作者による元の説明
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.
repo: thedotmack/claude-mem
人気
- GitHubのスター
- 101k
- ランキング
- #1269
- ライセンス
- Apache-2.0
- 更新日
- 2026/10/15
コメント
- …
このリポジトリの他のスキル
Agent Cost Report
101kエージェントに、自身の作業について詳細なコストレポートを生成させます。トークンやサービスにどれだけ費用がかかったかを確認できます。
claude-mem-install
101kエージェントが、さまざまな環境でClaude-Memをセットアップするのを支援します。ローカルのワーカーとリモートのワーカーを選択でき、オブザベーションの設定も行えます。
mem-search
101kエージェントが過去のメモリを検索するのを支援します。以前の解決策や古いセッションでの作業を思い出すのに役立ちます。
host-observer
101kエージェントが、Claude-Memのオブザーバーのタスクに応答するのを支援します。返答は'skip_summary'か、XML形式の完全なオブザベーションのいずれかのみです。
似ているスキル
add-model-provider
394k安全なセットアップコマンドで新しいAIモデルプロバイダーをOpenClawに接続し、APIキーを平文で残さず、ライブテストを行うようエージェントを支援します。
acp-router
394kClaude CodeやCursorなどのコーディングアシスタントに、OpenClaw経由でタスクを渡し、その作業がそのツール内で行われるようエージェントを支援します。
browser-automation
394kログイン、タブ、応答しなくなったページからの復旧を含め、Webページを段階的に操作するようエージェントに教えます。