Token导航 LogoToken导航TokenDH.com
研究检索操作浏览器clawhub未标认证来源可访问clear审计提醒

rtk-compressRTK 压缩

Agent Skill

rtk-compress 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

14,252

周安装

571

GitHub Stars

公开资料未说明

下载量

4,614
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:rtk-compress(RTK 压缩)
来源仓库:https://github.com/erscoder/rtk-compress
安装命令:
openclaw skills install rtk-compress
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install rtk-compress

简介

在 shell 命令、文件读取和测试输出上节省 60-90% 的 LLM 令牌。包装 rtk CLI 以进行压缩输出。

SKILL.md

name
rtk-compress
version
1.15.2
published
false
description
Save 60-90% of LLM tokens on shell commands, file reads, and test outputs. Wraps rtk CLI for compressed output.
tags
rtk, token-saving, compression, cli, shell, devtools

Save 60-90% of LLM tokens on shell commands, file reads, and test outputs.

This skill wraps rtk (Rust Token Killer) — a CLI proxy that filters and compresses command outputs before they reach your LLM context.

Install

# 1. Install rtk
brew install rtk          # macOS
# or: curl -fsSL https://raw.githubusercontent.com/rtk-ai/rtk/refs/heads/master/install.sh | sh

# 2. Verify
rtk gain  # Should show token savings stats

Then copy this SKILL.md to your agent's skills directory.

Commands Reference

Smart File Operations

rtk ls .                                # Token-optimized directory tree
rtk read file.rs                         # Smart file reading (compressed output)
rtk read file.rs -l aggressive           # Signatures only (strips bodies)
rtk smart file.rs                      # 2-line heuristic code summary

Search & Diff

rtk find "*.rs" .                        # Compact find results
rtk grep "pattern" .                    # Grouped search results
rtk diff file1 file2                    # Condensed diff

Git Operations

rtk git status                         # Compact status
rtk git log -n 10                      # One-line commits
rtk git diff                           # Condensed diff
rtk git add                           # → "ok"
rtk git commit -m "msg"                    # → "ok abc1234"
rtk git push                          # → "ok main"
rtk git pull                           # → "ok 3 files +10 -2"

GitHub CLI

rtk gh pr list                         # Compact PR listing
rtk gh pr view 42                       # PR details + checks
rtk gh issue list                      # Compact issue listing
rtk gh run list                        # Workflow run status

Test Runners

rtk test cargo test                    # Show failures only (-90%)
rtk err npm run build                 # Errors/warnings only
rtk vitest run                         # Vitest compact (failures only)
rtk playwright test                   # E2E results (failures only)
rtk pytest                            # Python tests (-90%)
rtk go test                            # Go tests (NDJSON, -90%)
rtk cargo test                        # Cargo tests (-90%)

Build & Lint

rtk lint                               # ESLint grouped by rule/file
rtk lint biome                         # Supports other linters
rtk tsc                                # TypeScript errors grouped by file
rtk next build                          # Next.js build compact
rtk prettier --check .                 # Files needing formatting
rtk cargo build                        # Cargo build (-80%)
rtk cargo clippy                        # Cargo clippy (-80%)
rtk ruff check                          # Python linting (JSON, -80%)
rtk golangci-lint run                   # Go linting (JSON, -85%)

Package Managers

rtk pnpm list                          # Compact dependency tree
rtk pip list                           # Python packages (auto-detect uv)
rtk pip outdated                         # Outdated packages
rtk prisma generate                     # Schema generation (no ASCII art)

Containers

rtk docker ps                           # Compact container list
rtk docker images                       # Compact image list
rtk docker logs <container>                # Deduplicated logs
rtk docker compose ps                   # Compose services
rtk kubectl pods                        # Compact pod list
rtk kubectl logs <pod>                    # Deduplicated logs
rtk kubectl services                     # Compact service list

Data & Analytics

rtk json config.json                    # Structure without values
rtk deps                                # Dependencies summary
rtk env -f AWS                        # Filtered env vars
rtk log app.log                         # Deduplicated logs
rtk curl <url>                         # Auto-detect JSON + schema
rtk wget <url>                        # Download, strip progress bars
rtk summary <long command>          # Heuristic summary
rtk proxy <command>                     # Raw passthrough + tracking

Token Savings Analytics

rtk gain                               # Summary stats
rtk gain --graph                       # ASCII graph (last 30 days)
rtk gain --history                     # Recent command history
rtk gain --daily                       # Day-by-day breakdown
rtk gain --all --format json            # JSON export for dashboards
rtk discover                            # Find missed savings opportunities
rtk discover --all --since 7           # All projects, last 7 days

Rules for the Agent

Use rtk <command> instead of bare commands whenever possible:

Always use rtk for:

  • rtk git status / rtk git log / rtk git diff
  • rtk ls -la / rtk cat <file>
  • rtk npm test / rtk pytest / rtk cargo test
  • rtk npm run build / rtk ruff check

Don't use rtk for:

  • Commands whose output is piped to other tools (e.g., git log | grep ...)
  • Scripts that parse raw output
  • Commands where you need the exact full output

If rtk fails:

Fall back to the bare command. Never block a task because of compression.

Check savings:

rtk gain           # current session
rtk gain --global  # all-time stats

Token Savings Reference

OperationWithout rtkWith rtkSavings
git status~300~60-80%
git log -20~2,000~400-80%
cat file.ts~2,000~600-70%
npm test~5,000~500-90%
pytest~2,000~200-90%
Typical session~150k~45k-70%

Links

  • rtk: https://github.com/rtk-ai/rtk
  • OpenClaw feature request: https://github.com/openclaw/openclaw/issues/35053

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

77.69%
按下载量换算3,585

安全审计

VirusTotal

可疑

ClawScan

可疑

Static analysis

未展示

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills