oimiragieo avatar

Context Compressor

Compresses large context before reasoning to save tokens while keeping the evidence you need to answer correctly. Runs locally via Python scripts, no MCP server required. You get three modes: baseline for generic compression, query_guided when you have a specific question, and evidence_aware when correctness matters and you want an explicit sufficiency check. The skill auto-triggers at 80K tokens and blocks new agent spawns at 150K until you compress. Best for chunky RAG payloads, massive codebases, or long chat histories where you're burning tokens on repeated context. The evidence validation is honest: if compressed output looks too thin, it tells you instead of guessing.

skills.sh installs
271
GitHub stars
45
last updated
Aug 21, 2026

Install

$ npx -y skills add oimiragieo/agent-studio --skill context-compressor --agent claude-code

Installs into .claude/skills of the current project.

Files

Context Compressor

Use this skill when the problem is mostly "too much context" rather than "not enough capability."

This skill is a self-contained local package. It does not require the MCP server. Prefer it when you need quick token profiling, local compression, evidence checks, or a reproducible compression workflow inside the repository.

What this skill does

Use the bundled Python scripts to:

  1. measure raw versus compressed token usage
  2. compress large text or adapted JSON payloads
  3. preserve query-relevant evidence instead of doing naive summarization
  4. check whether compressed output still contains enough evidence to answer safely
  5. support cache-friendly prompt assembly by keeping stable context early and volatile query text late

When to trigger

Reach for this skill when the user is asking for any of the following:

Sponsors

Details

Repository
github.com/oimiragieo/agent-studio
Categories
Code Review & Quality, AI & Agent Building
First seen
Jun 3, 2026

More from oimiragieo/agent-studio

All 9
1patricio0312rev avatarsecurity-pr-checklist-skillpatricio0312rev/skillsCreates repeatable security review checklist for PRs with required checks, common pitfalls, and automated gating. Use for "security review", "PR checklist", "co271skills.sh installs
2html2png avatarhtml-to-imagehtml2png/skillsGenerate crisp, high-quality images with perfect typography and precise geometric layouts using HTML/CSS. Use when creating social cards, diagrams, certificates270skills.sh installs
3mosif16 avatarproduct-frontend-designmosif16/codex-skillsReview and design SaaS/product marketing sites and frontend interfaces end-to-end: clarify value, fix hierarchy, and implement distinctive, production-grade UI 270skills.sh installs
4casper-studios avatarcasper-design-systemcasper-studios/casper-marketplaceCasper Studios internal design system for generating consistent, production-grade SaaS UI. Use this skill whenever generating UI code for internal tools, client269skills.sh installs
5mindfold-ai avatartrellis-metamindfold-ai/marketplaceMeta-skill for understanding and customizing Mindfold Trellis — the all-in-one AI workflow system for 11 AI coding platforms (Claude Code, Cursor, OpenCode, iFl269skills.sh installs
6octagonai avatarfinancial-health-scoresoctagonai/skillsRetrieve financial health scores including Altman Z-Score and Piotroski Score for public companies. Use when assessing bankruptcy risk, financial strength, valu269skills.sh installs