Session Memory Structured for Openclaw

A smart session summary hook that automatically extracts and archives structured insights from your AI interactions into daily markdown logs.

thelast0802
v1.0.0
Mar 24, 2026
0
889
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install session-memory-structured

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install session-memory-structured using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Session Memory Structured?

Session Memory Structured is a specialized tool designed for the Openclaw Skills ecosystem. It serves as a session summary hook that activates whenever a user resets or starts a new session. By analyzing the immediate history of user and assistant interactions, it cleanses and distills complex dialogues into a clean, four-part structured summary.

This skill is essential for developers and power users who need to maintain a persistent, searchable trail of their AI-assisted workflows without manual copying. By archiving these insights into daily markdown files within a dedicated memory directory, it ensures that your context is never lost and your long-term project knowledge remains accessible.

Session Memory Structured Use Cases

  • Automatically documenting coding sessions and architectural decisions after a task is completed.
  • Maintaining a daily developer journal by archiving AI interactions into date-based markdown files.
  • Streamlining context handovers when switching between different projects or focus areas within Openclaw Skills.
  • Creating a searchable history of prompts and solutions for long-term knowledge management.

How Session Memory Structured Works

  1. The skill monitors for the specific Openclaw Skills events: command:new or command:reset.
  2. Upon trigger, it reads the local session file from your machine to capture the most recent message history.
  3. It processes the text through your configured LLM service to filter noise and extract key takeaways.
  4. It generates a standardized four-part structured summary based on the session content.
  5. The final summary is appended to a file located at memory/YYYY-MM-DD.md within your workspace.

Session Memory Structured Setup

To install this skill within your Openclaw environment, use the following steps:

# Navigate to your Openclaw skills directory
cd path/to/openclaw/skills

# Clone or download the session-memory-structured skill
# Ensure your workspace has a 'memory' folder created
mkdir -p memory

Note: Ensure your model service is correctly configured in your global settings, as this skill utilizes your active LLM to perform the summarization.

Session Memory Structured Data Schema & Taxonomy

The skill maintains a highly organized directory structure to ensure easy retrieval of past session data. Summaries are stored using a temporal taxonomy:

File Path Description Format
memory/YYYY-MM-DD.md Daily log file containing all session summaries for that specific date. Markdown

Summary Structure:

  • Context: The initial state or problem being addressed.
  • Actions: Key steps taken during the session.
  • Results: The final outcome or solution achieved.
  • Next Steps: Pending tasks or follow-up items for future sessions.

Session Memory Structured Advanced Features

  • Event-driven automation triggered specifically by session lifecycle commands.
  • Local-first processing that respects privacy by using your own configured model endpoints.
  • Structured four-block output optimized for both human readability and future AI context re-injection.
  • Zero hard-coded API keys in the project directory for enhanced security.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*