# compact-guard

> Smart context compaction with state preservation.

Smart context compaction with state preservation. Saves critical files, task progress, and working state before compaction, restores after. Use before manual compact or when auto-compact triggers.

- Type: Skill
- Made by: rohitg00
- Category: AI & agents
- Formats: Skills
- Version: 470b79c
- Source: https://github.com/rohitg00/pro-workflow/tree/HEAD/skills/compact-guard
- Page: https://pluginboard.ai/skills/compact-guard

## Works with

- ChatGPT
- Claude
- Gemini
- GitHub Copilot
- Cursor
- Claude Code
- Codex
- Antigravity
- Gemini CLI
- Replit
- OpenClaw
- OpenCode
- Hermes Agent

## Install

### ChatGPT

In ChatGPT: Download the compact-guard folder and zip it, then Plugins → Skills → Create → Upload from your computer. Business and Enterprise plans.

View the folder on GitHub: https://github.com/rohitg00/pro-workflow/tree/HEAD/skills/compact-guard

### Claude

In Claude (web or desktop): Download the compact-guard folder and zip the folder itself, then upload it in Customize → Skills.

View the folder on GitHub: https://github.com/rohitg00/pro-workflow/tree/HEAD/skills/compact-guard

### Gemini

In Gemini: Download the compact-guard folder, then at gemini.google.com click Customize → Skills → Create → Upload and pick the folder (or a .zip of it).

View the folder on GitHub: https://github.com/rohitg00/pro-workflow/tree/HEAD/skills/compact-guard

### GitHub Copilot

Run in your terminal:

```shell
npx -y degit rohitg00/pro-workflow/skills/compact-guard ~/.copilot/skills/compact-guard
```

View the folder on GitHub: https://github.com/rohitg00/pro-workflow/tree/HEAD/skills/compact-guard

### Cursor

Run in your terminal:

```shell
npx -y degit rohitg00/pro-workflow/skills/compact-guard ~/.cursor/skills/compact-guard
```

View the folder on GitHub: https://github.com/rohitg00/pro-workflow/tree/HEAD/skills/compact-guard

### Claude Code

Run in your terminal:

```shell
npx -y degit rohitg00/pro-workflow/skills/compact-guard ~/.claude/skills/compact-guard
```

View the folder on GitHub: https://github.com/rohitg00/pro-workflow/tree/HEAD/skills/compact-guard

Or all of Pro Workflow, in Claude Code:

```text
/plugin marketplace add rohitg00/pro-workflow
/plugin install pro-workflow@pro-workflow
```

### Codex

Run in your terminal:

```shell
npx -y degit rohitg00/pro-workflow/skills/compact-guard ~/.agents/skills/compact-guard
```

View the folder on GitHub: https://github.com/rohitg00/pro-workflow/tree/HEAD/skills/compact-guard

### Antigravity

In Antigravity: Copy the compact-guard folder into ~/.gemini/config/skills (Antigravity app and IDE) or ~/.gemini/antigravity-cli/skills (Antigravity CLI).

View the folder on GitHub: https://github.com/rohitg00/pro-workflow/tree/HEAD/skills/compact-guard

### Gemini CLI

Run in your terminal:

```shell
npx -y degit rohitg00/pro-workflow/skills/compact-guard ~/.gemini/skills/compact-guard
```

View the folder on GitHub: https://github.com/rohitg00/pro-workflow/tree/HEAD/skills/compact-guard

### Replit

Run in your terminal:

```shell
npx -y degit rohitg00/pro-workflow/skills/compact-guard .agents/skills/compact-guard
```

View the folder on GitHub: https://github.com/rohitg00/pro-workflow/tree/HEAD/skills/compact-guard

### OpenClaw

Run in your terminal:

```shell
npx -y degit rohitg00/pro-workflow/skills/compact-guard ~/.openclaw/skills/compact-guard
```

View the folder on GitHub: https://github.com/rohitg00/pro-workflow/tree/HEAD/skills/compact-guard

### OpenCode

Run in your terminal:

```shell
npx -y degit rohitg00/pro-workflow/skills/compact-guard ~/.config/opencode/skills/compact-guard
```

View the folder on GitHub: https://github.com/rohitg00/pro-workflow/tree/HEAD/skills/compact-guard

### Hermes Agent

Run in your terminal:

```shell
npx -y degit rohitg00/pro-workflow/skills/compact-guard ~/.hermes/skills/compact-guard
```

View the folder on GitHub: https://github.com/rohitg00/pro-workflow/tree/HEAD/skills/compact-guard

---
From Pluginboard (https://pluginboard.ai).
