Skip to content
Back to skills

Sandbox Expr

ASecurity

Evaluate a math formula without eval in a Code node or CodeAct action, with expr-eval running on the host

  • 554 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 1, 2026
ai-agentsjavascriptgojavanode

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned September 1, 2026

npx -y skills add nodetool-ai/nodetool --skill sandbox-expr --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Sandbox Expr?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Sandbox Expr
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/nodetool-ai-sandbox-expr/badge)](https://www.skillsdirectory.com/skills/nodetool-ai-sandbox-expr)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: sandbox-expr
description: Evaluate a math formula without eval in a Code node or CodeAct action, with expr-eval running on the host
---

# Formulas in the sandbox

Specifier: `@nodetool-ai/sandbox-expr`. Import it at the top of the body.

The published expr-eval bundle trips the guest scanner, so this pack is a
**host module**.

## evaluate — formula plus variables

```js
import { evaluate } from "@nodetool-ai/sandbox-expr";

const value = await evaluate(inputs.formula, inputs.vars);
return { value };
```

`inputs.formula` is a string such as `"2 * qty + fee"`. `inputs.vars` is
`{ qty: 3, fee: 1.5 }`.

## Gotchas

- **Not JavaScript.** `^` is power. Unknown names throw.
- **Do not use `eval`.** The guest deletes it. This pack is the formula path.

Files in this skill

  • SKILL.md769 B
  • package.json852 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.