context-degradation

Diagnose context degradation patterns in long-context AI agent interactions.

Updated Jan 9, 2026
One-click install
npx skills add https://github.com/samvanme/SBSitev0 --skill context-degradation-samvanme
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: context-degradation
Source: https://github.com/samvanme/SBSitev0/tree/main/claudeskills/Agent-Skills-for-Context-Engineering-main/skills/context-degradation
Command: npx skills add https://github.com/samvanme/SBSitev0 --skill context-degradation-samvanme

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires numpy, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps engineers identify, diagnose, and mitigate context-related degradation in AI agents, improving reliability during long conversations and complex tasks.

Core Features & Use Cases

  • Context health analysis: compute degradation scores, detect lost-in-middle, context poisoning, and distraction patterns.
  • Automated recommendations: generate actionable mitigation steps and architecture-oriented solutions.
  • Monitoring & integration: lightweight tooling to integrate into agent health dashboards and run-time checks.

Quick Start

Run the context health analyzer on an active chat transcript to surface degradation patterns and generate remediation steps.

Frequently Asked Questions about context-degradation

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

FAQPage Schema
How do I detect context degradation in long-context AI agents?

To detect context degradation, analyze extended chat transcripts to identify lost-in-middle, context poisoning, and distraction patterns. The skill computes health scores and simulates attention distributions to quantify long-context failure severity.

What causes lost-in-middle and context poisoning in long conversations?

Lost-in-middle and context poisoning occur when attention distributions fluctuate across extended interactions, causing ignored central context or corrupted states. This skill diagnoses these phenomena by simulating attention distributions and detecting contradictions.

How do I diagnose long-context failures in multi-task agents?

Diagnose long-context failures in multi-task agents by running the context health analyzer on active chat transcripts. It identifies distraction and context clash phenomena, then generates actionable mitigation steps and architecture-oriented recommendations.

Can I integrate context health analysis into an agent monitoring dashboard?

Yes, you can integrate context health analysis into agent monitoring dashboards. The skill provides lightweight tooling for run-time checks, allowing you to continuously monitor degradation scores and surface context clash events.

Do I need numpy to analyze attention distributions and context health scores?

Yes, numpy is required to analyze attention distributions and generate context health scores. It serves as the foundational dependency for simulating numerical degradation patterns and detecting poisoning indicators.

What is the best way to mitigate context clash and distraction in extended conversations?

The best way to mitigate context clash and distraction is to apply automated recommendations generated from health score analysis. The skill outputs actionable mitigation steps and architecture-oriented solutions to proactively resolve long-context failures.