Compact Safe — Development skill for Claude Code
Compress context via /compact with safety checks.
How to install Compact Safe
Installs to ~/.claude/commands/sefaertunc-worclaude-compact-safe.md
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/sefaertunc/Worclaude/HEAD/.claude/commands/compact-safe.md -o ~/.claude/commands/sefaertunc-worclaude-compact-safe.md Restart Claude Code, or start a new session, for it to be picked up.
What Compact Safe does
description: "Compress context via /compact with safety checks"
`/compact-safe` adds pre-flight safety checks to bare `/compact`. Compaction loses fine-grained conversation state; running it on a session with uncommitted work, mid-implementation TODOs, or recent destructive operations risks losing context the user expected to keep. This command surfaces those risks before triggering compaction.
Pre-flight safety checks
Run all four checks. Report the findings as a short table. Stop
Alternatives in Development
- Exec Summary — Compress a document or update into a crisp executive summary 1.3k ★
- /autopilot — Autonomous hunt loop with deterministic scope safety and configurable checkpoints 1.2k ★
- Claude-code-safety-net Rules Reference — Custom rules reference for defining safe/dangerous command patterns 1.2k ★
Full documentation available on GitHub
View Source RepositoryRelated Skills
Book Compact
Compress a closed volume into a summary and consolidate story-bible Facts Logs — what keeps a 500-1000 chapter
Compact Memory
Compact the project MEMORY.md index — SAFE-AUTO archive of fully-closed entries (reversible) + PROPOSE-ONLY de
Agent Preflight
Run agent preflight safety checks before making any edits
Emergency Rollback
Emergency rollback to previous version with comprehensive safety checks and recovery. Use for production emerg
Autonomous Agent Protocol Skill
An enterprise-grade execution protocol for Claude Code agents running in autonomous mode. Enforces sacred file
Compress Last
Compress the PREVIOUS (uncompressed) session into the vault — cheaply. The Opus parent stays a thin relay; Hai
Related Agents
Context Optimizer
Meta utility agent for token and context optimization. Spawn when needing to compress agent prompts, optimize
Smartplan Scout
Read-only context-gathering seat of the smartplan tiering policy — find files/symbols/usages and compress them
God Reviewer
Independent reviewer. Checks a change set against the plan for correctness, blast radius, safety, and fit in a