{
  "schemaVersion": "1.0",
  "item": {
    "slug": "memory-sync-cn",
    "name": "Memory Sync CN",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/guohongbin-git/memory-sync-cn",
    "canonicalUrl": "https://clawhub.ai/guohongbin-git/memory-sync-cn",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/memory-sync-cn",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=memory-sync-cn",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "README.md",
      "SKILL.md",
      "package.json",
      "scripts/promote-to-memory-md.sh",
      "scripts/sync-daily.sh",
      "scripts/sync-memory.sh"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "Download the package from Yavira.",
        "Extract it into a folder your agent can access.",
        "Paste one of the prompts below and point your agent at the extracted folder."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete."
        },
        {
          "label": "Upgrade existing",
          "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-30T16:55:25.780Z",
      "expiresAt": "2026-05-07T16:55:25.780Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
        "contentDisposition": "attachment; filename=\"network-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/memory-sync-cn"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/memory-sync-cn",
    "agentPageUrl": "https://openagent3.xyz/skills/memory-sync-cn/agent",
    "manifestUrl": "https://openagent3.xyz/skills/memory-sync-cn/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/memory-sync-cn/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "Download the package from Yavira.",
      "Extract it into a folder your agent can access.",
      "Paste one of the prompts below and point your agent at the extracted folder."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete."
      },
      {
        "label": "Upgrade existing",
        "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "记忆同步系统",
        "body": "自动同步 OpenClaw 记忆系统与 CortexGraph（带遗忘曲线）。"
      },
      {
        "title": "架构",
        "body": "MEMORY.md (长期记忆)\n     ↕\nCortexGraph (智能层)\n     ↕\nmemory/YYYY-MM-DD.md (每日日志)"
      },
      {
        "title": "1. 导入 MEMORY.md 到 CortexGraph",
        "body": "# 运行同步\n./scripts/sync-memory.sh"
      },
      {
        "title": "2. 导入每日日志",
        "body": "# 同步今天的日志\n./scripts/sync-daily.sh\n\n# 同步指定日期\n./scripts/sync-daily.sh 2026-02-18"
      },
      {
        "title": "3. 晋升高价值记忆",
        "body": "# 查看晋升候选\nmcporter call cortexgraph.promote_memory auto_detect=true dry_run=true\n\n# 执行晋升\nmcporter call cortexgraph.promote_memory auto_detect=true"
      },
      {
        "title": "核心操作",
        "body": "# 保存记忆\nmcporter call cortexgraph.save_memory content=\"...\" tags='[\"tag1\"]' entities='[\"Entity1\"]'\n\n# 搜索记忆\nmcporter call cortexgraph.search_memory query=\"关键词\" top_k=5\n\n# 强化记忆（减缓衰减）\nmcporter call cortexgraph.touch_memory memory_id=\"UUID\" boost_strength=true\n\n# 查看知识图谱\nmcporter call cortexgraph.read_graph limit=10"
      },
      {
        "title": "智能分析",
        "body": "# 分析是否值得记住\nmcporter call cortexgraph.analyze_message message=\"用户说的话\"\n\n# 分析是否需要搜索\nmcporter call cortexgraph.analyze_for_recall message=\"用户说的话\"\n\n# 自动回忆\nmcporter call cortexgraph.auto_recall_process_message message=\"用户说的话\""
      },
      {
        "title": "维护",
        "body": "# 垃圾回收（删除低分记忆）\nmcporter call cortexgraph.gc dry_run=true\n\n# 合并相似记忆\nmcporter call cortexgraph.consolidate_memories auto_detect=true mode=preview\n\n# 生成嵌入向量\nmcporter call cortexgraph.backfill_embeddings dry_run=true"
      },
      {
        "title": "遗忘曲线算法",
        "body": "CortexGraph 使用 Ebbinghaus 遗忘曲线：\n\nscore = (use_count)^β × e^(-λ × Δt) × strength\n\nβ = 0.6（使用频率权重）\nλ = ln(2) / half_life（衰减常数，默认 3 天）\nstrength = 1.0-2.0（重要性）\n\n记忆会自然衰减，除非：\n\n被引用（touch_memory）\n被搜索到（auto_recall）\n晋升到长期记忆（promote_memory）"
      },
      {
        "title": "配置",
        "body": "编辑 ~/.config/cortexgraph/.env：\n\n# 存储路径\nCORTEXGRAPH_STORAGE_PATH=~/.config/cortexgraph/jsonl\n\n# 衰减参数\nCORTEXGRAPH_DECAY_MODEL=power_law\nCORTEXGRAPH_PL_HALFLIFE_DAYS=3.0\n\n# 阈值\nCORTEXGRAPH_FORGET_THRESHOLD=0.05\nCORTEXGRAPH_PROMOTE_THRESHOLD=0.65\n\n# 长期记忆（Obsidian）\nLTM_VAULT_PATH=~/Documents/Obsidian/Vault"
      },
      {
        "title": "1. 对话中自动记住",
        "body": "# 分析消息\nmcporter call cortexgraph.analyze_message message=\"用户说...\"\n# 如果 should_save=true，则保存"
      },
      {
        "title": "2. 对话中自动回忆",
        "body": "# 分析消息\nmcporter call cortexgraph.analyze_for_recall message=\"用户问...\"\n# 如果 should_search=true，则搜索"
      },
      {
        "title": "3. 定期维护",
        "body": "# 每周运行\nmcporter call cortexgraph.gc\nmcporter call cortexgraph.consolidate_memories auto_detect=true mode=apply"
      },
      {
        "title": "与 OpenClaw 集成",
        "body": "CortexGraph 已通过 mcporter 配置：\n\n// ~/.openclaw/workspace/config/mcporter.json\n{\n  \"cortexgraph\": {\n    \"command\": \"/home/ghb/.local/bin/cortexgraph\",\n    \"description\": \"Temporal memory system for AI with Ebbinghaus forgetting curve\"\n  }\n}"
      },
      {
        "title": "最佳实践",
        "body": "重要信息 strength=1.5-2.0（用户偏好、关键决策）\n普通信息 strength=1.0（日常对话）\n临时信息 strength=0.5（上下文相关）\n每周维护：GC + 合并 + 晋升\n每月检查：调整衰减参数\n\n版本: 1.0.0\n作者: 赚钱小能手"
      }
    ],
    "body": "记忆同步系统\n\n自动同步 OpenClaw 记忆系统与 CortexGraph（带遗忘曲线）。\n\n架构\nMEMORY.md (长期记忆)\n     ↕\nCortexGraph (智能层)\n     ↕\nmemory/YYYY-MM-DD.md (每日日志)\n\n同步脚本\n1. 导入 MEMORY.md 到 CortexGraph\n# 运行同步\n./scripts/sync-memory.sh\n\n2. 导入每日日志\n# 同步今天的日志\n./scripts/sync-daily.sh\n\n# 同步指定日期\n./scripts/sync-daily.sh 2026-02-18\n\n3. 晋升高价值记忆\n# 查看晋升候选\nmcporter call cortexgraph.promote_memory auto_detect=true dry_run=true\n\n# 执行晋升\nmcporter call cortexgraph.promote_memory auto_detect=true\n\nCortexGraph 工具\n核心操作\n# 保存记忆\nmcporter call cortexgraph.save_memory content=\"...\" tags='[\"tag1\"]' entities='[\"Entity1\"]'\n\n# 搜索记忆\nmcporter call cortexgraph.search_memory query=\"关键词\" top_k=5\n\n# 强化记忆（减缓衰减）\nmcporter call cortexgraph.touch_memory memory_id=\"UUID\" boost_strength=true\n\n# 查看知识图谱\nmcporter call cortexgraph.read_graph limit=10\n\n智能分析\n# 分析是否值得记住\nmcporter call cortexgraph.analyze_message message=\"用户说的话\"\n\n# 分析是否需要搜索\nmcporter call cortexgraph.analyze_for_recall message=\"用户说的话\"\n\n# 自动回忆\nmcporter call cortexgraph.auto_recall_process_message message=\"用户说的话\"\n\n维护\n# 垃圾回收（删除低分记忆）\nmcporter call cortexgraph.gc dry_run=true\n\n# 合并相似记忆\nmcporter call cortexgraph.consolidate_memories auto_detect=true mode=preview\n\n# 生成嵌入向量\nmcporter call cortexgraph.backfill_embeddings dry_run=true\n\n遗忘曲线算法\n\nCortexGraph 使用 Ebbinghaus 遗忘曲线：\n\nscore = (use_count)^β × e^(-λ × Δt) × strength\n\nβ = 0.6（使用频率权重）\nλ = ln(2) / half_life（衰减常数，默认 3 天）\nstrength = 1.0-2.0（重要性）\n\n记忆会自然衰减，除非：\n\n被引用（touch_memory）\n被搜索到（auto_recall）\n晋升到长期记忆（promote_memory）\n配置\n\n编辑 ~/.config/cortexgraph/.env：\n\n# 存储路径\nCORTEXGRAPH_STORAGE_PATH=~/.config/cortexgraph/jsonl\n\n# 衰减参数\nCORTEXGRAPH_DECAY_MODEL=power_law\nCORTEXGRAPH_PL_HALFLIFE_DAYS=3.0\n\n# 阈值\nCORTEXGRAPH_FORGET_THRESHOLD=0.05\nCORTEXGRAPH_PROMOTE_THRESHOLD=0.65\n\n# 长期记忆（Obsidian）\nLTM_VAULT_PATH=~/Documents/Obsidian/Vault\n\n使用场景\n1. 对话中自动记住\n# 分析消息\nmcporter call cortexgraph.analyze_message message=\"用户说...\"\n# 如果 should_save=true，则保存\n\n2. 对话中自动回忆\n# 分析消息\nmcporter call cortexgraph.analyze_for_recall message=\"用户问...\"\n# 如果 should_search=true，则搜索\n\n3. 定期维护\n# 每周运行\nmcporter call cortexgraph.gc\nmcporter call cortexgraph.consolidate_memories auto_detect=true mode=apply\n\n与 OpenClaw 集成\n\nCortexGraph 已通过 mcporter 配置：\n\n// ~/.openclaw/workspace/config/mcporter.json\n{\n  \"cortexgraph\": {\n    \"command\": \"/home/ghb/.local/bin/cortexgraph\",\n    \"description\": \"Temporal memory system for AI with Ebbinghaus forgetting curve\"\n  }\n}\n\n最佳实践\n重要信息 strength=1.5-2.0（用户偏好、关键决策）\n普通信息 strength=1.0（日常对话）\n临时信息 strength=0.5（上下文相关）\n每周维护：GC + 合并 + 晋升\n每月检查：调整衰减参数\n\n版本: 1.0.0 作者: 赚钱小能手"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/guohongbin-git/memory-sync-cn",
    "publisherUrl": "https://clawhub.ai/guohongbin-git/memory-sync-cn",
    "owner": "guohongbin-git",
    "version": "1.0.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/memory-sync-cn",
    "downloadUrl": "https://openagent3.xyz/downloads/memory-sync-cn",
    "agentUrl": "https://openagent3.xyz/skills/memory-sync-cn/agent",
    "manifestUrl": "https://openagent3.xyz/skills/memory-sync-cn/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/memory-sync-cn/agent.md"
  }
}