# Send Memory Sync CN to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- 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.
## Suggested prompts
### New install

```text
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.
```
### Upgrade existing

```text
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.
```
## Machine-readable fields
```json
{
  "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": {
    "downloadUrl": "/downloads/memory-sync-cn",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=memory-sync-cn",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "README.md",
      "SKILL.md",
      "package.json",
      "scripts/promote-to-memory-md.sh",
      "scripts/sync-daily.sh",
      "scripts/sync-memory.sh"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "memory-sync-cn",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-05T11:29:26.907Z",
      "expiresAt": "2026-05-12T11:29:26.907Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=memory-sync-cn",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=memory-sync-cn",
        "contentDisposition": "attachment; filename=\"memory-sync-cn-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "memory-sync-cn"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "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."
      ]
    }
  },
  "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"
  }
}
```
## Documentation

### 记忆同步系统

自动同步 OpenClaw 记忆系统与 CortexGraph（带遗忘曲线）。

### 架构

MEMORY.md (长期记忆)
     ↕
CortexGraph (智能层)
     ↕
memory/YYYY-MM-DD.md (每日日志)

### 1. 导入 MEMORY.md 到 CortexGraph

# 运行同步
./scripts/sync-memory.sh

### 2. 导入每日日志

# 同步今天的日志
./scripts/sync-daily.sh

# 同步指定日期
./scripts/sync-daily.sh 2026-02-18

### 3. 晋升高价值记忆

# 查看晋升候选
mcporter call cortexgraph.promote_memory auto_detect=true dry_run=true

# 执行晋升
mcporter call cortexgraph.promote_memory auto_detect=true

### 核心操作

# 保存记忆
mcporter call cortexgraph.save_memory content="..." tags='["tag1"]' entities='["Entity1"]'

# 搜索记忆
mcporter call cortexgraph.search_memory query="关键词" top_k=5

# 强化记忆（减缓衰减）
mcporter call cortexgraph.touch_memory memory_id="UUID" boost_strength=true

# 查看知识图谱
mcporter call cortexgraph.read_graph limit=10

### 智能分析

# 分析是否值得记住
mcporter call cortexgraph.analyze_message message="用户说的话"

# 分析是否需要搜索
mcporter call cortexgraph.analyze_for_recall message="用户说的话"

# 自动回忆
mcporter call cortexgraph.auto_recall_process_message message="用户说的话"

### 维护

# 垃圾回收（删除低分记忆）
mcporter call cortexgraph.gc dry_run=true

# 合并相似记忆
mcporter call cortexgraph.consolidate_memories auto_detect=true mode=preview

# 生成嵌入向量
mcporter call cortexgraph.backfill_embeddings dry_run=true

### 遗忘曲线算法

CortexGraph 使用 Ebbinghaus 遗忘曲线：

score = (use_count)^β × e^(-λ × Δt) × strength

β = 0.6（使用频率权重）
λ = ln(2) / half_life（衰减常数，默认 3 天）
strength = 1.0-2.0（重要性）

记忆会自然衰减，除非：

被引用（touch_memory）
被搜索到（auto_recall）
晋升到长期记忆（promote_memory）

### 配置

编辑 ~/.config/cortexgraph/.env：

# 存储路径
CORTEXGRAPH_STORAGE_PATH=~/.config/cortexgraph/jsonl

# 衰减参数
CORTEXGRAPH_DECAY_MODEL=power_law
CORTEXGRAPH_PL_HALFLIFE_DAYS=3.0

# 阈值
CORTEXGRAPH_FORGET_THRESHOLD=0.05
CORTEXGRAPH_PROMOTE_THRESHOLD=0.65

# 长期记忆（Obsidian）
LTM_VAULT_PATH=~/Documents/Obsidian/Vault

### 1. 对话中自动记住

# 分析消息
mcporter call cortexgraph.analyze_message message="用户说..."
# 如果 should_save=true，则保存

### 2. 对话中自动回忆

# 分析消息
mcporter call cortexgraph.analyze_for_recall message="用户问..."
# 如果 should_search=true，则搜索

### 3. 定期维护

# 每周运行
mcporter call cortexgraph.gc
mcporter call cortexgraph.consolidate_memories auto_detect=true mode=apply

### 与 OpenClaw 集成

CortexGraph 已通过 mcporter 配置：

// ~/.openclaw/workspace/config/mcporter.json
{
  "cortexgraph": {
    "command": "/home/ghb/.local/bin/cortexgraph",
    "description": "Temporal memory system for AI with Ebbinghaus forgetting curve"
  }
}

### 最佳实践

重要信息 strength=1.5-2.0（用户偏好、关键决策）
普通信息 strength=1.0（日常对话）
临时信息 strength=0.5（上下文相关）
每周维护：GC + 合并 + 晋升
每月检查：调整衰减参数

版本: 1.0.0
作者: 赚钱小能手
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: guohongbin-git
- Version: 1.0.0
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-05-05T11:29:26.907Z
- Expires at: 2026-05-12T11:29:26.907Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/memory-sync-cn)
- [Send to Agent page](https://openagent3.xyz/skills/memory-sync-cn/agent)
- [JSON manifest](https://openagent3.xyz/skills/memory-sync-cn/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/memory-sync-cn/agent.md)
- [Download page](https://openagent3.xyz/downloads/memory-sync-cn)