cost-advise
它能做什么
这项技能读取你过去的 AI 编程会话日志,指出可能浪费钱的地方。适合使用 AI 编程工具、希望降低账单的人。
适用场景
- ✓当你想知道为什么 AI 使用费用一直很高时。
- ✓当你想在不降低质量的前提下减少 AI 开支时。
- ✓当你希望根据最近的会话获得有证据支持的建议时。
技能链接
https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-cost-tracker/skills/cost-advise/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“为什么我的 AI 编程账单这么高?该怎样降低?”
每周 5 个新技能,1 分钟读完。
工作原理
你的 AI 会对最近几天的本地使用日志运行一个脚本,列出各项发现,例如已保存上下文的复用率低,或简单辅助任务使用了昂贵的模型,并附上可能节省的金额。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Cost Advise
node ${CLAUDE_PLUGIN_ROOT}/scripts/advise.mjs --since 7d
Rules for presenting findings
- Savings are what-if repricings of the same tokens at another rate. They say nothing about quality; tell the user to spot-check before switching a model.
- A finding with
saving n/ahas no defensible number (no measured delta exists). Do not invent one. - Do not change settings, models or CLAUDE.md on the user's behalf; present the action and let them choose.
- Prefer the largest controllable lever first: cache discipline, then model tier for sub-agents, then reasoning effort, then context size.
- Pair with
cost-ledgerfor the totals andcost-sessionto drill into one expensive session.
常见问题
它会替我更改设置吗?
不会。它只展示建议的操作,由你决定。它不会代你更改模型、设置或项目记忆文件。
节省的金额有保证吗?
没有。它们是按另一费率对同样的令牌重新计价得出的估算,因此在切换模型之前,请先检查质量。
它读取哪些工具的日志?
它读取你电脑上 Claude Code 和 Codex 写入的日志。
详情
作者的原始描述
Optimisation findings from your own Claude Code and Codex logs — low cache hit ratio, 1-hour cache writes that did not pay back, sub-agents on a top-tier model, Codex reasoning share, bloated sessions — each with evidence and a what-if saving. Use when asked how to cut spend or why it is high.
repo: ruvnet/ruflo
热度
- GitHub 星标
- 81k
- 排名
- #1590
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
agent-adaptive-coordinator
81k帮你的智能体在工作量变化时拆分和重新平衡一组 AI 智能体,并选择适合任务的分工方式。
agent-agent
81k教你的智能体把一个大目标拆成有顺序的行动计划,并在情况变化时重新规划。
agent-agentic-payments
81k帮你的智能体管理 AI 购物的消费授权,包括消费上限、时间窗口、商户规则和签名审批。
agent-analyze-code-quality
81k帮你的智能体检查代码质量,找出代码异味、技术债务和重构建议,且不改动文件。