cross-session-memory

配置 OpenClaw 跨会话记忆规则。首次使用或新装 OpenClaw 时运行,自动在 SOUL.md 和 AGENTS.md 中注入记忆共享规则,使群聊和私聊的长期记忆互通。触发词:'配置跨会话记忆'、'设置记忆共享'、'cross-session memory'、'setup memory sharing'。

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "cross-session-memory" with this command: npx skills add richardcoder849/cross-session-memory-config

跨会话记忆配置

将群聊/私聊记忆共享规则注入当前 OpenClaw 实例的配置文件。

何时使用

  • 用户要求配置记忆共享
  • 新装 OpenClaw 后初始化
  • 用户在群聊和私聊间需要记忆互通

执行步骤

1. 检测当前环境

确认 SOUL.md 和 AGENTS.md 的存在与位置:

SOUL.md  → ~/.openclaw/workspace/SOUL.md
AGENTS.md → ~/.openclaw/workspace/AGENTS.md

2. 运行配置脚本

Windows (PowerShell):

& "path/to/scripts/setup.ps1"

Linux/macOS (Bash):

bash path/to/scripts/setup.sh

脚本会自动:

  • 检测 SOUL.md / AGENTS.md 是否已包含跨会话记忆规则
  • 如果没有则注入,有则跳过(幂等,可重复运行)
  • 不破坏原有内容

3. 确认结果

读取 SOUL.md 的「跨会话记忆规则」章节和 AGENTS.md 的「🔗 跨会话记忆」章节,确认注入成功。

规则内容

注入的规则包含:

  • 群聊和私聊是独立 session,短期记忆不共享
  • memory/*.mdMEMORY.md 是全局共享的
  • 群聊里学到的重要信息必须写到 memory/YYYY-MM-DD.md
  • 私聊时先查 memory_search
  • 写文件才是真正的记忆,不要依赖"心里记着"

注意事项

  • 脚本是幂等的,可以多次运行
  • 原始内容不会被覆盖,只追加缺失的规则
  • 建议运行后手动检查一次确认格式正确

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Automation

Fiverr Gig Automation

Automates Fiverr gig lifecycle — creates gigs, sends buyer offers/proposals, manages inbox, and collects reviews. No Fiverr API needed — uses browser automat...

Registry SourceRecently Updated
Automation

Buymeacoffee Autobot

Automates Buy Me a Coffee / Ko-fi page — generates content, posts updates, thanks supporters, and converts followers into paying supporters automatically. Al...

Registry SourceRecently Updated
Automation

m365-admin

> Microsoft 365 administrator specializing in Exchange Online, Teams, SharePoint, licensing, Graph API automation, and secure identity operations.

Registry SourceRecently Updated
Automation

Love Companion - AI恋人陪伴技能包

全AI Agent通用恋人主题陪伴技能。当用户提及恋人、男/女朋友、情感陪伴、人设配置、角色扮演、情感对话,或使用本Skill的标准化触发指令时激活。提供多轮情感对话、用户自定义人设配置、长时记忆存储、情绪识别与反馈、预设人设模板套用、配置导入导出等完整恋人伴侣交互能力。即插即用,兼容所有主流AI Agent框架。

Registry SourceRecently Updated