context-budget
Что он делает
Этот инструмент помогает понять, сколько места («бюджета») у вас осталось для работы с ИИ. Он проверяет текущее использование или проводит подробный анализ конфигурации, но только по вашему запросу.
Когда использовать
- ✓Когда хотите узнать, сколько «места» у вас осталось для работы с ИИ.
- ✓Когда нужна сводка о том, что установлено и сколько места это занимает.
- ✓Когда нужен более глубокий анализ конфигурации ИИ.
Ссылка на скилл
https://github.com/affaan-m/ECC/blob/main/skills/context-budget/SKILL.mdСкопируйте и вставьте её в ваш ИИ (Claude, ChatGPT или Cursor) с просьбой следовать инструкциям.
Как использовать
Самый простой способ: скопируйте сообщение и вставьте его в свой ИИ. Он прочитает скилл и выполнит инструкции.
Готовое сообщение для вставки
Для Claude Code, Codex или Cursor: запустите в папке проекта, и скилл установится.
Скачайте SKILL.md и положите его в папку скиллов вашего агента.
Пример запроса к вашему ИИ
“Какой у меня текущий контекстный бюджет?”
5 новых скиллов в неделю. 1 минута чтения.
Как это работает
Инструмент использует специальные команды вашей программы для работы с ИИ, чтобы проверить использование в реальном времени. Если вы запрашиваете более подробный анализ, он проверяет файлы конфигурации, не читая их целиком.
Технический текст (оригинальный SKILL.md)
Оригинальный текст автора на английском, прямо с GitHub.
Context Budget
Use the provider's native meter for live session usage. Keep the separate, estimated installation audit behind an explicit opt-in.
Default: Live Context
Treat an invocation with no audit request as a live-context request. This includes requests for the current window, remaining capacity, headroom, token usage, or a context breakdown.
For this default path:
- Do not call or use tools.
- Do not scan or read files.
- Do not run shell commands, provider CLIs, debug logging, or MCP discovery.
- Reply with only the native command and one short explanation.
Route by the active harness:
| Harness | Native command | Guidance |
|---|---|---|
| Codex CLI | /status |
Shows current token usage and remaining context capacity. Use /statusline and enable Context stats plus Token counters for a persistent footer meter. |
| Codex app | /status |
Shows current thread context usage and rate limits. |
| Claude Code | /context |
Shows the live context breakdown. Use /context all for expanded items. |
| Other or unknown | None verified | State that ECC cannot read live provider state and ask which harness is active. |
These commands are documented in the Codex command reference and Claude Code command reference.
A skill cannot invoke a TUI slash command on the user's behalf. Never replace the native command with an estimated scan and never infer an audit request from phrases such as “context is heavy” or “how much is left.”
Explicit Static Audit
Run an installation/configuration audit only when the user explicitly says
--audit, “audit installed components,” or equivalent unambiguous wording.
--verbose changes report detail; it does not opt into an audit by itself.
If the audit scope is ambiguous, ask for the harness and installation root before reading anything. Keep every audit bounded and read-only:
- Inspect only the named plugin/install root and the named harness's known configuration files.
- Never recursively enumerate the workspace root, home directory, provider cache, transcripts, debug logs, or unrelated worktrees.
- Never launch a provider CLI, MCP server, or debug session to count tools.
- Cap inventory output at 50 entries per component class. Summarize the rest.
- Do not write temporary logs or copy configuration content into the report.
Audit only the component metadata relevant to eager discovery:
- agent and skill descriptions;
- command descriptions when the harness discovers them eagerly;
- always-loaded instruction files in the explicitly named scope;
- configured MCP tool schemas when an existing bounded manifest exposes them.
Full skill, agent, command, and rule bodies are generally on-demand content. Report their disk size separately from estimated eager overhead instead of adding every body to the session baseline.
Audit Output
Return a compact report containing:
- harness and exact paths inspected;
- estimated eager/discovery overhead by component class;
- installed counts and the heaviest metadata entries;
- assumptions, unavailable measurements, and up to three optimizations.
Every calculated token number is an estimate of static configuration overhead, not live session context. Do not claim that an estimate is provider-reported, current, exact, or evidence of realized savings. Direct the user back to the native live-context command for current usage.
Optional Selected-Record Diagnostic
Inspect a persisted record only when the user explicitly selects that file for this diagnostic. This is separate from the default live-context request and the installation audit.
For a local file diagnostic, explicitly select a stable, regular JSONL file or a snapshot you intend to inspect. Replace the example path below; this does not find or reconnect a session. The snippet prints aggregate byte counts only. It reads one line at a time, so memory use depends on the largest record; avoid very large records and actively growing files.
python3 - "/path/to/selected-session.jsonl" <<'EOF'
import json
import sys
total = attachment = other = unclassified = 0
try:
with open(sys.argv[1], "rb") as source:
for raw in source:
size = len(raw)
total += size
try:
record = json.loads(raw.decode("utf-8"))
except (UnicodeDecodeError, json.JSONDecodeError):
…
Частые вопросы
Как понять, что я трачу слишком много ИИ?
Спросите «какое у меня использование токенов?» или «сколько места осталось?», и вы увидите текущее состояние.
Что такое «аудит установки»?
Это подробная проверка установленных компонентов и их настроек. Она требует больше ресурсов, поэтому выполняется только по вашему явному запросу.
Могу ли я попросить ИИ проверить конкретные файлы?
Нет, этот инструмент сосредоточен на общем использовании ИИ и его конфигурации, а не на отдельных файлах.
Подробности
Оригинальное описание автора
Routes live context checks to the native Codex or Claude Code meter without scanning files, and performs a bounded static component audit only when explicitly requested. Use for context-budget requests about remaining capacity or installed context overhead.
repo: affaan-m/ECC
Популярность
- Звёзды на GitHub
- 280k
- Место в рейтинге
- #285
- Лицензия
- MIT
- Обновлён
- 15.10.2026
Комментарии
- …
Другие скиллы из этого репозитория
accessibility
280kПомогает агенту создавать интерфейсы, которыми может пользоваться каждый. Следит, чтобы сайты и приложения работали для людей с нарушениями зрения или моторики.
agent-architecture-audit
280kЗаставляет агента проверить, всё ли работает правильно. Находит и исправляет проблемы в системах ИИ, чтобы они работали как задумано.
agent-eval
280kПомогает агенту сравнивать ИИ-инструменты для программирования. Измеряет, какой быстрее, дешевле и надёжнее для конкретных задач.
agent-harness-construction
280kПомогает агенту лучше понимать, как выполнять задачи. Оптимизирует инструменты и инструкции агента, чтобы повысить шансы на успех.
Похожие скиллы
knowledge-automation
394kПомогает агенту настроить задачу по расписанию, которая добавляет новое содержимое в хранилище Knowledge, и проверить, что задача работает.
knowledge-source-ingest
394kПомогает агенту держать хранилище Knowledge в актуальном состоянии, добавляя новое из чатов, лент или почтовых ящиков без повторного добавления уже сохраненного.
watchers
260kПозволяет агенту по расписанию отслеживать RSS-ленты, JSON-конечные точки или активность GitHub и сообщать только о новых элементах с последней проверки.