javascript-runtime

javascript-runtime is a skill for Claude Code from Day1Labs/OpenAva. It costs 38 tokens per session (1,602 once invoked), scanned A, original, MIT.

A guide for running short JavaScript programs in an agent's built-in runtime.

In plain words
What is it for?
Filtering or grouping data, generating structured output, running single-file scripts, and combining read-only tool results.
Why use it?
It makes repeatable data reshaping, calculations, string processing, and small tool workflows easier to perform consistently.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions subagents.

Good fit Filtering or grouping data, generating structured output, running single-file scripts, and combining read-only tool results.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/day1labs/openava/javascript-runtime
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.

Any agent
npx skills add Day1Labs/OpenAva --skill javascript-runtime
Clone the repo
git clone --depth 1 https://github.com/Day1Labs/OpenAva

Made for: Claude Code.

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 javascript-runtime

README.md
[![agentmods](https://agentmods.dev/badge/skills/day1labs/openava/javascript-runtime/github.svg)](https://agentmods.dev/skills/day1labs/openava/javascript-runtime)
Your own site
<a href="https://agentmods.dev/skills/day1labs/openava/javascript-runtime"><img src="https://agentmods.dev/badge/skills/day1labs/openava/javascript-runtime/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for javascript-runtime

Your own site · 80×15
<a href="https://agentmods.dev/skills/day1labs/openava/javascript-runtime"><img src="https://agentmods.dev/badge/skills/day1labs/openava/javascript-runtime.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 38 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,602 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
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.00038 $0.01602
Opus 5.5 $0.00015 $0.00641
Sonnet 5.5 $0.00008 $0.00320
Haiku 4.5 $0.00004 $0.00160

Measured 2mo ago against content hash 02c5bf759dbd, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

javascript-runtime scanned grade A with 1 finding 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 2mo ago.

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.

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

- Do not assume ESM `import`, package resolution, built-in Node modules, timers, `Buffer`, `child_process`, or other Node standard libraries are available
OpenAva/Runtime/Agent/Skills/javascript-runtime/SKILL.md · 187 lines

How it starts

The opening of the file, as written. The whole thing — 187 lines — stays where its author put it; the contents beside it link to each section on GitHub.

JavaScript Runtime

Use this skill when the task is better solved by executing short, deterministic JavaScript inside OpenAva's built-in JavaScript runtime instead of reasoning everything manually. You can either pass inline code directly or run a single workspace script through script_path, and both entry modes share the same minimal CommonJS shape with require, module.exports, exports, __filename, __dirname, and a minimal process. When later steps need to keep variables, helper functions, or intermediate state, reuse the same session_id.

Typical fits:

  • JSON reshaping, filtering, grouping, sorting, aggregation
  • String parsing, normalization, templating, and report generation
  • Small deterministic calculations with multiple intermediate steps
  • Calling one or more read-only tools from JavaScript and combining the results
  • Running a small reusable workspace script file without introducing a separate sub-agent
  • Producing stable structured output that should be derived from code, not guesswork

Avoid using this skill when:

  • A direct tool call already solves the task cleanly
  • The transformation is trivial enough to do in plain reasoning
  • The task needs browser DOM APIs or a web page context
  • The task requires complex, long-running, open-ended state management better handled by a dedicated sub-agent or another mechanism

Runtime Model

The javascript_execute tool runs code inside Apple system JavaScriptCore.

Important runtime rules:

  • Provide exactly one of code or script_path
  • script_path must point to a single file inside the active workspace
  • Your code is executed as the body of an async function
  • Use return for the final result
  • You may use await
  • Input data is exposed as openava.input
  • You may provide session_id to reuse the same persistent JavaScript context
  • Shared cross-call state is available through openava.session
  • Tool calls are available through await openava.tools.call(functionName, args)
  • console.log/info/warn/error are captured and returned in the tool result
  • code and script_path share the same minimal CommonJS surface: require, module.exports, exports, __filename, __dirname
  • Both entry modes also expose a minimal process object with argv, cwd(), env, platform, and versions
  • A built-in path module is available through require("path") or require("node:path")
  • When using inline code, relative require() resolves from the active workspace root
  • Do not assume ESM import, package resolution, built-in Node modules, timers, Buffer, child_process, or other Node standard libraries are available

Read the full file on GitHub · 187 lines

Files

What ships with it

1 file 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. 2mo ago First seen · 187 lines · 38 tokens per session scan A 02c5bf759dbd

Subscribe to this mod's changes

javascript-runtime is a skill published in the GitHub repository Day1Labs/OpenAva (11 stars, last pushed 3mo ago), licensed MIT. It adds 38 tokens to every session and 1,602 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 1 finding (runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

javascript-runtime compared with skills from other repositories

javascript-runtime next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
javascript-runtimeDay1Labs/OpenAvaSkill113mo agoMITA38Claude Code
agent-harness-fault-injectionsickn33/agentic-awesome-skillsSkill49k2d agoMITA34Claude Code
sector-rotationHKUDS/Vibe-TradingSkill38kyesterdayMITA39Claude Code, Codex
foundry-config-setupmicrosoft/agent-frameworkSkill15ktodayMITA65Claude Code, Codex
oma-scholarfirst-fluke/oh-my-agentSkill1.4kyesterdayMITA30Claude Code
oma-hwpfirst-fluke/oh-my-agentSkill1.4kyesterdayMITA38Claude Code
browser_cdpmateaix/mateclawSkill1.2k3d agoApache-2.0A44Claude Code, Codex