cache-align
/cache-align
Utrzymuje stabilny początek promptu, by pamięć podręczna KV u dostawcy działała i obniżała koszty długich sesji.
- Autor
- kalmantic ↗
- Repozytorium
- justokenmax ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 09.07.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 1
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 09.07.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
Co robi i kiedy
Utrzymuje stabilny początek promptu, by pamięć podręczna KV u dostawcy działała i obniżała koszty długich sesji.
Oryginalny opis (EN)
Preserve prompt-prefix stability so the provider's KV cache keeps hitting, cutting cost and latency on long sessions. Use when structuring system prompts, memory files, or tool definitions, when a long session is getting expensive, or when deciding where to put changing vs stable content.
Jak działa
- Rules of thumb
- When advising the user
Podgląd SKILL.md
--- name: cache-align description: Preserve prompt-prefix stability so the provider's KV cache keeps hitting, cutting cost and latency on long sessions. Use when structuring system prompts, memory files, or tool definitions, when a long session is getting expensive, or when deciding where to put changing vs stable content. --- # cache-align — keep the prompt cache warm (a jusTokenMax module) Providers cache the KV state of a stable prompt *prefix*; a cache hit is far cheaper and faster than recomputing it. Any edit near the START of the context invalidates everything after it. This skill is the discipline that keeps the prefix stable so the cache keeps paying off. ## Rules of thumb - **Stable first, volatile last.** Order context most-stable → least-stable: system prompt and tool definitions (rarely change) at the top; the live, changing task/turn at the bottom. Never inject changing values (timestamps, counters, random IDs) into otherwise-static prefixes. - **Don't churn memory files mid-session.** Edits to CLAUDE.md / system prompt bust the cache for the whole session. Batch such edits, or make them between sessions, not turn-by-turn. - **Append, don't rewrite.** Add new context at the end rather than reflowing existing text — appends preserve the cached prefix; reflows destroy it. - **Keep tool definitions fixed.** Reordering or rewording tool/MCP definitions invalidates the cache even when behavior is unchanged. Settle them early. - **Pin volatile data behind a marker.** If you must include changing data, put it at the very end, clearly separated, so it can't shift earlier tokens. ## When advising the user If a long session is getting expensive, check for prefix churn first: a memory file being rewritten each turn, a timestamp in the system prompt, tool definitions being regenerated. Fixing prefix stability often saves more than any single compression.
Wersje
W bazie nie ma innych skilli o nazwie cache-align.
Migawka bazy z 13.11.2026 · wersja paczki 261af92f0c62 (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
- 100prompt-caching
Obniża koszt i opóźnienie wywołań LLM przez cache'owanie stałych prefiksów promptów i takie układanie promptów, żeby cache trafiał. - 100llm-caching-strategies
Dobiera strategie cache dla aplikacji LLM: buforowanie promptów i prefiksów u dostawcy, semantyczny cache odpowiedzi, progi podobieństwa, bramki zakresu i unieważnianie, by obniżyć koszt i opóźnienia. - 90agent-cost-control
Utrzymuje użycie agentów w budżecie przez dyscyplinę kontekstu, dobór modelu i cache, bez pogarszania wyników, gdy koszty rosną lub sesje są drogie. - 90stable-prompt-cache-methodology
Znajduje, które sekcje promptu zmieniają się między turami, gdy agent płaci za pełne przepisanie przy każdej wiadomości. - 100agent-context
Projektuje to, co trzyma okno kontekstu agenta w długich przebiegach: kolejność, budżety tokenów, ładowanie na żądanie, czyszczenie wyników i pamięć. - 91hierarchical-memory-system
Organizuje pamięć agenta AI w sześć warstw, od sesji po pamięć holograficzną, i optymalizuje wykorzystanie cache promptów.