Skip to content

Guide to the four ways language model performance degrades as context grows, with mitigation patterns for each.

CCM score
51 of 100
skills.sh installs
290
GitHub stars
50.5K
last updated
Jun 3, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers lost-in-middle, context poisoning, distraction, confusion, and clash, each with symptoms and recovery or mitigation approaches
  • Explains the U-shaped attention pattern where middle-context information gets reduced recall, and how to place critical content at the start or end
  • Describes poisoning pathways (tool outputs, retrieved documents, model summaries) and recovery by truncation, flagging, or restarting with verified context
  • Designed for diagnosing unexpected agent failures in long conversations and for designing context placement, filtering, and task-segmentation in production systems

Install

$ npx -y skills add sickn33/agentic-awesome-skills --skill context-degradation -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Context Degradation Patterns

Language models exhibit predictable degradation patterns as context length increases. Understanding these patterns is essential for diagnosing failures and designing resilient systems. Context degradation is not a binary state but a continuum of performance degradation that manifests in several distinct ways.

When to Use

Activate this skill when:

  • Agent performance degrades unexpectedly during long conversations
  • Debugging cases where agents produce incorrect or irrelevant outputs
  • Designing systems that must handle large contexts reliably
  • Evaluating context engineering choices for production systems
  • Investigating "lost in middle" phenomena in agent outputs
  • Analyzing context-related failures in agent behavior

Core Concepts

Details

Repository
github.com/sickn33/agentic-awesome-skills
Categories
Memory & Context, AI Agents & LLM Apps
First seen
Jun 3, 2026

Questions

What does the context-degradation skill do?

The context-degradation skill explains the predictable ways language models degrade as context length grows, including lost-in-middle, context poisoning, distraction, confusion and clash. It helps agents and developers diagnose failures from long conversations and design more resilient context handling.

When should I use the context-degradation skill?

Use the context-degradation skill when agent performance drops unexpectedly during long conversations, when debugging incorrect or irrelevant outputs, or when evaluating context engineering choices for production systems. It also covers investigating lost-in-middle effects in agent outputs.

How do I install the context-degradation skill?

Run npx -y skills add sickn33/agentic-awesome-skills --skill context-degradation -y in your project to install the context-degradation skill. Once installed, the agent can apply its guidance on context placement, poisoning recovery and task segmentation.

Where does context-degradation sit among other memory and context skills?

Context-degradation is in the Memory & Context category, alongside handoff and several caveman skills. Unlike those, it focuses on diagnosing how degradation patterns appear as context grows, using the lost-in-middle and poisoning patterns it describes.

More from sickn33/agentic-awesome-skills

All 682

Similar to Context Degradation

More Memory & Context