context-engineering

Document patterns for AI agent context management across architectures.

Updated May 19, 2024
One-click install
npx skills add https://github.com/kettleofketchup/dotfiles --skill context-engineering-kettleofketchup
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: context-engineering
Source: https://github.com/kettleofketchup/dotfiles/tree/main/.claude/skills/context-engineering
Command: npx skills add https://github.com/kettleofketchup/dotfiles --skill context-engineering-kettleofketchup

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

Improve AI agent context management across architectures.

Core Features & Use Cases

  • Context fundamentals and degradation patterns: Guidelines for forming high-signal token sets, recognizing context collapse, and preserving critical information.
  • Memory architectures & multi-agent patterns: Frameworks for cross-session memory, agent isolation, and coordination.
  • Token optimization & tooling: Techniques for compaction, masking, caching, and evaluating context quality.
  • LLM-as-Judge evaluation & tool design: Methods to measure quality and design robust tools within agent pipelines.
  • Use Case: Optimize a three-agent workflow with memory persistence and minimal token overhead.

Quick Start

Review a running multi-agent session and generate a compact context plan that preserves critical decisions and next-actions while reducing tokens.

Frequently Asked Questions about context-engineering

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

FAQPage Schema
What is context engineering for LLM agents and when do I need it?

Context engineering for LLM agents is the practice of designing and managing the information passed to models to prevent context collapse and preserve critical data. You need it when building multi-agent pipelines, implementing cross-session memory, or optimizing token usage in complex agent workflows.

How do I optimize token usage in a multi-agent LLM pipeline?

To optimize token usage in a multi-agent LLM pipeline, apply compaction, masking, and caching strategies to reduce context overhead. You can engineer high-signal token sets and use agent isolation patterns to ensure only essential information is passed between agents.

Why does my LLM agent lose important context during long sessions?

Your LLM agent loses important context during long sessions due to context degradation patterns like context collapse. Implementing robust memory architectures, cross-session memory frameworks, and targeted compression strategies helps preserve critical decisions and next-actions.

Can I evaluate the quality of context passed to my AI agents?

You can evaluate the quality of context passed to AI agents using LLM-as-Judge evaluation methods. This technique measures context signal quality, assesses tool design robustness within agent pipelines, and verifies that compaction or masking strategies retain necessary information.

What is the best way to coordinate multiple agents while minimizing token overhead?

The best way to coordinate multiple agents while minimizing token overhead is designing agent topologies with strict isolation and documented coordination patterns. Generating a compact context plan preserves critical decisions and next-actions while actively reducing token consumption across the workflow.

Does this approach work for designing tools within an LLM-powered pipeline?

Yes, this approach works for designing tools within an LLM-powered pipeline by providing reference materials for robust tool design. It guides how to structure tool inputs and outputs to maintain context integrity and integrate seamlessly with memory architectures and multi-agent coordination.