360 Secure SkillHub
360 安全技能中心

principle-guard-the-context-window

该 Skill 是一条上下文窗口保护原则:当出现大输出、长文件、重复读取或扇出规划时,限制阶段范围与轮次预算,将批量处理路由给子代理,并在主线程保留摘要而非原始载荷;材料未给出具体阈值或子代理实现细节。

michael-denyer
热度 0.00
最近更新 2026-10-19 04:13:19
分类:效率依赖:内部调用大模型应用场景:工作流 / 摘要总结 / 任务管理

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add michael-denyer/pstack-claude/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.
user-invocable
false

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.