Dev & Engineering context-compressionconversation-summarizationtoken-optimizationhandoff-summariesartifact-trackingagent-evaluation

Context Compression Strategies

Compress long-running agent sessions while preserving files, decisions, risks, and next actions.

FollowSkills review · FSRS-2.0
Not recommended
50/ 100 5-point scale 2.5 / 5
Trust12 / 25 · 2.4/5

The skill mainly provides compression, summarization, and evaluation guidance, with no external side effects, credential handling, or exfiltration logic; no red-line risk is visible. However, sensitive-data handling, user confirmation, permission isolation, rollback, and data-flow disclosure are not specified, so safety-governance points are deducted.

Reliability8 / 20 · 2.0/5

The instructions are coherent and include scripts, references, and tests for heuristic scoring behavior. However, the core LLM judge is explicitly a stub, extraction relies on fragile regexes, and production tokenization, API integration, and abnormal-path handling are incomplete; static evidence therefore keeps this below 10.

Adaptability10 / 15 · 3.3/5

Activation conditions, neighboring non-fit skills, three compression strategies, and scenario guidance are clearly described and platform-agnostic. Input/output contracts, precise trigger boundaries, Chinese-language support, and mainland-China reachability are insufficiently documented, warranting deductions.

Convention10 / 15 · 3.3/5

The skill has frontmatter, layered sections, examples, gotchas, reference pointers, an MIT license, and creation/update/version metadata. Maintenance ownership, update path, changelog, and dependency-install notes are incomplete, while some benchmark and research claims are not independently verifiable from the supplied material.

Effectiveness6 / 15 · 2.0/5

It offers directly useful guidance and code scaffolding for compression strategy, artifact tracking, probe evaluation, and structured summaries. Yet the production evaluator is unfinished, regex extraction is limited, and representative outputs are not statically verified; substantial implementation and review remain necessary, so the static cap applies.

Verifiability4 / 10 · 2.0/5

Auditable scripts, tests, and CI-related evidence are present, with tests covering two heuristic-scoring behaviors. But there is no complete executable coverage of the skill's key paths or independent third-party reproduction evidence; benchmark figures and external references remain insufficiently verified claims.

Evidence confidence:Low Reviewed Jul 20, 2026 Reviewed revision c578e85e40fe
Before you use it
  • The core evaluator's LLM judge remains a demonstration stub and should not be considered production-ready.
  • Regex extraction may omit or misidentify errors, files, decisions, and next steps; real-session regression testing is still needed.
  • The cited benchmark and external research results lack sufficient independent evidence in the supplied material.
  • Handling boundaries for sensitive conversation content, credentials, privacy data, and persisted summaries are unspecified.
See the full review method →

What does this skill do, and when should you use it?

This skill is for agent sessions, codebases, and tool trajectories that outgrow the available context window. It recommends anchored iterative summarization, opaque compression, or regenerative full summaries according to session characteristics. Its central objective is minimizing total tokens per completed task, including the cost of re-fetching information lost during compression. The guidance emphasizes durable artifact tracking, structured summary sections, strategic triggers, probe-based evaluation, and six quality dimensions.

It instructs agents to turn truncated session history into structured summaries covering intent, file changes, decisions, current state, and next steps. Later cycles should summarize only newly truncated content, merge it into the existing summary, and deduplicate by file path and decision identity. The skill also recommends tracking created, modified, and read-only files plus function names, variables, error messages, and error codes; evaluating retention with recall, artifact, continuation, and decision probes; and using a three-phase research, planning, and implementation workflow for large codebases.

  1. A software engineer debugging a long coding session where the agent may forget which files it changed.
  2. A development team working on a codebase larger than the context window and needing a compact implementation specification.
  3. An agent engineer designing durable handoff summaries that preserve rationale, identifiers, risks, and next actions.
  4. A researcher building a compression evaluation framework that tests factual retention and task continuity with probes.

What are this skill's strengths and limitations?

Pros
  • Clearly distinguishes three compression approaches and their suitable session profiles.
  • Treats exact file paths, function names, error codes, and decision rationale as first-class information.
  • Provides probe-based evaluation and a six-dimension quality framework.
  • Includes a practical research, planning, and implementation workflow for large codebases.
Limitations
  • This is instructional SKILL.md content, not a runnable compression implementation.
  • The reported compression ratios and quality scores are explicitly source-specific benchmark figures, not universal guarantees.
  • Faulty or overly aggressive summaries can still lose identifiers, early constraints, and code details.
  • The source does not describe an independent test suite or platform-specific validation for this skill.

How do you install this skill?

The repository distributes skills as directories. Copy skills/context-compression into a project skill directory, for example: mkdir -p .codex/skills && cp -R skills/context-compression .codex/skills/. It may also be copied to .claude/skills/ or .agents/skills/. The README also documents Claude Code commands for installing the full plugin collection, but those install multiple skills rather than this skill alone.

How do you use this skill?

Load the directory in an Agent Skills-compatible client and invoke it for a long session or under context pressure, for example: “Compress this coding session while preserving intent, full paths of created and modified files, function names, error messages, decisions, current test status, and next steps.” For long-running coding work with artifact tracking, follow the recommended combination of structured summaries and sliding-window triggers.

How does this skill compare with similar options?

The skill compares anchored iterative summarization, opaque compression, and regenerative full summaries. It also distinguishes its scope from the collection’s context-optimization, context-degradation, filesystem-context, and memory-systems skills.

FAQ

Does it require a paid service?
The source does not state an additional cost or list paid dependencies; it primarily provides strategy and evaluation guidance.
Does it automatically edit files or call external tools?
No. The source describes summary structures, artifact tracking, and evaluation methods, but does not provide scripts or tool calls that execute them automatically.
When should it not be used?
It is not intended for general token-efficiency tactics, diagnosing the cause of long-context failure, writing raw logs without summarization, or designing long-term semantic memory across sessions.
How should compression quality be checked?
Use probes about the original error, modified files, next steps, and key decisions, while covering all six evaluation dimensions.

More skills from this repository

All from muratcankoylan/Agent-Skills-for-Context-Engineering

Dev & Engineering

Latent Briefing

Share task-relevant orchestrator state with workers through task-guided KV-cache compaction when the inference runtime is controllable.

Dev & Engineering

Agent Evaluation Methods

Build repeatable evaluation, regression detection, and quality gates for agent pipelines.

Dev & Engineering

Context Engineering for Production Agents

A structured guide to designing, optimizing, and evaluating production agent systems with reliable context management.

Dev & Engineering

Context Engineering Fundamentals

Understand and shape reliable agent context through attention budgets, context-window mechanics, and signal-density principles.

Dev & Engineering

Filesystem Context Engineering

Move large, durable, or shared agent context into files and retrieve it selectively when needed.

Dev & Engineering

Context Efficiency Optimizer

Reduce context cost with caching, masking, compaction, and partitioning while preserving answer quality.

Dev & Engineering

Long-Horizon Prompting

Designs auditable launch briefs for autonomous agents and parallel multi-agent work on difficult, long-running tasks.

Dev & Engineering

Multi-Agent Architecture Patterns

Design multi-agent systems with context isolation, explicit handoffs, coordinated execution, and controlled failure handling.

Dev & Engineering

Persistent Semantic Memory Design

Design durable, retrievable agent memory that scales from simple files to temporal knowledge graphs.

Dev & Engineering

Context Degradation Diagnosis

Identify and mitigate lost attention, poisoning, distraction, confusion, and conflict in long agent contexts.

Dev & Engineering

Reasoning Trace Optimizer

Diagnose context, tool, and instruction failures by analyzing agent traces and iteratively improving prompts.

Dev & Engineering

Self-Improvement Loops

Evolve agent harnesses, workflows, and context mechanisms under bounded, evidence-based evaluation.

Dev & Engineering

Advanced LLM Evaluation

Build auditable, calibrated LLM-output evaluations with explicit rubrics, confidence scoring, and bias controls.

Dev & Engineering

Project Development Methodology

Decide whether an LLM fits the job, then design a staged agent pipeline with predictable parsing, iteration, and cost control.

Dev & Engineering

BDI Mental State Modeling

Turn RDF context into explainable belief, desire, and intention chains.

Dev & Engineering

Autonomous Agent Harness

Designs autonomous agent loops that remain controlled, recoverable, and auditable.

Dev & Engineering

Agent Skill Blueprint

A reusable structure for authoring well-scoped context-engineering skills.

Productivity & Collaboration

Digital Brain Personal OS

Manage content, relationships, knowledge, and goals through structured files and AI.

Dev & Engineering

Agent Tool Design Guide

Design tool interfaces agents can route, call, and recover from reliably.

Dev & Engineering

Rigorous Research Agent

A validation, recovery, and source-tracking protocol for multi-step research.

Related skills