← 返回 Skills 市场
billyhetech

basic-memory

作者 billyhetech · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
111
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install basic-memory
功能描述
Gives your OpenClaw agent persistent memory across conversations by organizing entries in the native MEMORY.md and daily memory files. Automatically loads sa...
使用说明 (SKILL.md)

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.

## 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.

安全使用建议
This skill appears to do what it says: manage MEMORY.md and daily logs. Before installing, consider whether you want the agent to auto-save information without an explicit user confirmation — the skill lists signals but still allows discretionary saves, which could accidentally capture sensitive or ephemeral information. If you prefer tighter control: require confirmation before saving, disable automatic saves, or review memory entries periodically. Also note the skill explicitly forbids storing secrets (passwords, API keys, SSNs, health data); make sure the agent's classifiers are reliable in your deployment to avoid accidental storage.
功能分析
Type: OpenClaw Skill Name: basic-memory Version: 1.0.0 The 'basic-memory' skill is a standard implementation for providing long-term persistence to an AI agent using local Markdown files. It includes explicit privacy safeguards in both SKILL.md and references/memory-hygiene.md that instruct the agent never to store sensitive data such as passwords, API keys, or PII. The logic is confined to the local workspace, uses built-in memory tools, and lacks any indicators of data exfiltration, malicious execution, or unauthorized access.
能力评估
Purpose & Capability
Name/description match the instructions: the skill reads/writes files under ~/.openclaw/workspace/, uses built-in memory helper calls (memory_search, memory_get), and documents file layout and limits. It does not request unrelated binaries, env vars, or config paths.
Instruction Scope
Instructions stay within the stated purpose (load memory at session start, search, append, deduplicate, archive). They explicitly avoid touching the system search index and forbid saving secrets. One area to watch: the skill auto-saves when it "detect[s] they've shared something worth keeping," which leaves discretionary judgment to the agent (though concrete signals are listed). This could lead to unexpected writes if the agent misclassifies sensitive or ephemeral content.
Install Mechanism
No install spec and no code files — instruction-only skill. Nothing is downloaded or written to disk by the skill itself beyond the documented workspace files, so install risk is minimal.
Credentials
The skill declares no environment variables, credentials, or config paths. All requested accesses are local workspace files that align with the described functionality.
Persistence & Privilege
always:false and no special privileges requested. The skill can be invoked autonomously (platform default) which is expected for a memory skill; this is not excessive given the absence of broad credential access.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install basic-memory
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /basic-memory 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Adds persistent, structured memory to OpenClaw agents across conversations. - Organizes facts, preferences, action items, and learned insights into a clear `MEMORY.md` structure. - Implements automatic daily logs for project details and recurring context. - Detects and saves important details without explicit commands; confirms saved entries. - Supports commands to remember, forget, or summarize user memories, with privacy safeguards. - Reminds users to save key points before daily session resets to avoid data loss.
元数据
Slug basic-memory
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

basic-memory 是什么?

Gives your OpenClaw agent persistent memory across conversations by organizing entries in the native MEMORY.md and daily memory files. Automatically loads sa... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 111 次。

如何安装 basic-memory?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install basic-memory」即可一键安装,无需额外配置。

basic-memory 是免费的吗?

是的,basic-memory 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

basic-memory 支持哪些平台?

basic-memory 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 basic-memory?

由 billyhetech(@billyhetech)开发并维护,当前版本 v1.0.0。

💬 留言讨论