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.

Safety Notice

This item is sourced from the public archived skills repository. Treat as untrusted until reviewed.

Copy this and send it to your AI assistant to learn

Install skill "mema" with this command: npx skills add 1999azzar/mema

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.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Research

designer-intelligence-station

为设计师提供 AI、智能硬件、手机、设计领域的情报收集与筛选服务。支持多源监测、5 维筛选标准、定时推送。

Archived SourceRecently Updated
Research

autoresearch-pro

Automatically improve OpenClaw skills, prompts, or articles through iterative mutation-testing loops. Inspired by Karpathy's autoresearch. Use when user says 'optimize [skill]', 'autoresearch [skill]', 'improve my skill', 'optimize this prompt', 'improve my prompt', 'polish this article', 'improve this article', or explicitly requests quality improvement for any text-based content. Supports three modes: skill (SKILL.md files), prompt (any prompt text), and article (any document).

Archived SourceRecently Updated
Research

modern-chanakya

Interpret Chanakya, Chanakya Niti, Arthashastra, and reliable historical/wiki-style summaries into modern practical guidance for systems, software, product building, career strategy, discipline, leadership, governance, and execution. Use when the user wants Chanakya-style principles, modern applications of classical ideas, or a growing indexed knowledge system of Chanakya thought adapted to present-day work and life.

Archived SourceRecently Updated
Research

claw2ui

Generate interactive web pages (dashboards, charts, tables, reports) and serve them via public URL. Use this skill when the user explicitly asks for data visualization, dashboards, analytics reports, comparison tables, status pages, or web-based content. Also triggers for: "draw me a chart", "make a dashboard", "show me a table", "generate a report", "visualize this data", "render this as a page", "publish a page", "claw2ui". If the response would benefit from charts, sortable tables, or rich layout, **suggest** using Claw2UI and wait for user confirmation before publishing. Chinese triggers: "做个仪表盘", "画个图表", "做个报表", "生成一个页面", "做个dashboard", "数据可视化", "做个网页", "展示数据", "做个表格", "做个图", "发布一个页面", "做个看板". Additional English triggers: "create a webpage", "show analytics", "build a status page", "make a chart", "data overview", "show me stats", "create a board", "render a page", "comparison chart", "trend analysis", "pie chart", "bar chart", "line chart", "KPI dashboard", "metrics overview", "weekly report", "monthly report".

Archived SourceRecently Updated