rtk-optimizer

rtk-optimizer is a skill for Claude Code from FlorianBruniaux/claude-code-plugins. It costs 44 tokens per session (1,204 once invoked), scanned A, original, MIT.

A guide that suggests shorter-output wrappers for verbose shell commands, using RTK to reduce the text returned to the coding agent.

In plain words
What is it for?
Use it with commands such as git log, git diff, tests, package listings, cargo commands, pytest, Go tests, and GitHub CLI queries.
Why use it?
Large command results consume the agent's context, making it harder to focus on the useful information.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions CLAUDE.md.

Part of the ai-methodology plugin — 20 skills, 1 agent, 1 hook shipped together

Good fit Use it with commands such as git log, git diff, tests, package listings, cargo commands, pytest, Go tests, and GitHub CLI queries.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/florianbruniaux/claude-code-plugins/rtk-optimizer
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add FlorianBruniaux/claude-code-plugins --skill rtk-optimizer
Clone the repo
git clone --depth 1 https://github.com/FlorianBruniaux/claude-code-plugins

Made for: Claude Code.

Or install ai-methodology, the plugin that ships this one along with the rest of its 20 skills, 1 agent, 1 hook.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for rtk-optimizer

README.md
[![agentmods](https://agentmods.dev/badge/skills/florianbruniaux/claude-code-plugins/rtk-optimizer/github.svg)](https://agentmods.dev/skills/florianbruniaux/claude-code-plugins/rtk-optimizer)
Your own site
<a href="https://agentmods.dev/skills/florianbruniaux/claude-code-plugins/rtk-optimizer"><img src="https://agentmods.dev/badge/skills/florianbruniaux/claude-code-plugins/rtk-optimizer/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for rtk-optimizer

Your own site · 80×15
<a href="https://agentmods.dev/skills/florianbruniaux/claude-code-plugins/rtk-optimizer"><img src="https://agentmods.dev/badge/skills/florianbruniaux/claude-code-plugins/rtk-optimizer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 44 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,204 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00044 $0.01204
Opus 5.5 $0.00018 $0.00482
Sonnet 5.5 $0.00009 $0.00241
Haiku 4.5 $0.00004 $0.00120

Measured 1mo ago against content hash a96596af2662, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

rtk-optimizer scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/ai-methodology/skills/rtk-optimizer/SKILL.md · 147 lines

How it starts

The opening of the file, as written. The whole thing — 147 lines — stays where its author put it; the contents beside it link to each section on GitHub.

RTK optimizer skill

Purpose: Automatically suggest RTK wrappers for high-verbosity commands to reduce token consumption.

How it works

  1. Detect high-verbosity commands in user requests
  2. Suggest RTK wrapper if applicable
  3. Execute with RTK when user confirms
  4. Track savings over session

Supported commands

Git (>70% reduction)

  • git log → rtk git log (92.3% reduction)
  • git status → rtk git status (76.0% reduction)
  • find → rtk find (76.3% reduction)

Medium-Value (50-70% reduction)

  • git diff → rtk git diff (55.9% reduction)
  • cat <large-file> → rtk read <file> (62.5% reduction)

JS/TS Stack (70-90% reduction)

  • pnpm list → rtk pnpm list (82% reduction)
  • pnpm test / vitest run → rtk vitest run (90% reduction)

Rust Toolchain (80-90% reduction)

  • cargo test → rtk cargo test (90% reduction)
  • cargo build → rtk cargo build (80% reduction)
  • cargo clippy → rtk cargo clippy (80% reduction)

Python & Go (90% reduction)

  • pytest → rtk python pytest (90% reduction)
  • go test → rtk go test (90% reduction)

GitHub CLI (79-87% reduction)

  • gh pr view → rtk gh pr view (87% reduction)
  • gh pr checks → rtk gh pr checks (79% reduction)

File operations

  • ls → rtk ls (condensed output)
  • grep → rtk grep (filtered output)

Activation examples

User: "Show me the git history" Skill: Detects git log → Suggests rtk git log → Explains 92.3% token savings

User: "Find all markdown files" Skill: Detects find → Suggests rtk find "*.md" . → Explains 76.3% savings

Installation check

Before first use, verify RTK is installed:

rtk --version  # Should output: rtk 0.16.0+

If not installed:

# Homebrew (macOS/Linux)
brew install rtk-ai/tap/rtk

# Cargo (all platforms)
cargo install rtk

Usage pattern

# When user requests high-verbosity command:

1. Acknowledge request
2. Suggest RTK optimization:
   "I'll use `rtk git log` to reduce token usage by ~92%"
3. Execute RTK command
4. Track savings (optional):
   "Saved ~13K tokens (baseline: 14K, RTK: 1K)"

Read the full file on GitHub · 147 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed a96596af2662
  2. 3mo ago First seen · 147 lines · 44 tokens per session scan A 7a821397c656

Subscribe to this mod's changes

rtk-optimizer is a skill published in the GitHub repository FlorianBruniaux/claude-code-plugins (47 stars, last pushed 5d ago), licensed MIT. It adds 44 tokens to every session and 1,204 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

rtk-optimizer compared with skills from other repositories

rtk-optimizer next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
rtk-optimizerFlorianBruniaux/claude-code-pluginsSkill475d agoMITA44Claude Code
app-store-screenshotsfatihkan/badiSkill81mo agoMITA68Claude Code
contentfatihkan/badiSkill81mo agoMITA0Claude Code
expo-app-configfatihkan/badiSkill81mo agoMITA86Claude Code
expo-config-pluginfatihkan/badiSkill81mo agoMITA85Claude Code
expo-eas-buildfatihkan/badiSkill81mo agoMITA75Claude Code
expo-eas-submitfatihkan/badiSkill81mo agoMITA75Claude Code