/compact-guide
Help decide when to use `/compact` based on the current conversation state.
$ 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
/compact-guide
Context preview
What this command does when you run it.
Help decide when to use `/compact` based on the current conversation state.
Command definition
compact-guide.md/compact-guide -- Smart Context Compression Guide
Help decide when to use `/compact` based on the current conversation state.
When to Compact
| Situation | Compact? | Why | | :-------- | :------- | :-- | | Research/exploration done, ready to build | Yes | Research context is large; the plan is what matters | | Planning done, starting to code | Yes | Plan is already in TodoWrite or a file | | Debug session finished | Yes | Debug logs pollute the next task's context | | Switching to a completely different task | Yes | Clear irrelevant context | | Deployment done, starting new feature | Yes | Deployment logs aren't needed anymore |
When NOT to Compact
| Situation | Why | | :-------- | :-- | | In the middle of writing code | Lose variable names, file paths, partial state | | Debugging an unresolved issue | Lose error messages and attempted solutions | | Multi-file refactor in progress | Forget which files still need changes | | Just read an important doc, about to reference it | Doc content gets summarized away |
Auto-Suggest
When context usage exceeds 60%, proactively suggest whether compacting is appropriate based on the current task state.
Claude Code 的記憶系統 | A memory system built with hooks + markdown. Zero dependencies.
Other commands on claude-memory-engine.
- /analyze
Analyze user corrections and log them into the error notebook
Open command - /backup
Push local memory files to your GitHub backup repository.
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 - /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

