Registry / yrzhe

yrzhe/claude-skills/adaptive-compaction

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 t

Agent skill · version 1.2.1-main.1795940018.g79b0639 · from Yrzhe/claude-skills

Install

npx yarkr-cli add skill:yrzhe/claude-skills/adaptive-compaction

Without Node.js, on macOS and Linux (curl or wget):

curl -fsSL https://yarkr.com/install.sh | sh -s -- add skill:yrzhe/claude-skills/adaptive-compaction
wget -qO- https://yarkr.com/install.sh | sh -s -- add skill:yrzhe/claude-skills/adaptive-compaction

On Windows, in PowerShell:

irm https://yarkr.com/install.ps1 | iex; yarkr add skill:yrzhe/claude-skills/adaptive-compaction

Works with Claude Code, Codex, opencode, Cursor, any harness over MCP.