context-compression
81可靠地壓縮長 Agent 上下文
長時間 AI 工作階段在上下文視窗填滿時,會遺失關鍵決策、檔案變更與後續步驟。此技能為 Claude、Codex 與 Claude Code 提供結構化壓縮方法與評估探針。
診斷 AI 上下文退化
長時間 AI 工作階段可能會隱藏重要上下文,導致代理回覆錯誤。此技能可協助識別退化模式,並為 Claude、Codex 和 Claude Code 工作流程選擇緩解策略。
將此請求複製給你的智慧代理,其中包含權威 Skill 頁面和清單。
Review the Skillstore skill "context-degradation" from https://skillstore.io/skills/muratcankoylan-context-degradation.md and its manifest at https://skillstore.io/api/skills/muratcankoylan-context-degradation/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.你的智慧代理仍應顯示其計畫,並依安全政策請求必要確認。
當 AI Agent、爬蟲或腳本需要乾淨脈絡、而不是讀取完整頁面時,請使用這些連結。
正在使用「context-degradation」。 支援代理一開始很準確,但後來忽略了原始升級規則。
預期結果:
可能是上下文污染或上下文混淆。下一步是找出錯誤規則何時進入對話,並從已驗證的指示重新開始。
正在使用「context-degradation」。 一個長研究提示將關鍵需求放在文件中段。
預期結果:
Lost-in-middle 風險很高。將需求移到任務開頭,在最終指示附近重複它,並縮短支援材料。
正在使用「context-degradation」。 一個檢索系統加入許多日期不同但相似的文件。
預期結果:
很可能發生上下文衝突。加入版本篩選,明確標記衝突,並在文件進入上下文視窗之前定義來源優先順序。
All 22 static findings are false positives caused by Python documentation markup, Markdown formatting, ordinary text literals, and a benign dictionary-key print. No command execution, credential handling, system reconnaissance, prompt injection, or other malicious intent was found.
分享版本化評估報告、中性徽章、嵌入卡片與引用。Skillstore 只報告證據,不判斷該 Skill 是否安全。
https://skillstore.io/skills/muratcankoylan-context-degradation/audits/8?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_report[](https://skillstore.io/skills/muratcankoylan-context-degradation?utm_source=security_passport_badge)<a href="https://skillstore.io/skills/muratcankoylan-context-degradation?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/muratcankoylan-context-degradation/security.svg" alt="Skillstore security assessment" loading="lazy"></a><iframe src="https://skillstore.io/embed/skills/muratcankoylan-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>muratcankoylan. (2026). context-degradation security audit report (audit version 8) [Author version unspecified]. Skillstore. https://skillstore.io/skills/muratcankoylan-context-degradation/audits/8@techreport{muratcankoylan-muratcankoylan-context-degradation-2026,
author = {muratcankoylan},
title = {context-degradation security audit report (audit version 8)},
institution = {Skillstore},
year = {2026},
number = {8},
url = {https://skillstore.io/skills/muratcankoylan-context-degradation/audits/8},
note = {Author version unspecified}
}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 8)"
version: "unspecified"
type: report
authors:
- name: "muratcankoylan"
date-released: "2026-08-09"
url: "https://skillstore.io/skills/muratcankoylan-context-degradation/audits/8"
identifiers:
- type: other
value: "skillstore:muratcankoylan-context-degradation:audit:8"
description: "Skillstore immutable audit report identifier"
每位作者的技能都保留為獨立的可安裝項目。推薦變體依 Skillstore 證據排序。
為何此變體排名第一
chakshugautam-context-degradation
2026-09-09
muratcankoylan-context-degradation
2026-09-09
識別退化的答案是否來自 lost-in-middle 效應、污染、分心、混淆或衝突的上下文。
評估檢索到的文件如何進入上下文,並降低不相關或過時資訊影響結果的風險。
選擇在代理達到不可靠的操作範圍之前,何時壓縮、篩選、隔離或外部化上下文。
審查這個代理失敗案例,並識別最可能的上下文退化模式。說明證據並建議一項緩解措施。
找出可能埋在此上下文中段的關鍵事實。建議應將它們移動或重複到哪裡。
根據這個代理工作流程,提出使用寫入、選取、壓縮和隔離技術的上下文策略。包含取捨考量。
稽核這個生產環境代理追蹤紀錄中的退化風險。區分證據、可能的根本原因、測量缺口和補救優先順序。
授權
MIT
Skillstore 修訂
r2
版本提示
作者未聲明版本。
引用
02be9409c79ca1183f7844009c14d9df684d0cf9
維護新鮮度
2026/8/12
使用量
19 次下載 · 219 次瀏覽
檔案結構
可靠地壓縮長 Agent 上下文
長時間 AI 工作階段在上下文視窗填滿時,會遺失關鍵決策、檔案變更與後續步驟。此技能為 Claude、Codex 與 Claude Code 提供結構化壓縮方法與評估探針。
使用評分規準評估代理系統
代理團隊需要可重複的方法來衡量品質、迴歸問題與情境變更。此技能會引導評分規準設計、測試集、評分與監控。
高效最佳化上下文視窗
長時間的代理工作階段可能浪費 token、拖慢回應,並遺失重要上下文。此技能為 Claude、Codex 和 Claude Code 提供壓縮、遮罩、快取與分區的實用方法。
設計多代理 AI 系統
多代理系統很難設計,因為協調、上下文隔離與失敗模式會彼此影響。這項技能提供實用模式、取捨與範例,協助建立可靠的代理團隊。
設計模型能可靠使用的 Agent 工具
當描述、結構描述和錯誤訊息含糊不清時,Agent 工具就會失效。此技能提供實用模式,協助建立更清晰的工具 API、更安全的整合方式,以及更好的測試。
建置可靠的 LLM 評估系統
當評審使用模糊的評分準則或有偏誤的比較時,LLM 評估品質往往會下降。此技能會引導 Claude、Codex 和 Claude Code 完成評分、成對審查、偏誤緩解與指標選擇。
最佳化代理程式上下文管理
由 ChakshuGautam
當提示、工具、歷史記錄和檢索內容競爭上下文空間時,代理程式系統可能會變得不可靠。此技能說明上下文組成要素,以及用於預算配置、漸進式揭露和驗證的實用模式。
使用規劃檔案組織複雜工作
由 OthmanAdi
長時間任務可能會遺失脈絡、決策與復原註記。此技能會將計畫、筆記與交付成果保存在 Markdown 檔案中,讓代理程式可以重新讀取並更新。
設計 AI 上下文系統
由 sickn33
AI 團隊需要可靠的方法,在複雜工作流程中管理上下文、記憶與檢索。此技能會指導 RAG、向量搜尋、知識圖譜與多代理交接的架構選擇。
撰寫更優質的 AI Agent 提示詞
由 AaronAbuUsama
當提示詞模糊、冗長,或塞入過多低價值脈絡時,AI agent 便容易失敗。此技能套用 Anthropic 的脈絡工程原則,協助您撰寫清楚、具結構且高訊號的提示詞。
設計 LangChain 應用程式架構
由 wshobson
團隊在建置具備代理程式、檢索、記憶與工具的 LLM 應用程式時,需要可重複使用的模式。此技能提供結構化的 LangChain 指引,用於規劃工作流程、callbacks、測試與生產環境檢查。
設計 Agent 記憶系統
由 sickn33
Agent 經常會在不同工作階段之間遺失有用的上下文。此技能會以向量、圖譜與時間檢索,引導分層記憶設計。