strategic-compact

Suggest manual context compaction at logical workflow intervals during AI sessions.

Updated Jun 2, 2025
One-click install
npx skills add https://github.com/wraithyy/dotfiles --skill strategic-compact-wraithyy
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: strategic-compact
Source: https://github.com/wraithyy/dotfiles/tree/main/dot_claude/skills/strategic-compact
Command: npx skills add https://github.com/wraithyy/dotfiles --skill strategic-compact-wraithyy

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill helps you manage your AI's context window by suggesting manual compaction at logical workflow intervals, preventing loss of critical information during task transitions.

Core Features & Use Cases

  • Strategic Compaction: Recommends manual /compact commands at opportune moments (e.g., after planning, before execution) rather than relying on arbitrary auto-compaction.
  • Context Preservation: Ensures important context is retained through different phases of a complex task.
  • Use Case: After researching a problem and formulating a plan, you can strategically compact the exploration context to keep the plan clear for the execution phase.

Quick Start

Use the strategic-compact skill to suggest manual context compaction when tool usage exceeds 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 AI assistant multi-stage tasks?

To prevent context loss, you can use strategic context compaction to suggest manual compaction at logical workflow intervals, preserving critical information during task transitions before the context window auto-compacts.

When should I manually compact context in long AI workflows?

You should manually compact context at logical workflow intervals, such as after finishing research and formulating a plan, to ensure important context is retained and the plan stays clear for the execution phase.

What triggers the strategic context compaction suggestion?

The strategic context compaction suggestion is triggered when tool usage exceeds a configurable threshold, specifically prompting the user to initiate manual compaction after fifty tool calls.

Does manual context compaction work better than auto-compaction?

Manual context compaction is recommended over auto-compaction because it applies at opportune moments like before execution, ensuring important context is retained through different phases rather than being arbitrarily truncated.

Can I configure the tool call threshold for context management?

Yes, context management prompts are configurable, allowing you to set the threshold for tool calls that triggers the suggestion to initiate manual compaction during your AI assistant session.