Zum Hauptinhalt springen
Dieser Inhalt ist noch nicht in Ihrer Sprache verfügbar und wird auf Englisch angezeigt.

Context Compression

Skill Verifiziert Aktiv

This skill should be used when the user asks to "compress context", "summarize conversation history", "implement compaction", "reduce token usage", or mentions context compression, structured summarization, tokens-per-task optimization, or long-running agent sessions exceeding context limits.

Zweck

To provide agents with effective methods for managing and reducing token usage in long-running sessions by intelligently compressing conversation history and evaluating the quality of compression.

Funktionen

  • Strategies for context compression (Anchored Iterative, Opaque, Regenerative)
  • Guidance on optimizing tokens-per-task vs. tokens-per-request
  • Detailed explanation of artifact trail preservation
  • Methodologies for probe-based evaluation of compression quality
  • Implementation steps for structured summaries and compression triggers

Anwendungsfälle

  • When agent sessions exceed context window limits
  • Designing conversation summarization strategies
  • Debugging agents that 'forget' previous information
  • Optimizing token usage in long-running agent sessions

Nicht-Ziele

  • Replacing prompt engineering entirely
  • Handling context compression for raw code blocks without summarization
  • Providing a generic text summarization tool outside of agent context engineering

Workflow

  1. Identify need for context compression due to session length or token limits.
  2. Select an appropriate compression strategy (Anchored Iterative, Opaque, Regenerative).
  3. Implement the chosen strategy, focusing on structured summaries and appropriate triggers.
  4. Evaluate compression quality using the provided probe-based framework.
  5. Monitor re-fetching frequency as a key quality signal.

Praktiken

  • Context Engineering
  • LLM Evaluation
  • Agent Design Patterns

Installation

Zuerst Marketplace hinzufügen

/plugin marketplace add muratcankoylan/Agent-Skills-for-Context-Engineering
/plugin install Agent-Skills-for-Context-Engineering@context-engineering-marketplace

Qualitätspunktzahl

Verifiziert
100 /100
Analysiert about 13 hours ago

Vertrauenssignale

Letzter Commitabout 1 month ago
Sterne15.6k
LizenzMIT
Status
Quellcode ansehen