strategic-compact

Prompt manual context compaction after a configurable tool-call threshold.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/sasasayusuke/util --skill strategic-compact-sasasayusuke
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: strategic-compact
Source: https://github.com/sasasayusuke/util/tree/main/pg/%E3%83%86%E3%83%97%E3%82%B7%E3%82%B9/.claude/skills/strategic-compact
Command: npx skills add https://github.com/sasasayusuke/util --skill strategic-compact-sasasayusuke

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill helps maintain crucial context during long-running tasks by suggesting manual context compaction at logical workflow intervals, preventing the loss of important information that can occur with arbitrary auto-compaction.

Core Features & Use Cases

  • Manual Compaction Prompts: Provides timely suggestions to manually compact the context, allowing users to strategically preserve relevant information.
  • Threshold-Based Reminders: Triggers suggestions after a configurable number of tool calls, ensuring context is managed before it becomes overwhelming.
  • Use Case: After extensive research and before starting to write code, you can use this skill to prompt a manual /compact to clear out the research notes while keeping the implementation plan, ensuring a clean slate for the next phase.

Quick Start

Use the strategic-compact skill to suggest manual context compaction when tool usage reaches fifty calls.

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

To prevent context loss during long-running AI sessions, you can trigger manual context compaction at strategic workflow intervals. This approach preserves crucial information by compacting context logically between task phases rather than relying on arbitrary auto-compaction.

When should I manually compact context instead of using auto-compaction?

You should manually compact context at logical workflow transitions, such as after research and before coding. Manual compaction allows you to strategically preserve relevant information and clear out unnecessary notes, unlike arbitrary auto-compaction that might drop critical details mid-phase.

How does threshold-based context management work for multi-phase tasks?

Threshold-based context management works by tracking tool calls and prompting you to manually compact after a configurable threshold is met. This ensures context is managed before it becomes overwhelming, maintaining a clean slate for the next phase of multi-phase tasks.

Can I configure the tool call threshold for context compaction reminders?

Yes, you can configure the tool call threshold for context compaction reminders. The skill tracks tool usage and triggers suggestions after a specified number of calls is met, with periodic intervals thereafter, allowing you to control when context management prompts appear.

What is the best way to manage context across different workflow phases?

The best way to manage context across workflow phases is to suggest manual context compaction at logical intervals. This allows you to clear research notes while keeping the implementation plan, ensuring a clean slate and preventing the loss of important information.

Why does auto-compaction lose important information during complex workflows?

Auto-compaction loses important information because it triggers arbitrarily, potentially dropping critical details mid-task. Strategic manual compaction prevents this by allowing user-controlled context management at logical breakpoints, preserving necessary information for subsequent phases.