Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
ruvnet avatar

Cost Booster Edit

  • 585 installs
  • 67k repo stars
  • Updated August 4, 2026
  • ruvnet/ruflo

cost-booster-edit is a Claude Code agent skill that applies deterministic code transforms through agent-booster's WASM engine in sub-millisecond time with zero LLM cost for developers running bulk Tier-1 refactors.

About

cost-booster-edit is an agent-booster execution skill from ruvnet/ruflo that applies simple, deterministic code transforms via the agent-booster WASM engine exposed through agentic-flow/agent-booster (npm agent-booster v0.2.x). Developers invoke it after cost-booster-route classifies a change as Tier 1 eligible, when bulk edits like var-to-const, add-types, remove-console, add-error-handling, async-await, or add-logging must run across many files without an LLM round-trip. Transforms complete in sub-millisecond time at $0 per call. Reach for cost-booster-edit when structural refactors are already classified and need fast, repeatable application across a codebase.

  • cost-booster-edit

Cost Booster Edit by the numbers

  • 585 all-time installs (skills.sh)
  • +10 installs in the week ending Jul 26, 2026 (Skillselion tracking)
  • Ranked #685 of 4,347 Backend & APIs skills by installs in the Skillselion catalog
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/ruvnet/ruflo --skill cost-booster-edit

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs585
repo stars67k
Last updatedAugust 4, 2026
Repositoryruvnet/ruflo

How do you run bulk code refactors without LLM calls?

Use cost-booster-edit for development tasks

Who is it for?

Developers using ruflo agent workflows who need sub-millisecond, $0 bulk structural transforms across many files after Tier-1 classification by cost-booster-route.

Skip if: Developers needing semantic refactors, architecture redesigns, or edits that cost-booster-route has not classified as Tier 1 eligible.

When should I use this skill?

cost-booster-route recommends a Tier 1 transform and the developer needs agent-booster.apply() to execute it across one or many files without an LLM call.

What you get

Deterministic transformed source files after agent-booster.apply() WASM edits with no LLM token usage.

  • transformed source files
  • bulk refactor diff

By the numbers

  • Runs agent-booster WASM transforms in sub-millisecond time at $0 per call
  • Targets npm agent-booster v0.2.x via agentic-flow/agent-booster

Files

SKILL.mdMarkdownGitHub ↗

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

1. Take inputsintent (one of the 6 booster intents) and file path. 2. Read the source to a variable, derive the intended edit text from the intent (caller supplies). 3. Invoke — run from anywhere under v3/ so agent-booster resolves:

   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"

4. Check confidence — default threshold is 0.5. Below that, fail closed: do NOT write the file; report and escalate to Tier 2/3. 5. Write back the output field if success && confidence >= 0.5. 6. Persist outcomememory_store --namespace cost-tracking --key "booster-edit-..." --value '{"intent":..., "latency":..., "confidence":..., "strategy":..., "applied":true}'. Feed the routing learner via hooks_model-outcome (use the cost-optimize skill's step 8).

Measured benchmark (2026-05-04, this checkout)

5 representative intents run through AgentBooster.apply():

intentlatency (ms)wall (ms)confidencestrategysuccess
var-to-const550.65fuzzy_replacetrue
add-types110.64fuzzy_replacetrue
remove-console000.70fuzzy_replacetrue
add-error-handling000.85exact_replacetrue
async-await000.85exact_replacetrue

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

ClaimStatus here
100% win rateVerified — 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 latencyVerified — avg 0.67 ms, p50 0 ms, p99 6 ms, max 6 ms.
$0 per editVerified structurally — no API call, no token billing.
Deterministic AST-based mergeVerified — same inputs reproduce the same output and strategy.
Confidence ≥ 0.5 ⇒ correctVerified on this corpus — 12/12 above 0.5 (min 0.551), all correct.
`350×` speedup vs. LLMVerified — 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 editMeasured: $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 LLMsVerified — Booster, Gemini 2.0 Flash, Sonnet 4.6, Opus 4.7 all scored 12/12 on this corpus. Booster matches LLM accuracy structurally for deterministic transforms.

To extend: add cases to bench/booster-corpus.json, run ( cd v3 && node ../plugins/ruflo-cost-tracker/scripts/bench.mjs ) (or with BENCH_LLM_BASELINE=1), commit runs/latest.json. Smoke step 23 fails the build if win rate drops below 0.80.

Override the LLM model: BENCH_LLM_MODEL='claude-sonnet-4' (when wired against api.anthropic.com) or BENCH_LLM_MODEL='models/gemini-2.5-flash' for a reasoning-model comparison. Pricing flags: BENCH_LLM_PRICE_IN, BENCH_LLM_PRICE_OUT.

fuzzy_replace is best-effort; for production transforms prefer cases that route to exact_replace (≥0.85 confidence in our sample).

Cross-references

ADR-0002 §"Decision 1" (route classifier) and §"Riskiest assumption" (Bash-shelled invocation) · cost-booster-route (classifier-side companion) · agent-booster npm README (3-mode install, MCP / npm / HTTP).

Related skills

How it compares

Pick cost-booster-edit over LLM-based editing when cost-booster-route has already classified a bulk structural transform as Tier 1 eligible.

FAQ

How does cost-booster-edit avoid LLM costs?

cost-booster-edit calls agent-booster.apply() through a WASM engine that runs deterministic transforms in sub-millisecond time at $0 per invocation. The skill executes only after cost-booster-route classifies the edit as Tier 1 eligible.

What transforms does cost-booster-edit support?

cost-booster-edit supports bulk structural transforms including var-to-const, add-types, remove-console, add-error-handling, async-await, and add-logging. These run via npm agent-booster v0.2.x exposed through agentic-flow/agent-booster.

When should cost-booster-edit run instead of an LLM edit?

cost-booster-edit should run when cost-booster-route classifies a change as Tier 1 eligible and the transform is simple and structural. Semantic refactors or unclassified edits still need LLM-based editing instead.

Backend & APIsbackendintegrations

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.