← Back to Skills Marketplace
samuellai118

TokenLens Token Value Optimizer

by SamuelLai118 · GitHub ↗ · v1.0.3 · MIT-0
cross-platform ✓ Security Clean
152
Downloads
0
Stars
0
Active Installs
4
Versions
Install in OpenClaw
/install tokenlens-token-value-optimizer
Description
TokenLens Token Value Optimization Engine — Maximize value per token with smart optimization, cost tracking, and efficiency recommendations. Free version wit...
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install tokenlens-token-value-optimizer
  3. After installation, invoke the skill by name or use /tokenlens-token-value-optimizer
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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
Metadata
Slug tokenlens-token-value-optimizer
Version 1.0.3
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 4
Frequently Asked Questions

What is TokenLens Token Value Optimizer?

TokenLens Token Value Optimization Engine — Maximize value per token with smart optimization, cost tracking, and efficiency recommendations. Free version wit... It is an AI Agent Skill for Claude Code / OpenClaw, with 152 downloads so far.

How do I install TokenLens Token Value Optimizer?

Run "/install tokenlens-token-value-optimizer" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is TokenLens Token Value Optimizer free?

Yes, TokenLens Token Value Optimizer is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does TokenLens Token Value Optimizer support?

TokenLens Token Value Optimizer is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created TokenLens Token Value Optimizer?

It is built and maintained by SamuelLai118 (@samuellai118); the current version is v1.0.3.

💬 Comments