code-sandbox

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

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "code-sandbox" with this command: npx skills add paulgnz/xpr-code-sandbox

Code Sandbox

You have sandboxed JavaScript execution tools for computation and data processing:

Full scripts:

  • execute_js — run JavaScript code in an isolated V8 sandbox
    • Pass data via the input parameter (JSON) — access it as INPUT in your code
    • Use console.log() to capture intermediate values (returned in logs array)
    • Available globals: JSON, Math, Date, Array, Object, String, Number, RegExp, Map, Set, parseInt, parseFloat, isNaN, isFinite, encodeURIComponent, decodeURIComponent, atob, btoa
    • No network access, no filesystem, no imports — pure computation only
    • Default timeout 5 seconds, max 30 seconds
    • 10MB output limit

Quick expressions:

  • eval_expression — evaluate a single JavaScript expression and return the result
    • Use for quick math: "15 * 4500 * 0.01"675
    • Date calculations: "new Date().toISOString()"
    • Array operations: "[1,2,3].map(x => x*x)"[1, 4, 9]

Best practices:

  • Use execute_js for multi-step data processing, algorithm testing, code validation
  • Use eval_expression for quick math, string ops, date calculations
  • Pass large datasets via input parameter rather than embedding in code
  • Combine with parse_csv (structured-data skill) for CSV → transform → output workflows
  • Combine with store_deliverable to save computed results as job evidence

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

Kai Master Builder

Developer, Code, Engineer. Guide the Agent to build apps/features/goals efficiently and securely. Creates project plans, task lists, and provides building pr...

Registry SourceRecently Updated
1700Profile unavailable
Coding

HSCIQ MCP - 海关编码查询

HS Code Lookup for Chinese Products. Query customs codes, tariff rates, declaration elements, and regulatory requirements via HSCIQ MCP API.

Registry SourceRecently Updated
3320Profile unavailable
Coding

Unity Shader Optimizer & LLM Cleaner(去垃圾代码)

Unity HLSL Shader 代码风格规范,要求减少重复代码、提取共用函数、合理使用头文件。使用场景:编写 Unity Shader、重构重复 Shader 代码、生成新 Shader 时遵循 DRY 原则。

Registry SourceRecently Updated
1060Profile unavailable
Coding

Appian Listpkg

List all packages for an Appian application by UUID. Use when the user wants to see what packages exist in an application, or to find a package UUID before i...

Registry SourceRecently Updated
1230Profile unavailable