Context Degradation

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.

18,259 stars 1,508 forksAI, LLMs & Agents

Install

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add muratcankoylan/Agent-Skills-for-Context-Engineering --skill context-degradation
Manual install
git clone --depth 1 https://github.com/muratcankoylan/Agent-Skills-for-Context-Engineering.git /tmp/Agent-Skills-for-Context-Engineering
mkdir -p ~/.claude/skills
cp -r /tmp/Agent-Skills-for-Context-Engineering/skills/context-degradation ~/.claude/skills/context-degradation

Personal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.

From the SKILL.md

# 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.

## When to Activate

Activate this skill when:
- Agent performance degrades unexpectedly during long conversations
- Debugging cases where agents produce incorrect or irrelevant outputs
- Designing systems that must handle large contexts reliably
- Evaluating context engineering choices for production systems
- Investigating "lost in middle" phenomena in agent outputs
- Analyzing context-related failures in agent behavior

Do not activate this skill for adjacent work owned by other skills:
- Explaining foundational context mechanics without an active failure: `context-fundamentals`.
- Applying token-efficiency tactics after the failure pattern is known: `context-optimization`.
- Designing a compression or handoff summary strategy: `context-compression`.
- Persisting large outputs, logs, or scratch state outside the prompt: `filesystem-context`.

## Core Concepts
Read the full skill on GitHub

Details

Skill name
context-degradation
Path
skills/context-degradation/SKILL.md
License
MIT
Repo updated
12 October 2026

FAQ

What does the Context Degradation skill do?

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.

How do I install the Context Degradation skill?

skills CLI (Claude Code, Cursor, Codex and more): npx skills add muratcankoylan/Agent-Skills-for-Context-Engineering --skill context-degradation. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.

Is Context Degradation popular?

It lives in muratcankoylan/Agent-Skills-for-Context-Engineering, which has 18,259 GitHub stars and 1,508 forks, and is included in 3 curated skill lists.

Related skills

Context Compression

18k

muratcankoylan/Agent-Skills-for-Context-Engineering

This skill should be used when long-running agent sessions need context compression, structured summarization, compaction, token-per-task optimization, or durable handoff summaries that preserve decisions, files, risks, and next actions.

Productivity & NotesIn 3 lists1.5k

Context Engineering Collection

18k

muratcankoylan/Agent-Skills-for-Context-Engineering

A comprehensive collection of Agent Skills for context engineering, harness engineering, multi-agent architectures, and production agent systems. Use when building, optimizing, evaluating, or debugging agent systems that require effective context management and reliable operating loops.

AI, LLMs & AgentsIn 3 lists1.5k

Context Fundamentals

18k

muratcankoylan/Agent-Skills-for-Context-Engineering

This skill should be used to explain or reason about the foundational concepts of context engineering: what context is, the anatomy of a context window, how attention mechanics work, the U-shaped attention curve, why context quality matters more than quantity, and the mental models needed to interpret every other context-engineering decision. Use this for conceptual explanation, onboarding, and background reading. Route operational work to the specialized skills: debugging attention failures goes to context-degradation, token-efficiency work goes to context-optimization, conversation summariza

AI, LLMs & AgentsIn 3 lists1.5k

User Segmentation

28k

phuryn/pm-skills

Segment users from feedback data based on behavior, JTBD, and needs. Identifies at least 3 distinct user segments. Use when segmenting a user base, analyzing diverse user feedback, or building a segmentation model.

AI, LLMs & AgentsIn 3 lists2.9k

Distilly

26k

titanwings/distilly

Set up the owner profile so a personal agent knows who it works for (first-run setup, "get to know me"), or distill colleague, relationship, or celebrity source material into reusable Person Profiles for agents.

AI, LLMs & Agents2.2k

Evaluation

18k

muratcankoylan/Agent-Skills-for-Context-Engineering

This skill should be used when building agent evaluation systems: deterministic checks, regression suites, multi-dimensional rubrics, quality gates, production monitoring, baseline comparison, and outcome measurement for agent pipelines.

AI, LLMs & AgentsIn 3 lists1.5k

Browse the most popular Claude skills, all ai, llms & agents skills, or write your own with the skills generator.