Agent skill · software engineering · aradotso

rtk-token-optimizer

rtk-token-optimizer — an agent skill for coding agents.

Why this skill is useful

Adds a Rust binary that significantly reduces LLM token consumption for common development commands, providing new capabilities for efficient AI interactions.

What it needs

Requires rtk installed locally. About 7k tokens when loaded. Last updated 2026-07-09. 70 stars on the source repository.

What this skill does

bash brew install rtk bash curl -fsSL https://raw.githubusercontent.com/rtk-ai/rtk/refs/heads/master/install.sh sh Add to PATH if needed: echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.zshrc bash cargo install --git https://github.com/rtk-ai/rtk bash rtk --version # rtk 0.28.2 rtk gain # shows token savings stats bash rtk init -g # Claude Code / Copilot (global, recommended) rtk init -g --gemini # Gemini CLI rtk init -g --codex # Codex / OpenAI rtk init -g --agent cursor # Cursor rtk init --agent windsurf # Windsurf (project-scoped) rtk init --agent cline # Cline / Roo Code (project-scoped) rtk init -g --opencode # OpenCode plugin rtk init -g --auto-patch # Non-interactive (CI/CD) rtk init --show # Verify current installation bash rtk ls . # Token-optimized directory tree rtk read src/main.rs # Smart file reading rtk read src/main.rs -l aggressive # Signatures only (strips function bodies) rtk smart src/main.rs # 2-line heuristic code summary rtk find ".rs" . # Compact find results rtk grep "fn parse" src/ # Grouped search results rtk diff file1.rs file2.rs # Condensed diff bash rtk git status # Compact status (~200 tokens vs ~2000) rtk git log -n 10 # One-line commits rtk git diff # Condensed diff rtk git add . …

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills aradotso/rtk-token-optimizer

View the source on GitHub

Browse the @skills marketplace