360 Secure SkillHub
360 安全技能中心

principle-guard-the-context-window

该 Skill 提供一条上下文窗口保护原则:在输出过大、文件过长、重复读取或并行规划时,限制每次处理范围,将批量内容交给子代理,主线程只保留摘要。它本身是指导性说明,未提供可执行脚本或具体工具调用。

分类:效率
backnotprop
热度 68.92
最近更新 2026-11-24 05:23:52

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add backnotprop/pstack/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.