Skip to content
Back to skills

Sandbox Stats

ASecurity

Mean, median, quantiles, and linear regression inside a Code node or CodeAct action, with simple-statistics running in the guest

  • 552 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 1, 2026
ai-agentsgonode

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-stats --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Sandbox Stats?

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

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

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-stats
description: Mean, median, quantiles, and linear regression inside a Code node or CodeAct action, with simple-statistics running in the guest
---

# Statistics in the sandbox

Specifier: `@nodetool-ai/sandbox-stats`. One module, simple-statistics.
Import it at the top of the body.

## Column summaries

```js
import { mean, median, standardDeviation, quantile } from "@nodetool-ai/sandbox-stats";

const xs = inputs.values;
return {
  mean: mean(xs),
  median: median(xs),
  sd: standardDeviation(xs),
  p90: quantile(xs, 0.9)
};
```

## Linear regression

```js
import { linearRegression, linearRegressionLine } from "@nodetool-ai/sandbox-stats";

const fit = linearRegression(inputs.points);
const line = linearRegressionLine(fit);
return { m: fit.m, b: fit.b, at10: line(10) };
```

`inputs.points` is `[[x, y], ...]`.

## Gotchas

- **Named imports.** Import only the functions you use.
- **Empty arrays throw.** Guard before `mean([])`.
- **This is not TFJS.** Classification and embeddings stay on
  `@nodetool-ai/sandbox-tfjs`.

Files in this skill

  • SKILL.md1 KB
  • package.json939 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.