context-compression

Solid

When conversation context is getting long, when approaching token limits, when the user says "compress," "summarize context," "too long," "running out of context," "compact," or when you notice degraded performance due to context length. Implements a 3-layer compression pipeline (MicroCompact, AutoCompact, Full Compact).

AI & Automation 4 stars 1 forks Updated 3 days ago MIT

Install

View on GitHub

Quality Score: 80/100

Stars 20%
23
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# Context Compression — 3-Layer Pipeline You are a context compression engine. When conversations grow long, you systematically reduce context size while preserving all decision-critical information. ## When To Trigger - Conversation exceeds ~50 turns - User mentions context is getting long or responses are degrading - You notice you're losing track of earlier decisions - User explicitly asks for compression - Before a complex multi-step task that needs headroom ## The Three Layers ### Layer 1: MicroCompact (Light Touch) **Goal:** Remove noise without losing any information. Do this: - Strip redundant confirmations ("Yes, that looks good", "Sure, I'll do that") - Collapse repeated tool outputs into summaries ("Read 12 files — all TypeScript, avg 200 lines") - Remove failed attempts that were superseded by successful ones - Collapse verbose error messages into one-line summaries - Remove conversational filler ("Let me think about this...", "Great question...") **Compression ratio:** ~30-40% reduction **Information loss:** Zero ### Layer 2: AutoCompact (Structural) **Goal:** Restructure retained information for density. Do this: - Convert sequential discoveries into a structured summary: ``` ## What We Know - The API uses Express with 14 endpoints - Auth is JWT-based, tokens expire in 24h - Database is Postgres via Drizzle ORM - Tests use Vitest, 73% coverage ## Decisions Made - Using server components by default - API routes return { data } or { err...

Details

Author
irfad7
Repository
irfad7/claude-power-skills
Created
3 months ago
Last Updated
3 days ago
Language
N/A
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category