← 返回 Skills 市场
Session Memory Structured
作者
Thelast0802
· GitHub ↗
· v1.0.0
· MIT-0
148
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install session-memory-structured
功能描述
在 /new 或 /reset 时,为刚结束的会话生成结构化纪要并归档到 memory/YYYY-MM-DD.md
安全使用建议
This hook is internally consistent with its stated goal, but before installing: 1) edit the placeholder values (<YOUR_AGENT_ID>, <YOUR_PROVIDER_ID>) as instructed so it targets the correct local paths; 2) inspect your ~/.openclaw/.../models.json to verify the provider's baseUrl is a trusted endpoint (the code will send session text and use the apiKey from that entry); 3) if you need strict offline behavior, do not install or ensure the provider entry points to a local/offline model; 4) consider testing in a safe workspace (no sensitive session contents) to confirm behavior; 5) note the code uses global fetch (Node 18+ has fetch built-in) — ensure your runtime supports it or adapt accordingly.
功能分析
Type: OpenClaw Skill
Name: session-memory-structured
Version: 1.0.0
The skill bundle accesses sensitive local files, including the agent's 'models.json' (which contains API keys) and private session history logs, to generate summaries via an external LLM provider. While this behavior is documented in 'README.md' and 'skill.md' as the intended functionality, the direct programmatic access to credentials and conversation data in 'handler.js' constitutes a high-risk capability. The script also requires manual user intervention to hardcode agent and provider IDs, and it transmits session content to an external endpoint defined in the user's local configuration.
能力评估
Purpose & Capability
Name/description (summarize the just-ended session and archive to memory/YYYY-MM-DD.md) match the code and docs. The code reads local OpenClaw session files and the local models.json to obtain a provider baseUrl/apiKey, then calls that provider to generate the summary and writes the result to workspace/memory. No unrelated credentials, binaries, or external services are requested beyond the configured provider.
Instruction Scope
SKILL.md and handler.js limit runtime actions to: locating a session file, parsing recent user/assistant messages (with cleaning), reading models.json for a configured provider, calling that provider's chat/completions endpoint, and appending the returned summary to a dated memory file. The README/skill.md explicitly warn that session text will be sent to the configured model service.
Install Mechanism
This is an instruction-only hook with no install spec or network download. There is no package installation or external code fetched by the skill itself.
Credentials
The skill does not declare any required env vars but reads provider.apiKey and provider.baseUrl from the local OpenClaw models.json (home/.openclaw/agents/<YOUR_AGENT_ID>/agent/models.json). That is proportional to its purpose (it must call a model service), but it means the skill will access your locally stored API key and send session text to whatever baseUrl is configured — ensure the provider entry points to a trusted service.
Persistence & Privilege
always is false and the skill does not attempt to modify other skills or global agent settings. It persists only by appending summaries into the workspace 'memory' directory, which is within the declared scope of the feature.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install session-memory-structured - 安装完成后,直接呼叫该 Skill 的名称或使用
/session-memory-structured触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release of session-memory-structured skill.
- Automatically generates structured four-part summaries when /new or /reset is triggered.
- Summaries are archived by date in memory/YYYY-MM-DD.md.
- Reviews recent parts of user and assistant messages from the session for summary.
- Designed for OpenClaw to improve session switching traceability.
- No API keys hardcoded; uses user-configured model services.
元数据
常见问题
Session Memory Structured 是什么?
在 /new 或 /reset 时,为刚结束的会话生成结构化纪要并归档到 memory/YYYY-MM-DD.md. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 148 次。
如何安装 Session Memory Structured?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install session-memory-structured」即可一键安装,无需额外配置。
Session Memory Structured 是免费的吗?
是的,Session Memory Structured 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Session Memory Structured 支持哪些平台?
Session Memory Structured 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Session Memory Structured?
由 Thelast0802(@thelast0802)开发并维护,当前版本 v1.0.0。
推荐 Skills