strategic-compact

Suggest manual context compaction at configurable thresholds during long task workflows.

1|Updated Feb 7, 2026
One-click install
npx skills add https://github.com/sangrokjung/claude-code-config-public --skill strategic-compact-sangrokjung
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: strategic-compact
Source: https://github.com/sangrokjung/claude-code-config-public/tree/main/skills/strategic-compact
Command: npx skills add https://github.com/sangrokjung/claude-code-config-public --skill strategic-compact-sangrokjung

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 compaction at logical points in a workflow, preventing the loss of important information that can occur with arbitrary auto-compaction.

Core Features & Use Cases

  • Strategic Compaction: Prompts the user to manually compact context at opportune moments (e.g., after research, before implementation, after milestones) rather than relying on automatic, potentially disruptive, compaction.
  • Threshold-Based Suggestions: Offers reminders to compact after a configurable number of tool calls, ensuring context is managed proactively.
  • Use Case: When working on a complex coding task, after completing the research phase and before starting to write code, this skill will prompt you to compact the context, preserving your research notes while clearing out intermediate exploration details for a cleaner implementation phase.

Quick Start

Use the strategic-compact skill to suggest manual context compaction when you have made 50 tool 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 Claude's auto-compaction from losing important context during long workflows?

Manual context compaction prevents arbitrary auto-compaction by prompting you to compact at logical workflow intervals, preserving critical information through task phases. You proactively manage context instead of relying on automatic, potentially disruptive resets.

When should I manually compact context in a complex coding session?

You should manually compact context at logical milestones, such as after completing research and before starting implementation. This clears intermediate exploration details while preserving essential research notes for the next phase.

How do I track tool calls to trigger manual context compaction?

You track tool calls to trigger manual context compaction by configuring a threshold, such as 50 tool calls. The skill monitors your progress and prompts you to compact proactively once that threshold is reached.

What is strategic context compaction and how does it work?

Strategic context compaction is a manual context management technique that suggests compacting at configurable workflow intervals. It tracks tool usage and prompts you to clear context at opportune moments, preventing mid-task information loss.

Does manual context compaction work for long-running sessions with extensive tool usage?

Manual context compaction is designed specifically for long-running sessions with extensive tool usage. It prevents arbitrary auto-compaction mid-task by prompting you at configurable thresholds to preserve critical information.

Why does Claude lose my research notes during auto-compaction?

Claude loses research notes during auto-compaction because automatic triggers fire arbitrarily mid-task. Manual context compaction solves this by prompting you to compact at logical intervals, ensuring critical information survives task transitions.