Przejdź do treści
Biblioteka skilli
Programowanie · Automatyzacja

rtk-optimizer

/rtk-optimizer

Opakowuje gadatliwe polecenia powłoki, na przykład git log, git diff, cargo test i pytest, w RTK, aby oszczędzać okno kontekstu.

Licencja
MIT
Ostatnia zmiana repozytorium
01.09.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
1
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
2
Przestarzałość

Brak sygnałów. Repozytorium zmienione 01.09.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co robi i kiedy

Opakowuje gadatliwe polecenia powłoki, na przykład git log, git diff, cargo test i pytest, w RTK, aby oszczędzać okno kontekstu.

Oryginalny opis (EN)

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.

Jak działa

  1. How It Works
  2. Supported Commands
  3. Activation Examples
  4. Installation Check
  5. Usage Pattern
  6. Session Tracking
  7. Edge Cases
  8. Configuration
  9. Metrics (Verified)
  10. Limitations
Sekcje z nagłówków SKILL.md, w oryginale · 139 linii, 579 słów
Podgląd SKILL.md
---
name: rtk-optimizer
description: "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."
allowed-tools: Bash
effort: low
metadata:
  version: 1.0.0
---

# 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:
```bash
rtk --version  # Should output: rtk 0.16.0+
```

If not installed:
```bash
# Homebrew (macOS/Linux)
brew install rtk-ai/tap/rtk

# Cargo (all platforms)
cargo install rtk
```

## Usage Pattern

```markdown
# 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:

```bash
# 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:
```markdown
## 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

- RTK GitHub: https://github.com/rtk-ai/rtk
- RTK Website: https://www.rtk-ai.app/
- Evaluation: `docs/resource-evaluations/rtk-evaluation.md`
- CLAUDE.md template: `examples/claude-md/rtk-optimized.md`

Wersje

W bazie nie ma innych skilli o nazwie rtk-optimizer.

Migawka bazy z 13.11.2026 · wersja paczki 575cfbc17ede (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 0 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100rtk
    Opakowuje polecenia deweloperskie, takie jak cargo, git, npm, docker czy kubectl, w RTK, który skraca ich wyjście i oszczędza tokeny.
  • 90rtk-assisted-shell
    Zmniejsza marnowanie tokenów na wyjściu powłoki (git, odczyty plików, wyszukiwania, testy, lintery, logi) filtrowaniem w stylu RTK, gdy głośne polecenia zalewają sesję.
  • 90rtk-outline
    Tworzy zwięzły konspekt symboli pliku lub katalogu, klas, metod i sygnatur, zamiast czytać całe pliki.
  • 100phx-mix-compression
    Zmniejsza szum w wyniku poleceń mix przez instalację rtk, gdy długie wyjście mix zalewa kontekst, i oszczędza 5-15 proc. tokenów.
  • 100phx-mix-compression
    Zmniejsza wyjście mix o 5 do 15 proc., instalując filtry rtk dla testów, credo, dialyzera i kompilacji.
  • 100test-runner
    Zbiera wiedzę o uruchamianiu testów: wykrywanie frameworków pytest, jest, vitest, go, cargo i junit, właściwe polecenia z pokryciem oraz kroki analizy awarii.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.