strategic-compact

Prompt manual context compression at logical workflow boundaries via PreToolUse hook.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/mu-zhi/CaliberHub --skill strategic-compact-mu-zhi
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: strategic-compact
Source: https://github.com/mu-zhi/CaliberHub/tree/main/ai/skills/strategic-compact
Command: npx skills add https://github.com/mu-zhi/CaliberHub --skill strategic-compact-mu-zhi

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Manages AI context by prompting for manual compression at strategic milestones rather than auto-compaction, preserving critical reasoning while reducing memory load.

Core Features & Use Cases

  • Strategic Context Compression: Proposes context pruning at logical boundaries to retain essential insights.
  • Phase-Aware Workflow: Optimizes transitions between research, planning, implementation, and testing.
  • Non-Destructive: Keeps exploration data accessible for future reference while freeing memory for new tasks.

Quick Start

Enable the PreToolUse hook to run the suggest-compact script before any tool use.

Frequently Asked Questions about strategic-compact

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

FAQPage Schema
How do I manage AI context length in long Claude sessions without losing critical reasoning?▼

You manage AI context length by prompting for manual compression at strategic milestones rather than relying on auto-compaction. This preserves critical reasoning while reducing memory load during long Claude sessions.

What is strategic context compression and when should I use it in AI-assisted workflows?▼

Strategic context compression is non-destructive context pruning applied at logical workflow boundaries. Use it during multi-phase tasks and phase transitions—such as moving from research to implementation—to reclaim memory without sacrificing essential context.

How do I set up manual context compaction prompts at workflow phase transitions?▼

Enable the PreToolUse hook to run the suggest-compact script before any tool use. This applies a configurable threshold to propose context pruning at logical boundaries, optimizing transitions between research, planning, implementation, and testing.

Does strategic context compression work for multi-phase task transitions in Claude workflows?▼

Yes, it optimizes phase-aware workflows by proposing context pruning at boundaries between research, planning, implementation, and testing. This keeps exploration data accessible for future reference while freeing memory for new tasks.

What are the limitations of auto-compaction compared to manual context compression?▼

Auto-compaction may discard critical reasoning without considering workflow boundaries, whereas manual context compression is non-destructive. It keeps exploration data accessible for future reference while strategically freeing memory at logical milestones.