Token导航 LogoToken导航TokenDH.com
研究检索只读github未标认证来源可访问clear审计未展示

context-degradation环境退化

Agent Skill

context-degradation 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

315

周安装

13

GitHub Stars

公开资料未说明

下载量

103
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:context-degradation(环境退化)
来源仓库:https://github.com/5dlabs/cto
仓库路径:skills/context-degradation
安装命令:
npx skills add 5dlabs/cto --skill "context-degradation"
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

AgentSkills.tonpx skills
npx skills add 5dlabs/cto --skill "context-degradation"

简介

context-degradation 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。

  • 适用于环境科学、政策分析或可持续发展研究中需要引用权威资料或案例的场景。
  • 基于关键词和任务目标返回结构化候选结果,支持跨项目知识复用。
  • 安装命令为 npx skills add 5dlabs/cto --skill "context-degradation",需注意权限管理及潜在的文件读写行为。
  • 建议检查仓库活跃度,确保技能逻辑仍适配当前宿主环境。

SKILL.md

Context Degradation Patterns

Language models exhibit predictable degradation patterns as context length increases. Understanding these patterns is essential for diagnosing failures and designing resilient systems.

When to Activate

  • Agent performance degrades unexpectedly during long conversations
  • Debugging cases where agents produce incorrect outputs
  • Designing systems that must handle large contexts reliably
  • Investigating "lost in middle" phenomena

Core Degradation Patterns

Lost-in-Middle Phenomenon

Models demonstrate U-shaped attention curves. Information at the beginning and end receives reliable attention; middle content suffers 10-40% lower recall accuracy.

Mitigation:

  • Place critical information at beginning or end
  • Use summary structures at attention-favored positions
  • Add explicit section headers for navigation

Context Poisoning

Errors compound through repeated reference. Once poisoned, context creates feedback loops reinforcing incorrect beliefs.

Symptoms:

  • Degraded output quality on previously successful tasks
  • Tool misalignment (wrong tools/parameters)
  • Persistent hallucinations despite corrections

Recovery:

  • Truncate context to before poisoning
  • Explicitly note the error and request re-evaluation
  • Restart with clean context, preserve only verified info

Context Distraction

Over-focus on provided information at expense of training knowledge. Even a single irrelevant document reduces performance.

Mitigation:

  • Apply relevance filtering before loading documents
  • Use namespacing to make irrelevant sections easy to ignore
  • Consider tool calls instead of loading into context

Context Confusion

Irrelevant information influences responses inappropriately. Signs include responses addressing wrong query aspects or tool calls appropriate for different tasks.

Mitigation:

  • Explicit task segmentation
  • Clear transitions between task contexts
  • State management isolating different objectives

Context Clash

Accumulated information directly conflicts, creating contradictory guidance.

Resolution:

  • Explicit conflict marking with clarification requests
  • Priority rules establishing source precedence
  • Version filtering excluding outdated information

Degradation Thresholds

ModelDegradation OnsetSevere Degradation
Claude Opus 4.5~100K tokens~180K tokens
Claude Sonnet 4.5~80K tokens~150K tokens
GPT-5.2~64K tokens~200K tokens
Gemini 3 Pro~500K tokens~800K tokens

Four-Bucket Mitigation

  1. Write: Save context outside window (scratchpads, files)
  2. Select: Pull relevant context via retrieval/filtering
  3. Compress: Summarize, abstract, mask observations
  4. Isolate: Split across sub-agents or sessions

Guidelines

  1. Monitor context length and performance correlation
  2. Place critical info at beginning or end
  3. Implement compaction before degradation becomes severe
  4. Validate retrieved documents for accuracy
  5. Use versioning to prevent outdated info clash
  6. Test with progressively larger contexts to find thresholds

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

26.11%
按下载量换算27

windsurf

24.5%
按下载量换算25

trae

18.22%
按下载量换算19

OpenCode

11.8%
按下载量换算12

Codex

8.06%
按下载量换算8

Antigravity

3.08%
按下载量换算3

安全审计

暂无安全审计结果可展示。

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills