strategic-compact

Trigger manual context compaction at phase boundaries via PreToolUse hooks.

1|Updated Feb 13, 2026
One-click install
npx skills add https://github.com/ROLLED740/vibe-clone-pro --skill strategic-compact-rolled740
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: strategic-compact
Source: https://github.com/ROLLED740/vibe-clone-pro/tree/main/.agent/skills/strategic-compact
Command: npx skills add https://github.com/ROLLED740/vibe-clone-pro --skill strategic-compact-rolled740

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Preserves session context by enabling manual compaction at logical boundaries instead of relying on automatic truncation that can lose important information.

Core Features & Use Cases

  • Phase-boundary compaction: triggers at transitions like Research → Planning or Planning → Implementation to preserve relevant context while freeing memory.
  • Threshold-driven prompts: configurable tool-call thresholds to remind you when compaction is advisable.
  • Hook-based workflow: integrates via PreToolUse hooks to steer long-running sessions toward structured context management.

Quick Start

Configure your PreToolUse hooks to run the strategic-compact script at phase boundaries and begin manually compacting context between task phases.

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 workflows without losing important information?

Manual compaction at logical phase boundaries preserves context in long-running AI workflows by summarizing completed work instead of relying on automatic truncation that can lose important information.

When should I compact context during multi-phase development sessions?

Compact context during multi-phase development sessions at logical phase transitions, such as moving from Research to Planning or Planning to Implementation, to free memory while retaining relevant context.

How do PreToolUse hooks help manage session context?

PreToolUse hooks help manage session context by integrating a workflow mechanism that steers long-running sessions toward structured context management and prompts compaction at configurable thresholds.

What is the best way to prevent automatic truncation from dropping critical session data?

The best way to prevent automatic truncation from dropping critical session data is enabling manual compaction at logical boundaries using configurable tool-call thresholds and hook-driven scripts.

Can I configure tool-call thresholds to remind me when context compaction is advisable?

Yes, you can configure tool-call thresholds to prompt compaction, which reminds you when context compaction is advisable during extended multi-phase AI workflows.

Does strategic-compact require any external dependencies to manage session context?

No, strategic-compact requires no external dependencies to manage session context, functioning purely through configurable PreToolUse hooks and reusable scripts.