strategic-compact

Suggest manual context compaction at logical workflow intervals.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill helps manage AI context by suggesting manual compaction at logical workflow intervals, preventing arbitrary auto-compaction that can disrupt tasks.

Core Features & Use Cases

  • Strategic Compaction: Prompts users to manually compact AI context at opportune moments (e.g., after exploration, before execution).
  • Workflow Optimization: Preserves critical context through task phases rather than losing it during mid-task auto-compaction.
  • Use Case: After researching a complex coding problem and formulating a plan, you can use this skill's suggestion to /compact and clear out the research noise, leaving only the actionable plan in context for implementation.

Quick Start

Use the strategic-compact skill to suggest manual context compaction when transitioning between major task phases.

Frequently Asked Questions about strategic-compact

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

FAQPage Schema
How do I prevent AI context loss during auto-compaction in long workflows?

Manual context compaction prevents AI context loss by prompting you to compact at logical workflow intervals. This preserves critical task context through phases instead of losing it to arbitrary auto-compaction.

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

Manual context compaction is the process of intentionally clearing AI context at strategic task transitions, like after exploration and before execution. Use it to preserve actionable plans while removing research noise.

How do I set up context compaction suggestions at configurable thresholds?

Set up context compaction suggestions by running a shell script that monitors tool usage. The script tracks tool calls and outputs manual compaction prompts when configurable thresholds or periodic intervals are reached.

Does strategic context compaction work with standard AI workflow phases?

Yes, strategic context compaction works with standard AI workflow phases by suggesting manual compaction during transitions. This ensures critical context is preserved between research, planning, and implementation phases.

Why does auto-compaction disrupt complex coding tasks and how to fix it?

Auto-compaction disrupts complex coding tasks by clearing context mid-task at arbitrary limits. Fix it by using manual context compaction to strategically clear context only at logical workflow intervals.