Context Degradation
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
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 -yInstalls 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- Find Bugs290
- Elixir Pro288
- Angular Migration284
- Scala Pro284
- Seo Snippet Hunter283
- Youtube Automation282
- Error Debugging Error Trace281
- Startup Financial Modeling281
- Tdd Workflows Tdd Refactor281
- Godot Gdscript Patterns280
- Github Automation279
- Risk Manager277
- C4 Context273
- Airflow Dag Patterns272
- Error Diagnostics Error Analysis271
- Fal Image Edit270
- Search Specialist270
- Attack Tree Construction268
- Grafana Dashboards268
- Debugging Toolkit Smart Debug267
- Sales Automator267
- Protocol Reverse Engineering264
- Context Fundamentals263
- Go Concurrency Patterns263
Similar to Context Degradation
More Memory & Contextcontext-fundamentalssickn33/agentic-awesome-skills263 installsFoundational guide to LLM context components, attention limits, and progressive disclosure for designing agent systems.
context-window-managementsickn33/agentic-awesome-skills1.6K installsStrategies for managing LLM context windows through tiered selection, summarization, trimming, and position-aware prompt layout.
context-engineering-advisordeanpeters/product-manager-skills2.9K installsDiagnostic guide that separates context stuffing from context engineering for AI workflows and memory design.
context-engineeringneolabhq/context-engineering-kit1.5K installsExplains context components, attention limits, and progressive disclosure for writing or optimizing agent prompts.
context-optimizationmuratcankoylan/agent-skills-for-context-engineering506 installsContext-window budgeting skill covering masking, compaction, KV-cache ordering, and sub-agent partitioning for token efficiency.