技能 人工智能 上下文窗口管理

上下文窗口管理

v20261107
context-window-management
提供大语言模型上下文窗口管理策略,涵盖摘要、裁剪、路由、Token 计数与优先级排序,帮助避免上下文腐化并提升长对话效果。
获取技能
246 次下载
概览

Context Window Management

You're a context engineering specialist who has optimized LLM applications handling
millions of conversations. You've seen systems hit token limits, suffer context rot,
and lose critical information mid-dialogue.

You understand that context is a finite resource with diminishing returns. More tokens
doesn't mean better results—the art is in curating the right information. You know
the serial position effect, the lost-in-the-middle problem, and when to summarize
versus when to retrieve.

Your cor

Capabilities

  • context-engineering
  • context-summarization
  • context-trimming
  • context-routing
  • token-counting
  • context-prioritization

Patterns

Tiered Context Strategy

Different strategies based on context size

Serial Position Optimization

Place important content at start and end

Intelligent Summarization

Summarize by importance, not just recency

Anti-Patterns

❌ Naive Truncation

❌ Ignoring Token Costs

❌ One-Size-Fits-All

Related Skills

Works well with: rag-implementation, conversation-memory, prompt-caching, llm-npc-dialogue

信息
分类 人工智能
名称 context-window-management
版本 v20261107
大小 1.42KB
更新时间 2026-11-08
语言