cost-booster-edit
できること
このスキルは、AIモデルではなく高速なローカルエンジンを使って、単純で繰り返し可能なコード編集を適用します。多くのファイルに同じ小さな変更を加える必要がある開発者向けです。
使う場面
- ✓var を const に置き換えるなど、同じ単純な変更を多数のファイルに行う必要があるとき。
- ✓AIの推論に頼らず、予測可能な編集がほしいとき。
- ✓単純な編集のためにAI呼び出しの費用を払いたくない自動化パイプラインを動かすとき。
スキルのリンク
https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-cost-tracker/skills/cost-booster-edit/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“これらのファイルのすべての var を、AIを使わずに const に変更してください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
スキルは、ファイルと選んだ編集の種類を、高速なローカル変換エンジンに送ります。変更されたコードを返し、同じ入力からは毎回同じ結果が得られます。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
Cost Booster Edit
Direct wrapper around agent-booster.apply() (npm agent-booster v0.2.x, exposed via agentic-flow/agent-booster). Use when a transform is already classified as Tier 1 eligible — cost-booster-route recommends whether; this skill executes.
When to use
- Bulk transforms across many files (
var → const,add-types,remove-console,add-error-handling,async-await,add-logging). - Any simple, structural edit where an LLM would otherwise be called and billed.
- Inside CI pipelines where determinism + zero-cost matter more than naturalness.
Do NOT use when the transform requires reasoning about intent, naming, or cross-file context — those are Tier 2/3 jobs.
Steps
Take inputs —
intent(one of the 6 booster intents) andfilepath.Read the source to a variable, derive the intended
edittext from the intent (caller supplies).Invoke — run from anywhere under
v3/soagent-boosterresolves:node --input-type=module -e ' import("agent-booster") .then(async ({ AgentBooster }) => { const booster = new AgentBooster(); const r = await booster.apply({ code: process.argv[1], edit: process.argv[2], language: process.argv[3] || "javascript", }); console.log(JSON.stringify({ success: r.success, output: r.output, latency: r.latency, confidence: r.confidence, strategy: r.strategy, tokens: r.tokens, })); }) .catch(e => console.log(JSON.stringify({ success: false, error: String(e.message) }))); ' -- "$CODE" "$EDIT" "$LANG"Check confidence — default threshold is
0.5. Below that, fail closed: do NOT write the file; report and escalate to Tier 2/3.Write back the
outputfield ifsuccess && confidence >= 0.5.Persist outcome —
memory_store --namespace cost-tracking --key "booster-edit-..." --value '{"intent":..., "latency":..., "confidence":..., "strategy":..., "applied":true}'. Feed the routing learner viahooks_model-outcome(use thecost-optimizeskill's step 8).
Measured benchmark (2026-05-04, this checkout)
5 representative intents run through AgentBooster.apply():
| intent | latency (ms) | wall (ms) | confidence | strategy | success |
|---|---|---|---|---|---|
| var-to-const | 5 | 5 | 0.65 | fuzzy_replace | true |
| add-types | 1 | 1 | 0.64 | fuzzy_replace | true |
| remove-console | 0 | 0 | 0.70 | fuzzy_replace | true |
| add-error-handling | 0 | 0 | 0.85 | exact_replace | true |
| async-await | 0 | 0 | 0.85 | exact_replace | true |
Avg measured latency ≈ 1.2 ms. All 5 above the default 0.5 confidence threshold. See docs/benchmarks/0002-baseline.md for the LLM-baseline comparison.
What's verified locally
| Claim | Status here |
|---|---|
| 100% win rate | Verified — 12/12 on bench/booster-corpus.json (see runs/latest.json). Booster AND Gemini 2.0 Flash both score 12/12 — this is a structural-correctness corpus, not a hard adversarial one. |
| Sub-millisecond latency | Verified — avg 0.67 ms, p50 0 ms, p99 6 ms, max 6 ms. |
| $0 per edit | Verified structurally — no API call, no token billing. |
| Deterministic AST-based merge | Verified — same inputs reproduce the same output and strategy. |
| Confidence ≥ 0.5 ⇒ correct | Verified on this corpus — 12/12 above 0.5 (min 0.551), all correct. |
350× speedup vs. LLM |
Verified — exceeded against every tier: 1000.9× vs Gemini 2.0 Flash, 1838.7× vs Claude Sonnet 4.6, 2634.1× vs Claude Opus 4.7. Run BENCH_LLM_BASELINE=1 BENCH_ANTHROPIC=1 node scripts/bench.mjs to refresh. |
| Cost saved per edit | Measured: $0.000020 vs Gemini, $0.000722 vs Sonnet 4.6, $0.004720 vs Opus 4.7 (the booster side is $0 in all cases). |
| Win parity with frontier LLMs | Verified — Booster, |
よくある質問
どの編集に対応していますか?
ソースには、組み込みの6種類が挙がっています。var から const への変換、型の追加、console ログの削除、エラー処理の追加、async-await、ロギングの追加です。
使うべきでないのはどんな場合ですか?
意図、命名、ほかのファイルの理解が必要な変更には使わないでください。そのような作業にはAIモデルが必要です。
費用はかかりますか?
AIの呼び出しは行われないため、変換そのものにモデルの費用はかかりません。
詳細
作者による元の説明
Apply a simple code transform via agent-booster's WASM engine — sub-millisecond, deterministic, $0 (no LLM call). Companion to cost-booster-route.
repo: ruvnet/ruflo
人気
- GitHubのスター
- 81k
- ランキング
- #1592
- ライセンス
- MIT
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
agent-adaptive-coordinator
81k作業量の変化に合わせて、エージェントのグループを分割し、再配分する手助けをします。作業に合った配置を選びます。
agent-agent
81k大きな目標を順番に並んだ行動計画にし、状況が変わったときに計画を立て直す方法をエージェントに教えます。
agent-agentic-payments
81kAIの買い物のために、支出の上限、期間、販売店のルール、署名付きの承認を含む支出の委任を管理する手助けをします。
agent-analyze-code-quality
81kコードの品質を確認し、コードの臭い、技術的負債、リファクタリングの案を見つける手助けをします。ファイルは変更しません。
似ているスキル
diffs
394k編集内容の実際の共有可能な差分を、手書きの要約ではなく、ビューアーのリンクや画像ファイルとして作成するようエージェントを支援します。
coding-agent
394kCodex、Claude Code、OpenCodeに大きめのコーディング作業をバックグラウンドのワーカーとして渡し、その進捗を確認するようエージェントを支援します。
gh-issues
394kGitHubのイシューを探し、取り組むものを選び、修正を含むプルリクエストを開くようエージェントを支援します。レビューコメントへの対応も含みます。