strategic-compact

Compact context at workflow boundaries via PreToolUse hooks and scripts.

3|1|Updated Oct 28, 2025
One-click install
npx skills add https://github.com/The-Skyy-Rose-Collection-LLC/DevSkyy --skill strategic-compact-the-skyy-rose-collection-llc
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: strategic-compact
Source: https://github.com/The-Skyy-Rose-Collection-LLC/DevSkyy/tree/main/.claude/skills/strategic-compact
Command: npx skills add https://github.com/The-Skyy-Rose-Collection-LLC/DevSkyy --skill strategic-compact-the-skyy-rose-collection-llc

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Compact context manually at logical workflow boundaries to prevent context bloat and maintain planning clarity.

Core Features & Use Cases

  • Hook-based compaction: triggers before tool use to prune context.
  • Scripted suggestions: provides guided compact decisions via local scripts.
  • Phase-aware: designed for transitions between exploration, planning, and execution to keep tasks scoped.

Quick Start

Instruct your AI to compact context before executing a plan.

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 bloat when an AI agent transitions from exploration to execution?

Context bloat is prevented by compacting context manually at logical workflow boundaries. Applying compaction during phase transitions keeps the task scope focused and maintains planning clarity for the AI agent.

What is a PreToolUse hook for context management and how does it work?

A PreToolUse hook for context management triggers before tool use to prune context automatically. It works alongside a local suggest-compact.sh script and environment-based thresholds to guide when compaction should occur.

How do I compact context at logical workflow boundaries step by step?

To compact context at workflow boundaries, instruct your AI agent to compact context before executing a plan. You can configure a suggest-compact.sh script and environment thresholds to trigger pruning during phase transitions.

When should I compact context during AI agent planning workflows?

You should compact context during transitions from exploration to planning, and from planning to execution. Applying compaction at these phase boundaries maintains focused task scope and prevents context window overflow.

Can I use environment-based thresholds to control AI agent compaction?

Yes, you can use environment-based thresholds to control compaction. These thresholds work with a PreToolUse hook and a local suggest-compact.sh script to guide automated decisions on when to prune the context.

Does manual context compaction work without external dependencies?

Yes, manual context compaction works without external dependencies. The Skill relies on a PreToolUse hook, a local suggest-compact.sh script, and environment variables to manage context pruning within your existing workflow.