compacting-context

compacting-context is a skill for Claude Code from qte77/claude-code-plugins. It costs 29 tokens per session (359 once invoked), scanned A, original, Apache-2.0.

A method for turning verbose context, search results, logs, or other raw material into a short, structured summary.

In plain words
What is it for?
Use it to record the work's trajectory, relevant files, completed tasks, blockers, and key findings in a compact format.
Why use it?
It removes noise while preserving the correct information needed to continue the work. It is intended for use after large outputs or at project milestones.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions Claude Code.

Part of the cc-meta plugin — 9 skills, 1 hook shipped together

Good fit Use it to record the work's trajectory, relevant files, completed tasks, blockers, and key findings in a compact format.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/qte77/claude-code-plugins/compacting-context
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add qte77/claude-code-plugins --skill compacting-context
Clone the repo
git clone --depth 1 https://github.com/qte77/claude-code-plugins

Made for: Claude Code.

Or install cc-meta, the plugin that ships this one along with the rest of its 9 skills, 1 hook.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for compacting-context

README.md
[![agentmods](https://agentmods.dev/badge/skills/qte77/claude-code-plugins/compacting-context/github.svg)](https://agentmods.dev/skills/qte77/claude-code-plugins/compacting-context)
Your own site
<a href="https://agentmods.dev/skills/qte77/claude-code-plugins/compacting-context"><img src="https://agentmods.dev/badge/skills/qte77/claude-code-plugins/compacting-context/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for compacting-context

Your own site · 80×15
<a href="https://agentmods.dev/skills/qte77/claude-code-plugins/compacting-context"><img src="https://agentmods.dev/badge/skills/qte77/claude-code-plugins/compacting-context.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 29 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 359 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00029 $0.00359
Opus 5.5 $0.00012 $0.00144
Sonnet 5.5 $0.00006 $0.00072
Haiku 4.5 $0.00003 $0.00036

Measured 1mo ago against content hash 4a3d126fc3be, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

compacting-context scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/cc-meta/skills/compacting-context/SKILL.md · 60 lines

What it actually says

Context Compaction (ACE-FCA)

Distills verbose outputs into structured summaries following ACE-FCA principles.

When to Use

Per references/context-management.md:

  • After verbose tool output (logs, JSON, search results)
  • After completing a phase or milestone

Workflow

  1. Identify noise - What pollution sources need compacting?
  2. Extract signal - Correct + Complete info only
  3. Structure output - Use template format below

Output Template

# Compaction: {{name}}

## Trajectory
<!-- Research status → Planning status → Implementation status -->

## Key Files
<!-- files touched with purpose -->

## Completed
<!-- done items -->

## Blockers
<!-- blocking issues (empty if none) -->

## Findings
<!-- key discoveries, distilled outputs from logs/JSON/tests -->

Quality Check

  • Correct > Complete > Minimal
  • No raw dumps, only structured summaries
  • Enough to continue, no more
  • Update working plan with compaction output (don't orphan it)
Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 60 lines · 29 tokens per session scan A 4a3d126fc3be

Subscribe to this mod's changes

compacting-context is a skill published in the GitHub repository qte77/claude-code-plugins (3 stars, last pushed 4d ago), licensed Apache-2.0. It adds 29 tokens to every session and 359 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

session-recap

Document Claude Code sessions by extracting knowledge into cross-referenced documentation. Triggers on "recap the session", "summarize the work", or after significant code changes.

sxhmilyoyo/sundayhao-plugins · 39 tokens

evolving-status

View Self-Evolving Loop session status, history, and memory metrics.

claude-world/director-mode-lite · 17 tokens

knowledge-bank-lookup

Delegates knowledge bank lookups to Explore subagents with reflections-first strategy that learns from past mistakes. Checks /reflections/ directory before documentation to extract documented failures to avoid and proven approaches to apply. Automatically triggers when user mentions services ([project-a], [project-b]…

sxhmilyoyo/sundayhao-plugins · 94 tokens

kb-ingest

Ingest external sources into the knowledge bank through interactive study or quick filing. Two modes — Quick (summarize → file) and Study (theme-by-theme deep dive with online research and personal notes → multi-layer KB output → optional blog/slack synthesis). Triggers on "ingest this", "study this article", "add to…

sxhmilyoyo/sundayhao-plugins · 152 tokens

meta-learn

Deliberate deep-dive capture for a completed skill session that deserves more than the automatic one-line row every T1/T2 skill already logs at its own close — asks three extraction questions (what surprised you, what was wrong, what was missing), turns real answers into specific, falsifiable pattern statements, and…

stefanoskarakasis/Product-Marketing-Skills · 132 tokens

meta-synthesis

Reads /context/skill-sessions.md (the session log every execution skill writes to) to detect patterns that repeat across 2+ sessions, proposes new guardrails for /context/meta-patterns.md, and proposes brain updates for confirmed learnings. Run on-demand or roughly weekly — not a scheduled background job. Trigger on…

stefanoskarakasis/Product-Marketing-Skills · 106 tokens