context-degradation

Diagnose context-length performance degradation in large language models.

1|Updated Feb 4, 2026
One-click install
npx skills add https://github.com/bthillerup/bens-garage-session-2 --skill context-degradation-bthillerup
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: context-degradation
Source: https://github.com/bthillerup/bens-garage-session-2/tree/main/.github/skills/context-degradation
Command: npx skills add https://github.com/bthillerup/bens-garage-session-2 --skill context-degradation-bthillerup

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps diagnose and mitigate performance degradation in AI models, particularly when dealing with long contexts, to ensure reliable and accurate outputs.

Core Features & Use Cases

  • Identify Degradation Patterns: Understand phenomena like "lost in the middle," context poisoning, distraction, and confusion.
  • Mitigation Strategies: Learn techniques to place critical information, filter irrelevant content, and manage context effectively.
  • Use Case: If your AI agent starts producing nonsensical responses in a long conversation, this skill can help you pinpoint whether context degradation is the cause and suggest solutions.

Quick Start

Analyze the current conversation context for signs of degradation.

Frequently Asked Questions about context-degradation

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

FAQPage Schema
Why does my LLM produce nonsensical responses in long conversations?

LLM performance degradation in long conversations is often caused by context poisoning, distraction, or the "lost in the middle" phenomenon. This Skill diagnoses these attention mechanism issues and provides mitigation strategies to restore reliable outputs.

How do I diagnose "lost in the middle" phenomena in AI models?

To diagnose "lost in the middle" phenomena in AI models, analyze the current conversation context for degradation patterns. This Skill identifies when critical information is overlooked and suggests context management techniques to place important details effectively.

What is the best way to mitigate context poisoning in large language models?

Mitigating context poisoning involves filtering irrelevant content and managing context length effectively. This Skill provides insights into degradation patterns and recommends specific strategies to ensure critical information is properly positioned for accurate model responses.

Do I need to understand attention mechanisms to fix context degradation?

Understanding attention mechanisms is required to effectively use this Skill, as diagnosing context degradation relies on evaluating how the model processes context quality. The Skill leverages this technical understanding to pinpoint issues and suggest context management techniques.

How do I identify context distraction and confusion in AI agents?

Identifying context distraction and confusion requires analyzing conversation context for degradation patterns that degrade output quality. This Skill pinpoints whether these specific attention failures are the cause of nonsensical responses and offers targeted mitigation strategies.