cost-booster-edit
What it does
This skill applies simple, repeatable code edits with a fast local engine instead of an AI model. It is for developers who need the same small change made across many files.
When to use it
- βWhen you need the same simple change made across many files, such as replacing var with const.
- βWhen you want a predictable edit that does not depend on AI reasoning.
- βWhen you run an automated pipeline and want to avoid paying for AI calls on simple edits.
Skill link
https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-cost-tracker/skills/cost-booster-edit/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βPlease change every var to const in these files for me, without using AI.β
5 new skills a week. 1 minute to read.
How it works
The skill sends the file and the chosen edit type to a fast local transform engine. It returns the changed code, and the same input gives the same result each time.
Technical content (original SKILL.md)
Original text by the author, straight from 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, |
FAQ
Which edits does it support?
The source lists six built-in types: var to const, adding types, removing console logs, adding error handling, async-await and adding logging.
When should I not use it?
Do not use it for changes that need an understanding of intent, naming or other files. Those jobs need an AI model.
Does it cost anything?
No AI call is made, so the transform itself has no model cost.
Details
Original description by the author
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
Popularity
- GitHub stars
- 81k
- Ranking position
- #1592
- License
- MIT
- Updated
- 11/2/2026
Comments
- β¦
More skills from this repository
agent-adaptive-coordinator
81kHelps your agent split and rebalance a group of AI agents as the workload changes, choosing a layout that fits the task.
agent-agent
81kTeaches your agent to turn a big goal into an ordered plan of actions, and to replan when conditions change.
agent-agentic-payments
81kHelps your agent manage spending mandates for AI shopping, with spend caps, time windows, merchant rules and signed approvals.
agent-analyze-code-quality
81kHelps your agent review code for quality, finding code smells, technical debt and refactoring ideas without changing the files.
Similar skills
diffs
394kLets your agent produce a real, shareable diff of edits as a viewer link or image file, instead of a hand-written summary.
coding-agent
394kHelps your agent hand a larger coding job to Codex, Claude Code, or OpenCode as a background worker, then check on its progress.
gh-issues
394kHelps your agent find GitHub issues, pick the ones to work on, and open pull requests with fixes, including follow-up on review comments.