Get the FREE Ultimate OpenClaw Setup Guide →

agent-booster

npx machina-cli add skill a5c-ai/babysitter/agent-booster --openclaw
Files (1)
SKILL.md
1.6 KB

Agent Booster

Overview

WASM-compiled code transformation engine for simple, well-defined tasks. Bypasses LLM inference entirely for pattern-matched transforms, achieving sub-millisecond execution at zero cost.

When to Use

  • Simple, deterministic code transforms
  • High-frequency repetitive modifications
  • When latency is critical (<1ms requirement)
  • Cost-sensitive batch operations

Supported Transforms

TransformDescriptionExample
var-to-constModernize variable declarationsvar x = 1 -> const x = 1
add-typesInsert TypeScript annotationsfunction f(x) -> function f(x: string)
add-error-handlingWrap in try/catchBare calls -> try/catch blocks
async-awaitConvert Promise chains.then().catch() -> async/await
extract-functionExtract code blocksInline code -> named function
inline-variableInline single-use variablesRemove intermediate vars
add-jsdocGenerate documentationBare functions -> JSDoc comments

Performance

  • Execution: <1ms per transform
  • Cost: $0 (no LLM invocation)
  • Speedup: 352x compared to LLM inference
  • Confidence threshold: >90% pattern match required

Agents Used

  • agents/coder/ - Fallback for unmatched patterns

Tool Use

Invoke via babysitter process: methodologies/ruflo/ruflo-task-routing

Source

git clone https://github.com/a5c-ai/babysitter/blob/main/plugins/babysitter/skills/babysit/process/methodologies/ruflo/skills/agent-booster/SKILL.mdView on GitHub

Overview

Agent Booster is a WASM-compiled engine that performs simple, well-defined code transforms without invoking an LLM. It bypasses LLM inference for pattern-matched transforms, delivering sub-millisecond execution at zero cost. It supports transforms such as var-to-const, add-types, add-error-handling, async-await, and more.

How This Skill Works

Agent Booster uses prebuilt WASM routines to apply strict pattern matches against code. When a transform matches, it runs instantly without LLM calls; if no pattern matches, control falls back to the fallback coder agent. A confidence threshold of over 90% is required for a transform to be applied.

When to Use It

  • Simple, deterministic code transforms
  • High-frequency repetitive modifications
  • Latency-critical workflows requiring sub-millisecond response
  • Cost-sensitive batch operations
  • Transforms that fit the supported set (var-to-const, add-types, add-error-handling, async-await, extract-function, inline-variable, add-jsdoc)

Quick Start

  1. Step 1: Invoke via babysitter process: methodologies/ruflo/ruflo-task-routing
  2. Step 2: Specify the target transform from the supported list (e.g., var-to-const)
  3. Step 3: Review the transformed output; if no pattern matches, the system falls back to agents/coder/ for unmatched transforms

Best Practices

  • Clearly define each intended transform before enabling (e.g., var-to-const, add-types).
  • Keep transforms idempotent to avoid repeated changes on re-runs.
  • Ensure pattern-match coverage exceeds 90% before deployment.
  • Provide a clean fallback path to the coder agent for unmatched patterns.
  • Validate results with quick tests or linting after transformation.

Example Use Cases

  • var x = 1 -> const x = 1
  • function f(x) -> function f(x: string)
  • Bare calls -> try { ... } catch { ... }
  • .then().catch() -> async/await
  • Inline code -> named function

Frequently Asked Questions

Add this skill to your agents
Sponsor this space

Reach thousands of developers