LaunchKit · 2026
Back to Skills

xpr-code-sandbox

Execute JavaScript code in a sandboxed VM for data processing and computation.

0
586 downloads
by @paulgnz

Setup & Installation

openclaw skills install @paulgnz/xpr-code-sandbox

Or with the ClawHub CLI, for registry-managed skill folders outside a full OpenClaw workspace:

npx clawhub install xpr-code-sandbox

What This Skill Does

Runs JavaScript code in an isolated V8 sandbox with no network or filesystem access. Supports both full scripts via `execute_js` and quick single-expression evaluation via `eval_expression`. Data is passed in via JSON input and results are returned directly.

Lets an agent perform arbitrary computation mid-workflow without spinning up a separate runtime or exposing the host environment.

When to use it

  • Calculate compound interest across a loan schedule
  • Transform and reshape a JSON API response
  • Validate a sorting algorithm before deploying
  • Convert a CSV of numbers into aggregated statistics
  • Compute date differences and format timestamps

Example Workflow

Here's how your AI assistant might use this skill in practice.

INPUT

User asks: 'Given this sales CSV, calculate total revenue per region and return sorted descending'

AGENT
  1. 1Parse the CSV using the structured-data skill's parse_csv tool
  2. 2Pass the parsed rows as JSON via the input parameter to execute_js
  3. 3Write a script that groups rows by region and sums revenue values
  4. 4Sort the resulting object entries by value descending
  5. 5Return the formatted result and store it with store_deliverable
OUTPUT

A JSON array of { region, totalRevenue } objects sorted highest to lowest