agentleFS
elidadutra187elidadutra187/claude-skills/skills/rtk-token-killer/SKILL.md

rtk-token-killer

Skill0 starsChanged 5 days agoMITView on GitHub

Install and configure RTK (Rust Token Killer) — a high-performance CLI proxy that reduces LLM token consumption by 60-90%. Automatically rewrites shell commands to their rtk equivalents via hooks. Use when setting up a new dev environment or when token optimization is needed. Do NOT use when raw unfiltered output is required (use rtk proxy for that).

  • Pipes a download into a shell

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    After installing the binary, configure hooks for your IDE:

    line 41
  2. Distinctive:

    When unfiltered output is needed:

    line 111

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

RTK — Rust Token Killer

High-performance CLI proxy that reduces LLM token consumption by 60-90% through smart filtering, grouping, truncation, and deduplication. Single Rust binary, 100+ supported commands, <10ms overhead.

Installation

Pre-built binary

RTK detects OS and architecture automatically (x86_64 and aarch64 supported):

curl -fsSL https://raw.githubusercontent.com/rtk-ai/rtk/refs/heads/master/install.sh | sh

Installs to ~/.local/bin. Ensure PATH includes it:

export PATH="$HOME/.local/bin:$PATH"

Verify

rtk --version   # Should show version
rtk gain         # Should show token savings stats

Hook Setup (per IDE)

After installing the binary, configure hooks for your IDE:

Claude Code

rtk init -g                    # Install hook + RTK.md

Cursor / Windsurf

rtk init -g --agent cursor     # Cursor
rtk init -g --agent windsurf   # Windsurf

Codex / Gemini

rtk init -g --codex            # Codex (OpenAI)
rtk init -g --gemini           # Gemini CLI

Google Antigravity

rtk init --agent antigravity    # Creates .agents/rules/antigravity-rtk-rules.md

Devin

Devin is not officially supported by RTK. The install.sh script installs the RTK binary globally, but you'll need to manually configure RTK for Devin if needed.

How It Works

Without rtk:                           With rtk:
Claude --git status--> shell --> git    Claude --git status--> RTK --> git
  ^      ~2000 tokens        |           ^    ~200 tokens     |filter|
  +---------------------------+           +--------------------+------+

Four strategies per command:

  1. Smart Filtering — removes noise (comments, whitespace, boilerplate)
  2. Grouping — aggregates similar items (files by directory, errors by type)
  3. Truncation — keeps relevant context, cuts redundancy
  4. Deduplication — collapses repeated log lines with counts

Key Commands

CommandSavingsDescription
rtk git status-80%Compact git status
rtk git diff-75%Condensed diff
rtk git log-80%One-line commits
rtk cargo test-90%Failures only
rtk ls-80%Token-optimized tree
rtk read file.rs-70%Smart file reading
rtk grep pattern .-80%Grouped search
rtk gain—Token savings analytics
rtk discover—Find missed savings

Auto-Rewrite Hook

The hook transparently intercepts Bash commands and rewrites them to rtk equivalents:

git status    → rtk git status     # automatic
cargo test    → rtk cargo test     # automatic
cat file.rs   → rtk read file.rs   # automatic

Result: 100% rtk adoption across all conversations and subagents, zero effort.

Bypass

When unfiltered output is needed:

rtk proxy git log --oneline -20    # Full output, still tracked

Proxy Configuration

Behind corporate proxy, set before install:

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.