strategic-compact

Trigger manual context compaction prompts at logical task boundaries.

Updated Mar 1, 2026
One-click install
npx skills add https://github.com/derekhu0002/ai4pb-orchestrator --skill strategic-compact-derekhu0002
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: strategic-compact
Source: https://github.com/derekhu0002/ai4pb-orchestrator/tree/main/.agents/skills/strategic-compact
Command: npx skills add https://github.com/derekhu0002/ai4pb-orchestrator --skill strategic-compact-derekhu0002

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Strategic compact helps maintain context by prompting manual compaction at logical task boundaries, preventing uncontrolled auto-compaction from eroding important details.

Core Features & Use Cases

  • Maintains crucial exploration and execution context across long sessions
  • Applies during multi-phase tasks (research → plan → implement → test)
  • Provides configurable thresholds and periodic reminders to propose compaction

Quick Start

Run the strategic-compact tool to trigger a compaction suggestion at the next logical boundary.

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 details during long AI sessions without losing important information?▼

To preserve context during long AI sessions, you can trigger strategic context compaction at logical task boundaries, which prevents uncontrolled auto-compaction from erasing crucial execution details.

What is the best way to manage context when switching between unrelated tasks in an AI workflow?▼

The best way to manage context when switching tasks is applying periodic compaction prompts at task boundaries to maintain session coherence and prevent information loss.

How does a PreToolUse hook help with multi-phase task context management?▼

A PreToolUse hook helps multi-phase task context management by running a script with a configurable threshold to suggest compaction before logical boundaries, maintaining coherence across research, planning, and implementation phases.

Can I configure the threshold for when context compaction suggestions are triggered?▼

Yes, you can configure context compaction suggestions by setting a specific COMPACT_THRESHOLD variable, which determines when the system proposes manual compaction during your session.

Why does auto-compaction erode important details in multi-phase tasks?▼

Auto-compaction erodes important details because it activates based on context window limits rather than logical task boundaries, indiscriminately summarizing information and losing crucial execution context.