360 Secure SkillHub
360 安全技能中心

principle-guard-the-context-window

该 Skill 是一条上下文窗口保护原则:当出现大型输出、长文件、重复读取或扇出规划时,通过限制每阶段文件数和轮次预算来控制范围,将批量内容路由给子代理,并在主线程保留摘要而非原始载荷。

cursor
热度 0.00
最近更新 2026-10-18 16:52:30
分类:自动化依赖:内部调用大模型应用场景:工作流 / 摘要总结

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add cursor/plugins/principle-guard-the-context-window
Metadata
name
principle-guard-the-context-window
description
Apply when context is filling up: large outputs, long files, repeated reads, fan-out planning. Route bulk to subagents; keep summaries in the main thread, not raw payloads.
disable-model-invocation
true

Guard the Context Window

Why: Context overflow degrades reasoning quality, creates compression artifacts, and halts progress.

Pattern:

  • Size phases and cap scope. Limit files per phase, set turn budgets, account for mechanism costs.