कंटेंट पर जाएँ
TakoAPI
स्किल्स पर वापस

xpr-code-sandbox

paulgnz द्वारा

Web & Frontend Development
586clawskills.sh द्वारा बताए गए डाउनलोड
1व्यूज़
0 लाइकइस स्किल को लाइक करने के लिए साइन इन करें
—अभी तक कोई रेटिंग नहीं
आपकी रेटिंग

संक्षिप्त

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

विवरण

यह स्किल क्या करती है

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.

इसे कब इस्तेमाल करें

  • 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

उदाहरण वर्कफ़्लो

इनपुट

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

एजेंट
  1. 1

    Parse the CSV using the structured-data skill's parse_csv tool

  2. 2

    Pass the parsed rows as JSON via the input parameter to execute_js

  3. 3

    Write a script that groups rows by region and sums revenue values

  4. 4

    Sort the resulting object entries by value descending

  5. 5

    Return the formatted result and store it with store_deliverable

आउटपुट

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

इंस्टॉलेशन

clawhub install paulgnz/xpr-code-sandbox

CLI कमांड चलाएँ, या प्रॉम्प्ट को Claude Code, Cursor, Codex या जो भी कोडिंग एजेंट आप इस्तेमाल करते हैं उसमें पेस्ट करें।

लिंक