memories-off

memories-off is a skill for Claude Code, Codex from cafe3310/agent-skill-memories-off. It costs 47 tokens per session (1,445 once invoked), scanned A, original, Apache-2.0.

A local knowledge-base skill that stores people, projects, notes, and their relationships in Markdown files. It supports long-term memory for an AI assistant.

In plain words
What is it for?
Exploring a knowledge base, finding entities, loading sections, adding or updating observations, and managing relationships with memocli.
Why use it?
It makes saved information searchable and editable without relying on an external database.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Exploring a knowledge base, finding entities, loading sections, adding or updating observations, and managing relationships with memocli.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/cafe3310/agent-skill-memories-off/memories-off-skill
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add cafe3310/agent-skill-memories-off --skill memories-off-skill
Clone the repo
git clone --depth 1 https://github.com/cafe3310/agent-skill-memories-off

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for memories-off

README.md
[![agentmods](https://agentmods.dev/badge/skills/cafe3310/agent-skill-memories-off/memories-off-skill/github.svg)](https://agentmods.dev/skills/cafe3310/agent-skill-memories-off/memories-off-skill)
Your own site
<a href="https://agentmods.dev/skills/cafe3310/agent-skill-memories-off/memories-off-skill"><img src="https://agentmods.dev/badge/skills/cafe3310/agent-skill-memories-off/memories-off-skill/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for memories-off

Your own site · 80×15
<a href="https://agentmods.dev/skills/cafe3310/agent-skill-memories-off/memories-off-skill"><img src="https://agentmods.dev/badge/skills/cafe3310/agent-skill-memories-off/memories-off-skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 47 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,445 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00047 $0.01445
Opus 5 $0.00023 $0.00723
Sonnet 5 $0.00009 $0.00289
Haiku 4.5 $0.00005 $0.00145

Measured 11d ago against content hash c2c5f39cf699, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

memories-off scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

The scan reads SKILL.md. This mod also ships 26 executable files (scripts/commands/__init__.py, scripts/commands/append_update.py, scripts/commands/commit.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

memories-off-skill/SKILL.md · 91 lines

How it starts

The opening of the file, as written. The whole thing — 91 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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)

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

memocli explore

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

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

2.2 了解命令用法 (Help System)

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

memocli <subcommand> --help

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

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

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

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>)代替绝对路径,系统会自动进行别名展开。 此外,您也可以运行以下命令一键查询全局配置的所有知识库:

memocli list-libraries

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

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

  1. 缓冲编辑优先: 在编辑已有实体内容时,严禁使用 Agent 自带的行定位编辑工具、也尤其禁止使用整体文件 Write。必须优先通过 memocli append-update 以追加更新块的形式进行非破坏性修改
  2. 多行写入使用 STDIN 模式: 当你需要通过 create-entityappend-update 写入包含多行、引号、特殊符号、WikiLinks 等复杂内容时,不建议使用 -c "..." 传参,这极易导致 Shell 转义失败。建议使用管道(STDIN)模式。例如:
    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 .

Read the full file on GitHub · 91 lines

Files

What ships with it

53 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 91 lines · 47 tokens per session scan A c2c5f39cf699

Subscribe to this mod's changes

memories-off is a skill published in the GitHub repository cafe3310/agent-skill-memories-off (44 stars, last pushed 3mo ago), licensed Apache-2.0. It adds 47 tokens to every session and 1,445 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.