From token-optimizer
Compresse les sorties de commandes shell longues (git, npm, docker, kubectl, pytest, etc.) via le proxy Rust rtk (Rust Token Killer) pour economiser 60-90% de tokens avant qu'elles n'atteignent le contexte. Mots-cles : "rtk", "compresse mes commandes", "trop verbeux", "sortie trop longue", "output bash massif", "git log trop long", "pytest verbose".
How this skill is triggered — by the user, by Claude, or both
Slash command
/token-optimizer:cli-compressThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Intercepts les sorties de commandes shell verbeuses et les compresse avant ingestion dans le contexte via le binaire Rust `rtk`.
Intercepts les sorties de commandes shell verbeuses et les compresse avant ingestion dans le contexte via le binaire Rust rtk.
# macOS / Linux / WSL
curl -fsSL https://www.rtk-ai.app/install.sh | sh
# ou via cargo si Rust est installe
cargo install rtk
Puis initialiser pour Claude Code :
rtk init -g
| Categorie | Exemples |
|---|---|
| Git | git status, git log, git diff, git blame |
| GitHub CLI | gh pr list, gh run view, gh issue list |
| NPM / Yarn / pnpm | npm install, npm test, npm audit |
| Docker | docker ps, docker logs, docker images |
| Kubernetes | kubectl get, kubectl describe, kubectl logs |
| Tests | pytest, jest, go test, cargo test |
| Build | cargo build, go build, make |
| Lint | eslint, ruff, clippy |
Liste complete : rtk list-commands.
4 strategies appliquees dans l'ordre :
Economie typique : 60-90% de tokens, <10 ms de latence ajoutee.
rtk git log --oneline -n 100
rtk pytest tests/
rtk docker logs myapp --tail 500
# bypass rtk sur une commande
RTK_OFF=1 git log
# desactiver globalement
rtk disable
Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.
npx claudepluginhub geekfamilycorp/tricorderkit --plugin token-optimizer