strategic-compact

Identify logical boundaries for manual context compaction during multi-phase tasks.

2|Updated Apr 5, 2026
One-click install
npx skills add https://github.com/mbadoz/mbadoz-skills --skill strategic-compact-mbadoz
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: strategic-compact
Source: https://github.com/mbadoz/mbadoz-skills/tree/main/plugins/built-planner/skills/built-planner/references/skills/strategic-compact
Command: npx skills add https://github.com/mbadoz/mbadoz-skills --skill strategic-compact-mbadoz

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Preserve essential task context across long, multi-phase workflows by recommending strategic, manual compaction at logical boundaries rather than relying on automatic truncation.

Core Features & Use Cases

  • Strategic compaction prompts after exploration, milestones, or phase transitions to preserve critical context while freeing resources.
  • Configurable thresholds and regular reminders to prompt compaction when context grows too large.
  • Lightweight hook-style integration that runs during PreToolUse to assist pacing without interrupting automation.

Quick Start

Trigger a compact reminder at logical phase boundaries to preserve critical context.

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 AI assistant sessions during long multi-phase tasks?

Context preservation during long multi-phase tasks is achieved by triggering strategic compaction at logical phase boundaries, freeing resources while keeping critical session context intact. This prevents automatic truncation from losing essential milestones.

When should I compact context instead of relying on automatic truncation?

Compaction should occur at logical boundaries like exploration milestones or phase transitions rather than on a fixed schedule. Prompting users to compact context after completing planning or testing phases maintains coherence across long workflows.

How do I configure context compaction prompts to trigger at the right time?

Compaction prompts are configured using thresholds and regular reminders triggered during session activity. A lightweight hook-style integration runs during PreToolUse to monitor context size and prompt compaction when it grows too large.

Do I need external services to manage session compaction for AI workflows?

Session compaction requires no external services to function. It relies entirely on internal session activity, milestones, and user prompts to trigger compact decisions and maintain context integrity without external dependencies.

What is the best way to maintain context integrity across implementation and testing phases?

The best way to maintain context integrity is applying strategic compaction prompts after exploration, milestones, or phase transitions. This preserves critical context while freeing resources during implementation and testing without interrupting automation.

Why does my AI assistant lose context coherence during long automation workflows?

Context coherence is lost during long automation workflows when relying on automatic truncation instead of strategic compaction. Applying compaction at logical boundaries preserves essential task context and prevents session fragmentation.