context-degradation

Detect context degradation patterns in long-running agent conversations and provide mitigation guidance.

Updated Nov 16, 2025
One-click install
npx skills add https://github.com/mhintz1980/ptl-lova --skill context-degradation-mhintz1980
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: context-degradation
Source: https://github.com/mhintz1980/ptl-lova/tree/main/docs/agent-skills/skills/context-degradation
Command: npx skills add https://github.com/mhintz1980/ptl-lova --skill context-degradation-mhintz1980

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Recognize, diagnose, and mitigate patterns of context degradation in agent systems. Use when context grows large, agent performance degrades unexpectedly, or debugging agent failures.

Core Features & Use Cases

  • Detect Lost-in-Middle, Context Poisoning, Context Distraction, Context Confusion, and Context Clash patterns in long-running agent conversations.
  • Provide architectural mitigation guidance (compaction, masking, partitioning, isolation) and structured health checks.
  • Support lightweight context health analysis, anomaly detection, and recommended recovery workflows for production systems.

Quick Start

Analyze the current agent context to identify degradation patterns and generate mitigation recommendations.

Frequently Asked Questions about context-degradation

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

FAQPage Schema
What is context degradation in agent systems and how does it affect long-running conversations?

Context degradation in agent systems occurs when large conversation contexts cause unexpected performance drops. It manifests as lost-in-middle, context poisoning, distraction, confusion, and clash patterns, which this Skill detects and diagnoses during long-running agent conversations.

How do I debug agent failures when performance degrades unexpectedly under heavy contextual load?

To debug agent failures under heavy contextual load, use this Skill to run lightweight context health analysis and anomaly detection. It identifies specific degradation patterns and provides structured recovery workflows to restore agent performance.

What architectural patterns can mitigate context degradation in production agents?

Architectural patterns to mitigate context degradation include compaction, masking, partitioning, and isolation. This Skill provides guidance on applying these patterns to sustain context reliability and manage runtime monitoring of agent performance.

Can I use this Skill to monitor agent context health during architecture design reviews?

Yes, you can use this Skill for architecture design reviews focused on context management. It supports detecting degradation patterns and provides structured health checks to evaluate context reliability before production deployment.

Do I need numpy installed to diagnose context degradation patterns?

Yes, numpy is a required dependency to run the context degradation diagnosis scripts. It provides the numerical computing foundation needed for the lightweight context health analysis and anomaly detection components.

What are the limitations when detecting lost-in-middle and context poisoning patterns?

Detection of lost-in-middle and context poisoning patterns applies primarily to long-running conversations with large contexts. The Skill focuses on identifying these specific degradation patterns and providing mitigation guidance rather than automated context repair.