compacting-context

compacting-context is a skill for Claude Code from qte77/claude-code-plugins. It costs 29 tokens per session (343 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: argument-hint in frontmatter. Also seen: mentions Claude Code.

Part of the cc-meta plugin — 8 skills, 2 hooks 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 8 skills, 2 hooks.

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 343 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.00343
Opus 5.5 $0.00012 $0.00137
Sonnet 5.5 $0.00006 $0.00069
Haiku 4.5 $0.00003 $0.00034

Measured 8d ago against content hash d6708f95cdb3, 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 8d 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 · 59 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. 8d ago Changed d6708f95cdb3
  2. 29d ago Changed · -1 lines f921925e0788
  3. 3mo 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 yesterday), licensed Apache-2.0. It adds 29 tokens to every session and 343 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

compacting-context compared with skills from other repositories

compacting-context next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
compacting-contextqte77/claude-code-pluginsSkill3yesterdayApache-2.0A29Claude Code
meta-synthesisstefanoskarakasis/Product-Marketing-SkillsSkill22todayMITA83Claude Code
meta-learnstefanoskarakasis/Product-Marketing-SkillsSkill22todayMITA64Claude Code
evolving-statusclaude-world/director-mode-liteSkill801mo agoMITA17Claude Code
dreamsaadshahd/moo.mdSkill39todayMITA65Claude Code
session-recapsxhmilyoyo/sundayhao-pluginsSkill88d agoApache-2.0A39Claude Code
knowledge-bank-lookupsxhmilyoyo/sundayhao-pluginsSkill88d agoApache-2.0A94Claude Code