跳到正文
TakoAPI
返回技能列表

mema

由 1999azzar 提供

Web & Frontend Development
545下载量由 clawskills.sh 提供
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Mema's personal brain - SQLite metadata index for documents and Redis short-term context buffer.

描述

该技能的功能

Mema provides a two-tier local memory system: a SQLite database that indexes document paths and tags, and a Redis store for ephemeral key-value state with a default 6-hour TTL. It lets agents track workspace files and pass context between sessions without relying on external services.

All data stays local, avoiding the privacy risks and network dependencies of cloud-based memory or context services.

何时使用

  • Tagging and retrieving project documents by topic
  • Passing session state between consecutive agent runs
  • Building a local index of workspace knowledge paths
  • Storing temporary values that expire after a work session
  • Filtering indexed files by tag to surface relevant resources

示例工作流

输入

User asks: 'Index my research notes and find all files tagged python'

智能体
  1. 1

    Runs mema init to create the SQLite schema if not already set up

  2. 2

    Runs mema index ~/notes/python-tips.md --tag python to record the file path and tag

  3. 3

    Runs mema list --tag python to query all indexed paths with the python tag

输出

Returns a list of local file paths tagged 'python' from the SQLite index

前置要求

  • Redis server
  • REDIS_HOST
  • REDIS_PORT

安装

clawhub install 1999azzar/mema

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接