Rtk Compressor

v0.1.0

Intelligently compress CLI outputs by removing comments, blanks, and redundancies to reduce token usage by 60-90% while preserving key info.

0· 237· 1 versions· 0 current· 0 all-time· Updated 5h ago· MIT-0

Install

openclaw skills install rtk-compressor

RTK Compressor Skill

智能压缩 CLI 命令输出,降低 token 消耗 60-90%。

功能

  • 移除注释、空行、样板代码
  • 聚合相似项
  • 保留核心信息
  • 支持多种输出类型:ls/tree、cat/read、测试输出、JSON/日志

使用方式

# 直接压缩输出
echo "输出内容" | rtk-compressor

# 或在代码中调用
python3 -m rtk_compressor compress "原始输出"

压缩效果

命令类型原始 tokens压缩后节省
ls/tree200040080%
cat/read400001200070%
测试输出25000250090%

安装

pip install rtk-compressor

Version tags

latestvk97dzh3nc9yb32s2dbap0v8tfs830r0f