본문으로 건너뛰기
cccskills
무료GitHub에 공개

rtk-optimizer

Wrap high-verbosity shell commands with RTK to reduce token consumption. Use when running git log, git diff, cargo test, pytest, or other verbose CLI output that wastes context window tokens.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

연동 도구GitHub
설치 방법 보기

포함된 파일(1)

  • SKILL.md4.1 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

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)"

Session tracking

Optional: Track cumulative savings across session:

# At session end
rtk gain  # Shows total token savings for session (SQLite-backed)

Edge cases

  • Small outputs (<100 chars): Skip RTK (overhead not worth it)
  • Already using Claude tools: Grep/Read tools are already optimized
  • Multiple commands: Batch with RTK wrapper once, not per command

Configuration

Enable via CLAUDE.md:

## Token Optimization

Use RTK (Rust Token Killer) for high-verbosity commands:
- git operations (log, status, diff)
- package managers (pnpm, npm)
- build tools (cargo, go)
- test frameworks (vitest, pytest)
- file finding and reading

Metrics (verified)

Based on real-world testing:

  • git log: 13,994 chars → 1,076 chars (92.3% reduction)
  • git status: 100 chars → 24 chars (76.0% reduction)
  • find: 780 chars → 185 chars (76.3% reduction)
  • git diff: 15,815 chars → 6,982 chars (55.9% reduction)
  • read file: 163,587 chars → 61,339 chars (62.5% reduction)

Average: 72.6% token reduction

Limitations

  • 446 stars on GitHub, actively maintained (30 releases in 23 days)
  • Not suitable for interactive commands
  • Rapid development cadence (check for breaking changes)

Recommendation

Use RTK for: git workflows, file operations, test frameworks, build tools, package managers Skip RTK for: small outputs, quick exploration, interactive commands

References

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Audit Claude Code agents, skills, and commands for quality and production readiness. Use when evaluating skill quality, checking production readiness scores, or comparing agents against best-practice templates.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

FlorianBruniaux/claude-code-ultimate-guide6.2천2026년 10월 18일 업데이트

Codebase health audit scoring 7 categories with progression plan

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

FlorianBruniaux/claude-code-ultimate-guide6.2천2026년 10월 18일 업데이트

Autonomous improvement loop: scan codebase metrics, scaffold experiment files, run agent-driven iterations until metric improves

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

FlorianBruniaux/claude-code-ultimate-guide6.2천2026년 10월 18일 업데이트

best-of-n

무료

Generate bounded independent candidates, score them against a frozen rubric, and verify the selected result with a proof log.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

FlorianBruniaux/claude-code-ultimate-guide6.2천2026년 10월 18일 업데이트

canary

무료

Post-deploy monitoring: watch production after a deploy and alert on regressions

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

FlorianBruniaux/claude-code-ultimate-guide6.2천2026년 10월 18일 업데이트

catchup

무료

Restore context after /clear by summarizing recent work and project state

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

FlorianBruniaux/claude-code-ultimate-guide6.2천2026년 10월 18일 업데이트

FlorianBruniaux의 스킬 모두 보기

이 스킬의 문제 신고