mema
Mema's personal brain - SQLite metadata index for documents and Redis short-term context buffer. Use for organizing workspace knowledge paths and managing ephemeral session state.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/1999azzar/memaWhat This Skill Does
Mema is OpenClaw's centralized memory system, acting as a personal brain for your agent. It integrates two distinct storage backends to ensure your workspace remains organized and your session context remains persistent across restarts. At its core, Mema provides a SQLite-backed Metadata Index that keeps track of the file paths, titles, and descriptive tags of your important documents. It is important to note that this index is strictly for metadata; it does not store the full content of your files, making it a high-performance solution for document retrieval without the bloat of indexing large file contents.
Beyond file organization, Mema leverages Redis as a short-term memory buffer. This allows the OpenClaw agent to maintain an ephemeral mental state, such as current task progress or specific user preferences, using a key-value store with a default 6-hour TTL. By separating durable metadata from transient state, Mema keeps your agent's knowledge environment tidy and performant.
Installation
- Install via the package manager:
clawhub install openclaw/skills/skills/1999azzar/mema - Copy the configuration file:
cp env.example.txt .env - Configure your Redis environment variables in the
.envfile (ensureREDIS_HOSTandREDIS_PORTare set). - Initialize the SQLite memory database:
python3 $WORKSPACE/skills/mema/scripts/mema.py init
Use Cases
- Project Knowledge Management: Quickly catalog research papers, design docs, or code snippets across scattered project directories.
- Agent Context Persistence: Store session-specific variables or temporary status flags to ensure the agent picks up exactly where it left off after an inactivity period.
- Tag-based Retrieval: Organize disparate files into logical groups (e.g., 'research', 'todo', 'urgent') and retrieve lists of paths matching those tags.
Example Prompts
- "Mema, index the file at ./docs/project_spec.md with the tag 'architecture'."
- "List all files in my memory bank tagged with 'research' so I can review them."
- "Set the current session status in Mema to 'Drafting Phase' with a 2-hour TTL."
Tips & Limitations
- Performance: Because Mema uses SQLite, it is extremely fast for metadata lookups. Keep your tags descriptive but concise to improve filter performance.
- Security: Mema operates entirely within local directories (
~/.openclaw/memory), ensuring your metadata does not leak to external services. Use trusted Redis instances only. - Data Scope: Mema is an indexing tool. If you need to search the actual text content inside your files, you should use a dedicated vector search or full-text indexing tool alongside Mema. Always remember that Redis entries are ephemeral; do not store permanent configuration data in the
mema:mentalnamespace.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-1999azzar-mema": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: file-write, file-read, network-access
Related Skills
newman
Automated API testing with Postman collections via Newman CLI. Use when user requests API testing, collection execution, automated testing, CI/CD integration, or mentions "Postman", "Newman", "API tests", "run collection", or "automated testing".
mema-vault
Secure credential manager using AES-256 (Fernet) encryption. Stores, retrieves, and rotates secrets using a mandatory Master Key. Use for managing API keys, database credentials, and other sensitive tokens.
ui-designer
Design beautiful interfaces using 16+ design systems including Material You, Fluent Design, Apple HIG, Ant Design, Carbon Design, Shopify Polaris, Minimalism, Glassmorphism, Neo-Brutalism, Neumorphism, Skeuomorphism, Claymorphism, Swiss Design, and Atlassian Design. Expert in Tailwind CSS, color harmonics, component theming, and accessibility (WCAG).
mermaid-architect
Generate beautiful, hand-drawn Mermaid diagrams with robust syntax (quoted labels, ELK layout). Use this skill when the user asks for "diagram", "flowchart", "sequence diagram", or "visualize this process".
guardian-wall
Mitigate prompt injection attacks, especially indirect ones from external web content or files. Use this skill when processing untrusted text from the internet, user-uploaded files, or any external source to sanitize content and detect malicious instructions (e.g., "ignore previous instructions", "system override").