Asif

Token Optimizer for OpenClaw & Hermes

AI 智能体v4.1.1
作者:Asif更新于 2026-09-19共 25 个版本 · 最新版本发布于 2026-09-19openclaw-token-optimizer@clawhub_asif2bd/openclaw-token-optimizer
工作流编排上下文管理工具调用#Document#Json

据 AlphaMoat 统计,截至 2026-10,Token Optimizer for OpenClaw & Hermes 累计下载 28,344 次、获 30 个星标,按累计下载量在本次参与排名的 10,914 个 AI 技能中排名第 989 位,在「AI 智能体」分类(1,632 个)中排名第 150 位。

列表默认按累计下载量排序,也可按星标排序;详情页排名按累计下载量计算。

累计下载
2.8万
星标
30
全站下载量排名
#989
全站前 10% · 「AI 智能体」前 10%
平台累计下载星标评论
ClawHub ↗1.4万302
SkillHub ↗2.8万30—

各平台的计数口径不同,统计时间不一致。

这个技能是做什么的

检查模型选择、较大的指令文件和定期任务,找出可能的 token 使用低效点并给出后续建议,不会自行修改设置。来源说明,节省空间只是待验证的机会,并非测得的账单降幅。技能不会打印原始配置或环境变量值,但被选中的配置与 profile 文件仍可能含敏感信息。OpenClaw 原生诊断读取可能联系已配置的服务或更新本地缓存。生成的报告可能披露模型名、agent ID、文件名或运维发现,分享前应先检查。

资料发布于 2026-10-27

可以用来做什么

  • 找出可能造成 token 浪费、值得复核的定时任务或模型选择。
  • 定位可能让上下文变大的指令文件。

什么时候用

  • 想排查 AI 使用中可能的低效点时。
  • 需要复核模型选择或定期任务时。

示例提示词

以下是根据技能文档生成的示例,不代表实际运行结果。

检查我的定时任务中是否有可能不必要的 AI 调用。
哪些指令文件可能让上下文变得很大?

月度数据趋势

累计下载2.8万
9,5162.0万3.0万2026-03 · 累计下载 1.1万2026-05 · 累计下载 1.3万2026-06 · 累计下载 1.5万2026-07 · 累计下载 1.6万2026-08 · 累计下载 1.6万2026-09 · 累计下载 1.8万2026-10 · 累计下载 2.8万26-0326-0926-10
星标30
2829302026-03 · 星标 282026-05 · 星标 302026-06 · 星标 302026-07 · 星标 302026-08 · 星标 302026-09 · 星标 302026-10 · 星标 3026-0326-0926-10

2026-09 起统计方法调整:同名技能按作者分别统计,并覆盖全部技能。图中虚线为调整前的月份,与之后的数据不直接比较,也不计算跨越调整的增长。

月份累计下载环比星标
2026-102.8万—30
2026-091.8万—30
2026-081.6万+3.3%30
2026-071.6万+6.0%30
2026-061.5万+13.3%30
2026-051.3万—30
2026-031.1万—28

SKILL.md 原文

以下是作者发布的原始文件,按纯文本显示,本站未做修改或审核;其中的链接不可点击,命令请核实后再运行。抓取于 2026-10-23。

5.4 KB · ClawHub v4.1.1
---
name: openclaw-token-optimizer
description: "Find potential token waste in OpenClaw or Hermes Agent. Use when asked to reduce AI costs, review model choices, check large instructions or audit recurring tasks. Explain what matters and suggest safe next steps without changing settings."
version: 4.1.1
author: Asif2BD
homepage: https://missiondeck.ai
source: https://github.com/Asif2BD/OpenClaw-Token-Optimizer
license: MIT
openclaw: ">=2026.9.4"
metadata: {"openclaw":{"emoji":"💰","requires":{"bins":["python3"]}}}
展开全部(共 108 行)
---

# Make your AI agent leaner—not less capable

Ask your agent:

> “Check where I might be wasting tokens and tell me what to improve.”

Or try:

- “Review my scheduled tasks for unnecessary AI usage.”
- “Which instruction files are making my context heavy?”
- “Help me choose a suitable model for routine work.”

Works with **OpenClaw and Hermes Agent**. Your agent handles the technical steps below;
you do not need to copy Python commands or prepare exports when the required evidence
is already available in its environment.

## What you get

A short, prioritized explanation of what was checked, what deserves attention and what
to do next. Nothing silently changes your models, instructions or schedules. Potential
savings are opportunities to test—not a promise or a measured reduction in your bill.

Built by [MissionDeck.ai](https://missiondeck.ai).

## Instructions for the agent

### 1. Start with what you already know

When the user requests an audit, proceed with relevant read-only checks; do not ask them
to restate the runtime, agent ID or active profile if trusted session context already
provides it. Say briefly that you will inspect and recommend, without changing settings.

Use this decision order:

- An explicit user-selected runtime/profile takes priority.
- Otherwise use the hosting session's known runtime and active agent/profile.
- Installed binaries alone are not proof of which profile is active. If the host is unknown
  or multiple profiles are plausible, ask one focused question rather than auditing the
  wrong system. Continue any independent checks whose scope is already clear.

Resolve bundled script paths relative to this SKILL.md directory. Use an available Python
3.10+ interpreter. No automatic installs, recursive home-directory searches or credential
searches. Never print raw configuration or environment values.

### 2. Run the matching read-only audit

**In OpenClaw:** use the current agent ID from trusted runtime context, not the example
name or the CLI's default. Follow `references/QUICKSTART.md` for the command. Include
`--config` only when the active config path is already established and the audit needs it.
If the CLI is unavailable, use exports already supplied; otherwise report the missing
capability instead of asking the user to run a long list of commands.

**In Hermes:** use the active profile path already supplied by the host/user. A known
HERMES_HOME path is profile evidence; do not dump the environment or load `.env`. Do not
assume the default profile just because a default directory exists. The audit reads only
config.yaml and cron/jobs.json. Prefer the existing Hermes Python environment for YAML
support. If no cron file exists, report automation coverage as unavailable; audit the
available config separately rather than claiming zero jobs. See references/QUICKSTART.md.

Do not ask for catalog/status exports for an ordinary Hermes profile audit: those are
only needed for the separate model-routing function. Do not start Hermes or any job.

### 3. Match extra checks to the question

- Context: inspect only known, relevant instruction files. Character/4 estimates are not
  actual injected tokens; use native context diagnostics if available. Never delete instructions.
- Model choice: use the user's policy and known catalog/status evidence. Missing capability
  metadata means unverified, not unsupported. No automatic switching or paid canary.
- Spending: without complete usage evidence, say actual spending/savings are unknown.
  Native usage ingestion and automatic budget alerts are not implemented.

Read only the reference needed: QUICKSTART.md for commands, HERMES.md for profile/model
precedence, PROVIDERS.md for routing/cache advice. Do not load every reference by default.

### 4. Explain the result, not the machinery

Lead with a plain-language verdict and at most three prioritized next steps. For each,
explain the evidence, why it matters, and the uncertainty. Separate confirmed problems
from review candidates; do not count every informational finding as a fault. End with
what was not checked and confirmation that no settings were changed.

Do not paste raw JSON unless requested. Offer technical details only when useful. If
nothing actionable is found, say so. Never claim a fixed savings percentage, cheapest
model, successful authentication or measured dollars without evidence.

## Boundaries

All bundled commands are diagnostic. No config edits, installs, restarts, messages, new
jobs or credential reads. OpenClaw native reads may contact configured services and update
native caches. Hermes support is file-based, not native catalog/authentication discovery;
profile overlays and runtime overrides remain unverified. See SECURITY.md.

Python 3.10+; optional PyYAML for YAML input. OpenClaw adapter tested on 2026.9.4; Hermes
file compatibility is pinned in references/HERMES.md. The CLI still requires explicit
runtime selection for Hermes; the agent chooses it from trusted context, not autodetection.

「AI 智能体」分类下的热门技能

Asif 的其他技能

数据月份:2026-10 · 下载/星标数聚合自公开技能注册库(ClawHub、SkillHub),按月更新。口径说明见数据方法。