# context-degradation

> Claude/Codex skill by [@muratcankoylan](https://omgskills.com/library/muratcankoylan/index.md) · 18k stars · Updated 2026-10-12

This skill should be used for diagnosing and mitigating context degradation: lost-in-middle failures, context poisoning, context clash, context confusion, attention-pattern issues, and agent performance degradation caused by accumulated or conflicting context.

## Install

```sh
git clone https://github.com/muratcankoylan/Agent-Skills-for-Context-Engineering /tmp/Agent-Skills-for-Context-Engineering && ln -s /tmp/Agent-Skills-for-Context-Engineering/skills/context-degradation ~/.claude/skills/context-degradation
```

## From README

Context Degradation Patterns Diagnose and fix context failures before they cascade. Context degradation is not binary — it is a continuum that manifests through five distinct, predictable patterns: lost-in-middle, poisoning, distraction, confusion, and clash. Each pattern has specific detection signals and mitigation strategies. Treat degradation as an engineering problem with measurable thresholds, not an unpredictable failure mode.

## Links

- HTML page: https://omgskills.com/library/muratcankoylan/agent-skills-for-context-engineering/skills/context-degradation/
- GitHub: https://github.com/muratcankoylan/Agent-Skills-for-Context-Engineering
- Author: [@muratcankoylan](https://omgskills.com/library/muratcankoylan/index.md)

## More from this repo

- [context-engineering-collection](https://omgskills.com/library/muratcankoylan/agent-skills-for-context-engineering/index.md) — A comprehensive collection of Agent Skills for context engineering, harness engineering, multi-agent architectures, and...
   - [@muratcankoylan](https://omgskills.com/library/muratcankoylan/index.md) · 18k stars
- [long-horizon-prompting](https://omgskills.com/library/muratcankoylan/agent-skills-for-context-engineering/skills/long-horizon-prompting/index.md) — This skill should be used when writing, enhancing, or evaluating the launch prompt for a long-running autonomous agent...
   - [@muratcankoylan](https://omgskills.com/library/muratcankoylan/index.md) · 18k stars
- [self-improvement-loops](https://omgskills.com/library/muratcankoylan/agent-skills-for-context-engineering/skills/self-improvement-loops/index.md) — This skill should be used when the harness, scaffold, workflow, or optimizer itself is the optimization target:...
   - [@muratcankoylan](https://omgskills.com/library/muratcankoylan/index.md) · 18k stars
