Skip to content
Back to skills

Context Compression

ASecurity

Use when a long session, large tool output, repeated discussion, or handoff needs a compact state that preserves decisions and enables continuation.

  • 6 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added September 6, 2026
ai-agentsgodebugging

Security analysis

A100/100

Scanned September 6, 2026

npx -y skills add ihabkhaled/AI-Psychiatry --skill context-compression --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Context Compression?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Context Compression
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ihabkhaled-context-compression/badge)](https://www.skillsdirectory.com/skills/ihabkhaled-context-compression)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: context-compression
description: Use when a long session, large tool output, repeated discussion, or handoff needs a compact state that preserves decisions and enables continuation.
---

# Context Compression

## Core principle

Preserve actionable truth; drop raw reasoning, abandoned speculation, duplicate output, and outdated hypotheses.

## Procedure

1. Capture Goal, Completed, Remaining, Decisions, Evidence, Blocker, Deferred, and Next action.
2. Keep exact errors, counts, paths, and commands only when material.
3. Remove repeated explanations and obsolete hypotheses.
4. Separate temporary state from durable knowledge.
5. Validate important facts against current source.
6. Write the compact state to the task context.

## Required output

A short structured resume record with the eight required fields.

## Limits

Use the smallest state that supports reliable continuation.

## Common mistakes

Do not store chain-of-thought, giant logs, or promote temporary debugging to memory.

## Stop condition

Stop when a future agent can resume without rereading the whole repository.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.