strategic-compact

Prompts manual context compaction during multi-phase workflows to preserve essential information.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/contentbugvideoediting/cb-project-assistant --skill strategic-compact-contentbugvideoediting
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: strategic-compact
Source: https://github.com/contentbugvideoediting/cb-project-assistant/tree/main/services/cb-s-claude/vendor/s-claude/skills-library/strategic-compact
Command: npx skills add https://github.com/contentbugvideoediting/cb-project-assistant --skill strategic-compact-contentbugvideoediting

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Manual context management during long, multi-phase tasks leads to cognitive overload and context drift. This skill guides users to perform explicit compaction at logical boundaries, preserving essential context for subsequent work.

Core Features & Use Cases

  • Tracks session activity and triggers prompts to compact context before moving to a new phase.
  • Offers configurable thresholds and reminders to prevent context saturation.
  • Integrates via PreToolUse hooks to ensure context is refreshed at key transitions (e.g., research to planning, planning to implementation).

Quick Start

Enable the strategic-compact skill and configure the PreToolUse hooks so that it prompts for /compact as your session grows.

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-running multi-phase workflows?▼

Preserve context during long-running workflows by triggering manual context compaction at logical phase boundaries, such as moving from research to planning, to prevent cognitive overload and context drift.

What is context compaction and when should I use it?▼

Context compaction is the process of summarizing and refreshing session data to prevent context saturation. You should use it when approaching token limits or transitioning between distinct phases like implementation and testing.

How do I configure threshold-based prompts for manual context compaction?▼

Configure manual context compaction prompts by setting threshold-based tool-call detection limits and enabling PreToolUse hooks to trigger reminders for executing a context refresh before starting new phases.

Can I use PreToolUse hooks to manage context in multi-phase sessions?▼

Yes, you can use PreToolUse hooks to manage context in multi-phase sessions by configuring them to detect tool calls and prompt for manual compaction before transitioning between planning and implementation phases.

What is the best way to prevent context saturation in multi-phase tasks?▼

The best way to prevent context saturation is applying strategic compaction at phase boundaries using configurable thresholds, which actively tracks session activity and prompts for context refreshment before limits are reached.

Why does context drift occur during extended multi-phase tasks?▼

Context drift occurs during extended multi-phase tasks because manual context management leads to cognitive overload, which is mitigated by implementing explicit compaction reminders at key workflow transitions.