← 返回 Skills 市场
aptratcn

Token Budget Guard

作者 Erwin · GitHub ↗ · v2.0.0 · MIT-0
cross-platform ⚠ suspicious
126
总下载
0
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install token-budget-guard
功能描述
Automatically manages and compresses context to optimize token usage by summarizing, selectively loading, and budgeting for tool schemas, history, and tasks.
安全使用建议
This skill appears to be what it claims — a set of best-practice instructions to reduce token usage — but exercise caution before installing it into a live agent environment. Recommendations: - Review the SKILL.md yourself for any lines that explicitly instruct an agent to overwrite its system prompt, ignore safety rules, or call out to unknown endpoints; the scanner found a possible 'system-prompt-override' pattern which may be a false positive but should be checked. - Do not copy the file into global or shared agent skill directories until you confirm it only contains benign guidance; prefer installing into a sandboxed/test agent first. - If you let an agent follow the examples (jq, grep, head), ensure the agent is not given blanket filesystem access to sensitive directories (e.g., /etc, ~/.ssh, cloud credential files). Limit the agent's file-read scope to project folders. - Monitor the agent's behavior during initial runs: log commands the agent issues and any files it reads, and validate summaries before they are used for privileged actions. - If you need higher assurance, ask the skill author for provenance or a signed release; absent that, keep confidence moderate and treat the skill as useful but requiring manual oversight.
功能分析
Type: OpenClaw Skill Name: token-budget-guard Version: 2.0.0 The bundle is a collection of Markdown-based instructions and templates designed to optimize token usage and manage costs for AI agents. It promotes efficient practices such as progressive disclosure of tool schemas, conversation summarization, and selective file reading using standard utilities like grep and jq. No malicious code, data exfiltration attempts, or harmful prompt injections were identified across SKILL.md, README.md, or the cost tracking template.
能力评估
Purpose & Capability
Name/description (manage/compress context, budget schemas/history) matches the SKILL.md content and the provided templates. The strategies, progressive disclosure, and examples are coherent with the stated purpose and do not request unrelated services or credentials.
Instruction Scope
All runtime instructions are textual guidance (summarize, progressive disclosure, selective file reads) and example shell commands (grep, jq, head). The skill suggests copying SKILL.md into agent skill folders and gives examples of file operations; it does not explicitly instruct reading secrets or external endpoints. Because it advises running shell commands, a deployed agent could use those to access local files — this is expected for a file-selective strategy but increases the surface that should be reviewed.
Install Mechanism
Instruction-only skill with no install spec, no downloads, and no code files — lowest install risk. The README suggests manual copy into agent skill directories (user-level paths), which is normal for instruction-only skills and does not include remote installers or archive extraction.
Credentials
The skill requests no environment variables, no credentials, and no config paths. This aligns with its purely instructional nature; nothing asks for unrelated secrets or external tokens.
Persistence & Privilege
always:false and disable-model-invocation:false (normal). The README encourages copying the SKILL.md into agent skill locations, which would persist behavior in the agent environment — this is reasonable for a skill but means you should avoid copying it into shared/global system locations until you trust it.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install token-budget-guard
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /token-budget-guard 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v2.0.0
v2: Real impact numbers, progressive disclosure diagram, vs monitoring tools comparison
v1.0.0
Initial release: 99% token savings through progressive disclosure
元数据
Slug token-budget-guard
版本 2.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 2
常见问题

Token Budget Guard 是什么?

Automatically manages and compresses context to optimize token usage by summarizing, selectively loading, and budgeting for tool schemas, history, and tasks. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 126 次。

如何安装 Token Budget Guard?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install token-budget-guard」即可一键安装,无需额外配置。

Token Budget Guard 是免费的吗?

是的,Token Budget Guard 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Token Budget Guard 支持哪些平台?

Token Budget Guard 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Token Budget Guard?

由 Erwin(@aptratcn)开发并维护,当前版本 v2.0.0。

💬 留言讨论