A standardized memory system that combines a SQLite metadata index for document organization with a Redis-powered short-term context buffer.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install mema
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install mema using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
Mema Brain serves as a sophisticated memory layer for AI agents, bridging the gap between long-term file organization and immediate session awareness. By leveraging a SQLite database for indexing local file metadata and Redis for ephemeral state management, it allows developers to build more context-aware Openclaw Skills.
This dual-layer approach ensures that file paths and tags are easily searchable while temporary mental states are maintained across sessions. By decoupling metadata from file contents, Mema provides a lightweight way to organize workspace knowledge without the overhead of heavy vector databases, making it an essential component for any modular agent architecture.
Follow these steps to integrate Mema Brain with your Openclaw Skills:
# Install the necessary Python dependencies
pip install -r requirements.txt
# Configure your environment variables
cp env.example.txt .env
# Define REDIS_HOST and REDIS_PORT in your .env file
# Initialize the SQLite database schema
python3 $WORKSPACE/skills/mema/scripts/mema.py init
Mema Brain organizes data across two distinct layers to balance persistence and performance:
| Component | Storage Type | Location / Namespace | Purpose |
|---|---|---|---|
| Document Index | SQLite | ~/.openclaw/memory/main.sqlite |
Persistent metadata: paths, titles, and tags. |
| Short-Term Memory | Redis | mema:mental:* |
Ephemeral session state and context. |
| Expiration Policy | TTL | 21,600 seconds | Default 6-hour cleanup for Redis keys. |
Loading
A specialized skill designed to eliminate AI stylistic tells and produce high-density, professional technical documentation.

A security-focused skill for sanitizing external content and neutralizing prompt injection attacks in AI agent workflows.

Automatically sort cluttered directories into organized subfolders by file extension or creation date.

A comprehensive hybrid CLI for Instagram that bridges Meta Graph API safety with private API feature depth for AI agents.

A standardized Redis-backed caching system for managing AI agent state, session context, and high-speed data retrieval.

A specialized agent skill for generating robust, visually appealing Mermaid.js diagrams using safe syntax and professional layouts.
