Skip to content
Back to skills

Strategic Compact

ASecurity

Intelligent context window management with strategic compaction suggestions. Monitors context usage and suggests /compact at logical boundaries. Saves state before compaction to enable recovery.

  • 188 stars
  • 0 votes
  • 0 copies
  • 6 views
  • Added February 9, 2026
developmentgobashdebuggingrefactoring

Security analysis

A100/100

Scanned February 12, 2026

npx -y skills add WenJunDuan/Rlues --skill strategic-compact --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Strategic Compact?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Strategic Compact
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/wenjunduan-strategic-compact/badge)](https://www.skillsdirectory.com/skills/wenjunduan-strategic-compact)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: strategic-compact
description: |
  Intelligent context window management with strategic compaction suggestions.
  Monitors context usage and suggests /compact at logical boundaries. Saves
  state before compaction to enable recovery.
---

# Strategic Compact Skill

Optimize context window usage through intelligent compaction timing.

## Warning Thresholds

| Level | Usage | Action |
|:---|:---|:---|
| Info | 50% | Monitor |
| Warning | 70% | Suggest compact soon |
| Critical | 85% | Urgent compaction needed |
| Danger | 95% | Immediate compaction |

## Good Times to Compact
- ✅ After completing a feature/task
- ✅ Before starting new unrelated work
- ✅ After successful verification
- ✅ At natural conversation breaks

## Bad Times to Compact
- ❌ Mid-debugging session
- ❌ During multi-file refactoring
- ❌ When tracking complex state

## Pre-Compaction Workflow

1. **State Capture** - Save current task context
2. **Save State** - Write to pre-compact-state.yaml
3. **Generate Summary** - Create session summary
4. **Execute Compaction** - /compact --preserve-state

## Post-Compaction Recovery

```bash
/resume --from-compact
```

Loads pre-compact-state.yaml and restores context.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…