strategic-compact

Suggest manual context compaction at logical workflow intervals based on tool usage thresholds.

Updated Feb 13, 2026
One-click install
npx skills add https://github.com/LiamVDB1/opencode-config --skill strategic-compact-liamvdb1
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: strategic-compact
Source: https://github.com/LiamVDB1/opencode-config/tree/main/skills/strategic-compact
Command: npx skills add https://github.com/LiamVDB1/opencode-config --skill strategic-compact-liamvdb1

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill helps manage Claude's context window by suggesting manual context compaction at logical intervals, preventing arbitrary auto-compaction that can disrupt workflow and lose valuable information.

Core Features & Use Cases

  • Proactive Compaction Suggestions: Recommends /compact commands based on tool usage thresholds and logical workflow transitions.
  • Phase-Aware Context Management: Encourages compaction at natural breaks (e.g., after research, before implementation) to preserve relevant context.
  • Use Case: When working on a multi-phase project, like researching a topic, planning an implementation, and then coding, this skill will prompt you to compact the research context before you start coding, ensuring your implementation plan remains clear and accessible.

Quick Start

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

Frequently Asked Questions about strategic-compact

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I manage Claude AI token limits during long multi-phase tasks?

Manage Claude AI token limits during long tasks by triggering manual context compaction at logical workflow intervals, such as between research and implementation phases, to prevent losing valuable information from arbitrary auto-compaction.

What is context compaction and when should I use it?

Context compaction is the process of summarizing or reducing conversation history to preserve context window space. Use it at natural workflow transitions, like after completing research, to keep implementation plans clear and accessible.

How do I prevent arbitrary auto-compaction from disrupting my workflow?

Prevent arbitrary auto-compaction from disrupting your workflow by proactively suggesting manual `/compact` commands based on tracked tool usage thresholds, ensuring context is preserved at logical breakpoints rather than random limits.

Does strategic context compaction work for sessions approaching token limits?

Strategic context compaction works specifically for long sessions approaching token limits and multi-phase tasks. It tracks tool calls and suggests compaction at configurable thresholds, such as after 50 tool calls, with periodic reminders.

Why does auto-compaction lose valuable information during coding tasks?

Auto-compaction loses valuable information during coding tasks because it triggers arbitrarily at token limits rather than at logical phase transitions. Manual compaction at workflow intervals ensures relevant research context and implementation plans remain accessible.

What's the best way to preserve context through task phases in Claude AI?

The best way to preserve context through task phases in Claude AI is phase-aware context management. Prompt compaction at natural breaks, such as before starting implementation after research, to maintain a clear and accessible project plan.