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.
- License 许可
- MIT
- 最近更新
- 2026-06-07
- Stars
- ★ 0
- Forks
- 1
01 前言 Front Matter
- name
- mema
- metadata
- { "openclaw": { "install": [ { "id": "pip-deps", "kind": "exec", "command": "pip install -r requirements.txt" } ], "requires": { "env": [ "REDIS_HOST", "REDIS_PORT" ], "bins": [ "python3" ] } } }
- description
- 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.
03 SKILL.md 正文
Mema Brain (Centralized Memory)
Standardized memory system providing a Metadata Index (SQLite) and Short-Term Context (Redis).
Core Components
1. Document Index (SQLite)
- Primary Path:
~/.openclaw/memory/main.sqlite - Capability: Stores file paths, titles, and tags.
- Note: This is a Metadata Index only. It does not ingest or provide full-text search of file contents.
2. Short-Term Memory (Redis)
- Key Prefix:
mema:mental:* - Purpose: Ephemeral state management and cross-session context passing.
- TTL: Default 6 hours (21600 seconds).
Core Workflows
Indexing Knowledge
Record a file's location and tags in the local database.
- Usage:
python3 $WORKSPACE/skills/mema/scripts/mema.py index <path> [--tag <tag>]
Searching Index
List indexed paths filtered by tag or recency.
- Usage:
python3 $WORKSPACE/skills/mema/scripts/mema.py list [--tag <tag>]
Mental State (Redis)
Manage key-value pairs in the mema:mental namespace.
- Set:
python3 $WORKSPACE/skills/mema/scripts/mema.py mental set <key> <value> [--ttl N] - Get:
python3 $WORKSPACE/skills/mema/scripts/mema.py mental get <key>
Setup
- Copy
env.example.txtto.env. - Configure
REDIS_HOSTandREDIS_PORT(defaults: localhost:6379). - Initialize the SQLite schema:
python3 $WORKSPACE/skills/mema/scripts/mema.py init
Reliability & Security
- Data Privacy: All data is stored locally.
- Network Safety: Only point
REDIS_HOSTto trusted instances. - Path Isolation: Database operations are confined to the
~/.openclaw/memorydirectory.
04 同仓库更多 Skills
crowd-prompting
A marketplace where AI agents improve prompts, system instructions, tool descriptions, and other text-based content with domain expertise from real-world operations — and earn tokens for valuable contributions.
ceaser
Interact with the Ceaser privacy protocol on Base L2 using the ceaser-mcp MCP tools. This skill uses the ceaser-mcp npm package for ALL operations -- shield, unshield, note management, and protocol queries. All ceaser tool calls use CLI subcommands (npx -y ceaser-mcp <subcommand>). Ceaser is a privacy-preserving ETH wrapper using Noir/UltraHonk zero-knowledge proofs on Base L2 (chain ID 8453).
ceaser-send
Fully automated private ETH transfer via Ceaser Protocol on Base L2 using the ceaser-mcp MCP tools. This skill uses the ceaser-mcp npm package for ALL operations -- all ceaser tool calls use CLI subcommands (npx -y ceaser-mcp <subcommand>). WARNING -- creates observable on-chain links between user wallet and hot wallet (see Privacy Warning). Generates an ephemeral hot wallet with BIP-39 mnemonic recovery, user funds it, agent signs and broadcasts the Shield TX automatically. Exactly one manual step required (funding the hot wallet with ETH). Uses Noir/UltraHonk zero-knowledge proofs.
dilemm-ai
Compete in DilemmAI, the prisoner's dilemma AI arena at dilemm.ai. Use when an OpenClaw agent wants to create an account, design and submit strategy prompts for their bot, enter matchmaking, analyze historical matches and leaderboards, and iterate on bot strategy. Requires headless browser automation (no API available yet).
moldium
Post and manage content on the Moldium blog platform. Triggered by "post to Moldium", "write a blog post", "publish an article", etc.
arxiv-paper-reviews
Interact with arXiv Crawler API to fetch papers, read reviews, submit comments, search papers, and import papers. Use when working with arXiv papers, fetching paper lists by date/category/interest, viewing paper details with comments, submitting paper reviews, searching papers by title, or importing papers from arXiv URLs via API at http://weakaccept.top:8000/.