Memories Off logo

Memories Off

Community
cafe3310
memories-off

管理基于 Markdown 实体的本地知识库。提供库观察、实体检索、按需加载章节、精确编辑及显式关系管理能力。支持长期记忆与持续学习。

Overview

Publishercafe3310
Repositoryagent-skill-memories-off
Skill namememories-off
Stars
49
Forks
12
Bundled files
53
LicenseApache-2.0
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 53 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by cafe3310 on GitHub. Read the source before you install it.

Installation

Install the Memories Off AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/cafe3310/agent-skill-memories-off/tree/master/memories-off-skill
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/cafe3310/agent-skill-memories-off.git /tmp/agent-skill-memories-off
mkdir -p .claude/skills
cp -r /tmp/agent-skill-memories-off/memories-off-skill .claude/skills/memories-off
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Memories Off in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Memories Off on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Memories Off is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Agent Skill: memories-off (技能说明)

1. 概述 (Overview)

memories-off 是一个专门用于管理本地结构化知识库的 Agent Skill。它允许 LLM 将非结构化的对话、笔记、项目文档等,转化为由实体、关系和观察组成的知识图谱,并提供高效的检索和编辑能力。

该 Skill 旨在支持 LLM 实现“长期记忆”和“持续学习”,并基于 Markdown 文件提供本地优先的数据存储方案。


2. Agent 工作流与命令探索 (Agent Workflow)

作为 Agent,你不需要去阅读冗长的底层工具实现细节或规格文档。本 Skill 提供了自包含的命令行包装器 memocli。

2.1 任务初始化 (Explore First)

在处理任何与本知识库相关的任务前,必须首先运行以下命令获取全局上下文:

bash
memocli explore

该命令会返回结构化的 XML 报告,包括:

  • 知识库的全局描述和手册 (meta.md)。
  • 架构实体预览。
  • 当前所有可用的 memocli 子命令列表及简要说明。

2.2 了解命令用法 (Help System)

当你需要使用某个具体的子命令(如 search-entities, append-update)但不确定其参数时,请直接在终端运行该命令的帮助:

bash
memocli <subcommand> --help

终端输出会告诉你最新的参数、选项以及调用示例,请严格按照 --help 提示的格式调用。

2.3 全局配置与多仓库管理 (Global Config & List Libraries)

如果您在多知识库场景下工作,可以通过在全局配置文件 ~/.config/memocli/config.yaml 中配置 libraries 来为各个库定义别名与描述。 配置文件示例如下:

yaml
libraries:
  test_work:
    path: /absolute/path/to/mock_kb_work
    desc: 这是工作相关的知识库,包含任务跟踪和项目设计。
  test_life:
    path: /absolute/path/to/mock_kb_life
    desc: 这是生活相关的知识库,包含日常琐事和健康记录。

配置完成后,您可以在执行任何子命令时使用 -l <alias>(或 --library <alias>)代替绝对路径,系统会自动进行别名展开。 此外,您也可以运行以下命令一键查询全局配置的所有知识库:

bash
memocli list-libraries

3. Agent 最佳实践与约束 (Best Practices)

在使用 memocli 时,请严格遵守以下实践,以确保图谱的健康和数据的安全:

  1. 缓冲编辑优先: 在编辑已有实体内容时,严禁使用 Agent 自带的行定位编辑工具、也尤其禁止使用整体文件 Write。必须优先通过 memocli append-update 以追加更新块的形式进行非破坏性修改。
  2. 多行写入使用 STDIN 模式: 当你需要通过 create-entity 或 append-update 写入包含多行、引号、特殊符号、WikiLinks 等复杂内容时,不建议使用 -c "..." 传参,这极易导致 Shell 转义失败。建议使用管道(STDIN)模式。例如:
    bash
    echo "## 章节标题
    - 内容1
    - 内容2 [[链接]]" | memocli append-update --entity "实体名" --content-stdin --reason "更新理由"
  3. 模糊检索优先 (Content-Grep First): 了解细节信息时,应使用 memocli search-entities。建议配合 --type (过滤类型) 和 --rel (过滤关系) 提升检索精度。
  4. 标题层级规范: 实体正文必须遵循严格的标题层级:文件顶部第一行固定为 H1 (# 实体名),正文内部所有的业务章节标题必须统一标准化为 H2 (## 章节名)。禁止使用 H3 及更深层级。
  5. 优先用 Plain Text: 实体正文应当简洁。避免使用 Markdown 加粗 (**)、斜体 (*) 等修饰性格式。允许使用 H2 标题、无序列表 (-) 和 WikiLinks ([[ ]])。
  6. 强制审计 (Audit): 所有修改操作必须提供简短的 --reason 参数以供 Git 记录。
  7. 本地优先: 所有操作均基于本地文件系统,且当前路径若为知识库根目录,memocli 会自动推断 --path .。

4. 核心概念与术语 (Core Concepts & Glossary)

为了与用户和其他系统保持语义对齐,并理解你所操作的数据模型(如实体结构、元数据关系、WikiLinks 等),请务必参阅以下文档:

  1. 核心概念与数据模型 (Core Concepts): 解释了你在使用 memocli 时必须理解的 H1/H2 规则、别名机制、双向链接原理及缓冲编辑机制。
  2. 批量操作与 Token 节约指南 (Batch Operations): 总结了如何通过合并指令、合理使用参数来大幅减少 Token 消耗与执行时间的最佳实践。
  3. 项目术语表 (Glossary): 提供关键名词和动词的精确定义。

5. 底层设计文档 (Design Documents)

design-doc/ 是此 Agent 的底层设计文档。你一般不需要阅读。仅当用户要求你修改本 Skill 的底层实现细节时,才需要参考其中的内容。

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Memories Off AI skill do?

管理基于 Markdown 实体的本地知识库。提供库观察、实体检索、按需加载章节、精确编辑及显式关系管理能力。支持长期记忆与持续学习。

Why use Memories Off on TypingMind?

Because you install it once and use it with any model. Memories Off is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Memories Off in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/cafe3310/agent-skill-memories-off/tree/master/memories-off-skill. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Memories Off?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Memories Off?

As many as you like. As long as a model supports skills, you can use Memories Off with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Memories Off AI skill free?

Yes. It is published on GitHub by cafe3310 under the Apache-2.0 license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇