Skill / SKILL.md

Adaptive Compaction

Yrzhe/claude-skills

Adaptive add-on policy and recovery layer that decides WHEN to compact, prune, snapshot, or fork -- replacing fixed-percent auto-compaction across Claude Code, Codex, and MCP-capable hosts. Trigger on auto-compact timing or damage: "when should I compact", "is it safe to compact now or start a fresh session", "auto-compact fires too early/mid-task", "switching to an unrelated task but the window still has space", "context rot", "answers get worse the longer the session runs", "the agent forgot the plan or my decisions after it summarized", "add a layer on top that manages context without changing the agent", raising autoCompactWindow to give the policy room, or installing/tuning a cross-tool compaction policy or PreCompact hook -- even when "compaction" is never said but the problem is context-window pressure or post-summarization memory loss. Do NOT use to summarize a conversation, build RAG, write a summarization prompt (decides WHEN not HOW), or answer max-context-length trivia.
3 views 65 repository stars 0 commentsUpdated Nov 28, 2026
Overview

Adaptive add-on policy and recovery layer that decides WHEN to compact, prune, snapshot, or fork -- replacing fixed-percent auto-compaction across Claude Code, Codex, and MCP-capable hosts. Trigger on auto-compact timing or damage: "when should I compact", "is it safe to compact now or start a fresh session", "auto-compact fires too early/mid-task", "switching to an unrelated task but the window still has space", "context rot", "answers get worse the longer the session runs", "the agent forgot the plan or my decisions after it summarized", "add a layer on top that manages context without changing the agent", raising autoCompactWindow to give the policy room, or installing/tuning a cross-tool compaction policy or PreCompact hook -- even when "compaction" is never said but the problem is context-window pressure or post-summarization memory loss. Do NOT use to summarize a conversation, build RAG, write a summarization prompt (decides WHEN not HOW), or answer max-context-length trivia.

Installation & variants

Download the repository, including the skill’s supporting files.

git clone -- 'https://github.com/Yrzhe/claude-skills' skill-source

Use the complete skill-source/plugins/adaptive-compaction directory with your client’s skill installer.

  • plugins/adaptive-compaction

    main · SKILL.md

    Open installation source

    Source directory recorded from the imported repository path

Source directory plugins/adaptive-compaction

Compatibility & requirements

Declared tools

Read, Bash, Write, Edit

Source instructions
Read source instructions

Open to load source instructions

Original SKILL.md

Open to load the original file

Included files
31 included files
Source & validation
Source status
Awaiting source check
Format validation
Format valid
Checked at
Pending source check
Content SHA-256
e1440ab3951c0ddae9fe055c7b2fa25c7f36e34fff4950f483b467a484358bb1
Discussion
Comments Be the First to Comment

Please log in to comment

    No comments yet

Related skills