Przejdź do treści
Biblioteka skilli
AI i agenci · Przegląd i audyt

context-budget

/context-budget

Audytuje zużycie tokenów przez agentów, skille, serwery MCP i reguły, wskazuje nadmiarowe komponenty i podaje priorytetowe rekomendacje oszczędności.

Repozytorium
coco ↗
Licencja
MIT
Ostatnia zmiana repozytorium
25.10.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 25.10.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

Audytuje zużycie tokenów przez agentów, skille, serwery MCP i reguły, wskazuje nadmiarowe komponenty i podaje priorytetowe rekomendacje oszczędności.

Oryginalny opis (EN)

Audit token consumption across agents, skills, MCP servers, and rules. Identifies bloat, redundant components, and produces prioritized token-savings recommendations. Use when the context window is filling up too fast or before adding new components.

Jak działa

  1. When to Use
  2. Audit Procedure
  3. Token Estimation Formula
  4. Integration Points
Sekcje z nagłówków SKILL.md, w oryginale · 86 linii, 395 słów
Podgląd SKILL.md
---
name: context-budget
description: "Audit token consumption across agents, skills, MCP servers, and rules. Identifies bloat, redundant components, and produces prioritized token-savings recommendations. Use when the context window is filling up too fast or before adding new components."
domain: meta
supports: [claude-code, cursor, codex, generic, windsurf, zed, cline, roo-code, amazon-q]
version: 0.1.0
tags: [context, tokens, optimization, audit]
---

@agents/PROMPT-DEFENSE.md

# Context Budget Audit

Analyze token overhead across every loaded component in a session and surface actionable optimizations to reclaim context space.

## When to Use
- Session performance feels sluggish or output quality is degrading
- You've recently added many skills, agents, or MCP servers
- Planning to add more components and need to know if there's room
- Running `/context-budget` command (this skill backs it)

## Audit Procedure

### Phase 1: Inventory
Scan all component directories and estimate token consumption:

**Agents** (`agents/*.md`)
- Count lines and tokens per file (words × 1.3)
- Extract `description` frontmatter length
- Flag: files >200 lines (heavy), description >30 words (bloated frontmatter)

**Skills** (`skills/*/SKILL.md`)
- Count tokens per SKILL.md
- Flag: files >400 lines
- Check for duplicate copies — skip identical copies to avoid double-counting

**Rules** (`rules/**/*.md`, `rules/**/*.mdc`)
- Count tokens per file
- Flag: files >100 lines
- Detect content overlap between rule files

**MCP Servers** (active MCP config)
- Count configured servers and total tool count
- Estimate schema overhead at ~500 tokens per tool
- Flag: servers with >20 tools

**CLAUDE.md / System Prompts**
- Count tokens in CLAUDE.md chain
- Flag: combined total >300 lines

### Phase 2: Classify
Sort every component into a bucket:

| Bucket | Criteria | Action |
|--------|----------|--------|
| **Always needed** | Referenced in CLAUDE.md, backs active command, matches project type | Keep |
| **Sometimes needed** | Domain-specific, not referenced in CLAUDE.md | Consider on-demand activation |
| **Rarely needed** | No command reference, overlapping content, no project match | Remove or lazy-load |

### Phase 3: Report
Generate a prioritized savings report:

```
CONTEXT BUDGET AUDIT
====================
Total estimated tokens: {total}
Context headroom: {headroom}%

TOP SAVINGS OPPORTUNITIES:
1. {component} — {tokens} tokens ({bucket}) → {recommendation}
2. {component} — {tokens} tokens ({bucket}) → {recommendation}
...

ALWAYS NEEDED (keep):
- {component} ({tokens} tokens)

SOMETIMES NEEDED (lazy-load candidates):
- {component} ({tokens} tokens)

RARELY NEEDED (removal candidates):
- {component} ({tokens} tokens)
```

## Token Estimation Formula
- English text: ~1.3 tokens per word
- Code: ~1.5 tokens per word (more punctuation/symbols)
- YAML frontmatter: ~1.2 tokens per word
- MCP tool schema: ~500 tokens per tool definition

## Integration Points
- Run automatically before `/team:ship` to verify context headroom
- Feed results to learning system as optimization instincts
- Cross-reference with Brain DB decisions about past context issues

Wersje

RepozytoriumWynikLicencja
Ta strona · coco-research/coco100MIT
ericrisco/rsc-harness100MIT
Guild-Build/Build100Apache-2.0
hugrverk/riggverk100MIT
affaan-m/ECC100MIT
OneWave-AI/claude-skills100MIT
SHRIJANAGAIN/Nemo-Cli100Apache-2.0
drayline/rootnode-skills100Apache-2.0
afterrealm/father-time100MIT

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

  • 100usage-audit
    Wykrywa marnowanie tokenów i rozrost kontekstu w konfiguracji Claude Code: serwerach MCP, CLAUDE.md, skillach i ustawieniach.
  • 100mcp-to-skill
    Zamienia serwery MCP w skille ładowane na żądanie, aby zmniejszyć zużycie okna kontekstu: klasyfikuje każde narzędzie według strategii zastąpienia i generuje pakiet skilla.
  • 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.
  • 100context-rent
    Wskazuje, co zjada okno kontekstu i budżet tokenów w sesjach Claude Code i Codex, i pomaga to ograniczyć.
  • 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.
  • 100compress
    Pokazuje status proxy kompresji tokenów TokenStack, oszczędności tokenów i zużycie okna kontekstu.

Uwagi i zgłoszenia

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