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

token-budget-advisor

하는 일

AI의 응답 길이를 조절하도록 돕습니다. 답하기 전에 응답이 얼마나 많은 '토큰'(텍스트 조각)을 쓸지 추정하고, 깊이 옵션(짧게, 중간, 자세히, 매우 자세히)을 제시합니다.

사용하는 경우

  • ✓더 짧거나 긴 답을 원할 때.
  • ✓토큰 사용량이나 응답 크기가 걱정될 때.
  • ✓'요약' 또는 '전체' 응답을 요청할 때.

스킬 링크

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

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

사용 방법

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

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

Use this skill to help me: https://github.com/affaan-m/ECC/blob/main/skills/token-budget-advisor/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는 먼저 질문이 사용하는 '토큰'을 추정합니다. 그다음 질문의 복잡도에 따라 예상 응답 크기를 계산하고, 깊이 옵션(25%, 50%, 75%, 100%)을 제시합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Token Budget Advisor (TBA)

Intercept the response flow to offer the user a choice about response depth before Claude answers.

When to Use

  • User wants to control how long or detailed a response is
  • User mentions tokens, budget, depth, or response length
  • User says "short version", "tldr", "brief", "al 25%", "exhaustive", etc.
  • Any time the user wants to choose depth/detail level upfront

Do not trigger when: user already set a level this session (maintain it silently), or the answer is trivially one line.

How It Works

Step 1 — Estimate input tokens

Use the repository's canonical context-budget heuristics to estimate the prompt's token count mentally.

Use the same calibration guidance as context-budget:

  • prose: words × 1.3
  • code-heavy or mixed/code blocks: chars / 4

For mixed content, use the dominant content type and keep the estimate heuristic.

Step 2 — Estimate response size by complexity

Classify the prompt, then apply the multiplier range to get the full response window:

Complexity Multiplier range Example prompts
Simple 3× – 8× "What is X?", yes/no, single fact
Medium 8× – 20× "How does X work?"
Medium-High 10× – 25× Code request with context
Complex 15× – 40× Multi-part analysis, comparisons, architecture
Creative 10× – 30× Stories, essays, narrative writing

Response window = input_tokens × mult_min to input_tokens × mult_max (but don’t exceed your model’s configured output-token limit).

Step 3 — Present depth options

Present this block before answering, using the actual estimated numbers:

Analyzing your prompt...

Input: ~[N] tokens  |  Type: [type]  |  Complexity: [level]  |  Language: [lang]

Choose your depth level:

[1] Essential   (25%)  ->  ~[tokens]   Direct answer only, no preamble
[2] Moderate    (50%)  ->  ~[tokens]   Answer + context + 1 example
[3] Detailed    (75%)  ->  ~[tokens]   Full answer with alternatives
[4] Exhaustive (100%)  ->  ~[tokens]   Everything, no limits

Which level? (1-4 or say "25% depth", "50% depth", "75% depth", "100% depth")

Precision: heuristic estimate ~85-90% accuracy (±15%).

Level token estimates (within the response window):

  • 25% → min + (max - min) × 0.25
  • 50% → min + (max - min) × 0.50
  • 75% → min + (max - min) × 0.75
  • 100% → max

Step 4 — Respond at the chosen level

Level Target length Include Omit
25% Essential 2-4 sentences max Direct answer, key conclusion Context, examples, nuance, alternatives
50% Moderate 1-3 paragraphs Answer + necessary context + 1 example Deep analysis, edge cases, references
75% Detailed Structured response Multiple examples, pros/cons, alternatives Extreme edge cases, exhaustive references
100% Exhaustive No restriction Everything — full analysis, all code, all perspectives Nothing

Shortcuts — skip the question

If the user already signals a level, respond at that level immediately without asking:

What they say Level
"1" / "25% depth" / "short version" / "brief answer" / "tldr" 25%
"2" / "50% depth" / "moderate depth" / "balanced answer" 50%
"3" / "75% depth" / "detailed answer" / "thorough answer" 75%
"4" / "100% depth" / "exhaustive answer" / "full deep dive" 100%

If the user set a level earlier in the session, maintain it silently for subsequent responses unless they change it.

Precision note

This skill uses heuristic estimation — no real tokenizer. Accuracy ~85-90%, variance ±15%. Always show the disclaimer.

Examples

Triggers

  • "Give me the short version first."

…

자주 묻는 질문

'토큰'이란 무엇인가요?

'토큰'은 단어의 조각이라고 생각하면 됩니다. AI는 토큰으로 읽고 쓰는 텍스트의 양을 측정합니다.

응답 길이를 왜 조절하나요?

짧은 답은 더 빠르고 자원을 덜 씁니다. 긴 답은 더 많은 세부 사항과 예시를 제공할 수 있습니다.

토큰 수가 정확한가요?

아니요. 추정치입니다. AI는 대략적인 방법을 쓰지만, 보통 꽤 정확합니다(약 85~90% 정밀도).

상세 정보

작성자의 원본 설명

Offer a choice of response depth (25%/50%/75%/100%) with token estimates before answering, then answer at that level. Use when the user asks to control response length or token budget, such as 'token budget', 'short version', 'brief answer', 'respuesta corta vs larga', 'cuántos tokens', 'ahorrar tokens', 'responde al 50%', 'dame la versión corta', 'quiero controlar cuánto usas'. Skip if depth is a

repo: affaan-m/ECC

인기도

GitHub 스타
280k
순위
#425
라이선스
MIT
업데이트
2026. 10. 15.

이 스킬이 유용한가요?

0

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

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬