strategic-compact

Suggest manual context compaction at logical task intervals with configurable thresholds.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill prevents the loss of crucial context during long AI sessions by suggesting manual context compaction at logical task boundaries, rather than relying on arbitrary auto-compaction.

Core Features & Use Cases

  • Strategic Compaction: Prompts users to manually compact context at opportune moments (e.g., after research, before implementation).
  • Threshold-Based Reminders: Suggests compaction after a configurable number of tool calls.
  • Phase-Aware Context: Preserves relevant context for specific task phases, avoiding mid-task data loss.
  • Use Case: When working on a multi-phase project (research, planning, coding, testing), this skill helps you clear out the research notes before starting to code, ensuring the AI's focus remains on the current implementation details.

Quick Start

Use the strategic-compact skill to suggest a manual context 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 AI sessions?

Preventing context loss during long AI sessions requires manual context compaction at logical task boundaries. This approach preserves crucial context through task phases by clearing out completed research notes before moving to implementation, rather than relying on arbitrary auto-compaction.

When should I compact context in a multi-phase project?

You should compact context in a multi-phase project at logical task intervals, such as after completing research and before starting implementation. This phase-aware approach ensures the AI's focus remains on current details while avoiding mid-task data loss.

What's the difference between manual context compaction and auto-compaction?

Manual context compaction allows you to clear context at strategic task boundaries, preserving relevant phase-specific data. Auto-compaction triggers arbitrarily, risking the loss of crucial mid-task context. The manual approach ensures context-shift management across multi-phase projects.

Can I set a specific number of tool calls to trigger context compaction reminders?

Yes, you can configure threshold-based reminders to suggest context compaction after a specific number of tool calls. This tracks tool usage during long sessions and prompts manual compaction at your defined intervals to manage context shifts effectively.

Why does my AI lose important details partway through a coding task?

Your AI loses important details partway through a coding task due to arbitrary auto-compaction clearing context mid-phase. Using strategic manual compaction at logical task boundaries instead preserves relevant implementation details and prevents mid-task data loss.