memory-setup by sundial-org/awesome-openclaw-skills
npx skills add https://github.com/sundial-org/awesome-openclaw-skills --skill memory-setup将你的智能体从金鱼记忆转变为大象记忆。此技能帮助为 Moltbot/Clawdbot 配置持久化记忆。
添加到 ~/.clawdbot/clawdbot.json(或 moltbot.json):
{
"memorySearch": {
"enabled": true,
"provider": "voyage",
"sources": ["memory", "sessions"],
"indexMode": "hot",
"minScore": 0.3,
"maxResults": 20
}
}
在你的工作区中创建:
workspace/
├── MEMORY.md # 长期整理记忆
└── memory/
├── logs/ # 每日日志 (YYYY-MM-DD.md)
├── projects/ # 项目特定上下文
├── groups/ # 群聊上下文
└── system/ # 偏好设置、安装笔记
在工作区根目录创建 MEMORY.md:
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
# 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:
# YYYY-MM-DD — 每日日志
## [时间] — [事件/任务]
- 发生了什么
- 做出的决策
- 需要的后续跟进
## [时间] — [另一个事件]
- 详细信息
添加到你的 AGENTS.md 以指导智能体行为:
## 记忆召回
在回答关于先前工作、决策、日期、人员、偏好或待办事项的问题之前:
1. 使用相关查询运行 memory_search
2. 如果需要,使用 memory_get 获取特定行
3. 如果搜索后置信度较低,说明你已经检查过
memorySearch.enabled: trueclawdbot gateway restartminScore 降低至 0.2 以获得更多结果maxResults 增加至 30VOYAGE_API_KEYOPENAI_API_KEYlocal 提供商测试记忆是否正常工作:
User: "关于 [过去的话题] 你记得什么?"
Agent: [应搜索记忆并返回相关上下文]
如果智能体没有记忆,说明配置未生效。重启网关。
{
"memorySearch": {
"enabled": true,
"provider": "voyage",
"sources": ["memory", "sessions"],
"indexMode": "hot",
"minScore": 0.3,
"maxResults": 20
},
"workspace": "/path/to/your/workspace"
}
没有记忆时:
拥有记忆时:
金鱼 → 大象。 🐘
每周安装量
709
代码仓库
GitHub 星标数
516
首次出现
2026年2月26日
安全审计
安装于
opencode704
gemini-cli703
kimi-cli703
codex703
cursor703
github-copilot703
Transform your agent from goldfish to elephant. This skill helps configure persistent memory for Moltbot/Clawdbot.
Add to ~/.clawdbot/clawdbot.json (or moltbot.json):
{
"memorySearch": {
"enabled": true,
"provider": "voyage",
"sources": ["memory", "sessions"],
"indexMode": "hot",
"minScore": 0.3,
"maxResults": 20
}
}
In your workspace, create:
workspace/
├── MEMORY.md # Long-term curated memory
└── memory/
├── logs/ # Daily logs (YYYY-MM-DD.md)
├── projects/ # Project-specific context
├── groups/ # Group chat context
└── system/ # Preferences, setup notes
Create MEMORY.md in workspace root:
# MEMORY.md — Long-Term Memory
## About [User Name]
- Key facts, preferences, context
## Active Projects
- Project summaries and status
## Decisions & Lessons
- Important choices made
- Lessons learned
## Preferences
- Communication style
- Tools and workflows
| Setting | Purpose | Recommended |
|---|---|---|
enabled | Turn on memory search | true |
provider | Embedding provider | "voyage" |
sources | What to index | ["memory", "sessions"] |
indexMode |
voyage — Voyage AI embeddings (recommended)openai — OpenAI embeddingslocal — Local embeddings (no API needed)memory — MEMORY.md + memory/*.md filessessions — Past conversation transcriptsboth — Full context (recommended)Create memory/logs/YYYY-MM-DD.md daily:
# YYYY-MM-DD — Daily Log
## [Time] — [Event/Task]
- What happened
- Decisions made
- Follow-ups needed
## [Time] — [Another Event]
- Details
Add to your AGENTS.md for agent behavior:
## Memory Recall
Before answering questions about prior work, decisions, dates, people, preferences, or todos:
1. Run memory_search with relevant query
2. Use memory_get to pull specific lines if needed
3. If low confidence after search, say you checked
memorySearch.enabled: true in configclawdbot gateway restartminScore to 0.2 for more resultsmaxResults to 30VOYAGE_API_KEY in environmentOPENAI_API_KEY in environmentlocal provider if no API keys availableTest memory is working:
User: "What do you remember about [past topic]?"
Agent: [Should search memory and return relevant context]
If agent has no memory, config isn't applied. Restart gateway.
{
"memorySearch": {
"enabled": true,
"provider": "voyage",
"sources": ["memory", "sessions"],
"indexMode": "hot",
"minScore": 0.3,
"maxResults": 20
},
"workspace": "/path/to/your/workspace"
}
Without memory:
With memory:
Goldfish → Elephant. 🐘
Weekly Installs
709
Repository
GitHub Stars
516
First Seen
Feb 26, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
opencode704
gemini-cli703
kimi-cli703
codex703
cursor703
github-copilot703
React 组合模式指南:Vercel 组件架构最佳实践,提升代码可维护性
103,800 周安装
| When to index |
"hot" (real-time) |
minScore | Relevance threshold | 0.3 (lower = more results) |
maxResults | Max snippets returned | 20 |