strategic-compact

Suggests manual compaction at logical workflow breakpoints via a stop-event hook.

12|2|Updated Mar 22, 2026
One-click install
npx skills add https://github.com/aman-2709/superpowers-ecc --skill strategic-compact-aman-2709
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: strategic-compact
Source: https://github.com/aman-2709/superpowers-ecc/tree/main/skills/strategic-compact
Command: npx skills add https://github.com/aman-2709/superpowers-ecc --skill strategic-compact-aman-2709

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Preserve critical workflow context by suggesting manual compaction at logical breakpoints.

Core Features & Use Cases

  • Guides when to compact context to maintain continuity across phases.
  • Supports long-running, multi-phase sessions and frequent task-switching scenarios.
  • Helps teams reduce context loss by keeping essential prompts and state intact.

Quick Start

Enable the strategic-compact skill to receive compaction prompts at logical workflow breakpoints.

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 in long-running AI assistant sessions?

To preserve context in long-running AI assistant sessions, enable a skill that tracks message counts and suggests manual compaction at logical workflow breakpoints, keeping essential state and prompts intact.

When should I compact context during multi-phase projects?

You should compact context during multi-phase projects at logical workflow breakpoints, such as transitioning from research to plan, implement, or test phases, to maintain continuity and reduce context loss across tasks.

How does the stop-event hook track messages for context compaction?

The stop-event hook tracks message counts during your session and uses a configurable threshold, defaulting to 50 messages, to emit non-blocking reminders to stderr that guide you to manually compact context.

Can I configure the message threshold for compaction reminders?

Yes, the message threshold for compaction reminders is configurable. The skill uses a default threshold of 50 messages to trigger non-blocking suggestions at logical workflow breakpoints, which you can adjust for your environment.

Does manual compaction disrupt frequent task switching in workflows?

Manual compaction does not disrupt frequent task switching because the skill emits non-blocking reminders to stderr. This guides you to compact context at logical breakpoints without interrupting your active workflow or session management.