Install
openclaw skills install @zhaoxinghua09-cell/session-continuity-protocol跨工作区 / 跨会话记忆连续性协议(潘布达首发)。触发场景:新会话开局、用户说「续上上下文 / 你还记得吗 / 你失忆了」、或要做任何连续性敏感任务(公众号发稿、品牌资产、发布阻塞、密钥投递、项目状态)之前。加载后严格跑「开局四步」把已固化事实回灌,避免在已定稿事项上重复问用户、避免失忆。真源 = 文件层(_ACTIVE_PROJECTS.md + 账号 MEMORY.md)优先于 localmem 语义层兜底。 适用场景:当需要跨会话连续性协议(开局四步)能力时使用本技能;触发词:continuity、memory、localmem、cross-session、开局四步。
openclaw skills install @zhaoxinghua09-cell/session-continuity-protocol凡自治之物 · LGD 治理学 · 创造术家族 | 评测协议:skill-quality-gate
Not for: anything outside the protocol scope (see body / description).
Invocation and parameters are detailed in section "I. Opening four steps (run every new session; order mandatory)" below.
Step 1 · read the global master index Step 2 · read the account-level source MEMORY Step 3 · localmem semantic recall (fallback) Step 4 · scan project-level MEMORY from the last 14 days
Author: Buda Pan (content-publishing ops lead) · finalized 2026-09-04 · background: the user repeatedly pointed out "amnesia" — the root cause was not a missing plan, but that known facts were not re-loaded via protocol at session start.
The baseline finding on GitHub about agent memory (memory-systems skill + LoCoMo benchmark): file-level memory reads beat dedicated memory tools — basic file operations already reach 74%, above the 68.5% of dedicated tools like Mem0. So the "local-first minimal stack" already in place is right: no migration, no cloud.
localmem-mcp (v0.1.1 installed): SQLite+FTS5+local fastembed, hybrid cosine+keyword retrieval, zero LLM / zero API.LOCALMEM_DB_PATH=<your-workspace-root>/_localmem_memories.db — one db shared across workspaces / accounts.<your-workspace-root>/_ACTIVE_PROJECTS.md.<memory-root>/MEMORY.md.The only gap: facts were not re-loaded at session start. Amnesia = the continuity owner failing to run the protocol. This skill turns that protocol into a callable, reusable action.
Run all four before any substantive task. < 1 minute; saves repeated user questions.
Step 1 · read the global master index
Read <your-workspace-root>/_ACTIVE_PROJECTS.md
Get: active project list, RACI, per-project block status, latest handoff points — the overview of "what is on my plate now".
Step 2 · read account-level source MEMORY
Read <memory-root>/MEMORY.md
Get finalized hard facts that must never be re-asked. Key sections:
Step 3 · localmem semantic recall (fallback)
Use localmem MCP tools: recall_memory (15 cross-workspace seeds loaded) or search_memory.
<your-workspace-root>/_localmem_models (must be kept / backed up; search works offline; the model download source now returns 401 and cannot be re-pulled).Step 4 · scan project-level MEMORY from the last 14 days
Glob <your-workspace-root>/*/memory/MEMORY.md → read the most recently modified
Get: each workspace's own project iron rules (e.g. "base64 QR inlining", "remove old platform name from CTA", "VI iron rules" in the 2026-09-03 workspace).
_ACTIVE_PROJECTS.md + account MEMORY.md + project MEMORY.md. Conflicts resolve to the file layer.| id | Content | Example hit query |
|---|---|---|
| 4 | SynomosAI brand name + red VI palette + template path | "what brand color for the official account" |
| 6 | The 4 big push-draft-box blocks | "where is the push draft stuck" |
| 9 | Publishing-gate iron rule (no appeal when platform flags suspicious) | "platform flags content suspicious before publish, what to do" |
| 10 | Key-delivery iron rule (DPAPI / key_drop) | "how to deliver keys safely" (limit≈8) |
| 13 | Pointers to 6 in-flight projects | "which projects are active now" |
| 14 | WeChat X5 preview pitfall + LAN channel | "images don't show in WeChat" |
| 15 | Content-publishing ops SOP | "how does the publish flow run" |
Note: id10 scores low semantically; Step 2 file-layer loading is the double insurance — always run Step 2 first in a new session.
<your-workspace-root>/_localmem_models embedding cache must be kept and backed up — verification showed HuggingFace re-pull returns 401 (cas-server unreachable). Already-written vectors remain searchable; but adding new seeds in the future depends on this local cache — delete it and new memories cannot be written (old ones still searchable)._ACTIVE_PROJECTS.md / MEMORY.md just because localmem exists.When a new finalized hard fact appears (user decided it; it will not change):
store_memory (tags incl. SynomosAI / publish / continuity).recall_memory hits it before considering it done.不用于:不适用(详见正文/描述)。
调用方式与参数详见正文「## 一、开局四步(每次新会话必跑,顺序不可省)」节。
Step 1 · 读全局总索引 Step 2 · 读账号级真源 MEMORY Step 3 · localmem 语义召回(兜底) Step 4 · 扫近 14 天项目级 MEMORY
作者:潘布达(内容发布运营团主理人)|定稿:2026-09-04|背景:用户多次指出「失忆」——根因不是方案缺失,而是开局没按协议回灌已知事实。
GitHub 上 agent 记忆的基准结论(memory-systems 技能 + LoCoMo 基准):文件级记忆读取比专用记忆工具更可靠——基础文件操作就能拿 74%,高于 Mem0 专用工具 68.5%。所以本机已搭的「本地优先最小栈」是对的,不用换方案、不用上云:
localmem-mcp(已装 v0.1.1):SQLite+FTS5+本地 fastembed,余弦+关键词混合检索,零 LLM/零 APILOCALMEM_DB_PATH=<你的工作区根>/_localmem_memories.db,跨工作区/跨账号共享同一 db<你的工作区根>/_ACTIVE_PROJECTS.md<memory-root>/MEMORY.md唯一缺口:开局没按协议回灌。失忆 = 潘布达(连续性 Owner)没执行协议。本技能就是把这个协议变成可调用、可复用的动作。
动手做任何实质性任务之前先跑完这四步。耗时 < 1 分钟,省下反复问用户的成本。
Read <你的工作区根>/_ACTIVE_PROJECTS.md # Windows 例:~/.skills/<skill-dir><你的工作区文件夹>/_ACTIVE_PROJECTS.md
拿到:当前活跃项目清单、RACI、各项目阻塞状态、最近交接点。这是「现在手头有哪些事」的总览。
Read <memory-root>/MEMORY.md
拿到:已固化、永不再问用户 的终态硬事实。关键段:
用 localmem MCP 工具:recall_memory(已灌 15 条跨工作区种子)或 search_memory。
<你的工作区根>/_localmem_models(必须保留/备份,断网也可搜;模型下载源已 401 不可再拉)Glob <你的工作区根>/*/memory/MEMORY.md → 读最近修改的
拿到:各工作区自己沉淀的项目铁律(如本次 2026-09-03 工作区的「三码 base64 内联」「CTA 去旧平台名」「VI 铁律」)。
_ACTIVE_PROJECTS.md + 账号 MEMORY.md + 项目 MEMORY.md。冲突以文件层为准。| id | 内容 | 命中查询示例 |
|---|---|---|
| 4 | SynomosAI 品牌名 + 红 VI 色系 + 模版路径 | 「公众号品牌色用什么」 |
| 6 | 推送草稿箱 4 大阻塞 | 「推草稿箱卡在哪」 |
| 9 | 发布闸门铁律(平台判可疑不申诉) | 「发布前平台判可疑怎么办」 |
| 10 | 密钥投递铁律(DPAPI/key_drop) | 「密钥怎么投安全」(需 limit≈8) |
| 13 | 进行中 6 项目指针 | 「现在哪些项目在做」 |
| 14 | 微信 X5 预览坑 + LAN 通道 | 「微信里图不显示」 |
| 15 | 内容发布运营团 SOP | 「发布流程怎么走」 |
注:id10 语义分偏低,靠 Step 2 文件层加载双保险;新会话仍先跑 Step 2。
<你的工作区根>/_localmem_models 嵌入模型缓存必须保留并备份——验证时从 HuggingFace 重拉返回 401(cas-server 不可达)。已写入向量永久可搜;但未来想再加新种子必须靠这个本地缓存,删了就写不进新记忆(旧记忆照常能搜)。_ACTIVE_PROJECTS.md / MEMORY.md。发现新终态硬事实(用户拍板、不再变)时:
store_memory 写一条语义种子(tags 含 SynomosAI / publish / continuity 等)recall_memory 能命中后再算完成