An intelligent CLI output compressor designed to reduce LLM token consumption by up to 90% by stripping redundant data.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install rtk-compressor
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install rtk-compressor using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
RTK Compressor is a specialized utility within the Openclaw Skills library designed to solve the problem of token bloat in AI agent workflows. By intelligently processing CLI command outputs, it removes non-essential data such as comments, whitespace, and boilerplate code while preserving the core informational integrity required by LLMs.
This tool is particularly effective for developers using AI coding agents who need to feed large directory structures, file contents, or test logs into a model without exhausting context windows or incurring high costs. It ensures that your Openclaw Skills remain efficient and cost-effective by aggregating similar items and prioritizing significant data patterns.
To integrate this utility into your Openclaw Skills environment, install it via pip:
pip install rtk-compressor
You can then use it directly in the terminal:
echo "your lengthy output" | rtk-compressor
RTK Compressor handles various data types with specific optimization strategies as shown in the table below:
| Command Category | Optimization Strategy | Target Reduction |
|---|---|---|
| ls / tree | Aggregates file paths and removes redundant nodes | 80% |
| cat / read | Strips boilerplate and non-functional characters | 70% |
| Test Outputs | Summarizes pass/fail patterns and collapses logs | 90% |
| JSON / Logs | Minifies structure and retains key-value essentials | High |
Loading
A comprehensive AI legal assistant for criminal defense professionals, specializing in the Chinese legal system.

A systematic framework for professional competitor research and product strategy based on Zhang Zaiwang's Effective Competitive Analysis methodology.

A sophisticated AI skill that analyzes your personal documents and conversations to identify cognitive cracks and ask the questions you can't ask yourself.

A sophisticated analytical skill that processes news URLs to provide deep-dive geopolitical assessments including war duration and commodity market impacts.

A comprehensive AWS EC2 orchestration skill for Openclaw Skills that automates cloud compute management and security.

A hybrid AI toolkit combining local processing for enhancement and cloud-based generation with over 300 models.








































