帮助用户在回答前选择简短、标准或详细版本,控制回复深度与 token 用量。
该技能属于纯提示词型能力,无需密钥、无远程端点、无本地执行或数据读写迹象;结合开源且社区采用度很高,整体风险较低。材料主要描述回答长度控制逻辑,未见具体高风险红旗。
材料明确标注无需密钥或环境变量,功能仅涉及回答深度与 token 预算提示,未见凭证收集、存储或滥用路径。
材料明确无远程端点,且描述为纯提示词/流程拦截逻辑,未见将用户内容发送到第三方服务或未知主机的事实。
未见本机起进程、执行脚本、调用系统命令或扩展系统权限的说明;README 仅描述基于启发式规则估算 token 并让用户选择回答深度。
未声明读写本地文件、数据库、剪贴板或其他资源权限;其处理对象看起来仅限当前对话内容的长度/复杂度估算,不构成过度授权。
来源为 GitHub 开源仓库,且社区采用度极高(约 21 万 star),这些都是明显的降风险因素;虽许可证未声明、维护状态未知,属于可留意点,但基于现有材料不足以上调为更高风险。
复制安装指令,让 AI 自动完成配置 · 推荐新手
请帮我安装 askskill 上的 "token-budget-advisor" 技能: 1. 下载 https://raw.githubusercontent.com/affaan-m/ECC/main/skills/token-budget-advisor/SKILL.md 2. 保存为 ~/.claude/skills/token-budget-advisor/SKILL.md 3. 装好后重载技能,告诉我可以用了
我想控制 token 预算。请先给我三个选项:精简版、标准版、详细版,再等我选择后回答。
先提供不同回答深度及大致成本说明,等待用户选择后再展开回答。
请用尽量少的 token 总结这篇文章,并告诉我如果改成详细版会多讲哪些内容。
输出精简总结,并补充详细版可能增加的要点范围说明。
这个问题请按 100、300、800 token 三档说明你会怎么回答,让我选一个。
给出三档回答策略或大纲,体现不同篇幅下的信息密度差异。
Intercept the response flow to offer the user a choice about response depth before Claude answers.
Do not trigger when: user already set a level this session (maintain it silently), or the answer is trivially one line.
Use the repository's canonical context-budget heuristics to estimate the prompt's token count mentally.
Use the same calibration guidance as context-budget:
words × 1.3chars / 4For mixed content, use the dominant content type and keep the estimate heuristic.
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).
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):
min + (max - min) × 0.25min + (max - min) × 0.50min + (max - min) × 0.75max| 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 |
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% |
…
为 Spring Boot 与 Quarkus 服务生成并统一应用 Java 编码规范。
为医疗应用部署提供患者安全自动化评估,发现风险即阻止上线。
帮助企业进行电力与燃气采购、费率优化及多场站能源成本管理
帮助团队建立以 AI 代码生成为核心的工程流程、架构与评审标准。
帮助你为 React 组件、Hook 与页面编写、修复并优化测试方案。
帮助处理报关单证、税则归类、合规筛查与关税优化决策
为编码任务预估大模型 token 花费范围、情景与置信度,便于成本控制。
分析并精简 Markdown 内容,降低 token 消耗并提升 AI 处理效率。
查询本地 Claude Code 的用量与成本,并生成自然语言花费分析洞察
帮助用户比较大模型定价方案、测算成本情景并获得套餐建议。
将长期复杂任务拆分为可执行小步骤,减少上下文超限与遗漏
按模型或编码名统计 OpenAI 兼容 token 数