random-number

random-number is a skill for Claude Code, Codex from rivet-dev/sandbox-agent. It costs 24 tokens per session (73 once invoked), scanned A, original, Apache-2.0.

A small tool that generates a random whole number between a supplied minimum and maximum, including both endpoints.

In plain words
What is it for?
Use it when a task needs one random integer in a specified inclusive range.
Why use it?
It provides a reproducible command-line way to choose a random integer without implementing the random-number logic yourself.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

About the project

sandbox-agent is an HTTP and server-sent-events service that runs coding agents inside isolated sandboxes and lets another application control them remotely. Developers use it to run agents such as Claude Code, Codex, OpenCode, Cursor, Amp, or Pi while streaming events, managing sessions, and storing transcripts. The catalogue entries provide agents, skills, commands, instructions, and MCP integration for working with the service.

rivet-dev/sandbox-agent · 1,560 stars · on GitHub · sandboxagent.dev

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/rivet-dev/sandbox-agent/skills-custom-tool
Any agent
npx skills add rivet-dev/sandbox-agent --skill skills-custom-tool
Clone the repo
git clone --depth 1 https://github.com/rivet-dev/sandbox-agent

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for random-number

README.md
[![agentmods](https://agentmods.dev/badge/skills/rivet-dev/sandbox-agent/skills-custom-tool.svg)](https://agentmods.dev/skills/rivet-dev/sandbox-agent/skills-custom-tool)
Your own site
<a href="https://agentmods.dev/skills/rivet-dev/sandbox-agent/skills-custom-tool"><img src="https://agentmods.dev/badge/skills/rivet-dev/sandbox-agent/skills-custom-tool.svg" alt="Measured on agentmods" height="20"></a>
Per session 24 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 73 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00024 $0.00073
Opus 5 $0.00012 $0.00036
Sonnet 5 $0.00005 $0.00015
Haiku 4.5 $0.00002 $0.00007

Measured 6d ago against content hash e665f0a095b3, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

random-number scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (src/index.ts, src/random-number.ts), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

examples/skills-custom-tool/SKILL.md · 13 lines

What it actually says

To generate a random number, run:

node /opt/skills/random-number/random-number.cjs <min> <max>

This prints a single random integer between min and max (inclusive).

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 13 lines · 24 tokens per session scan A e665f0a095b3

Subscribe to this mod's changes

random-number is a skill published in the GitHub repository rivet-dev/sandbox-agent (1,560 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 24 tokens to every session and 73 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

waku-computer-use

Control local Mac apps through Waku Computer Use for tasks that require reading or operating app UI. Prefer purpose-built connectors, APIs, or CLIs when available.

egoist/waku · 37 tokens

aatmf-t10-confidentiality-breach

AATMF T10 — Integrity & Confidentiality Breach. System prompt extraction, training-data extraction, model-weight leakage, private-key recovery.

PurpleAILAB/Decepticon · 39 tokens

ensembl-database

Query Ensembl genome database REST API for 250+ species. Gene lookups, sequence retrieval, variant analysis, comparative genomics, orthologs, VEP predictions, for genomic research.

synthetic-sciences/openscience · 45 tokens

wukongim-cloud-analysis

Diagnose one exact live WuKongIM cloud Simulation Run or chat-lifecycle Cloud Lease through the repository Analysis MCP. Use when the user or a local Analysis Session asks Codex to inspect a run's cluster state, Prometheus signals, application logs, diagnostics, Controller task audits, profiles, or redacted config…

WuKongIM/WuKongIM · 114 tokens

memory

Use when the user asks to remember, recall, forget, update, search, or inspect durable OpenSquilla memory, including profile facts in USER.md and long-term notes in MEMORY.md or memory//.md.

opensquilla/opensquilla · 44 tokens

lazarus-group

Adversary-emulation profile for Lazarus Group (G0032, aka Hidden Cobra / Diamond Sleet / Labyrinth Chollima), a North Korean RGB-linked actor conducting espionage, destructive, and financially motivated operations.

PurpleAILAB/Decepticon · 51 tokens