strategic-compact

Suggest manual context compaction at logical workflow boundaries via PreToolUse hooks.

Updated Feb 4, 2026
One-click install
npx skills add https://github.com/officechbusinessservices-creator/CompliCore --skill strategic-compact-officechbusinessservices-creator
Or copy as Structured Prompt for Agentβ–Ό
Please help me install this Agent Skill.
Skill: strategic-compact
Source: https://github.com/officechbusinessservices-creator/CompliCore/tree/main/.claude/skills/strategic-compact
Command: npx skills add https://github.com/officechbusinessservices-creator/CompliCore --skill strategic-compact-officechbusinessservices-creator

SYSTEM DOCUMENTATION & REQUIREMENTS

πŸ’‘ This Skill includes scripts (resource) components.

What problem does it solve?

Maintains task continuity by replacing arbitrary auto-compaction with manual, strategically-timed context compaction at logical milestones.

Core Features & Use Cases

  • Tracks tool calls and detects context pressure to suggest compaction at strategic boundaries.
  • Supports long-running sessions and multi-phase workflows (research β†’ plan β†’ implement β†’ test) to keep relevant information accessible.
  • Integrates via PreToolUse hooks to prompt the user when it’s time to compact and reset context for the next phase.

Quick Start

Configure the PreToolUse hooks to trigger the suggest-compact.sh script during long sessions to prompt strategic compaction.

Frequently Asked Questions about strategic-compact

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I prevent context loss during long-running multi-phase workflows?β–Ό

Manual context compaction preserves task continuity by prompting resets at logical milestones rather than arbitrary auto-compaction. This ensures relevant information remains accessible across multi-phase workflows like research, plan, implement, and test.

What is strategic context compaction and when should I use it?β–Ό

Strategic context compaction is a method that tracks tool calls to detect context pressure and suggests manual context resets at logical boundaries. Use it in long-running sessions to maintain relevant context before hitting system limits.

How do I configure PreToolUse hooks to suggest manual context compaction?β–Ό

Configure PreToolUse hooks to execute the suggest-compact.sh script during your sessions. This integration monitors tool calls and automatically prompts you to compact and reset context at strategic boundaries.

Can I use manual compaction for multi-phase research and implementation sessions?β–Ό

Yes, manual compaction is designed for multi-phase research and implementation sessions. It detects context pressure and suggests resets at logical boundaries to preserve relevant context as you transition between phases.

Does context compaction work without relying on automatic system resets?β–Ό

Yes, this approach replaces arbitrary auto-compaction with manual context resets triggered at logical milestones. By using PreToolUse hooks to detect context pressure, you control when compaction happens instead of relying on automatic system resets.