본문으로 건너뛰기
Skillpedia
자동화280k · #285

context-budget

하는 일

이 도구는 AI를 사용할 수 있는 남은 공간(또는 ‘예산’)이 얼마나 되는지 이해하도록 돕습니다. 현재 사용량을 확인하거나, 요청할 때만 자세한 설정 분석을 수행합니다.

사용하는 경우

  • ✓AI를 사용할 수 있는 남은 ‘공간’이 얼마나 되는지 알고 싶을 때.
  • ✓설치된 항목과 그것이 차지하는 공간에 대한 요약을 원할 때.
  • ✓AI 설정에 대한 더 깊은 분석이 필요할 때.

스킬 링크

https://github.com/affaan-m/ECC/blob/main/skills/context-budget/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/affaan-m/ECC/blob/main/skills/context-budget/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“현재 맥락 예산이 얼마나 남았나요?”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

AI 프로그램의 특정 명령을 사용해 실시간 사용량을 확인합니다. 더 자세한 분석을 요청하면 모든 내용을 읽지 않고 설정 파일을 확인합니다.

기술 내용 (원본 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:

  1. Inspect only the named plugin/install root and the named harness's known configuration files.
  2. Never recursively enumerate the workspace root, home directory, provider cache, transcripts, debug logs, or unrelated worktrees.
  3. Never launch a provider CLI, MCP server, or debug session to count tools.
  4. Cap inventory output at 50 entries per component class. Summarize the rest.
  5. 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):

…
자주 묻는 질문

AI를 너무 많이 쓰고 있는지 어떻게 알 수 있나요?

‘토큰 사용량이 얼마인가요?’ 또는 ‘남은 공간은 얼마나 되나요?’라고 물어 현재 상태를 확인할 수 있습니다.

‘설치 감사’란 무엇인가요?

설치된 구성 요소와 그 설정을 자세히 점검하는 것입니다. 더 많은 자원을 사용하므로 명시적으로 요청할 때만 실행합니다.

AI에게 특정 파일을 확인해 달라고 요청할 수 있나요?

아니요. 이 도구는 개별 파일이 아니라 AI의 전체 사용량과 설정에 집중합니다.

상세 정보

작성자의 원본 설명

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
업데이트
2026. 10. 15.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬