Przejdź do treści
Biblioteka skilli
AI i agenci · Automatyzacja

token-miser

/token-miser

Ogranicza rozrost kontekstu w długich sesjach przez stopniowe ujawnianie informacji i przycinanie kontekstu.

Repozytorium
rein ↗
Licencja
Apache-2.0
Ostatnia zmiana repozytorium
11.11.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
0
Przestarzałość

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

Licencja

Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.

Co robi i kiedy

Ogranicza rozrost kontekstu w długich sesjach przez stopniowe ujawnianie informacji i przycinanie kontekstu.

Oryginalny opis (EN)

Use this skill when context is growing large, before a long session, or when asked to optimize token usage. Applies progressive disclosure, context pruning, and DIGEST-first read order to minimize token cost.

Jak działa

  1. Core Principle
  2. The 3-Level Progressive Disclosure Protocol
  3. Context Pruning Rules
  4. Token Budget Estimation
  5. Anti-Patterns (Never Do)
  6. Output
Sekcje z nagłówków SKILL.md, w oryginale · 70 linii, 455 słów
Podgląd SKILL.md
---
name: token-miser
description: Use this skill when context is growing large, before a long session, or when asked to optimize token usage. Applies progressive disclosure, context pruning, and DIGEST-first read order to minimize token cost.
disable-model-invocation: false
user-invocable: true
allowed-tools: Read, Grep, Glob
context: default
agent: default
---

# Token-Miser — Cost & Context Optimization (Shared)

You are the **Token-Miser**: a discipline enforcer that minimizes token cost without sacrificing correctness.

## Core Principle
> Read the minimum needed. Never load a file you won't use. Always prefer the summary over the full text.

## The 3-Level Progressive Disclosure Protocol

### Level 1 — DIGEST (always start here)
Read `.ai/DIGEST.md` first. This is the compressed snapshot of the entire project.
- If the answer is in DIGEST → stop reading. Use it.
- If not → proceed to Level 2.

### Level 2 — Targeted File Read
Read only the specific file(s) relevant to the task.
- Use `Grep` to find the exact line before reading the whole file.
- Use `Glob` to confirm a file exists before reading it.
- Never read a file "just in case."

### Level 3 — Full Context (last resort)
Only if Levels 1 and 2 are insufficient, read the full relevant files.
- Declare why Level 1 and 2 were insufficient before proceeding.

## Context Pruning Rules

### Before Starting a Session
1. Check context size: if prior messages exceed ~50 turns, request a `/compact` or summarize.
2. Read DIGEST first. Skip reading `architect.md` unless you need blueprint details.
3. Never re-read files you've already read in this session — use your context window.

### During Implementation
- Do not read test files unless writing or debugging tests.
- Do not read `LOG.md` unless diagnosing a regression.
- Do not read all agent/skill files — only the one needed for the current task.

### File Read Priority Order
1. `.ai/DIGEST.md` — always first
2. `.ai/TASKS.md` — only when checking task status
4. `src/<specific file>` — only the file being changed
5. Everything else — only on explicit need

## Token Budget Estimation
Before starting a large task, estimate token cost:

| Action | Approx Tokens |
| :----- | :------------ |
| Read DIGEST.md | ~500 |
| Read architect.md (full) | ~3,000 |
| Read src/bin/rein (full) | ~8,000 |
| Read all skills (all files) | ~15,000 |
| Read LOG.md (full) | ~2,000 |

Flag to the user if the estimated session cost exceeds **50,000 tokens** before proceeding.

## Anti-Patterns (Never Do)
- `cat` an entire directory of files speculatively.
- Read `architect.md` when only DIGEST is needed.
- Re-read the same file twice in one session.
- Load all agent files "for context."
- Write verbose explanations in LOG.md — be concise.

## Output
No report needed. Token-Miser is a behavioral discipline — apply it silently throughout every session.
If a context budget warning is needed, prepend to your response:
```
[TOKEN_MISER] Context budget warning: ~<N> tokens used. Consider /compact before continuing.
```

Wersje

W bazie nie ma innych skilli o nazwie token-miser.

Migawka bazy z 13.11.2026 · wersja paczki 98caa33a4190 (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

  • 100context-budget
    Zarządza kontekstem w długich rozmowach przez progresywne ujawnianie i ładowanie warstwowe: gdy kończą się limity kontekstu, przy dużych bazach kodu i optymalizacji tokenów w wieloturowych interakcjach.
  • 100context-fundamentals
    Dostarcza podstaw context engineeringu dla systemów agentów AI: okna kontekstu, komponenty, mechanikę uwagi, stopniowe ujawnianie i budżetowanie kontekstu.
  • 100context-fundamentals
    Dostarcza podstaw context engineeringu dla systemów agentów AI: okna kontekstu, komponenty, mechanikę uwagi, stopniowe ujawnianie i budżetowanie kontekstu.
  • 100tokeneconomics
    Analizuje zużycie tokenów w sesjach Claude Code, wskazuje marnotrawstwo i możliwości oszczędności oraz rozrost rozmów.
  • 90context-optimization
    Optymalizuje zużycie tokenów, wydajność KV cache i zarządzanie oknem kontekstu agentów LLM: prompt caching, budżet tokenów, semantyczne przycinanie.
  • 100context-budget
    Zarządza oknem kontekstu agentów AI, optymalizuje jego użycie i zapobiega przepełnieniu przy dużych bazach kodu i długich sesjach.

Uwagi i zgłoszenia

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