/backup
Push local memory files to your GitHub backup repository.
$ npx -y skills add HelloRuru/claude-memory-engine --agent claude-codeShips 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
/backup
Context preview
What this command does when you run it.
Push local memory files to your GitHub backup repository.
Command definition
backup.md/backup -- Push Memory to GitHub
Push local memory files to your GitHub backup repository.
Usage
bash ~/.claude/scripts/hooks/memory-backup.sh push
What it does
1. **Scan all projects** -- find every `~/.claude/projects/*/memory/` directory 2. **Copy to backup repo** -- mirror all `.md` files into the backup repo 3. **Commit** -- stage and commit changes 4. **Push** -- push to GitHub
Notes
- The SessionEnd hook auto-commits locally after every conversation; this command handles the push
- v1.6: push now auto-detects all project directories instead of hardcoding paths
- For bidirectional sync (push + pull), use `/sync` instead
- For pulling from GitHub, use `/recover`
Claude Code 的記憶系統 | A memory system built with hooks + markdown. Zero dependencies.
Repo: HelloRuru/claude-memory-engine
Other commands on claude-memory-engine.
- /analyze
Analyze user corrections and log them into the error notebook
Open command - /bb-pause
Pause the SessionEnd auto-commit hook when refactoring core engine files.
Open command - /check
Run a quick scan of the memory system's health. For daily use.
Open command - /compact-guide
Help decide when to use `/compact` based on the current conversation state.
Open command - /correct
Review the error notebook — flip through past corrections before working
Open command - /diary
Generate a reflection diary entry from the current conversation.
Open command

