All skills
shipshitdev avatar

/context-degradation

@e20ffde
by Ship Shitshipshitdev/library37 stars
3

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

Use this Skill: https://skilld.dev/gh/shipshitdev/library/context-degradation

This session only. Nothing lands on disk.

README.md

≈563 tokens on demand. Your agent reads this file only when SKILL.md points to it.

context-degradation

Recognize, diagnose, and mitigate context-degradation patterns (lost-in-middle, poisoning, distraction, confusion, clash) in agent systems.

Upstream

Derived from muratcankoylan/Agent-Skills-for-Context-Engineering (MIT).

Field Value
Source skills/context-degradation/SKILL.md
Upstream ref main
Synced at commit 25e1fa79a33f
Last synced 2026-06-13
License MIT

Local modifications: Imported 2026-01-20 (this repo's commit ef42a98) from muratcankoylan/Agent-Skills-for-Context-Engineering at v1.0.0-era content. Ported forward 2026-06-13 to upstream HEAD (commit 25e1fa79a33f); local body now tracks upstream v2.1.0 — carried the 7-entry Gotchas section, claim-* evidence IDs, Examples 3-4, Model-Specific Degradation Thresholds table, and negative-activation routing. References to siblings not vendored here (context-compression, filesystem-context) were stripped so routing names only marketplace skills. Local divergence: scripts/degradation_detector.py adopts the upstream numpy->stdlib rewrite (dependency removed); references/patterns.md is byte-identical to upstream. A 2026-06-13 review-hardening pass (CodeRabbit on PR #21) further diverges scripts/degradation_detector.py: detect_lost_in_middle now excludes negative/out-of-range critical indices from the score denominator, and analyze_context_structure measures middle-band content by line-span overlap rather than section-start only — candidates to push upstream. To diff: compare the upstream path on main since commit 25e1fa79a33f.

Checking for upstream changes: when upstream has moved ahead of the synced marker above, diff skills/context-degradation/SKILL.md on main since commit 25e1fa79a33f, port anything worth bringing home, then bump metadata.upstream_commit (or metadata.upstream_version) and metadata.last_synced in SKILL.md and this table.

Source: SKILL.md on GitHub

1 warning15d4 checks · Risk SAFE
  • Gen Agent Trust Hub15d

    The skill provides a diagnostic toolkit for identifying context degradation patterns like 'lost-in-middle' and 'poisoning'. It includes educational content and Python scripts for measuring attention and context health. No malicious behavior, exfiltration, or unauthorized execution patterns were found.

  • Socket15d

    No alerts

  • Snyk15d

    Risk: LOW · No issues

  • Runlayer7mo

    4/4 files flagged

Signed by skilld at e20ffde. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 days ago.

Activeupdated 3 months ago
Other metadata
metadata
{
  "version": "2.1.0",
  "source": "https://github.com/muratcankoylan/Agent-Skills-for-Context-Engineering/blob/main/skills/context-degradation/SKILL.md",
  "upstream_repo": "muratcankoylan/Agent-Skills-for-Context-Engineering",
  "upstream_ref": "main",
  "upstream_commit": "25e1fa79a33f",
  "last_synced": "2026-06-13",
  "license": "MIT",
  "tags": "context, agents, reliability"
}

README badge

README badge for shipshitdev/library/context-degradation