rtk-token-optimizerlisted
Install: claude install-skill williamcorrea23/sap-router-skill
# RTK Token Optimizer Skill
**RTK** is a CLI proxy that intercepts shell commands and returns compact, LLM-optimized summaries instead of raw verbose output — saving 60-90% of token consumption.
## Local Reference
```
sap-router-skill\bundled\tools\rtk\
```
## What RTK Does
RTK wraps common dev commands and returns only what matters to the LLM:
| Command | Without RTK | With RTK |
|---------|------------|----------|
| `git log --oneline -50` | 50 lines of SHAs + messages | 10-line summary |
| `cargo test` | 200+ lines of test output | `PASSED: 47/47` or compact failure |
| `npm install` | 300+ lines of progress | `installed 142 packages` |
| `pytest -v` | Full verbose output | Summary table |
## Installation (Antigravity / Gemini)
RTK supports **Google Antigravity** via `.agents/rules/antigravity-rtk-rules.md`:
```bash
# Install RTK binary (Windows - via cargo)
cargo install rtk
# Or download pre-built binary
# https://github.com/rtk-ai/rtk/releases
# Initialize for Antigravity
rtk init --agent antigravity
```
This creates `.agents/rules/antigravity-rtk-rules.md` in your project, which instructs Antigravity to route shell commands through `rtk`.
## Initialization for All Supported Agents
```bash
rtk init -g # Claude Code (global)
rtk init -g --gemini # Gemini CLI (global)
rtk init -g --copilot # GitHub Copilot (global)
rtk init -g --agent cursor # Cursor (global)
rtk init -g --codex # Codex (global)
rtk init --