跳到正文
Skillpedia
智能体81k · #1593

cost-booster-route

它能做什么

这项技能检查一批任务,并标出哪些足够简单、可以交给免费的本地转换处理。适合希望把简单工作分流出去以降低 AI 成本的人。

适用场景

  • ✓当你有一批相似的编程任务,并想知道哪些需要 AI 模型时。
  • ✓当成本报告显示简单编辑也大量使用了昂贵的 AI 时。
  • ✓当你想获得一份简短报告,了解有多少任务可以零模型成本完成时。

技能链接

https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-cost-tracker/skills/cost-booster-route/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-cost-tracker/skills/cost-booster-route/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“你能检查我的任务中哪些可以跳过 AI,改用简单的本地编辑完成吗?”

每周 5 个新技能,1 分钟读完。

工作原理

这项技能把每项任务发送给一个路由工具进行分类。它将任务分为可本地处理和需要 AI 处理两类,估算 AI 部分的成本上限,并保存一份报告。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Cost Booster Route

Wraps mcp__plugin_ruflo-core_ruflo__hooks_route and reports how many tasks the 3-tier router classified as Agent Booster (Tier 1) eligible. Tier 1 bypasses run as WASM transforms — no LLM call, structurally $0 cost.

When to use

Before a batch of similar tasks, or when cost-report shows Sonnet/Opus spend on descriptions that look like simple transforms (var-to-const, add-types, add-error-handling, async-await, add-logging, remove-console).

Steps

  1. Collect tasks — single arg or recent entries from cost-tracking via memory_search. Cap batch at 50.

  2. Route each — call hooks_route with the description; capture the full response string.

  3. Partition — group by whether the response contains the literal [AGENT_BOOSTER_AVAILABLE] (Tier 1) vs. not (Tier 2/3). Extract [TASK_MODEL_RECOMMENDATION] Use model="X" when present.

  4. Compute spend — Tier 1 partition: $0. Tier 2/3 partition: per-task upper-bound from REFERENCE.md pricing × recommended model.

  5. Report

    === Booster bypass report ===
    Tasks analyzed:        50
    Tier 1 (booster):      18 (36%)  — $0.00
    Tier 2/3 (LLM):        32 (64%)  — $X.XX (upper-bound)
    Booster intents:       var-to-const (8), add-types (5), remove-console (5)
    
  6. Persist — memory_store --namespace cost-tracking --key "booster-route-$(date +%Y%m%d-%H%M%S)" --value '{"tier1": N, "tier2_or_3": M, ...}' so cost-report picks up the tier signal.

Caveats — claimed upstream, not yet verified

  • [AGENT_BOOSTER_AVAILABLE] fires only when the upstream router populates routeResult.agentBoosterIntent.type (v3/@claude-flow/cli/src/mcp-tools/hooks-tools.ts:1228). The published CLI's semantic-VectorDb path does not always trigger the classifier — treat the partition as a lower bound on Tier 1 eligibility.
  • CLAUDE.md root claims <1ms latency and 352× faster than LLM. <1ms and $0 are structural; 352× is claimed upstream, not yet verified here. Report what the router actually returns.
  • See docs/benchmarks/0002-baseline.md for the full upstream-claims-vs-measured table.

Cross-references

ADR-0002 Decision #1 · ruflo-intelligence ADR-0001 §"Neutral" (closes the routing-outcomes loop via cost-optimize step 8) · CLAUDE.md root §"3-Tier Model Routing (ADR-026)".

常见问题

一次最多可以检查多少个任务?

这项技能将每批任务限制在 50 个以内。

成本估算准确吗?

不准确。AI 部分是基于推荐模型的标价计算出的上限估计。

报告保存在哪里?

它保存到成本追踪记忆中,以便之后的报告可以读取。

详情

作者的原始描述

Route tasks through hooks_route, partition by Agent Booster availability, and report Tier 1 bypass utilization with $0 cost

repo: ruvnet/ruflo

热度

GitHub 星标
81k
排名
#1593
许可证
MIT
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能