AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified Apache-2.0 Self-run

Context Compression

skill-yeaight7-agent-powerups-context-compression · by yeaight7

Use when conversation context is bloated, constraints are being forgotten, or a compact handoff is needed before continuing work.

No reviews yet
0 installs
34 views
0.0% view→install

Install

$ agentstack add skill-yeaight7-agent-powerups-context-compression

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-yeaight7-agent-powerups-context-compression)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
2mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Context Compression? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Context Compression

When to use

Use when context approaches limits or response quality degrades (repeated mistakes, forgotten constraints, lost-in-the-middle effects) — typically after many turns of debugging or complex planning.

Requirements / Checks

  • Active session contains long stack traces, large file dumps, or multiple failed iterations.

Workflow

  1. Diagnose bloat — identify: redundant outputs (same file read multiple times), contradictory instructions that accumulated over turns, constraint forgetting (earlier requirements no longer respected).
  1. Draft summary — synthesize the current valid state of the code or plan in 3–5 sentences.
  1. Extract anti-patterns — list what failed and why: "Attempted X → failed because Y". These are critical to prevent the next session from looping on the same mistakes.
  1. Generate handoff artifact — write the following template to disk:

```markdown ## Goal [One-sentence objective]

## Current state [What is working / what is in place right now]

## Blocker / next step [The exact next action to take]

## Anti-patterns (do not repeat)

  • Tried X → failed because Y
  • Tried A → blocked by B

## Key files

  • path/to/file.ts — [what it does / why it matters]

## Open risks

  • [Anything uncertain or requiring verification]

## Decisions made

  • [Key tradeoffs and why alternatives were rejected]

```

  1. Restart — tell the user to start a new chat session and attach the handoff file as the first message.

Quality Probes

Before finalizing, verify the handoff can answer:

  • Recall: exact commands, errors, versions, decisions that still matter.
  • Artifact: files created, modified, inspected, intentionally untouched.
  • Continuation: next action, current blocker, validation state, open risks.
  • Decision: why key tradeoffs were chosen and what alternatives were rejected.

Safety Constraints

  • Do NOT silently drop critical architectural constraints or user preferences during compression.
  • Write the handoff document to disk before asking the user to restart.

Validation / Done Criteria

  • Handoff artifact exists on disk and is in the template format above.
  • User is explicitly told to restart the session and attach the file.
  • All four quality probes (recall, artifact, continuation, decision) can be answered from the artifact without re-reading the full transcript.

Anti-loss Checklist

  • [ ] Goal is clearly stated.
  • [ ] Current blocker / next step is identified.
  • [ ] Failed approaches are documented to prevent looping.
  • [ ] Relevant file paths are listed.
  • [ ] Key decisions and their reasons are recorded.

References

  • references/compression-quality-probes.md

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.