context-degradation

Diagnose and mitigate AI context degradation patterns in large contexts.

3|Updated Dec 23, 2025
One-click install
npx skills add https://github.com/boazcstrike/opencode --skill context-degradation-boazcstrike
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: context-degradation
Source: https://github.com/boazcstrike/opencode/tree/main/skills/context-degradation
Command: npx skills add https://github.com/boazcstrike/opencode --skill context-degradation-boazcstrike

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill helps diagnose and mitigate performance degradation in AI models as context length increases, preventing issues like the "lost-in-middle" phenomenon and context poisoning.

Core Features & Use Cases

  • Diagnose Context Failures: Identifies patterns like lost-in-middle, poisoning, distraction, confusion, and clash.
  • Mitigate Degradation: Provides strategies and architectural patterns to maintain AI performance with large contexts.
  • Use Case: When an AI agent starts producing irrelevant or incorrect responses during a long conversation, this skill can analyze the context to pinpoint the cause and suggest fixes, such as reordering information or summarizing key points.

Quick Start

Use the context-degradation skill to analyze the current conversation context for signs of performance degradation.

Frequently Asked Questions about context-degradation

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

FAQPage Schema
What causes AI context degradation in large language models?

AI context degradation occurs when models lose accuracy by ignoring information in the middle of large contexts, or suffer from context poisoning, distraction, confusion, and clash. This skill diagnoses these specific failure patterns to prevent irrelevant responses.

How do I fix the lost-in-middle phenomenon during long AI conversations?

To fix the lost-in-middle phenomenon, you can apply architectural patterns and mitigation strategies like reordering information or summarizing key points. This skill provides practical guidance to maintain performance within large context windows.

How do I analyze my current LLM context for performance degradation?

You analyze LLM context for performance degradation by evaluating the conversation against empirical benchmarks and known failure patterns. This skill examines the context to pinpoint causes like distraction or clash and suggests targeted fixes.

What is the four-bucket approach for managing large AI contexts?

The four-bucket approach is a practical strategy provided by this skill to manage large contexts effectively. It categorizes information to mitigate context poisoning and prevent AI failures caused by overwhelming context windows.

When should I use context mitigation strategies for an AI agent?

You should use context mitigation strategies when an AI agent starts producing irrelevant or incorrect responses during a long conversation. This skill helps identify when context limits are exceeded and applies architectural patterns to resolve it.