strategic-compact

Suggest strategic compaction during multi-phase tasks via configurable thresholds.

Updated Mar 21, 2026
One-click install
npx skills add https://github.com/dbrijesh/raep --skill strategic-compact-dbrijesh
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: strategic-compact
Source: https://github.com/dbrijesh/raep/tree/main/templates/skills/strategic-compact
Command: npx skills add https://github.com/dbrijesh/raep --skill strategic-compact-dbrijesh

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill addresses the challenge of maintaining task-specific context during long and complex sessions, helping users to avoid the loss of critical information that can occur with arbitrary auto-compaction.

Core Features & Use Cases

  • Strategic Compaction: Suggests manual compaction at logical intervals, allowing users to maintain context through different task phases.
  • PreToolUse Trigger: Activates during the pre-tool use phase, monitoring tool calls to suggest compaction when needed.
  • Customizable Thresholds: Allows users to set a configurable threshold for when compaction suggestions are made.
  • Use Case: Ideal for users working on multi-phase tasks, such as research, planning, implementation, and testing, across sessions that approach context limits.

Quick Start

Activate the skill by running the command /compact in your workflow when it is suggested by the system.

Frequently Asked Questions about strategic-compact

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

FAQPage Schema
How do I maintain context during long multi-phase tasks without losing critical information?

Strategic context management maintains task-specific context during long sessions by suggesting manual compaction at logical intervals, preventing the loss of critical information that occurs with arbitrary auto-compaction.

What is strategic compaction and how does it optimize session continuity?

Strategic compaction optimizes session continuity by suggesting manual context compaction at logical task phase intervals, allowing users to actively manage and preserve critical workflow information.

Can I set configurable thresholds for context management suggestions?

Yes, you can set configurable thresholds for context management suggestions, allowing the system to trigger compaction recommendations based on your specific session limits and tool call frequency.

When should I use manual compaction instead of auto-compaction for complex workflows?

Use manual compaction for complex workflows when approaching context limits during multi-phase tasks like research and testing, ensuring critical phase-specific context is retained rather than arbitrarily summarized.

How do pre-tool use triggers work for session context optimization?

Pre-tool use triggers monitor tool calls during the pre-tool use phase, activating strategic compaction recommendations when session-specific context approaches configured limits to optimize workflow continuity.