What problem does it solve? Long conversations and large contexts cause LLM agents to silently degrade — ignoring instructions, hallucinating, or mixing up tasks. This Skill provides a systematic framework for recognizing five distinct degradation patterns (lost-in-middle, poisoning, distraction, confusion, clash) and applying targeted mitigations before failures cascade. ## Core Features & Use Cases - Pattern Diagnosis: Identify which of the five degradation patterns is active using concrete detection signals like attention U-curve analysis, claim provenance tracking, and relevance scoring. - Four-Bucket Mitigation Framework: Apply Write, Select, Compress, or Isolate strategies matched to the active degradation pattern, with thresholds like the 70% context utilization trigger. - Technical Reference Implementations: Includes Python code for attention distribution measurement, hallucination tracking, error propagation analysis, and context health monitoring dashboards. - Use Case: An agent that performed well early in a session starts producing contradictory outputs at 60K tokens. Use this Skill to diagnose context poisoning from a bad tool output, truncate to before the poisoning point, and restart with verified-only context. ## Quick Start Ask the AI to diagnose why your agent's output quality dropped during a long conversation and recommend a mitigation strategy based on the degradation pattern detected.