ClawShelf
  • 首页
  • 技能
  • 入门套装
  • 定价
  • 常见问题
注册
ClawShelf
ClawShelf

AI 助手的应用商店

TwitterX (Twitter)Email
产品
  • 首页
  • 技能
  • 入门套装
  • 常见问题
资源
  • 支持
法律条款
  • Cookie 政策
  • 隐私政策
  • 服务条款
  • 退款政策
Copyright © 2026 ClawShelf. 保留所有权利。
返回市场
免费✓ 官方
productivity免费✓ 官方

basic-memory

Equip your agent with persistent memory by automatically saving facts, preferences, and decisions across every conversation session.

3次下载·0个收藏
ClawShelf Team
作者: ClawShelf Team

关于此技能

Without structured storage, important facts get buried or lost when your session resets. This skill organizes long-term facts and daily logs into specific files, auto-loading context at startup and saving key details during chat. You get an agent that recalls preferences, action items, and project details without manual prompting. It is ideal for OpenClaw users needing reliable continuity across conversations.

5 分钟完成安装

复制以下提示词,粘贴到 OpenClaw 中即可自动安装:

请根据 https://clawshelf.com/api/skills/clawshelf-team-basic-memory/install 的说明,下载并安装此技能到本地 ~/.openclaw/skills/ 目录。

文件预览

包含文件

  • SKILL.md
SKILL.md
---
name: basic-memory
description: Gives your OpenClaw agent persistent memory across conversations by organizing entries in the native MEMORY.md and daily memory files. Automatically loads saved context at session start and saves important facts, decisions, and preferences during conversation. Use this skill whenever users say 'remember this', 'save this', 'don't forget', 'note that', 'what do you remember', 'forget [topic]', or when you detect they've shared something worth keeping — even if they don't explicitly ask. Also activate automatically at the start of every new session to load prior context.
license: MIT
---

# Basic Memory

## Purpose

OpenClaw already stores memory in `~/.openclaw/workspace/MEMORY.md` and loads it automatically at session start. The problem is that without clear structure and save habits, important facts get buried or never written down at all. This skill teaches the agent exactly what to save, where to put it, and how to retrieve it — so memory actually works in practice.

## Storage Layout

All readable memory lives under the workspace:

```
~/.openclaw/workspace/
├── MEMORY.md                  ← long-term facts, loaded every session
└── memory/
    └── YYYY-MM-DD.md          ← daily log, today + yesterday auto-loaded
```

> Do not write to `~/.openclaw/memory/` — that directory contains the SQLite search index managed by the system. Only the workspace files are yours to read and write.

## MEMORY.md Structure

Organize `MEMORY.md` into four sections. Create any missing section on first write.

```markdown
## Facts
- [2026-04-09] User's name is Billy. Works as an AI engineer at a startup.

## Preferences
- [2026-04-09] Prefers concise replies. Dislikes unnecessary preamble.

## Action Items
- [ ] [2026-04-09] Follow up on API integration by Friday.
- [x] [2026-04-08] Send draft proposal to team. (done)

## Learned
- [2026-04-09] User tends to work late evenings, often picks up mid-task next day.
```

Always distill to a single clear sentence per entry — never paste raw conversation.

## On Session Start

OpenClaw auto-loads `MEMORY.md` plus today's and yesterday's daily files. Use this loaded context immediately — no tool call needed. Scan for open Action Items and surface any that are overdue or relevant to the user's first message.

## Auto-Save During Conversation

Detect and save without being asked when the user shares:

| Signal | Section | File |
|---|---|---|
| Name, job, company, location, family | `## Facts` | `MEMORY.md` |
| "I prefer…", "I hate…", "always use…" | `## Preferences` | `MEMORY.md` |
| "I decided to…", "let's go with…", deadlines | `## Action Items` | `MEMORY.md` |
| Project names, key people, recurring context | daily log | `memory/YYYY-MM-DD.md` |
| Patterns you've noticed about the user | `## Learned` | `MEMORY.md` |

After auto-saving, confirm briefly in one line: "Noted: [distilled fact]."

## Retrieving Memory

Use the built-in tools when searching:

- **`memory_search("query")`** — semantic search across all workspace memory files. Use this for open-ended questions like "what do you remember about my project?"
- **`memory_get("MEMORY.md")`** — read the full long-term memory file directly
- **`memory_get("memory/2026-04-09.md")`** — read a specific daily log

Prefer `memory_search` for retrieval; use `memory_get` when you need a full file read or a specific line range.

## Explicit Commands

**"Remember this" / "Save this"**
1. Confirm: "Got it, I'll remember: [one-line summary]"
2. Write to the appropriate section

**"What do you remember about [topic]?"**
1. Call `memory_search("[topic]")`
2. Return matching entries with dates
3. If nothing found: "I don't have anything saved about [topic] yet."

**"Forget [topic]"**
1. Show the entries that would be removed
2. Ask for confirmation before deleting

**"Show all memories"**
Read `MEMORY.md` with `memory_get` and report entry counts per section plus approximate size.

## Session Reset — The One Thing to Know

OpenClaw's daily reset (default 4 AM) archives the session transcript **without** triggering a memory save. This means anything discussed but not yet written to `MEMORY.md` or the daily file is silently lost.

To prevent this: if a session has been long or contained important decisions, remind the user before wrapping up — "Want me to save today's key points before you go?" — then write them to the daily log and update `MEMORY.md` accordingly. The user can also run `/compact` manually to force a flush.

## Privacy

Don't save passwords, API keys, SSNs, credit card numbers, or health data — not even if the user asks. Acknowledge verbally but skip the write.

## Integration with personal-context

If `personal-context` is also installed, the two skills complement each other:
- `me.json` (personal-context) = stable identity set during onboarding, changes rarely
- `MEMORY.md` (this skill) = evolving knowledge that grows with every conversation

Don't duplicate identity-level facts (name, role, timezone) in `MEMORY.md` if they're already in `me.json`. Use `MEMORY.md` for the things that change — decisions, preferences discovered over time, open tasks.

See `references/memory-hygiene.md` for size limits, archiving rules, and deduplication guidance.

搭配使用

用户评价

—
0 reviews
5
0
4
0
3
0
2
0
1
0

登录后可发表评价

暂无评价,成为第一个评价者吧。

$0

一次购买 · 终身更新

100% 原生支持 OpenClaw / Claude 等任何 AI 助手

创作者
ClawShelf Team
ClawShelf Team
类型技能
分类productivity
价格$0
上架时间4/10/2026
授权一次性购买
下载量3
收藏量0
版本1.0.0
productivity
smart-summarizer

Transform long articles, videos, and PDFs into concise digests with TL;DRs and actionable insights in seconds.

$5
productivity
Memory Starter Kit

Equip your agent with persistent memory and personal context to maintain continuity and recognize user preferences across every session.

$0
productivity
personal-context

Personalize every session by building a persistent profile that remembers your name, timezone, and communication style.

$0