← 返回 Skills 市场
smxtx

Token Optimizer 1.0.0

作者 smxtx · GitHub ↗ · v1.2.0 · MIT-0
cross-platform ⚠ suspicious
96
总下载
0
收藏
0
当前安装
3
版本数
在 OpenClaw 中安装
/install token-optimizer-1-0-0
功能描述
✂️ TOKEN节约器 - 工作流程控制器。通过问题预检、路径验证、进度检查、错误快速定位,防止重复无效工作,节约TOKEN消耗。兼容Windows/Mac/Linux/MaxClaw/ClawHub。
安全使用建议
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.
功能分析
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.
能力评估
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.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install token-optimizer-1-0-0
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /token-optimizer-1-0-0 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
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平台 - 包含详细组件说明及部分核心实现代码
元数据
Slug token-optimizer-1-0-0
版本 1.2.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 3
常见问题

Token Optimizer 1.0.0 是什么?

✂️ TOKEN节约器 - 工作流程控制器。通过问题预检、路径验证、进度检查、错误快速定位,防止重复无效工作,节约TOKEN消耗。兼容Windows/Mac/Linux/MaxClaw/ClawHub。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 96 次。

如何安装 Token Optimizer 1.0.0?

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

Token Optimizer 1.0.0 是免费的吗?

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

Token Optimizer 1.0.0 支持哪些平台?

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

谁开发了 Token Optimizer 1.0.0?

由 smxtx(@smxtx)开发并维护,当前版本 v1.2.0。

💬 留言讨论