← Back to Skills Marketplace
qqyougitcom

Token消耗优化器

by qqyougitcom · GitHub ↗ · v1.3.1 · MIT-0
cross-platform ⚠ pending
32
Downloads
0
Stars
0
Active Installs
2
Versions
Install in OpenClaw
/install qqyougitcom-token-optimizer
Description
API账单太贵?6级优化评分体系+7步诊断流程,逐项审计token消耗并量化优化。支持模型路由、预算预测、紧急降本剧本,同样的效果省60-90%。 触发词:省token、降低消耗、API费用高、成本控制、API太贵、批量调用省钱、RAG优化、Agent成本、token预算、降本增效、成本优化、模型切换、缓存策略、...
README (SKILL.md)

Token消耗优化器 💰

触发条件

  • API费用太高/预算不够
  • prompt/上下文太长
  • 优化skill/Agent的token效率
  • 对比不同模型成本
  • RAG场景消耗过大
  • 需要做预算规划

核心流程(7 Steps)

Step 1: 消耗诊断

审计7大消耗源:System Prompt/对话历史/SKILL加载/工具调用/references/RAG/输出长度

Step 2: 基线评分(6级体系)

  • L0未优化→L1基础→L2标准→L3高级→L4精细→L5极致
  • 量化每个消耗源token数,标记Top3大户

Step 3: 分层优化(P0-P5优先级)

  • P0: Prompt瘦身(省30-75%)
  • P1: SKILL瘦身≤5KB(省50-70%)
  • P2: 历史管理(省60-80%)
  • P3: 工具调用优化(省40-70%)
  • P4: 输出控制(省30-60%)
  • P5: 模型路由(省40-80%)

Step 4: 成本速算与对比

  • 计算基线成本,多平台对比

Step 5: 预算预测

  • 月/季成本预测+预警阈值

Step 6: 生成优化方案

  • 含优先级/节省预估/实施难度/ROI

Step 7: 执行与验证

  • A/B对比+质量检查(质量下降≤10%)

成本速算表(2026年6月)

模型 输入$/1M 输出$/1M 适合
SiliconFlow 9B 免费 免费 高频简单
Gemini Flash 0.10 0.40 超长文档
GPT-4o-mini 0.15 0.60 日常对话
Haiku 3.5 0.25 1.25 高性价比
GPT-4o 2.50 10.00 复杂推理

紧急降本剧本

  1. 切换免费/低价模型(省80-100%)
  2. Prompt瘦身(省30-50%)
  3. 历史截断到3轮(省50-70%)
  4. 关闭非必要技能(省20-40%)
  5. 工具返回short模式(省30-60%)
  6. 部署结果缓存(省40-80%)

约束

  1. 质量下降≤10%
  2. 优先优化固定成本
  3. 给出量化预估
  4. 紧急方案标注恢复条件

Output Language

中文输出

How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install qqyougitcom-token-optimizer
  3. After installation, invoke the skill by name or use /qqyougitcom-token-optimizer
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.3.1
**Changelog – Version 1.3.1** - Refined and shortened the SKILL.md documentation for greater clarity and conciseness. - Updated description to emphasize the 6-level scoring system and 7-step process, with quantified optimization and emergency cost-saving. - Streamlined trigger conditions and optimization steps, removing redundant details. - Simplified the cost comparison table and emergency playbook for easier reference. - Adjusted exclusions and constraints for clearer boundaries and user guidance.
v1.3.0
**token-optimizer 1.3.0 Changelog** - 增加了详细的诊断与优化步骤,覆盖从消耗审计到执行验证全流程(7步法)。 - 新增多平台和多模型的成本对比表,方便快速决策和预算预测。 - 引入6级优化评分体系和分层优化执行建议(含预期节省率)。 - 加入紧急降本剧本及ROI排序,覆盖常见高消耗场景的快速应对方法。 - 明确了优化约束、审计流程和输出要求,提升实施和验证效率。
Metadata
Slug qqyougitcom-token-optimizer
Version 1.3.1
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 2
Frequently Asked Questions

What is Token消耗优化器?

API账单太贵?6级优化评分体系+7步诊断流程,逐项审计token消耗并量化优化。支持模型路由、预算预测、紧急降本剧本,同样的效果省60-90%。 触发词:省token、降低消耗、API费用高、成本控制、API太贵、批量调用省钱、RAG优化、Agent成本、token预算、降本增效、成本优化、模型切换、缓存策略、... It is an AI Agent Skill for Claude Code / OpenClaw, with 32 downloads so far.

How do I install Token消耗优化器?

Run "/install qqyougitcom-token-optimizer" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Token消耗优化器 free?

Yes, Token消耗优化器 is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Token消耗优化器 support?

Token消耗优化器 is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Token消耗优化器?

It is built and maintained by qqyougitcom (@qqyougitcom); the current version is v1.3.1.

💬 Comments