rtk

Filter and compress command-line tool output to reduce LLM token consumption.

4|1|Updated Mar 6, 2026
One-click install
npx skills add https://github.com/k1lgor/mega-mind-skills --skill rtk-k1lgor
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rtk
Source: https://github.com/k1lgor/mega-mind-skills/tree/main/.agent/skills/rtk
Command: npx skills add https://github.com/k1lgor/mega-mind-skills --skill rtk-k1lgor

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill significantly reduces the number of tokens sent to Large Language Models by intelligently filtering and compressing the output of common command-line tools, thereby lowering costs and speeding up interactions.

Core Features & Use Cases

  • Token Savings: Achieves 60-90% token reduction on development commands like git log, cargo test, and npm install.
  • Command Optimization: Provides optimized wrappers for various languages and tools (Rust, Python, Go, Node.js, Git, etc.).
  • Proxy Mode: For unsupported commands, it still tracks usage and can proxy commands.
  • Use Case: When running git log to review recent commits, use rtk git log to get a concise, token-efficient output suitable for AI analysis.

Quick Start

Use rtk git log --oneline -10 to view the last 10 commits in a compact format.

Frequently Asked Questions about rtk

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I reduce LLM token usage when feeding command line output to an AI?

Token reduction for command line operations works by intelligently filtering and compressing tool output before sending it to the LLM. This mechanism lowers costs and speeds up AI interactions by removing irrelevant verbose logs.

How do I compress git log output for AI context analysis?

You can compress git log output for AI analysis by running the command through a token optimization wrapper. For example, use the wrapper followed by `git log --oneline -10` to view recent commits in a compact, token-efficient format.

Does token optimization work with Rust, Node.js, and Python package managers?

Yes, token optimization works with Rust, Node.js, and Python package managers. It provides optimized wrappers for various languages and tools, significantly reducing tokens from outputs like `cargo test` and `npm install`.

Can I track token savings for unsupported command line tools?

You can track token savings for unsupported command line tools using proxy mode. This mode allows the wrapper to proxy commands while still monitoring and tracking cumulative token usage even without direct optimization support.