strategic-compact

Track tool calls and prompt manual compaction at logical task boundaries.

Updated Apr 4, 2026
One-click install
npx skills add https://github.com/mitul-bhatia/Vibes --skill strategic-compact-mitul-bhatia
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: strategic-compact
Source: https://github.com/mitul-bhatia/Vibes/tree/main/.github/skills/strategic-compact
Command: npx skills add https://github.com/mitul-bhatia/Vibes --skill strategic-compact-mitul-bhatia

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Strategic prompts that encourage manual compaction at logical boundaries to preserve relevant context, reducing the risk of context bleed from long sessions.

Core Features & Use Cases

  • Tracks tool invocations during a session to identify opportune moments for compaction.
  • Applies to long-running, multi-phase tasks (research → plan → implement → test) to maintain focused context.
  • Provides a configurable threshold and periodic reminders to prompt for a /compact when context pressure builds.

Quick Start

Invoke the strategic-compact workflow to prompt for a manual /compact when you reach logical task 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 during long multi-phase coding sessions?

Context preservation during long sessions is achieved by prompting manual compaction at logical task boundaries. Tracking tool invocations identifies opportune moments to compact, reducing context bleed when transitioning between research, planning, implementation, and testing phases.

What is strategic compaction and when should I use it?

Strategic compaction is a context management technique that balances context preservation by prompting manual compaction at logical boundaries. It should be used during long-running, multi-phase tasks when context pressure risks degrading session quality.

How do I trigger a manual compaction prompt at logical task boundaries?

You trigger manual compaction prompts by invoking a workflow that implements a PreToolUse hook. This hook tracks tool calls, enforces a configurable threshold, and provides periodic reminders to execute a /compact command at logical boundaries.

Can I configure the context pressure threshold for compaction reminders?

Yes, you can configure the threshold for compaction reminders. The PreToolUse hook enforces this configurable threshold to track tool invocations and provides periodic reminders when context pressure builds during multi-phase tasks.

Why does context degrade when transitioning between research and implementation phases?

Context degrades during phase transitions due to context bleed from long sessions. Without strategic compaction at logical boundaries, accumulated tool calls and context pressure risk degrading the relevance of the active session.

Does context management with PreToolUse hooks work for multi-phase tasks?

Yes, using a PreToolUse hook for context management works specifically for multi-phase tasks. It tracks tool invocations across phases like research, plan, implement, and test to maintain focused context throughout the workflow.