Skip to content
Productivity
Command

/compact-guard

Smart context compaction with state preservation — saves critical state before compact and restores after

From plugin
pro-workflow
2.9k23 skills8 agents23 commands22 hooks
> /plugin marketplace add rohitg00/pro-workflow
> /plugin install pro-workflow@pro-workflow

Command definition

compact-guard.md
description: Smart context compaction with state preservation — saves critical state before compact and restores after

/compact-guard - Protected Compaction

Protect your working context through compaction.

Quick Start

Run before `/compact` to: 1. Save your current task state 2. Note which files you're editing (max 5 survive compaction) 3. Record decisions made this session 4. Compact safely 5. Restore critical context after

When To Use

  • Before manual `/compact`
  • When you see auto-compact warnings
  • At natural task boundaries

Key Insight

Claude Code only restores **5 files** after compaction, with **5K tokens per file** and **50K total budget**. Plan accordingly:

  • Prioritize the file you're actively editing
  • Move exploration results to subagents
  • Keep notes in a scratch file

Usage

/compact-guard
@rohitg00
Ships withpro-workflow

Claude Code learns from your corrections: self-correcting memory that compounds over 50+ sessions. Context engineering, parallel worktrees, agent teams, and 17 battle-tested skills.

2.9k41 skills8 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
2.9k
Star history of rohitg00/pro-workflow on GitHub, a chart by star-history.com

Other commands on pro-workflow.

auto-setup

auto-setup

Command

Auto-detect project type and configure quality gates, permissions, and hooks for a new codebase

@rohitg00@rohitg00Install Command

More commands from other plugins.

analyze-cohorts

analyze-cohorts

Command

Perform cohort analysis on user data — retention curves, feature adoption, and engagement trends

@phuryn@phurynInstall Command
again

again

Command

PUA Again — 用于再试试、换个方法、别放弃、为什么还不行、同一路径失败多次;要求停止微调同一思路,改用本质不同方案。

pua2mo20k
@tanweai@tanweaiInstall Command