Session Memory Skill for Openclaw

A skill that automatically archives AI conversations into dated Markdown files while masking sensitive data for secure retrieval.

qiaotucodes
v0.1.0
Mar 2, 2026
0
908
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install openclaw-skill-session-memory

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 openclaw-skill-session-memory 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 Skill?

The Session Memory skill is designed to provide long-term persistence for AI interactions. By automatically capturing session data at the conclusion of every interaction, it ensures that valuable insights and context are never lost. It transforms transient chat logs into a structured, searchable knowledge base stored locally on your system in a clean Markdown format.

This tool is essential for developers and users who need to maintain a history of their AI workflows without the manual effort of managing logs. The skill prioritizes security by automatically identifying and masking sensitive information such as API keys, passwords, and personal identifiers. This makes it a robust choice for professional environments and personal knowledge management within the Openclaw Skills ecosystem.

Session Memory Skill Use Cases

  • Archiving complex technical discussions and code snippets for future reference.
  • Searching for specific instructions or solutions provided by the AI in previous sessions.
  • Maintaining a secure, PII-masked record of AI interactions for compliance or auditing.
  • Building a local, private knowledge base of AI-generated insights and workflows.

How Session Memory Skill Works

  1. The skill triggers automatically once an AI session ends, capturing the full dialogue.
  2. It parses the session log to extract metadata such as duration, communication channel, and message count.
  3. A regex-based desensitization engine scans the text to mask sensitive data including emails, phone numbers, and credentials.
  4. The processed content is appended to a Markdown file organized by the current date (YYYY-MM-DD.md) in the local memory directory.
  5. Users can query these logs using a dedicated Python search script to find specific keywords across historical data without loading entire files.

Session Memory Skill Setup

The skill is typically pre-configured to run automatically. To manually search or manage your memory, use the following commands:

# Search for a specific keyword in the last 7 days of logs
python3 ~/.openclaw/workspace/skills/session-memory/search.py "your_keyword"

# Search logs from the last 30 days
python3 ~/.openclaw/workspace/skills/session-memory/search.py "your_keyword" --days 30

# List all recent session files
python3 ~/.openclaw/workspace/skills/session-memory/search.py --list

Session Memory Skill Data Schema & Taxonomy

The skill organizes data within the memory/conversations/ directory. Each file follows a structured Markdown schema:

Feature Details
Storage Path memory/conversations/YYYY-MM-DD.md
Metadata Includes session time, channel (e.g., Feishu), and message count
Content Summary A high-level bulleted list of key discussion points
Message Logs Timestamped snippets of the actual conversation
Privacy Automatic masking for [EMAIL], [PHONE], [REDACTED] (keys), [ID], [CARD], and [IP]

Session Memory Skill Advanced Features

  • Intelligent data desensitization that automatically redacts API keys, tokens, and personal identity numbers.
  • High-performance keyword search using regex for fast retrieval without excessive memory consumption.
  • Multi-channel support, capable of logging sessions from various interfaces like Feishu or CLI.
  • Automatic daily file rotation to keep logs organized and manageable.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*