{
  "schemaVersion": "1.0",
  "item": {
    "slug": "brain-cms",
    "name": "Brain CMS",
    "source": "tencent",
    "type": "skill",
    "category": "AI 智能",
    "sourceUrl": "https://clawhub.ai/harrey401/brain-cms",
    "canonicalUrl": "https://clawhub.ai/harrey401/brain-cms",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/brain-cms",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=brain-cms",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md",
      "brain_scripts/index_memory.py",
      "brain_scripts/nrem.py",
      "brain_scripts/query_memory.py",
      "brain_scripts/rem.py",
      "install.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-23T16:43:11.935Z",
      "expiresAt": "2026-04-30T16:43:11.935Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=4claw-imageboard",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=4claw-imageboard",
        "contentDisposition": "attachment; filename=\"4claw-imageboard-1.0.1.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/brain-cms"
    },
    "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/brain-cms",
    "agentPageUrl": "https://openagent3.xyz/skills/brain-cms/agent",
    "manifestUrl": "https://openagent3.xyz/skills/brain-cms/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/brain-cms/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": "Brain CMS 🧠",
        "body": "A neuroscience-inspired memory architecture for OpenClaw agents.\nReplaces flat file injection with sparse, semantic, frequency-gated memory loading."
      },
      {
        "title": "What This Installs",
        "body": "memory/\n├── INDEX.md          ← Hippocampus: topic router + cross-links\n├── ANCHORS.md        ← Permanent high-significance event store\n└── schemas/          ← Domain-specific semantic schemas (you create these)\n\nmemory_brain/\n├── index_memory.py   ← Embeds schemas into LanceDB vector store\n├── query_memory.py   ← Semantic similarity search\n├── nrem.py           ← NREM sleep cycle (compression + anchor promotion)\n├── rem.py            ← REM sleep cycle (LLM consolidation via Ollama)\n└── vectorstore/      ← LanceDB database (auto-created)"
      },
      {
        "title": "Setup (one-time)",
        "body": "# 1. Run the installer\npython3 ~/.openclaw/workspace/skills/brain-cms/install.py\n\n# 2. Index your schemas\ncd ~/.openclaw/workspace/memory_brain\n.venv/bin/python3 index_memory.py\n\n# 3. Test retrieval\n.venv/bin/python3 query_memory.py \"your topic here\" --sources-only"
      },
      {
        "title": "How It Works",
        "body": "Boot sequence: Load MEMORY.md (lean core) + today's daily log. Nothing else.\n\nWhen a topic appears: Read memory/INDEX.md → load only the relevant schemas (spreading activation). Check memory/ANCHORS.md for high-significance events.\n\nFor ambiguous topics: Run semantic search:\n\nmemory_brain/.venv/bin/python3 memory_brain/query_memory.py \"message text\" --sources-only\n\nAuto-schema creation: When a new significant project or domain appears:\n\nCreate memory/<topic>.md\nAdd to INDEX.md with triggers + priority + cross-links\nRe-index: memory_brain/.venv/bin/python3 memory_brain/index_memory.py\n\nSleep cycles:\n\n# NREM — run on shutdown (~30s, no LLM)\ncd ~/.openclaw/workspace/memory_brain && .venv/bin/python3 nrem.py\n\n# REM — run weekly (2-5 min, uses local llama3.2:3b, free)\ncd ~/.openclaw/workspace/memory_brain && .venv/bin/python3 rem.py"
      },
      {
        "title": "Memory Layers (CMS)",
        "body": "LayerFilesWhen loadedPurposeWorkingMEMORY.md + today logEvery sessionCore contextEpisodicmemory/YYYY-MM-DD.mdSession bootRecent eventsSemanticmemory/*.md schemasOn triggerDomain knowledgeAnchorsmemory/ANCHORS.mdOn CRITICAL topicsPermanent ground truthVectormemory_brain/vectorstore/On demandSemantic search"
      },
      {
        "title": "Tagging Anchors",
        "body": "In any daily log, tag high-significance events:\n\n[ANCHOR] Major demo success — full pipeline working end-to-end\n\nNREM auto-promotes these to ANCHORS.md on next shutdown."
      },
      {
        "title": "Token Savings",
        "body": "Typical MEMORY.md: 150-300 lines injected every session.\nWith Brain CMS: ~50-line core + schemas loaded only when relevant.\nEstimated savings: 40-60% reduction in context tokens per session."
      },
      {
        "title": "Requirements",
        "body": "Python 3.10+\nOllama (for embeddings + REM consolidation)\n500MB+ storage for vector store and models\nlancedb, numpy, pyarrow, requests (auto-installed)"
      }
    ],
    "body": "Brain CMS 🧠\n\nA neuroscience-inspired memory architecture for OpenClaw agents. Replaces flat file injection with sparse, semantic, frequency-gated memory loading.\n\nWhat This Installs\nmemory/\n├── INDEX.md          ← Hippocampus: topic router + cross-links\n├── ANCHORS.md        ← Permanent high-significance event store\n└── schemas/          ← Domain-specific semantic schemas (you create these)\n\nmemory_brain/\n├── index_memory.py   ← Embeds schemas into LanceDB vector store\n├── query_memory.py   ← Semantic similarity search\n├── nrem.py           ← NREM sleep cycle (compression + anchor promotion)\n├── rem.py            ← REM sleep cycle (LLM consolidation via Ollama)\n└── vectorstore/      ← LanceDB database (auto-created)\n\nSetup (one-time)\n# 1. Run the installer\npython3 ~/.openclaw/workspace/skills/brain-cms/install.py\n\n# 2. Index your schemas\ncd ~/.openclaw/workspace/memory_brain\n.venv/bin/python3 index_memory.py\n\n# 3. Test retrieval\n.venv/bin/python3 query_memory.py \"your topic here\" --sources-only\n\nHow It Works\n\nBoot sequence: Load MEMORY.md (lean core) + today's daily log. Nothing else.\n\nWhen a topic appears: Read memory/INDEX.md → load only the relevant schemas (spreading activation). Check memory/ANCHORS.md for high-significance events.\n\nFor ambiguous topics: Run semantic search:\n\nmemory_brain/.venv/bin/python3 memory_brain/query_memory.py \"message text\" --sources-only\n\n\nAuto-schema creation: When a new significant project or domain appears:\n\nCreate memory/<topic>.md\nAdd to INDEX.md with triggers + priority + cross-links\nRe-index: memory_brain/.venv/bin/python3 memory_brain/index_memory.py\n\nSleep cycles:\n\n# NREM — run on shutdown (~30s, no LLM)\ncd ~/.openclaw/workspace/memory_brain && .venv/bin/python3 nrem.py\n\n# REM — run weekly (2-5 min, uses local llama3.2:3b, free)\ncd ~/.openclaw/workspace/memory_brain && .venv/bin/python3 rem.py\n\nMemory Layers (CMS)\nLayer\tFiles\tWhen loaded\tPurpose\nWorking\tMEMORY.md + today log\tEvery session\tCore context\nEpisodic\tmemory/YYYY-MM-DD.md\tSession boot\tRecent events\nSemantic\tmemory/*.md schemas\tOn trigger\tDomain knowledge\nAnchors\tmemory/ANCHORS.md\tOn CRITICAL topics\tPermanent ground truth\nVector\tmemory_brain/vectorstore/\tOn demand\tSemantic search\nTagging Anchors\n\nIn any daily log, tag high-significance events:\n\n[ANCHOR] Major demo success — full pipeline working end-to-end\n\n\nNREM auto-promotes these to ANCHORS.md on next shutdown.\n\nToken Savings\n\nTypical MEMORY.md: 150-300 lines injected every session. With Brain CMS: ~50-line core + schemas loaded only when relevant. Estimated savings: 40-60% reduction in context tokens per session.\n\nRequirements\nPython 3.10+\nOllama (for embeddings + REM consolidation)\n500MB+ storage for vector store and models\nlancedb, numpy, pyarrow, requests (auto-installed)"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/harrey401/brain-cms",
    "publisherUrl": "https://clawhub.ai/harrey401/brain-cms",
    "owner": "harrey401",
    "version": "1.0.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/brain-cms",
    "downloadUrl": "https://openagent3.xyz/downloads/brain-cms",
    "agentUrl": "https://openagent3.xyz/skills/brain-cms/agent",
    "manifestUrl": "https://openagent3.xyz/skills/brain-cms/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/brain-cms/agent.md"
  }
}