strategic-compact

Recommend manual /compact at logical workflow boundaries in long Claude sessions.

Updated Mar 28, 2026
One-click install
npx skills add https://github.com/adomot/claude-settings --skill strategic-compact-adomot
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: strategic-compact
Source: https://github.com/adomot/claude-settings/tree/main/skills/aegis/strategic-compact
Command: npx skills add https://github.com/adomot/claude-settings --skill strategic-compact-adomot

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Strategic manual context compaction helps preserve crucial context in long Claude sessions by avoiding unchecked automatic condensation and by prompting deliberate pauses for consolidation.

Core Features & Use Cases

  • Manually propose /compact at logical workflow boundaries (exploration → planning, planning → implementation, milestones) to preserve decision context.
  • Provide clear guidance on what persists and what is cleared during transitions, reducing context drift.
  • Use in multi-phase tasks to maintain continuity across phases and to manage switching between unrelated tasks without losing important insights.

Quick Start

In your next long session, trigger a strategic compact after finishing a major milestone or before switching tasks to preserve essential context.

Frequently Asked Questions about strategic-compact

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I preserve context in long Claude sessions during multi-phase tasks?

You can preserve context in long Claude sessions by triggering manual /compact at logical workflow boundaries, such as transitions between exploration, planning, and implementation, instead of relying on automatic context cutting.

When should I manually compact context instead of letting Claude do it automatically?

You should manually compact context when finishing a major milestone or switching between unrelated tasks within the same session, as this deliberate pause prevents automatic condensation from discarding crucial decision context.

How does the PreToolUse hook in Claude settings manage context compaction?

The PreToolUse hook in ~/.claude/settings.json uses a configurable threshold and a suggest-compact.sh runner to monitor your workflow and trigger reminders that guide you to manually consolidate context at key milestones.

How do I configure context compaction thresholds for Claude workflow transitions?

Context compaction thresholds are configured within the PreToolUse hook setup in ~/.claude/settings.json, allowing the suggest-compact.sh runner to trigger manual compaction recommendations based on your specified workflow boundaries.

Does manual context compaction work for switching between unrelated tasks?

Yes, manual context compaction is designed for switching between unrelated tasks within the same session, providing clear guidance on what context persists and what is cleared to reduce context drift.

What are the limitations of automatic context cutting in Claude?

Automatic context cutting can cause context drift by unchecked condensation of crucial information, which is why prompting deliberate pauses for manual consolidation at workflow boundaries is recommended to maintain continuity.