Skills context-compression
๐Ÿ“ฆ

context-compression

Content revision r2 Safe โš™๏ธ External commands

Compress Long Agent Contexts Reliably

Long agent sessions can lose decisions, file history, and next steps during compression. This skill provides structured methods and probes that preserve operational context.

Supports: Claude Codex Code(CC)
๐Ÿฅˆ 81 Silver

Install with my Agent

Copy this request to your Agent. It includes the canonical Skill page and manifest.

Agent request
Review the Skillstore skill "context-compression" from https://skillstore.io/skills/muratcankoylan-context-compression.md and its manifest at https://skillstore.io/api/skills/muratcankoylan-context-compression/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.

Your Agent should still show its plan and request any confirmation required by the security policy.

Test it

Using "context-compression". Compress a debugging session involving an authentication failure and Redis connection changes.

Expected outcome:

Session intent: resolve the authentication failure. Root cause: stale Redis connection. Files, test status, decisions, and next steps remain explicitly listed.

Using "context-compression". Recommend a method for a long coding session where file tracking is critical.

Expected outcome:

Use anchored iterative summarization. Merge only newly truncated history into stable sections and maintain a separate artifact index for complete file tracking.

Using "context-compression". Evaluate whether a summary preserved enough context to continue.

Expected outcome:

  • Recall probe checks the original error and exact endpoint.
  • Artifact probe checks every modified file and its change.
  • Continuation probe checks the next test and unresolved work.
  • Decision probe checks the selected approach and rationale.

Security Audit

Safe
v8 โ€ข 8/9/2026 Open versioned report

All 22 static findings are false positives caused by Markdown backticks, prose examples, or ordinary Python membership checks. No command execution, system reconnaissance, prompt injection, or malicious intent was found.

4
Files scanned
1,414
Lines analyzed
0
Review items
0
False positives ignored
No confirmed security findings were detected by the latest completed static and semantic audit. This does not prove the skill has no side effects.
Audited by: codex View Audit History โ†’
Share & cite this report

Share the versioned assessment report, neutral badge, embed card, and citations. Skillstore reports evidence without deciding whether this Skill is safe.

Open versioned report
Security Assessment

Copy report link

https://skillstore.io/skills/muratcankoylan-context-compression/audits/8?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_report

Markdown badge

[![Skillstore security assessment](https://skillstore.io/badges/skills/muratcankoylan-context-compression/security.svg)](https://skillstore.io/skills/muratcankoylan-context-compression?utm_source=security_passport_badge)

HTML badge

<a href="https://skillstore.io/skills/muratcankoylan-context-compression?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/muratcankoylan-context-compression/security.svg" alt="Skillstore security assessment" loading="lazy"></a>

Embed card

<iframe src="https://skillstore.io/embed/skills/muratcankoylan-context-compression.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>
Academic citations (APA ยท BibTeX ยท CFF)

APA citation

muratcankoylan. (2026). context-compression security audit report (audit version 8) [Author version unspecified]. Skillstore. https://skillstore.io/skills/muratcankoylan-context-compression/audits/8

BibTeX citation

@techreport{muratcankoylan-muratcankoylan-context-compression-2026, author = {muratcankoylan}, title = {context-compression security audit report (audit version 8)}, institution = {Skillstore}, year = {2026}, number = {8}, url = {https://skillstore.io/skills/muratcankoylan-context-compression/audits/8}, note = {Author version unspecified} }

CITATION.cff

cff-version: 1.2.0 message: "If you use this Skill, cite its author and this versioned security audit report." title: "context-compression security audit report (audit version 8)" version: "unspecified" type: report authors: - name: "muratcankoylan" date-released: "2026-08-09" url: "https://skillstore.io/skills/muratcankoylan-context-compression/audits/8" identifiers: - type: other value: "skillstore:muratcankoylan-context-compression:audit:8" description: "Skillstore immutable audit report identifier"

Compare variants

3 installable variants

Each author remains a separate installable skill. The recommended variant is ranked by Skillstore evidence.

Why this variant is first

Highest Skillstore Score
muratcankoylan Recommended Current

muratcankoylan-context-compression

Skillstore Score 81
Evidence Confidence High
Skillstore usage 48
Updated

2026-08-21

chakshugautam-context-compression

Skillstore Score 80
Evidence Confidence High
Skillstore usage 93
Updated

2026-08-21

sickn33-context-compression

Skillstore Score 78
Evidence Confidence High
Skillstore usage 31
Updated

2026-08-21

Skillstore Score

Why this score Evidence Confidence: High
64
Architecture
85
Maintainability
87
Content
71
Community
91
Spec Compliance

What You Can Build

Preserve Coding Session State

Create durable summaries that retain changed files, technical decisions, test status, and immediate next actions.

Evaluate Compression Quality

Generate targeted probes and compare compression methods across accuracy, continuity, completeness, and artifact retention.

Design Agent Handoffs

Build readable handoff summaries that let another agent or person continue work without repeating exploration.

Try These Prompts

Summarize This Session
Compress this session into intent, files modified, decisions, current state, and next steps. Preserve exact paths and error messages.
Choose a Compression Method
Compare anchored iterative, opaque, and regenerative compression for this session. Recommend one based on duration, artifact needs, and re-fetching cost.
Build Retention Probes
Create recall, artifact, continuation, and decision probes for this history. Include expected answers and identify the context each probe tests.
Audit a Compression Pipeline
Audit this compression pipeline for cumulative loss, artifact drift, weak triggers, and probe blind spots. Propose measurable improvements and acceptance thresholds.

Best Practices

  • Preserve file paths, identifiers, errors, and numeric values exactly.
  • Merge newly truncated content into stable sections instead of regenerating the full summary.
  • Measure re-fetching frequency and tokens per completed task.

Avoid

  • Do not optimize only for the smallest context on each request.
  • Do not compress tool schemas, API specifications, or essential function signatures.
  • Do not trust a compressed summary without probe-based validation against source material.

Frequently Asked Questions

Which compression method should I use first?
Use anchored iterative summarization for long coding sessions. It balances readability, artifact retention, and compression quality.
Does this skill call an LLM API?
No. The included evaluator uses local heuristic scoring. Its API call is documentation for a production replacement.
Can it track every file automatically?
Not reliably. Regex extraction can miss unusual wording, so critical workflows should maintain a separate artifact index.
How should compression quality be measured?
Use targeted probes for recall, artifacts, continuation, and decisions. Track re-fetching and total tokens required to finish the task.
When should opaque compression be used?
Use it for short sessions with low re-fetching costs and minimal need for human inspection.
Can benchmark ratios be used as fixed targets?
No. Validate compression ratios and quality thresholds against your models, tasks, context limits, and operational requirements.

Developer Details

License

MIT

Skillstore revision

r2

Version notice

The author did not declare a version.

Ref

02be9409c79ca1183f7844009c14d9df684d0cf9

Maintenance freshness

8/11/2026

Usage

44 downloads ยท 290 views

File structure

๐Ÿ“ references/

๐Ÿ“„ evaluation-framework.md

๐Ÿ“ scripts/

๐Ÿ“„ compression_evaluator.py

๐Ÿ“„ SKILL.md

๐Ÿ“ tests/

๐Ÿ“„ test_compression_evaluator.py