← 返回 Skills 市场
samuellai118

TokenLens Token Value Optimizer

作者 SamuelLai118 · GitHub ↗ · v1.0.3 · MIT-0
cross-platform ✓ 安全检测通过
152
总下载
0
收藏
0
当前安装
4
版本数
在 OpenClaw 中安装
/install tokenlens-token-value-optimizer
功能描述
TokenLens Token Value Optimization Engine — Maximize value per token with smart optimization, cost tracking, and efficiency recommendations. Free version wit...
安全使用建议
This skill appears to do what it says: local token tracking and optimization recommendations with no network access or credential requests. Before installing: - Review the included scripts (token_value_tracker.py, context_optimizer.py, model_router.py, optimize.sh) to confirm you are comfortable with files being written to ~/.openclaw/workspace/memory/tokenlens/ (token_usage.json, config.json). - Note the small documentation inconsistencies (some referenced script names in SKILL.md/README/SECURITY.md don't match files in the package) and the security claims that say 'no code execution' while providing a shell wrapper (optimize.sh) that launches the included Python scripts — this is not necessarily malicious but is a mismatch you may want clarified by the author. - If you are concerned, run the skill in a sandbox or inspect/backup your OpenClaw workspace before running any 'optimize --apply' or OpenClaw config commands the tool suggests. - Only execute OpenClaw CLI commands from the recommendations if you understand their effect (they modify agent configuration). If you want higher assurance, ask the maintainer to confirm the exact behavior and to correct the doc mismatches.
功能分析
Type: OpenClaw Skill Name: tokenlens-token-value-optimizer Version: 1.0.3 The TokenLens Token Value Optimizer is a utility bundle designed to track token usage and provide optimization recommendations. The Python scripts (token_value_tracker.py, context_optimizer.py, and model_router.py) use simple rule-based logic and local JSON storage within the OpenClaw workspace. The bundle strictly adheres to its security claims, explicitly avoiding network calls, subprocess execution, and dynamic code evaluation. No evidence of data exfiltration, malicious prompt injection, or unauthorized system modification was found.
能力评估
Purpose & Capability
The skill's name/description (token value optimization) matches the included scripts (token_value_tracker.py, context_optimizer.py, model_router.py). Scripts read and write only under ~/.openclaw/workspace/memory/tokenlens/, and there are no required credentials or network calls. Minor mismatch: SKILL.md and README mention script names like optimization_manager.py and value_reporter.py which do not exist in the manifest — implementation uses different filenames (context_optimizer.py, model_router.py). This is likely a documentation drift but worth noting.
Instruction Scope
Runtime instructions explicitly tell the user/agent to run local scripts and a shell wrapper (optimize.sh). The Python scripts operate on local data only and do not import subprocess, sockets, or networking libraries. They do reference OpenClaw CLI commands in recommendation text (e.g., 'openclaw config set', 'openclaw session compact') but those are presented as commands for the user to run, not executed by the Python code. The SKILL.md security metadata claims 'no code execution' and 'no subprocess', which is slightly misleading because the skill includes a bash CLI (optimize.sh) that invokes the Python scripts when run; however this is execution of the skill's own code, not hidden/external execution. Overall the instruction scope stays within the stated purpose, but documentation vs. implementation claims are inconsistent.
Install Mechanism
No install spec and no remote downloads — this is an instruction-only skill with local scripts included in the package. That is low-risk from an install perspective.
Credentials
The skill requests no environment variables or external credentials. It stores and reads data under the user's OpenClaw workspace (~/.openclaw/workspace/memory/tokenlens/), which is consistent with its function. Recommendations contain example commands that would change OpenClaw configuration if executed by the user (e.g., 'openclaw config set ...'), so users should only run those knowingly.
Persistence & Privilege
The skill does not request 'always: true' or other elevated privileges. It creates and persists token usage and config files under its own directory in the OpenClaw workspace, which is expected behavior for a tracking/optimizer tool.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install tokenlens-token-value-optimizer
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /tokenlens-token-value-optimizer 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.3
CLI usability: optimize.sh shows help without error when called without arguments. Empty prompt handling improved. Engineering robustness verified with comprehensive test suite (28 tests).
v1.0.2
Documentation accuracy: updated support links from placeholder 'coming soon' to accurate 'planned for Q2 2026' statements. Added ClawHub skill page as current support channel.
v1.0.1
Security compliance: removed subprocess usage, internal consistency fixes, uses only historical/mock data.
v1.0.0
Initial release: 95% token savings via context optimization
元数据
Slug tokenlens-token-value-optimizer
版本 1.0.3
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 4
常见问题

TokenLens Token Value Optimizer 是什么?

TokenLens Token Value Optimization Engine — Maximize value per token with smart optimization, cost tracking, and efficiency recommendations. Free version wit... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 152 次。

如何安装 TokenLens Token Value Optimizer?

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

TokenLens Token Value Optimizer 是免费的吗?

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

TokenLens Token Value Optimizer 支持哪些平台?

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

谁开发了 TokenLens Token Value Optimizer?

由 SamuelLai118(@samuellai118)开发并维护,当前版本 v1.0.3。

💬 留言讨论