context-engineering

Curate minimal high-signal token sets for LLM context optimization.

1|Updated Feb 17, 2026
One-click install
npx skills add https://github.com/chef0111/physthink --skill context-engineering-chef0111
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: context-engineering
Source: https://github.com/chef0111/physthink/tree/main/.agents/skills/context-engineering
Command: npx skills add https://github.com/chef0111/physthink --skill context-engineering-chef0111

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires argparse, json, math, re, enum, typing, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill addresses the challenge of managing and optimizing the information provided to AI agents, ensuring high reasoning quality while minimizing token usage and preventing performance degradation.

Core Features & Use Cases

  • Context Optimization: Techniques to reduce token count without sacrificing essential information.
  • Degradation Mitigation: Strategies to combat issues like "lost-in-middle" and context poisoning.
  • Memory Systems: Designing architectures for persistent knowledge across sessions.
  • Use Case: When building a complex AI agent that needs to process long documents or maintain conversation history, this Skill provides the methods to keep the context window efficient and effective, preventing costly errors and improving response quality.

Quick Start

Use the context-engineering skill to learn about strategies for optimizing AI context.

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 AI agent systems?

Context degradation patterns like lost-in-middle and context poisoning occur when excessive or irrelevant tokens overwhelm the LLM, requiring mitigation strategies such as compaction and masking to preserve reasoning performance.

How do I optimize LLM token usage for long document processing?

You can optimize LLM token usage by applying context compression strategies and compaction techniques to reduce the token count without sacrificing essential high-signal information needed for the task.

How do I build persistent memory systems for multi-agent coordination?

You can build persistent memory systems by designing memory architectures that curate high-signal context, enabling multi-agent coordination patterns that maintain knowledge across sessions without exceeding token limits.

Can I use LLM-as-Judge to evaluate AI agent context quality?

Yes, you can use LLM-as-Judge evaluation to assess AI agent context quality by measuring how well the curated token set supports reasoning tasks and prevents context degradation during execution.

What are the limitations of context compression strategies?

Context compression strategies face limitations when aggressive token reduction masks critical information, leading to context degradation; careful tool design and masking are required to avoid losing high-signal data.