strategic-compact

Compact working context at logical milestones during long task workflows.

2|1|Updated Oct 4, 2025
One-click install
npx skills add https://github.com/andrew-starosciak/deep-algo --skill strategic-compact-andrew-starosciak
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: strategic-compact
Source: https://github.com/andrew-starosciak/deep-algo/tree/main/.claude/docs/zh-TW/skills/strategic-compact
Command: npx skills add https://github.com/andrew-starosciak/deep-algo --skill strategic-compact-andrew-starosciak

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill provides guidance to perform manual context compaction at logical milestones to maintain relevant working context during long task workflows, preventing loss of important details from automatic, arbitrary truncation.

Core Features & Use Cases

  • Milestone-based compression: Review and compress context after key milestones to prepare for the next phase.
  • Context preservation: Keeps essential research and decisions intact while trimming nonessential chatter.
  • Use Case: In a multi-step research task, compact notes after each milestone to ensure continuity into the next phase.

Quick Start

Use the strategic-compact skill after completing initial exploration to prompt a manual compression of context before moving to the next phase.

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-step workflows?

Manual context compaction at logical milestones prevents context loss during long multi-step workflows by preserving essential research and decisions while trimming nonessential chatter before automatic truncation occurs.

What is strategic context compaction and when should I use it?

Strategic context compaction is the process of reviewing and compressing working context after key milestones. Use it in multi-step research and execution workflows where preserving essential context between phases is critical.

How do I trigger manual context compaction using a PreToolUse hook?

Configure a PreToolUse hook to run the suggest-compact.sh script, which triggers compaction prompts. Adjust the COMPACT_THRESHOLD variable to control invocation frequency based on your workflow needs.

Can I adjust how often context compaction prompts appear?

Yes, you can adjust compaction prompt frequency by modifying the COMPACT_THRESHOLD setting in the script configuration, allowing you to tune invocation frequency for different task optimization requirements.

Does automatic context truncation affect research continuity?

Automatic arbitrary truncation can lose important details during long task workflows. Milestone-based compression reviews context at logical breakpoints to ensure continuity into the next phase without losing critical research.