strategic-compact

Prompt manual context compaction at logical workflow boundaries via a PreToolUse hook.

3|Updated Mar 17, 2026
One-click install
npx skills add https://github.com/idiaz01/enterprise-superpowers --skill strategic-compact-idiaz01
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: strategic-compact
Source: https://github.com/idiaz01/enterprise-superpowers/tree/main/content/skills/strategic-compact
Command: npx skills add https://github.com/idiaz01/enterprise-superpowers --skill strategic-compact-idiaz01

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill suggests manual context compaction at logical milestones to preserve essential context during long, multi-phase tasks, rather than relying on arbitrary auto-compaction.

Core Features & Use Cases

  • Triggers deliberate, human-guided compacting points at key transitions (e.g., research → planning, planning → implementation) to keep only relevant context.
  • Provides a configurable threshold and reminder cadence to balance thoroughness with momentum.
  • Guides users on when to compact and what to persist (e.g., plans, decisions) to maintain thread continuity across phases.

Quick Start

Install and configure the PreToolUse hook to begin receiving strategic-compact prompts at key workflow boundaries.

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-running AI assistant sessions?

To preserve context in long-running AI assistant sessions, you can trigger manual context compaction at logical workflow boundaries like phase transitions. This approach retains essential plans and decisions while discarding irrelevant history, maintaining thread continuity.

What is strategic context compaction and how does it manage context bleed?

Strategic context compaction manages context bleed by prompting manual compaction at logical milestones rather than arbitrary limits. It preserves essential context and maintains coherence across multi-phase projects by persisting only relevant information at phase boundaries.

How do I set up manual compaction prompts at workflow phase boundaries?

You set up manual compaction prompts by installing and configuring a PreToolUse hook with a configurable threshold. This triggers periodic reminders at key transitions, guiding you on when to compact and what context to persist.

When should I compact context during multi-phase projects?

You should compact context during multi-phase projects at key transitions, such as moving from research to planning or planning to implementation. This deliberate compaction at phase boundaries keeps only relevant context and balances thoroughness with momentum.

Does auto-compaction work better than manual compaction for rapid task switching?

Auto-compaction relies on arbitrary limits, while manual compaction at logical boundaries is better for rapid task switching. Strategic compaction allows human-guided persistence of essential context, preserving thread continuity that arbitrary auto-compaction might lose.

Can I configure the compaction reminder cadence for my workflow?

Yes, you can configure the compaction reminder cadence using a configurable threshold. This allows you to balance thoroughness with momentum by adjusting when the strategic compaction prompts appear during your multi-phase tasks.