← 返回 Skills 市场
891
总下载
0
收藏
3
当前安装
1
版本数
在 OpenClaw 中安装
/install xpr-code-sandbox
功能描述
Execute JavaScript code in a secure sandbox for data processing, computation, and quick expression evaluation without network or filesystem access.
安全使用建议
This skill appears internally consistent for running JavaScript computations in a sandbox and does not ask for credentials or installs. Before installing, consider: (1) provenance — the source/homepage is unknown; prefer skills from known authors. (2) Treat it as untrusted when executing third-party code: test with non-sensitive inputs and small timeouts. (3) Although the code explicitly blocks require/process/global and disables code-generation-from-strings, vm-based sandboxes have historically had escape techniques — avoid sending secrets or sensitive data into the sandbox. (4) If you need stronger guarantees, run similar workloads in a dedicated, isolated execution environment (separate process/container) or seek a sandbox with formal audits.
功能分析
Type: OpenClaw Skill
Name: xpr-code-sandbox
Version: 0.2.11
The skill provides a sandboxed JavaScript execution environment using Node.js's `vm` module. The `SKILL.md` documentation clearly outlines the limitations, explicitly stating 'No network access, no filesystem, no imports'. The `src/index.ts` implementation reinforces these security measures by setting `codeGeneration: { strings: false, wasm: false }` and explicitly blocking access to `require`, `process`, `globalThis`, and `global` within the sandbox. Timeouts and output limits are also enforced. There is no evidence of malicious intent, data exfiltration, persistence, or prompt injection attempts against the agent. The implementation adheres to best practices for secure sandboxing with the `vm` module.
能力评估
Purpose & Capability
Name, description, declared tools (execute_js, eval_expression) and the included src/index.ts align: the implementation uses Node's vm to run JS with explicit globals and blocked require/process/global access. No unrelated env vars, binaries, or installs are requested.
Instruction Scope
SKILL.md limits scope to isolated JS execution and explicitly forbids network/filesystem/imports; the code enforces these restrictions by creating a limited context and undefining require/process/global. However, vm-based sandboxes can be subtle to get correct — the instructions do not permit reading system state or secrets, and the code does not appear to do so, but there remains a non-zero risk of sandbox escape vectors in complex JS environments.
Install Mechanism
No install spec; skill is instruction/code-only and uses Node built-ins. Nothing in the manifest pulls external code or runs remote installers.
Credentials
The skill requires no environment variables, no credentials, and no config paths. The code does not access process.env or other outside credentials. Requested privileges are proportional to the stated purpose.
Persistence & Privilege
always is false; the skill is user-invocable and allows autonomous invocation (platform default). It does not modify other skills or request permanent elevated presence.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install xpr-code-sandbox - 安装完成后,直接呼叫该 Skill 的名称或使用
/xpr-code-sandbox触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.2.11
- Added detailed documentation in SKILL.md for available JavaScript sandbox features.
- Clarified usage of `execute_js` for running full scripts with input data and logging.
- Explained `eval_expression` for evaluating quick JavaScript expressions.
- Listed available global objects and environment restrictions.
- Included best practices for efficient data processing and integration with other skills.
元数据
常见问题
XPR Code Sandbox 是什么?
Execute JavaScript code in a secure sandbox for data processing, computation, and quick expression evaluation without network or filesystem access. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 891 次。
如何安装 XPR Code Sandbox?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install xpr-code-sandbox」即可一键安装,无需额外配置。
XPR Code Sandbox 是免费的吗?
是的,XPR Code Sandbox 完全免费(开源免费),可自由下载、安装和使用。
XPR Code Sandbox 支持哪些平台?
XPR Code Sandbox 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 XPR Code Sandbox?
由 paulgnz(@paulgnz)开发并维护,当前版本 v0.2.11。
推荐 Skills