Skip to content
Development
Command

/compact-guide

Help decide when to use `/compact` based on the current conversation state.

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

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