context-window-budgeting-token-optimization
/context-window-budgeting-token-optimization
Ustala budżet tokenów dla promptu systemowego, pobranego kontekstu i odpowiedzi modelu oraz pilnuje, żeby mieściły się w limicie.
- Autor
- nextboxis ↗
- Repozytorium
- library-skill-agents ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 28.10.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 28.10.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
Ustala budżet tokenów dla promptu systemowego, pobranego kontekstu i odpowiedzi modelu oraz pilnuje, żeby mieściły się w limicie.
Oryginalny opis (EN)
Use this skill when calculate and optimize token budgets across system prompts, retrieved context, and completions.
Jak działa
- When to use
- Core principles
- Step-by-step workflow
- Specifics & examples
- Common mistakes & pitfalls
- Verification checklist
- Related skills
Podgląd SKILL.md
--- name: context-window-budgeting-token-optimization description: Use this skill when calculate and optimize token budgets across system prompts, retrieved context, and completions. --- # Context Window Budgeting Token Optimization ## When to use Use this skill when calculate and optimize token budgets across system prompts, retrieved context, and completions. This applies across software engineering lifecycles, team code reviews, production debugging, prompt design, and architectural documentation. ## Core principles - **Clarity Over Cleverness**: Code, prompts, and technical documentation must prioritize clarity, predictability, and long-term maintainability over obscure shortcuts. - **Evidence-Based Engineering**: Every decision, bug resolution, and architectural choice must be supported by empirical data, minimal reproductions, or benchmark traces. - **Cognitive Load Minimization**: Design interfaces, APIs, and documents to minimize mental parsing overhead for future engineers and autonomous agents. - **Continuous Feedback Loops**: Incorporate automated verification, peer reviews, and post-task retrospectives to drive iterative improvement. ## Step-by-step workflow 1. **Define the objective and constraints**: State the exact technical outcome, acceptance criteria, and operational boundaries. 2. **Gather baseline telemetry and context**: Inspect relevant codebases, stack traces, system architecture diagrams, or log files. 3. **Execute structured analysis or implementation**: Apply domain-specific techniques (e.g., minimal reproduction, refactoring transforms, prompt templates). 4. **Validate against automated test assertions**: Run unit tests, linters, or schema validation parsers to verify behavioral correctness. 5. **Document rationale and trade-offs**: Record the 'why' behind choices, documenting rejected alternatives and operational considerations. 6. **Conduct retrospective review**: Share findings with stakeholders or record lessons learned in the team knowledge base. ## Specifics & examples - **Standard Engineering Artifact**: - Scope: Context Window Budgeting Token Optimization - Core Deliverable: Actionable, verifiable engineering guidance aligned with Prompt & context engineering. - Verification Rule: Tested against production workflows and peer-reviewed standards. - **Primary Focus Area**: Prompt & context engineering principles designed to elevate engineering precision and team psychological safety. ## Common mistakes & pitfalls - Jumping directly into speculative fixes or complex rewrites before isolating the root cause. - Introducing premature abstractions that increase indirection and cognitive complexity. - Failing to document context and architectural trade-offs for subsequent maintainers. ## Verification checklist [ ] The technical deliverable or fix is validated with reproducible test assertions. [ ] Changes preserve backwards compatibility and maintain existing contract invariants. [ ] Documentation or commit logs clearly explain the rationale and trade-offs. ## Related skills - system-prompt-architecture-persona-constraints - few-shot-prompting-exemplar-selection-formatting - chain-of-thought-reasoning-step-by-step-prompts - structured-output-prompting-json-yaml-parsers
Wersje
W bazie nie ma innych skilli o nazwie context-window-budgeting-token-optimization.
Migawka bazy z 13.11.2026 · wersja paczki edb0dbb70098 (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 1 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 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-optimization
Optymalizuje kontekst i obniża koszty tokenów: optymalizacja KV-cache, partycjonowanie kontekstu, maskowanie obserwacji i budżetowanie, by zwiększyć efektywną pojemność kontekstu. - 100agent-context-budget-management-strategies
Monitoruje i optymalizuje budżet tokenów okna kontekstu w złożonych, wieloetapowych zadaniach technicznych. - 100cc-context-budgeting
Zarządza oknem kontekstu Claude Code: rachunek tokenów, strategia /compact, zachowanie kotwic, stopniowe ładowanie i analityka sesji, gdy sesja się wydłuża lub kontekst zbliża się do limitu. - 90token-budget
Projektuje budżety tokenów: podział na system, użytkownika i asystenta, obsługa przepełnienia i kompresja kontekstu przy przekroczeniu okna kontekstu. - 100check-context
Dokładnie sprawdza bieżące zużycie okna kontekstu i tokenów, gdy użytkownik pyta o użycie kontekstu lub monitoruje jego poziom.