Skip to content
Development
Command

/save

Store information so the next session's Claude knows about it. The core mission: **make sure the next conversation doesn't lose this knowledge.**

From plugin
13219 skills19 commands9 hooks
shell
$ npx -y skills add HelloRuru/claude-memory-engine --agent claude-code

Ships with claude-memory-engine. Installing the plugin gets this command.

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/save

Context preview

What this command does when you run it.

Store information so the next session's Claude knows about it. The core mission: **make sure the next conversation doesn't lose this knowledge.**

Command definition

save.md

/save -- Save Memory Across Sessions

Store information so the next session's Claude knows about it. The core mission: **make sure the next conversation doesn't lose this knowledge.**

Steps

1. **Dedup check** -- Search existing memory files (`memory/*.md`) for related content. If found, update that section instead of creating a new entry 2. **Route to the right file** -- Determine which memory file this belongs to based on topic. If unclear, ask the user 3. **Skip if already in CLAUDE.md** -- CLAUDE.md is auto-loaded every session, so don't duplicate its content 4. **Never write directly to MEMORY.md** -- MEMORY.md is an index of pointers, not a content store. Save content to topic-specific files in `memory/` 5. **Report** -- Tell the user: "Saved to {filename}, section {section name}" or "Updated {filename}, changed {what}"

Memory File Organization

Memory uses a **hub-and-spoke** model:

  • `MEMORY.md` = the hub (index with pointers to topic files, max 200 lines)
  • `memory/*.md` = the spokes (topic-specific content files)

When MEMORY.md exceeds 170 lines, proactively suggest moving content to separate files.

Notes

  • User says "save" or "remember this" -> just save it, don't question it
  • Always check for duplicates before creating new entries
  • Use natural language, not technical jargon
Read it on GitHub ↗
Ships withclaude-memory-engine

Claude Code 的記憶系統 | A memory system built with hooks + markdown. Zero dependencies.

Get the whole plugin, auto-invoked
Stats
132
Stars
0
Views
27
Forks
Maintained
Maintenance
JavaScript
Language
MIT
License
2mo ago
Last commit
4mo ago
Created

Repo: HelloRuru/claude-memory-engine