← 返回 Skills 市场
radicalgeek

cli output compression for token savings with rtk

作者 Mark Jones · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
276
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install rtk
功能描述
RTK (Rust Token Kit) - CLI proxy that reduces LLM token consumption by 60-90% on common dev commands. Use rtk to wrap commands like git, ls, cat, grep, test...
安全使用建议
This skill's core function (compressing CLI output) is reasonable, but exercise caution before relying on it: 1) The bundle contains no binary or install provenance — do not download or run an unknown 'rtk' binary without verifying its source (official repo, checksums, signatures). 2) Avoid running features that read environment variables or tee logs (e.g., 'rtk env -f AWS', reading ~/.local/share/rtk/tee/*) until you confirm the binary is trustworthy; these can leak credentials. 3) If you install rtk, review and disable tracking/analytics and the tee/DB paths in its config, or point them to a safe location. 4) Don’t enable any auto-rewrite shell hooks system-wide unless you’ve audited their installer and code. 5) Prefer running commands without rtk or with 'rtk proxy' in a controlled test environment first to observe what the binary does. If you want to proceed safely, obtain the binary from an authoritative source, verify signatures/checksums, and audit its behavior in an isolated container.
功能分析
Type: OpenClaw Skill Name: rtk Version: 1.0.0 The skill bundle provides documentation and instructions for 'RTK (Rust Token Kit)', a CLI utility designed to reduce LLM token consumption by wrapping and filtering the output of common development commands (e.g., git, ls, docker, kubectl). The instructions in SKILL.md guide the AI agent to use the 'rtk' prefix for shell operations to optimize context usage. While the tool acts as a proxy for sensitive commands and includes features like environment variable filtering and command history tracking, these behaviors are consistent with its stated purpose of token management. No malicious code, exfiltration logic, or harmful prompt injections were found in the provided files.
能力评估
Purpose & Capability
The name/description match the instructions: this is a CLI wrapper that compresses command output. However, the skill is instruction-only and assumes an external Rust binary is installed; no install or provenance is provided (homepage/source unknown). The documentation also lists analytics, tracking, and env-filter features that are not strictly necessary for output compression and increase the attack surface.
Instruction Scope
SKILL.md explicitly tells users/agents to read tee logs (e.g., ~/.local/share/rtk/tee/...), to run commands that show env vars (rtk env -f AWS), and to use tracking/analytics commands (rtk gain, rtk proxy). Those instructions direct the agent to access potentially sensitive files and environment variables that are unrelated to simply summarizing visible CLI output, and they could cause secrets to be read and forwarded into LLM context.
Install Mechanism
No install spec is included (instruction-only), which minimizes immediate disk-write risk from the skill bundle itself. But the skill repeatedly assumes a single Rust binary is present and recommends installing or verifying it; because provenance is unknown (no official homepage/source provided in the package), obtaining that binary from an external source could be risky.
Credentials
The skill declares no required environment variables, but the docs advertise commands that read/filter environment variables (e.g., 'rtk env -f AWS') and reference config files and a tracking database. Reading AWS env vars or arbitrary env values is not justified by the core compression feature and could expose credentials; tracking/database paths could store sensitive command outputs.
Persistence & Privilege
always:false and no install change in this bundle are good. However the docs mention optional auto-rewrite hooks (which, if installed elsewhere, would persistently rewrite commands) and tracking that writes tee logs and a DB under user home/config. Those are optional features but would increase persistence and data collection if enabled by the external binary or by a separate hook installer.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install rtk
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /rtk 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
RTK 1.0.0 – initial release! - Launches RTK, a Rust-based CLI wrapper for dev commands, reducing LLM token consumption by 60–90% - Supports popular commands including git, ls, read, grep, test and lint runners, docker, kubectl, and more - Implements smart output filtering: grouping, truncation, deduplication, and aggressive compression modes - Saves raw output on failures for troubleshooting; includes stats and history tracking commands - Fully self-contained binary, zero dependencies, minimal runtime overhead - Reference docs and usage examples included in SKILL.md
元数据
Slug rtk
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

cli output compression for token savings with rtk 是什么?

RTK (Rust Token Kit) - CLI proxy that reduces LLM token consumption by 60-90% on common dev commands. Use rtk to wrap commands like git, ls, cat, grep, test... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 276 次。

如何安装 cli output compression for token savings with rtk?

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

cli output compression for token savings with rtk 是免费的吗?

是的,cli output compression for token savings with rtk 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

cli output compression for token savings with rtk 支持哪些平台?

cli output compression for token savings with rtk 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 cli output compression for token savings with rtk?

由 Mark Jones(@radicalgeek)开发并维护,当前版本 v1.0.0。

💬 留言讨论