What it does

Diagnose and mitigate context degradation before it cascades. It treats degradation as a continuum with five predictable patterns, lost-in-middle, poisoning, distraction, confusion and clash, each with detection signals and a mitigation strategy, backed by empirical thresholds, a four-bucket mitigation framework and resilience architecture patterns. The bundled local detector script uses only the Python standard library, so failures get measured like any other engineering problem instead of guessed at.

Works with

Any mainstream agent; documentation plus a local Python detector with no network dependency.

Source and safety

From the Agent-Skills-for-Context-Engineering repo. Listing-time review 2026-11-05: SKILL.md and all scripts were read; no external calls found. The detector runs on the local standard library only. (This review was conducted when the skill was listed, not as ongoing monitoring. Sources are beyond our control — evaluate skills before using them.)