Rtk Compressor
Intelligently compress CLI outputs by removing comments, blanks, and redundancies to reduce token usage by 60-90% while preserving key info.
MIT-0 · Free to use, modify, and redistribute. No attribution required.
⭐ 0 · 18 · 0 current installs · 0 all-time installs
MIT-0
Security Scan
OpenClaw
Benign
medium confidencePurpose & Capability
Name/description (compress CLI outputs) match the instructions (pipe text to rtk-compressor or call the Python module). The skill requests no unusual binaries, env vars, or config paths.
Instruction Scope
SKILL.md only instructs compressing text via a CLI tool or Python module and shows supported modes/types. It does not ask the agent to read unrelated files, credentials, or to send data to external endpoints.
Install Mechanism
There is no bundled install spec inside the skill; SKILL.md/README recommend `pip install rtk-compressor`. Installing an external PyPI package is a normal choice but introduces supply-chain risk because the skill itself does not include the package source.
Credentials
No environment variables, credentials, or config paths are requested — the requested privileges are minimal and appropriate for the stated purpose.
Persistence & Privilege
Skill is not always-enabled and does not request persistent system-level privileges. Autonomous invocation is allowed (platform default) but not combined with other concerning flags.
Assessment
This skill is internally coherent, but it references installing an external PyPI package (rtk-compressor) rather than bundling code. Before installing or running it: 1) Verify the PyPI package name and author on pypi.org and inspect the package source or repository for malicious behavior; 2) Note minor documentation inconsistencies (examples use `rtk-compress` vs `rtk-compressor` and module name `rtk_compressor`), which suggest sloppy packaging — treat as a signal to inspect the package closely; 3) Prefer installing in an isolated environment (virtualenv or container) if you want to test it; 4) If you cannot review the package source, avoid installing it on sensitive systems.Like a lobster shell, security has layers — review code before you run it.
Current versionv0.1.0
Download ziplatest
License
MIT-0
Free to use, modify, and redistribute. No attribution required.
SKILL.md
RTK Compressor Skill
智能压缩 CLI 命令输出,降低 token 消耗 60-90%。
功能
- 移除注释、空行、样板代码
- 聚合相似项
- 保留核心信息
- 支持多种输出类型:ls/tree、cat/read、测试输出、JSON/日志
使用方式
# 直接压缩输出
echo "输出内容" | rtk-compressor
# 或在代码中调用
python3 -m rtk_compressor compress "原始输出"
压缩效果
| 命令类型 | 原始 tokens | 压缩后 | 节省 |
|---|---|---|---|
| ls/tree | 2000 | 400 | 80% |
| cat/read | 40000 | 12000 | 70% |
| 测试输出 | 25000 | 2500 | 90% |
安装
pip install rtk-compressor
Files
3 totalSelect a file
Select a file to preview.
Comments
Loading comments…
