Context Compressor

Maximize signal-per-token in agent context windows. Use whenever context is being assembled for a task and the question is "what to include, what to cut, and how to encode it." Triggers on: "optimize context", "context window too full", "token budget", "which files in context?", "rank context by importance", "deduplicate context", "context triage", "compress this for the agent", or any curation of context under a finite token budget. Also trigger when assembling CLAUDE.md, AGENTS.md, .ctx files, system prompts, or skill files and deciding what earns its token cost. Unlike summarization (which compresses uniformly for human readers), this skill triages context by task-relative information value — scoring each fragment's entropy, redundancy, and efficiency, then cutting or compressing selectively. If tokens are scarce and context is abundant, always use this skill.

andurilcode 81cd50d 3.9 KB Updated

File contents

andurilcode/craftwork/tree/main/skills/context-compressor commit 81cd50d0fc

Frequently asked questions

npx skillmds@latest add andurilcode/context-compressor