context-degradation

Analyze context degradation patterns in large language models and suggest mitigation strategies.

947|163|Updated Jan 13, 2026
One-click install
npx skills add https://github.com/guanyang/antigravity-skills --skill context-degradation-guanyang
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: context-degradation
Source: https://github.com/guanyang/antigravity-skills/tree/main/skills/context-degradation
Command: npx skills add https://github.com/guanyang/antigravity-skills --skill context-degradation-guanyang

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 "lost in middle" and context poisoning.

Core Features & Use Cases

  • Diagnose Context Failures: Identifies patterns like lost-in-middle, context 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 re-ordering information or summarizing key points.

Quick Start

Analyze the current context for signs of degradation and suggest mitigation strategies.

Frequently Asked Questions about context-degradation

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

FAQPage Schema
Why does my LLM lose information from the middle of long context windows?

The lost-in-middle phenomenon causes LLM performance degradation when models fail to attend to information in the center of extended context windows. This skill analyzes context to identify this failure pattern and suggests re-ordering information to maintain AI reliability.

How do I diagnose context poisoning causing incorrect AI responses?

You can diagnose context poisoning by analyzing the context for specific failure patterns like distraction, confusion, and clash. This skill identifies these degradation issues and provides actionable insights to mitigate corrupted context influences.

What is the best way to maintain LLM performance with extended context limits?

The best way to maintain LLM performance is by applying architectural patterns like summarizing key points and re-ordering information. This skill provides mitigation strategies to prevent attention mechanism failures during long conversations.

How do I fix an AI agent producing irrelevant responses in long conversations?

To fix irrelevant responses, analyze the current context for signs of degradation such as distraction or clash. This skill pinpoints the exact cause of the AI failure and suggests architectural fixes to restore prompt engineering reliability.

What are the common failure patterns when scaling prompt engineering context windows?

Common failure patterns include lost-in-middle, context poisoning, distraction, confusion, and clash. These issues degrade LLM performance as context length increases, requiring specific architectural patterns to mitigate.