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

Context Compressor

skill-cyfung1031-skills-v1-2-2 · by cyfung1031

Compress and conserve conversation context by using terse responses, compact progress updates, explicit context pruning, compact code/content summaries, and concise handoff summaries. Use when the user asks to reduce token usage, avoid excessive context consumption, compress context, summarize current state, keep replies brief, switch to low-token mode, preserve only task-critical facts, or prepa…

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

Install

$ agentstack add skill-cyfung1031-skills-v1-2-2

✓ 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-cyfung1031-skills-v1-2-2)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
22d 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 Compressor? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Context Compressor

Minimize context growth while preserving enough state to continue accurately. Keep this skill's own output short.

When to use

Use this skill when any of these hold:

  • The user asks to reduce tokens, keep replies brief, compress context, summarize current state, preserve only task-critical facts, switch to low-token mode, or prepare a continuation/handoff summary.
  • A system, developer, runtime, or tool signal indicates compaction, truncation, continuation, limited context, or token pressure.
  • The thread is long enough that losing earlier decisions, files, tests, constraints, or non-obvious findings would cause rework or correctness risk.

"Long enough" is qualitative, not token math. Use visible signs such as 10+ substantial turns, large pasted content, repeated tool output, multiple changed files, or several accepted decisions. Do not estimate exact context limits without reliable telemetry. Do not activate just because a task is mildly complex or because a simple question appears inside an old thread.

Not this skill: one-off document/article summarization, one-off shortening of a single answer, or ordinary code review. Those are normal tasks unless the user also asks for a standing compact mode or continuation summary.

Treat an explicit low-token request as standing until the user asks for normal/verbose/detailed mode or the task ends. Re-apply it from conversation history; the skill stores no state. Proactive activation is temporary: use it for the current phase, compaction event, or handoff, then silently return to normal when the task ends or shifts to an unrelated goal. Mention the transition only if the user asked about mode/state, silence would confuse them, or the turn ends with a handoff/summary.

Operating mode

Default to short, direct answers: 1-4 bullets or one compact paragraph unless the user asks for detail. In a long task:

  • State the current action and why it matters; skip restating stable instructions, settled decisions, or raw command output.
  • Replace verbose reasoning with decisions, assumptions, and verification results.
  • Prefer exact identifiers — file paths, command/test names, symbols — over prose.
  • When blocked, ask at most one clarifying question; otherwise make a reasonable assumption and proceed.
  • Record an assumption only when it affects behavior, scope, safety, correctness, or output format. This applies everywhere below.

Priority when brevity conflicts

Brevity never overrides correctness, safety, required workflow, or explicit user needs. Resolve in this order:

  1. Safety, privacy, permissions, policy.
  2. Required tool/artifact workflow, validation, citations, format constraints.
  3. The user's latest explicit request for detail, full code, examples, or explanation.
  4. Compression and terse style.

When another skill also applies, follow its substantive workflow. Use this skill only to cut narration, repeated setup, transcripts, and nonessential explanation; never drop required validation, citations, safety checks, artifacts, tool steps, or requested detail.

If the user asks for both terse and detailed output, answer the concrete ask first in the most useful form. For code, start with the code or patch, then add a brief note. For a decision or diagnosis, start with the conclusion, then give only needed evidence. Use summary-first layout only when it improves usability and does not delay the requested artifact or answer.

What to keep vs. drop

Keep: active goal and latest correction; constraints affecting behavior, safety, permissions, citations, or format; current plan state, blockers, decisions, and behavior-changing assumptions; files changed, commands run, test status, remaining work, and immediate next actions; non-obvious findings from code, tools, docs, or sources; minimal code structure needed to continue, such as paths, public interfaces, names, data shapes, invariants, error messages, or changed logic.

Drop or compress: rejected alternatives; full command logs once summarized; repeated explanations of standard process; large pasted content once relevant facts are extracted; large code blocks once structure, intent, interfaces, and risky details are captured; filler, motivational language, and redundant caveats.

Compressing code

Do not preserve full code blocks by default. Summarize structurally unless exact code is needed next:

Path: file/repo path or source label
Symbols: function/class/API names and signatures
Behavior: what it does
State: inputs, outputs, side effects, dependencies
Issues: bugs, failing tests, stack traces, risky edges
Needed: exact snippets still required, if any

Keep exact snippets only when small and necessary: a failing line, stack frame, regex, query, schema, migration, prompt, config key, API signature, patch-sized block to copy verbatim, or code where whitespace, ordering, quoting, or syntax is the point.

Handoff and update formats

Full handoff: use when asked to compress, hand off, continue, or prepare a continuation. Also use it when a trigger above fires and losing state would create rework or correctness risk. Omit empty fields. Verified must name evidence actually checked; use Risks for unverified items, blockers, assumptions, or likely rework causes.

Goal: ...
State: ...
Decisions: ...
Assumptions: ...   (only if behavior-affecting)
Changed: ...
Verified: ...      (evidence actually checked)
Next: ...
Risks: ...         (unverified items, blockers, assumptions, or likely rework causes)

Example:

Goal: Fix checkout tax rounding bug in `billing-service`.
State: Reproduced mismatch on JPY orders; isolated to per-line rounding before discount allocation.
Decisions: Round only after order-level tax aggregation; keep USD behavior unchanged.
Assumptions: Tax API contract cannot change.
Changed: `src/tax/calculate.ts`, `tests/tax-rounding.test.ts`.
Verified: `npm test -- tax-rounding` passes; full suite not run.
Next: Run full tests, then prepare patch summary.
Risks: Multi-currency fixtures may hide another rounding path.

Ordinary update: use only fields carrying new information; do not pad for rhythm. Add Verified only when evidence was checked.

Now: ...     (current action or status)
Found: ...   (new discovery, result, blocker, or verification outcome)
Verified: ... (evidence actually checked)
Next: ...    (only if the next step changed or would otherwise be unclear)

Response rules

Answer the latest request first: requested code, artifact, or decision goes before background summary. Use dense but readable wording, summaries over transcripts, and exact dates, paths, branches, issue numbers, and test names when relevant. State uncertainty in one sentence instead of hiding it. Expand only when accuracy, safety, citations, validation, required workflow, or the user's explicit request demands it.

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.