{
  "schemaVersion": "1.0",
  "item": {
    "slug": "monica-three-tier-memory",
    "name": "Three Tier Memory",
    "source": "tencent",
    "type": "skill",
    "category": "AI 智能",
    "sourceUrl": "https://clawhub.ai/forvendettaw/monica-three-tier-memory",
    "canonicalUrl": "https://clawhub.ai/forvendettaw/monica-three-tier-memory",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/monica-three-tier-memory",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=monica-three-tier-memory",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md",
      "references/references.md",
      "scripts/memory_manager.py"
    ],
    "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. 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. 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/monica-three-tier-memory"
    },
    "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/monica-three-tier-memory",
    "agentPageUrl": "https://openagent3.xyz/skills/monica-three-tier-memory/agent",
    "manifestUrl": "https://openagent3.xyz/skills/monica-three-tier-memory/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/monica-three-tier-memory/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. 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. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "Memory Manager Skill",
        "body": "管理 AI 代理的三级记忆系统：短期（滑动窗口）、中期（自动摘要）、长期（向量检索）。"
      },
      {
        "title": "快速开始",
        "body": "# 初始化记忆系统\npython3 scripts/memory_manager.py init\n\n# 添加短期记忆\npython3 scripts/memory_manager.py add --type short --content \"用户喜欢黑色\"\n\n# 查询记忆\npython3 scripts/memory_manager.py search \"用户的偏好\""
      },
      {
        "title": "架构概览",
        "body": "层级存储位置触发条件用途短期memory/sliding-window.json实时保持当前对话连贯中期memory/summaries/Token 阈值压缩历史，保留大意长期memory/vector-store/语义检索永久记忆，RAG"
      },
      {
        "title": "1. 短期记忆：滑动窗口",
        "body": "配置：config/window_size（默认 10 条）\n逻辑：FIFO 队列，超出则丢弃最旧消息\n文件：memory/sliding-window.json"
      },
      {
        "title": "2. 中期记忆：自动摘要",
        "body": "触发：当前 token > config/summary_threshold（默认 4000）\n模型：使用廉价模型（如 GPT-3.5-Haiku）\n输出：memory/summaries/YYYY-MM-DD.json"
      },
      {
        "title": "3. 长期记忆：向量检索",
        "body": "后端：ChromaDB（本地向量库）\n存：对话结束/摘要生成后自动向量化存储\n取：每次查询前先检索相关记忆"
      },
      {
        "title": "配置文件",
        "body": "创建 memory/config.yaml：\n\nmemory:\n  short_term:\n    enabled: true\n    window_size: 10\n    max_tokens: 2000\n\n  medium_term:\n    enabled: true\n    summary_threshold: 4000\n    summary_model: \"glm-4-flash\"  # 或 gpt-3.5-turbo\n\n  long_term:\n    enabled: true\n    backend: \"chromadb\"\n    top_k: 3\n    min_relevance: 0.7"
      },
      {
        "title": "使用场景",
        "body": "新对话开始：先 search 长期记忆，注入相关上下文\n对话中：自动管理短期/中期记忆，超阈值自动摘要\n对话结束：将重要信息存入长期记忆"
      },
      {
        "title": "详细用法",
        "body": "See REFERENCES.md for complete command reference."
      }
    ],
    "body": "Memory Manager Skill\n\n管理 AI 代理的三级记忆系统：短期（滑动窗口）、中期（自动摘要）、长期（向量检索）。\n\n快速开始\n# 初始化记忆系统\npython3 scripts/memory_manager.py init\n\n# 添加短期记忆\npython3 scripts/memory_manager.py add --type short --content \"用户喜欢黑色\"\n\n# 查询记忆\npython3 scripts/memory_manager.py search \"用户的偏好\"\n\n架构概览\n层级\t存储位置\t触发条件\t用途\n短期\tmemory/sliding-window.json\t实时\t保持当前对话连贯\n中期\tmemory/summaries/\tToken 阈值\t压缩历史，保留大意\n长期\tmemory/vector-store/\t语义检索\t永久记忆，RAG\n核心功能\n1. 短期记忆：滑动窗口\n配置：config/window_size（默认 10 条）\n逻辑：FIFO 队列，超出则丢弃最旧消息\n文件：memory/sliding-window.json\n2. 中期记忆：自动摘要\n触发：当前 token > config/summary_threshold（默认 4000）\n模型：使用廉价模型（如 GPT-3.5-Haiku）\n输出：memory/summaries/YYYY-MM-DD.json\n3. 长期记忆：向量检索\n后端：ChromaDB（本地向量库）\n存：对话结束/摘要生成后自动向量化存储\n取：每次查询前先检索相关记忆\n配置文件\n\n创建 memory/config.yaml：\n\nmemory:\n  short_term:\n    enabled: true\n    window_size: 10\n    max_tokens: 2000\n\n  medium_term:\n    enabled: true\n    summary_threshold: 4000\n    summary_model: \"glm-4-flash\"  # 或 gpt-3.5-turbo\n\n  long_term:\n    enabled: true\n    backend: \"chromadb\"\n    top_k: 3\n    min_relevance: 0.7\n\n使用场景\n新对话开始：先 search 长期记忆，注入相关上下文\n对话中：自动管理短期/中期记忆，超阈值自动摘要\n对话结束：将重要信息存入长期记忆\n详细用法\n\nSee REFERENCES.md for complete command reference."
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/forvendettaw/monica-three-tier-memory",
    "publisherUrl": "https://clawhub.ai/forvendettaw/monica-three-tier-memory",
    "owner": "forvendettaw",
    "version": "1.0.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/monica-three-tier-memory",
    "downloadUrl": "https://openagent3.xyz/downloads/monica-three-tier-memory",
    "agentUrl": "https://openagent3.xyz/skills/monica-three-tier-memory/agent",
    "manifestUrl": "https://openagent3.xyz/skills/monica-three-tier-memory/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/monica-three-tier-memory/agent.md"
  }
}