strategic-compact

Prompt manual /compact at logical phase boundaries in multi-phase workflows.

Updated Jan 24, 2026
One-click install
npx skills add https://github.com/koumatsumoto/.claude --skill strategic-compact-koumatsumoto
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: strategic-compact
Source: https://github.com/koumatsumoto/.claude/tree/main/skills/strategic-compact
Command: npx skills add https://github.com/koumatsumoto/.claude --skill strategic-compact-koumatsumoto

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

自動的なコンパクトに頼らず、論理的な区切りで手動の /compact を提案することで、長いワークフローにおける文脈喪失を防ぎます。

Core Features & Use Cases

  • 探索フェーズ終了時やマイルストーン完了後、実行前に手動で /compact を提案し、次フェーズの文脈を保持します。
  • PreToolUse フックとツール呼び出しのトラッキングを組み合わせ、適切なタイミングでリマインドを行います。
  • 環境変数と設定ファイルで閾値をカスタマイズでき、様々なワークフローに適用可能です。

Quick Start

探索の後・実行前、マイルストーン完了後、文脈が大きく変わる前に、適切なタイミングで /compact を実行してください。

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 multi-phase workflows?

Prevent context loss by prompting manual /compact at logical phase boundaries, preserving task context between research and implementation phases instead of relying on automatic compaction.

When should I run /compact to retain context in my workflow?

Run /compact after exploration phases, before implementation, or upon milestone completion to retain long-term memory and ensure the next phase starts with a clean, preserved context.

Can I use PreToolUse hooks to track when compaction is needed?

Yes, the context-tracking mechanism combines PreToolUse hooks with tool call tracking to monitor workflow progress and remind you when manual /compact is appropriate at logical boundaries.

Does this approach work for workflows alternating between research and implementation?

It is best suited for multi-phase workflows alternating between research and implementation, where milestones and long-term memory retention require strategic compaction at phase boundaries.

How do I configure compaction thresholds for different workflow contexts?

Customize compaction thresholds using environment variables and configuration files, allowing the context-tracking mechanism to adapt reminders across various multi-phase workflow environments.

Why does manual /compact help maintain context better than automatic compaction?

Manual /compact at logical phase boundaries preserves critical task context by timing compaction strategically, whereas automatic compaction may discard important details at inconvenient workflow points.