← Back to Skills Marketplace
richardcoder849

Cross-Session Memory Config

by Richardcoder849 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
73
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install cross-session-memory-config
Description
配置 OpenClaw 跨会话记忆规则。首次使用或新装 OpenClaw 时运行,自动在 SOUL.md 和 AGENTS.md 中注入记忆共享规则,使群聊和私聊的长期记忆互通。触发词:'配置跨会话记忆'、'设置记忆共享'、'cross-session memory'、'setup memory sharing'。
README (SKILL.md)

跨会话记忆配置

将群聊/私聊记忆共享规则注入当前 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
  • 写文件才是真正的记忆,不要依赖"心里记着"

注意事项

  • 脚本是幂等的,可以多次运行
  • 原始内容不会被覆盖,只追加缺失的规则
  • 建议运行后手动检查一次确认格式正确
Usage Guidance
Review this carefully before installing. It does not show credential theft, network exfiltration, or destructive deletion, but it intentionally changes OpenClaw’s persistent memory behavior. Run it only if you want group and private long-term memories to be shared, back up SOUL.md and AGENTS.md first, and manually inspect the injected rules afterward.
Capability Analysis
Type: OpenClaw Skill Name: cross-session-memory-config Version: 1.0.0 The skill is designed to configure cross-session memory for the OpenClaw agent by injecting behavioral rules into local configuration files (SOUL.md and AGENTS.md). The provided script, scripts/setup.sh, uses standard shell commands to modify these files within the user's workspace directory and does not exhibit any signs of data exfiltration, malicious execution, or unauthorized persistence.
Capability Assessment
Purpose & Capability
The stated purpose matches the artifacts: it configures cross-session memory by appending rules to SOUL.md and AGENTS.md. This is disclosed, but it is privacy-sensitive.
Instruction Scope
The injected rules are broad: important group-chat information, user preferences, decisions, and context must be written to shared memory, and private chats should search that memory. The artifacts do not show per-item consent, sensitivity exclusions, retention limits, or a rollback procedure.
Install Mechanism
Setup is a user-run Bash script with no install spec. SKILL.md also references a PowerShell setup.ps1, but the provided manifest only includes scripts/setup.sh and SKILL.md, so the Windows helper is not reviewable here.
Credentials
The script writes to ~/.openclaw/workspace/SOUL.md and AGENTS.md, which are core agent configuration files. That is aligned with the skill’s purpose, but it is high-impact and the script does not create a backup or provide an uninstall path.
Persistence & Privilege
The changes persist across future sessions and influence future agent behavior and memory retrieval until manually removed.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install cross-session-memory-config
  3. After installation, invoke the skill by name or use /cross-session-memory-config
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial release: auto-configures cross-session memory rules for group/DM sharing
Metadata
Slug cross-session-memory-config
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is Cross-Session Memory Config?

配置 OpenClaw 跨会话记忆规则。首次使用或新装 OpenClaw 时运行,自动在 SOUL.md 和 AGENTS.md 中注入记忆共享规则,使群聊和私聊的长期记忆互通。触发词:'配置跨会话记忆'、'设置记忆共享'、'cross-session memory'、'setup memory sharing'。 It is an AI Agent Skill for Claude Code / OpenClaw, with 73 downloads so far.

How do I install Cross-Session Memory Config?

Run "/install cross-session-memory-config" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Cross-Session Memory Config free?

Yes, Cross-Session Memory Config is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Cross-Session Memory Config support?

Cross-Session Memory Config is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Cross-Session Memory Config?

It is built and maintained by Richardcoder849 (@richardcoder849); the current version is v1.0.0.

💬 Comments