context-degradation
诊断上下文退化
当上下文变长、出现冲突或包含干扰材料时,长时间 AI 会话可能会降低准确性。此技能可帮助 Claude、Codex 和 Claude Code 识别退化模式,并选择实用的缓解步骤。
使用我的智能体安装
将此请求复制给你的智能体,其中包含权威 Skill 页面和清单。
Review the Skillstore skill "context-degradation" from https://skillstore.io/skills/asmayaseen-context-degradation.md and its manifest at https://skillstore.io/api/skills/asmayaseen-context-degradation/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.你的智能体仍应展示其计划,并按安全策略请求必要确认。
Agent 可读资源
当 AI Agent、爬虫或脚本需要干净上下文,而不是读取完整页面时,请使用这些链接。
测试它
正在使用“context-degradation”。 智能体忘记了在长时间设计审查中途提出的一项要求。
预期结果:
可能是中间信息遗失退化。将该要求移入当前任务块,并在最终指令附近重复它。
正在使用“context-degradation”。 检索系统在一个回答上下文中返回了当前和过时的政策文档。
预期结果:
可能是上下文冲突。标记冲突,应用版本优先级规则,并在生成前移除过时文档。
正在使用“context-degradation”。 编码智能体开始使用早期失败方法中的错误消息。
预期结果:
可能是上下文污染。保留已验证的决策,移除陈旧的失败细节,并从干净的摘要重新开始。
安全审计
安全All five static findings are false positives caused by Markdown fences, ordinary explanatory prose, and a literal heuristic phrase. No external command execution, system reconnaissance, prompt injection, data exfiltration, or other semantic threat was found.
风险因素
⚙️ 外部命令 (3)
分享与引用此报告
分享版本化评估报告、中性徽章、嵌入卡片和引用。Skillstore 只报告证据,不判断该 Skill 是否安全。
复制报告链接
https://skillstore.io/skills/asmayaseen-context-degradation/audits/9?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportMarkdown 徽章
[](https://skillstore.io/skills/asmayaseen-context-degradation?utm_source=security_passport_badge)HTML 徽章
<a href="https://skillstore.io/skills/asmayaseen-context-degradation?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/asmayaseen-context-degradation/security.svg" alt="Skillstore security assessment" loading="lazy"></a>嵌入卡片
<iframe src="https://skillstore.io/embed/skills/asmayaseen-context-degradation.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>学术引用 (APA · BibTeX · CFF)
APA 引用
Asmayaseen. (2026). context-degradation security audit report (audit version 9) [Author version unspecified]. Skillstore. https://skillstore.io/skills/asmayaseen-context-degradation/audits/9BibTeX 引用
@techreport{asmayaseen-asmayaseen-context-degradation-2026,
author = {Asmayaseen},
title = {context-degradation security audit report (audit version 9)},
institution = {Skillstore},
year = {2026},
number = {9},
url = {https://skillstore.io/skills/asmayaseen-context-degradation/audits/9},
note = {Author version unspecified}
}CITATION.cff
cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "context-degradation security audit report (audit version 9)"
version: "unspecified"
type: report
authors:
- name: "Asmayaseen"
date-released: "2026-07-23"
url: "https://skillstore.io/skills/asmayaseen-context-degradation/audits/9"
identifiers:
- type: other
value: "skillstore:asmayaseen-context-degradation:audit:9"
description: "Skillstore immutable audit report identifier"
比较变体
4 个可安装变体每位作者的技能都保持为独立的可安装项。推荐变体按 Skillstore 证据排序。
为什么此变体排名第一
chakshugautam-context-degradation
2026-09-09
muratcankoylan-context-degradation
2026-09-09
asmayaseen-context-degradation
2026-09-09
Skillstore 评分
评分依据 证据置信度: 高你能构建什么
调试长时间智能体会话
识别错误是否来自上下文丢失、受污染的假设、干扰因素或任务混淆。
设计可靠的上下文工作流
在生产智能体达到上下文限制之前,规划压缩、检索过滤和任务隔离。
评估提示词和检索变更
根据已知退化模式比较上下文布局和检索选择。
试试这些提示
检查此智能体对话中的上下文退化迹象。识别可能的模式、证据和一种缓解措施。
分析此上下文布局。建议将目标、约束、证据和最近决策放置在哪里。
给定此智能体工作流,选择写入、选择、压缩或隔离策略。解释权衡和触发点。
诊断此生产智能体故障中的污染、干扰、混淆、冲突和中间信息遗失影响。提供按优先级排序的修复方案。
最佳实践
- 将目标、约束和最新决策放在上下文的开头或结尾。
- 在将检索结果添加到活动提示词之前先进行过滤。
- 在上下文接近模型限制之前创建压缩和隔离触发条件。
避免
- 不进行相关性检查就添加每个检索到的文档。
- 在纠正后仍将已知错误假设保留在上下文中。
- 将一个长会话用于具有不同约束的不相关任务。
常见问题
什么是上下文退化?
此技能会运行自动诊断吗?
它能防止幻觉吗?
它对 Claude Code 和 Codex 有用吗?
我应该何时使用压缩?
团队应如何验证这些建议?
开发者详情
作者
Asmayaseen许可证
MIT
Skillstore 修订
r2
版本提示
作者未声明版本。
引用
89edfdc710d0846129dcee6a929477b04f08052c
维护新鲜度
2026/7/24
使用量
13 次下载 · 294 次浏览
文件结构