← Back to Skills Marketplace
thelast0802

Session Memory Structured

by Thelast0802 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
148
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install session-memory-structured
Description
在 /new 或 /reset 时,为刚结束的会话生成结构化纪要并归档到 memory/YYYY-MM-DD.md
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install session-memory-structured
  3. After installation, invoke the skill by name or use /session-memory-structured
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Slug session-memory-structured
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is Session Memory Structured?

在 /new 或 /reset 时,为刚结束的会话生成结构化纪要并归档到 memory/YYYY-MM-DD.md. It is an AI Agent Skill for Claude Code / OpenClaw, with 148 downloads so far.

How do I install Session Memory Structured?

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

Is Session Memory Structured free?

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

Which platforms does Session Memory Structured support?

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

Who created Session Memory Structured?

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

💬 Comments