Skip to content
cccskills
FreePublished on GitHub

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.

The English summary is being prepared. Showing the original description.

Works withRedis
See how to install

Files included (6)

  • SKILL.md2.0 KB
  • _meta.json447 B
  • assets/schema.sql992 B
  • env.example.txt78 B
  • requirements.txt13 B
  • scripts/mema.py5.2 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

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

  1. Copy env.example.txt to .env.
  2. Configure REDIS_HOST and REDIS_PORT (defaults: localhost:6379).
  3. 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_HOST to trusted instances.
  • Path Isolation: Database operations are confined to the ~/.openclaw/memory directory.

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

Agents can sign plugins, rotate credentials without losing identity, and publicly attest to behavior.

The English summary is being prepared. Showing the original description.

johnalbertini14-glitch/openclaw-skills2Updated Feb 26, 2026

Query historical crypto market data from 0xArchive across Hyperliquid, Lighter.xyz, and HIP-3. Covers orderbooks, trades, candles, funding rates, open interest, liquidations, and data quality. Use when the user asks about crypto market data, orderbooks, trades, funding rates, or historical prices on Hyperliquid, Lighter.xyz, or HIP-3.

The English summary is being prepared. Showing the original description.

johnalbertini14-glitch/openclaw-skills2Updated Feb 26, 2026

Calculate ROI for AI-as-a-Service (managed AI agents). Estimates cost savings, efficiency gains, and payback period for deploying AI agents across business operations. Use when evaluating whether managed AI agents make financial sense for a company.

The English summary is being prepared. Showing the original description.

johnalbertini14-glitch/openclaw-skills2Updated Feb 26, 2026

Design, build, deploy, and operate production AI agent systems — single agents, multi-agent teams, and autonomous swarms. Complete methodology from agent architecture through orchestration, memory systems, safety guardrails, and operational excellence.

The English summary is being prepared. Showing the original description.

johnalbertini14-glitch/openclaw-skills2Updated Feb 26, 2026

Design, build, test, document, and secure production-grade APIs. Covers the full lifecycle from schema design through deployment, monitoring, and versioning. Use when designing new APIs, reviewing existing ones, generating OpenAPI specs, building test suites, or debugging production issues.

The English summary is being prepared. Showing the original description.

johnalbertini14-glitch/openclaw-skills2Updated Feb 26, 2026

Turn your AI agent into a business automation architect. Design, document, implement, and monitor automated workflows across sales, ops, finance, HR, and support — no n8n or Zapier required.

The English summary is being prepared. Showing the original description.

johnalbertini14-glitch/openclaw-skills2Updated Feb 26, 2026

See all skills by johnalbertini14-glitch

Report a problem with this skill