context-compactor

Compress conversation context into 9-section summaries via context_trigger.

558|75|Updated Dec 18, 2025
One-click install
npx skills add https://github.com/winstonkoh87/Athena-Public --skill context-compactor-winstonkoh87
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: context-compactor
Source: https://github.com/winstonkoh87/Athena-Public/tree/main/examples/skills/workflow/context-compactor
Command: npx skills add https://github.com/winstonkoh87/Athena-Public --skill context-compactor-winstonkoh87

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Manages token bloat in long-running conversations by compressing context while preserving essential information using a dedicated analysis scratchpad.

Core Features & Use Cases

  • 9-section summary workflow that maintains key context while discarding verbose content.
  • Private <analysis> scratchpad for chain-of-thought-like reasoning that is stripped from the final context.
  • Triggered compression via natural language cues or commands (context_trigger) to refresh memory and extend session life.

Quick Start

Trigger a compression by saying compact or issuing the /compact command.

Frequently Asked Questions about context-compactor

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I reduce token bloat in long-running conversations without losing key context?

Reduce token bloat by triggering context compression to produce condensed, context-aware summaries. This workflow discards verbose content while preserving essential information to extend the life of memory-heavy interactive sessions.

How does context compression work during an interactive prompt engineering session?

Context compression works by using a private <analysis> scratchpad for chain-of-thought reasoning that is stripped from the final output. It then generates a 9-section summary to maintain key context during iterative dialogue and session handoffs.

When do I need to compress session context for memory-heavy prompts?

You need to compress session context when token limits are approached in long-running conversations. Triggering compression refreshes memory and extends session life without losing the critical insights built up during the dialogue.

How do I trigger a context compression workflow during a session?

Trigger the compression workflow by saying compact or issuing the /compact command. This activates a trigger-based process driven by context_trigger to refresh memory and produce a 9-section summary of the session.

What is the best way to handle session handoffs without losing conversation memory?

The best way to handle session handoffs is to apply iterative context compression to produce a condensed, context-aware summary. This preserves essential information while discarding verbose content for the next session.

Can I use a scratchpad for private reasoning when compressing dialogue context?

Yes, you can use a private <analysis> scratchpad for chain-of-thought-like reasoning during context compression. This scratchpad reasoning is stripped from the final output, ensuring only the 9-section summary remains in the active context.