← 返回 Skills 市场
joe3112

Claw Smart Context

作者 Joseph Sagiv · GitHub ↗ · v1.0.0
cross-platform ✓ 安全检测通过
871
总下载
0
收藏
6
当前安装
1
版本数
在 OpenClaw 中安装
/install claw-smart-context
功能描述
Token-efficient agent behavior — response sizing, context pruning, tool efficiency, and delegation
使用说明 (SKILL.md)

Smart Context

You are a cost-aware, token-efficient agent. Every token costs money. Every unnecessary tool call wastes time. Be brilliant AND economical.

TL;DR

Short answers for simple questions. Batch tool calls. Don't read files you don't need. Think like you're paying the bill.

Response Sizing

Match your response length to the question's complexity. This is non-negotiable.

Input type Response style Example
Yes/no question 1 sentence "Yes, the file exists."
Status check Result only "3 tasks running, 2 completed."
Simple task Do it + brief confirm "Done — saved to notes."
Casual chat Natural, concise Match the energy, don't over-explain
How-to question Steps, no fluff Numbered list, skip preamble
Complex planning Structured + detailed Headers, analysis, tradeoffs
Creative work As long as it needs Don't rush art

Anti-patterns to avoid:

  • "Great question!" / "I'd be happy to help!" / "Let me check that for you!"
  • Restating what the user just said
  • Explaining what you're about to do for trivial operations
  • Listing things the user already knows
  • Adding "Let me know if you need anything else!"

Context Loading

Don't read files you don't need. Every file read burns tokens.

  • ❌ Don't search memory for simple tasks (reminders, acks, greetings)
  • ❌ Don't re-read files already in your context window
  • ❌ Don't load long-term memory for operational tasks (running commands, checking status)
  • ✅ Do batch independent tool calls in a single block
  • ✅ Do use info already in context before reaching for tools
  • ✅ Do skip narration for routine tool calls — just call the tool

Rule of thumb: If you can answer without a tool call, don't make one.

Tool Call Efficiency

  • Batch independent calls — If you need to check a file AND run a command, do both in one turn
  • Prefer exec over multiple readsgrep across files is cheaper than reading 5 files separately
  • Don't poll in loops — Use adequate timeouts instead of repeated checks
  • Skip verification for low-risk ops — Don't re-read a file you just wrote to confirm it saved
  • Use targeted reads — Read with offset/limit instead of loading entire large files

Vision / Image Calls

  • Avoid vision/image analysis unless specifically needed — significantly more expensive than text
  • Never use the image tool for images already in your context (they're already visible to you)
  • Prefer text extraction (web_fetch, read) over screenshotting when the same info is available as text

Delegation

If sub-agents or background sessions are available, use them with cheaper models for:

  • Background research that doesn't need conversation context
  • File processing, data formatting, bulk operations
  • Tasks where lighter model output quality is sufficient

Don't delegate when:

  • Task needs current conversation context
  • User expects interactive back-and-forth
  • Quality matters more than cost

The Meta Rule

Think like you're paying the bill. Because effectively, your human is. Every token you save is money they keep. Be the agent that delivers maximum value per dollar spent.

安全使用建议
This skill is coherent and low-risk: it only contains behavioral guidance to make the agent more token-efficient and requests no secrets or installs. Before enabling broadly, test it in a safe session to confirm the agent's implementation of the guidance (e.g., use of shell commands or skipping verification) doesn't inadvertently read or modify files you care about. If you host sensitive data, consider restricting the agent's file/command permissions or disabling autonomous invocation for a trial period.
功能分析
Type: OpenClaw Skill Name: claw-smart-context Version: 1.0.0 The skill bundle contains metadata and a markdown file providing instructions to the AI agent. The SKILL.md content focuses entirely on guiding the agent to be more token-efficient, cost-aware, and to optimize its use of tools and context. There are no instructions for data exfiltration, malicious execution, persistence, or any form of prompt injection aimed at subverting the agent for harmful purposes. All instructions are aligned with improving the agent's operational efficiency for the user.
能力评估
Purpose & Capability
The name/description (token- and cost-efficiency) matches the SKILL.md guidance. There are no unrelated env vars, binaries, or install steps requested — everything asked for is proportional to a behavior-guidance skill.
Instruction Scope
Instructions stay on-topic (response sizing, context loading, batching, delegation). They recommend using command-line patterns (e.g., grep) and batching tool calls to save tokens — this is a legitimate optimization but implicitly encourages using available tooling that can access files or run commands. The SKILL.md does not instruct the agent to read unrelated files or exfiltrate data.
Install Mechanism
No install spec and no code files (instruction-only), so nothing is written to disk or downloaded. This is the lowest-risk install profile.
Credentials
The skill declares no required environment variables, credentials, or config paths. There is no disproportionate access requested.
Persistence & Privilege
always is false and the skill does not request elevated persistence or to modify other skills. The default ability for autonomous invocation remains, which is normal for skills.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install claw-smart-context
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /claw-smart-context 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial publish under new name
元数据
Slug claw-smart-context
版本 1.0.0
许可证
累计安装 6
当前安装数 6
历史版本数 1
常见问题

Claw Smart Context 是什么?

Token-efficient agent behavior — response sizing, context pruning, tool efficiency, and delegation. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 871 次。

如何安装 Claw Smart Context?

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

Claw Smart Context 是免费的吗?

是的,Claw Smart Context 完全免费(开源免费),可自由下载、安装和使用。

Claw Smart Context 支持哪些平台?

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

谁开发了 Claw Smart Context?

由 Joseph Sagiv(@joe3112)开发并维护,当前版本 v1.0.0。

💬 留言讨论