Memory Setup logo

Memory Setup

Community
L-LesterYu
memory-setup

启用并配置 Moltbot/Clawdbot 的持久化记忆搜索功能。当用户需要设置记忆功能、修复"金鱼记忆"问题,或配置 memorySearch 时使用。涵盖 MEMORY.md、每日日志和向量搜索的设置。

Overview

PublisherL-LesterYu
RepositoryOpenClaw-hot-skills-zh
Skill namememory-setup
Stars
57
Forks
9
Bundled files
1
LicenseMIT
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.

  • 1 bundled files

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

  • Open source

    Published by L-LesterYu on GitHub. Read the source before you install it.

Installation

Install the Memory Setup 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/L-LesterYu/OpenClaw-hot-skills-zh/tree/main/skills/memory-setup-zh
  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/L-LesterYu/OpenClaw-hot-skills-zh.git /tmp/OpenClaw-hot-skills-zh
mkdir -p .claude/skills
cp -r /tmp/OpenClaw-hot-skills-zh/skills/memory-setup-zh .claude/skills/memory-setup
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Memory Setup 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 Memory Setup 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 Memory Setup 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 从金鱼变成大象。本技能帮助配置 Moltbot/Clawdbot 的持久化记忆功能。

快速设置

1. 在配置中启用记忆搜索

添加到 ~/.clawdbot/clawdbot.json(或 moltbot.json):

json
{
  "memorySearch": {
    "enabled": true,
    "provider": "voyage",
    "sources": ["memory", "sessions"],
    "indexMode": "hot",
    "minScore": 0.3,
    "maxResults": 20
  }
}

2. 创建记忆目录结构

在工作区中创建:

workspace/
├── MEMORY.md              # 长期精炼记忆
└── memory/
    ├── logs/              # 每日日志 (YYYY-MM-DD.md)
    ├── projects/          # 项目特定上下文
    ├── groups/            # 群聊上下文
    └── system/            # 偏好设置、安装笔记

3. 初始化 MEMORY.md

在工作区根目录创建 MEMORY.md:

markdown
# MEMORY.md — 长期记忆

## 关于 [用户名]
- 关键信息、偏好、上下文

## 活跃项目
- 项目摘要和状态

## 决策与经验教训
- 做出的重要选择
- 吸取的教训

## 偏好
- 沟通风格
- 工具和工作流

配置选项说明

设置项用途推荐值
enabled启用记忆搜索true
provider嵌入向量提供商"voyage"
sources索引范围["memory", "sessions"]
indexMode索引时机"hot"(实时)
minScore相关性阈值0.3(值越低结果越多)
maxResults最大返回片段数20

提供商选项

  • voyage — Voyage AI 嵌入向量(推荐)
  • openai — OpenAI 嵌入向量
  • local — 本地嵌入向量(无需 API 密钥)

数据源选项

  • memory — MEMORY.md + memory/*.md 文件
  • sessions — 历史会话记录
  • both — 全部上下文(推荐)

每日日志格式

每天创建 memory/logs/YYYY-MM-DD.md:

markdown
# YYYY-MM-DD — 每日日志

## [时间] — [事件/任务]
- 发生了什么
- 做出的决策
- 需要跟进的事项

## [时间] — [另一个事件]
- 详细信息

Agent 指令(AGENTS.md)

将以下内容添加到 AGENTS.md 中以控制 Agent 行为:

markdown
## 记忆回忆
在回答关于过往工作、决策、日期、人物、偏好或待办事项的问题前:
1. 使用 memory_search 进行相关查询
2. 需要时使用 memory_get 提取具体行
3. 如果搜索后信心不足,说明已检查过记忆

故障排除

记忆搜索不工作?

  1. 检查配置中 memorySearch.enabled: true 是否已设置
  2. 确认工作区根目录存在 MEMORY.md
  3. 重启网关:clawdbot gateway restart

搜索结果不相关?

  • 将 minScore 降低到 0.2 以获取更多结果
  • 将 maxResults 增加到 30
  • 检查记忆文件中是否有有意义的内容

提供商报错?

  • Voyage:在环境变量中设置 VOYAGE_API_KEY
  • OpenAI:在环境变量中设置 OPENAI_API_KEY
  • 如无 API 密钥,使用 local 提供商

验证

测试记忆功能是否正常工作:

用户:"你还记得关于 [过去的话题] 的什么事吗?"
Agent:[应该搜索记忆并返回相关上下文]

如果 Agent 没有记忆,说明配置未生效。请重启网关。

完整配置示例

json
{
  "memorySearch": {
    "enabled": true,
    "provider": "voyage",
    "sources": ["memory", "sessions"],
    "indexMode": "hot",
    "minScore": 0.3,
    "maxResults": 20
  },
  "workspace": "/path/to/your/workspace"
}

为什么这很重要

没有记忆:

  • Agent 每次会话都会忘记一切
  • 重复提问,丢失上下文
  • 项目缺乏连续性

有记忆后:

  • 能回忆过去的对话
  • 了解你的偏好
  • 追踪项目历史
  • 随时间建立关系

金鱼 → 大象。🐘

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 Memory Setup AI skill do?

启用并配置 Moltbot/Clawdbot 的持久化记忆搜索功能。当用户需要设置记忆功能、修复"金鱼记忆"问题,或配置 memorySearch 时使用。涵盖 MEMORY.md、每日日志和向量搜索的设置。

Why use Memory Setup on TypingMind?

Because you install it once and use it with any model. Memory Setup 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 Memory Setup in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/L-LesterYu/OpenClaw-hot-skills-zh/tree/main/skills/memory-setup-zh. 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 Memory Setup?

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 Memory Setup?

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

Is the Memory Setup AI skill free?

Yes. It is published on GitHub by L-LesterYu under the MIT 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 👇