← Back to Skills Marketplace
96
Downloads
0
Stars
0
Active Installs
3
Versions
Install in OpenClaw
/install token-optimizer-1-0-0
Description
✂️ TOKEN节约器 - 工作流程控制器。通过问题预检、路径验证、进度检查、错误快速定位,防止重复无效工作,节约TOKEN消耗。兼容Windows/Mac/Linux/MaxClaw/ClawHub。
Usage Guidance
This skill appears to be a local diagnostic/workflow helper and includes code/instructions that run system commands (netstat/lsof/pgrep/powershell), check files, and inspect processes and environment variables. That's plausible for a 'pre-check' tool, but it also means the skill — if executed — can read sensitive local state (open ports, running processes, files, env vars). The SKILL.md sample constructs shell commands by interpolating user-supplied values, which can lead to command injection if inputs aren't strictly validated. Before installing or enabling this skill:
- Treat it as powerful: only enable it for trusted agents in a controlled environment (or sandbox).
- Ask the publisher for provenance (source code repository, homepage, who is 'Matrix Agent') since 'Source' is unknown.
- Request explicit documentation on what exact paths/commands the skill will run and what inputs it will accept; prefer whitelists and input sanitization.
- If you must use it, avoid granting it access to sensitive directories or credentials; test it in a disposable environment first.
Confidence is medium because the behavior is coherent with a diagnostics tool, but the instruction-level use of shell commands and lack of provenance/constraint make the package risky without further clarification.
Capability Analysis
Type: OpenClaw Skill
Name: token-optimizer-1-0-0
Version: 1.2.0
The skill bundle provides a workflow management tool designed to optimize token usage through environment pre-checks and error localization. However, the JavaScript code provided in `SKILL.md` (specifically the `PreChecker` class) contains critical shell injection vulnerabilities. It uses `child_process.execSync` to execute system commands like `netstat`, `lsof`, and `pgrep` while directly interpolating variables (`port`, `processName`) into the command strings without any sanitization. While these capabilities are consistent with the stated purpose of diagnostic checking, the insecure implementation poses a significant RCE risk if the agent processes untrusted input through these functions.
Capability Assessment
Purpose & Capability
The name/description (workflow pre-checks, path verification, checkpointing) align with the checks shown in SKILL.md (file existence, ports, processes, logs). Requesting no environment variables and no install is consistent with an instruction-only diagnostic helper. However, a user expecting only token-optimization guidance may not expect the skill to run OS-level commands and inspect running processes/ports/files — the operational footprint is broader than the high-level marketing implies.
Instruction Scope
SKILL.md contains explicit runtime code and instructions that execute system commands and read filesystem/process state: the PreChecker sample uses node's child_process.execSync to run netstat/lsof/pgrep/powershell; there are filesystem existence checks and suggested log analysis. These instructions direct the agent (or developer) to inspect ports, processes, files, and environment variables. That scope is coherent for diagnostics but is high-privilege and can reveal sensitive local state. The code concatenates user-supplied values into shell commands (processName, port) without robust sanitization, creating a risk of command injection or unintended execution if inputs are not strictly validated.
Install Mechanism
No install spec and no code files — instruction-only — which means nothing will be written to disk by the skill package itself. This minimizes supply-chain risk, but the instructions still propose executing system commands when used.
Credentials
The skill declares no required environment variables or credentials, which is proportionate. Nevertheless, the guidance includes checks for 'Token/API Key是否有效' and '环境变量检查', implying the agent may be asked to read environment variables or validate credentials at runtime. Because no specific env vars are declared, any access to environment variables would be ad hoc and should be considered sensitive.
Persistence & Privilege
always is false and there is no indication the skill persists configuration or modifies other skills. Autonomous invocation is allowed by default but not combined with any 'always:true' privilege or declared persistent presence.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install token-optimizer-1-0-0 - After installation, invoke the skill by name or use
/token-optimizer-1-0-0 - Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.2.0
Version 1.2.0
- Updated SKILL.md with a more concise and focused description field.
- Removed the nameDisplay field from the documentation metadata.
- Updated the version number to 1.2.0.
- All functional and technical details, sample code, and workflow content remain unchanged.
v1.1.0
Version 1.1.0 – Enhanced Documentation & Metadata
- Enhanced documentation to include clearer headings, icons, and badge-style compatibility/version indicators.
- Added new tags for token optimization and efficiency.
- Improved metadata: introduced `nameDisplay` and broadened compatibility details.
- Kept the technical content, component diagrams, and code examples consistent.
- Changes limited to SKILL.md, no changes to core functionality or codebase.
v1.0.0
TOKEN节约器(token-optimizer)1.0.0 初始发布
- 提供问题预检、路径验证、进度检查点、错误快速定位四大核心控制组件,帮助减少重复无效操作和TOKEN消耗
- 内置预检清单与执行流程,覆盖代码、API、部署等常见问题自动检测
- 路径验证器支持前后端分层快速诊断及决策树指引
- 进度检查点系统可记录关键任务状态及TOKEN用量,便于追踪和优化
- 兼容Windows/Mac/Linux,支持MAXCLAW/ClawHub平台
- 包含详细组件说明及部分核心实现代码
Metadata
Frequently Asked Questions
What is Token Optimizer 1.0.0?
✂️ TOKEN节约器 - 工作流程控制器。通过问题预检、路径验证、进度检查、错误快速定位,防止重复无效工作,节约TOKEN消耗。兼容Windows/Mac/Linux/MaxClaw/ClawHub。 It is an AI Agent Skill for Claude Code / OpenClaw, with 96 downloads so far.
How do I install Token Optimizer 1.0.0?
Run "/install token-optimizer-1-0-0" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Token Optimizer 1.0.0 free?
Yes, Token Optimizer 1.0.0 is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Token Optimizer 1.0.0 support?
Token Optimizer 1.0.0 is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Token Optimizer 1.0.0?
It is built and maintained by smxtx (@smxtx); the current version is v1.2.0.
More Skills