Index of every page on this site: llms.txt
All skills
jasnell avatar

/node-experimental-check

@5f83e6c
Run it yourself

Verifies that an experimental or recently added Node.js API, CLI flag, or global exists in the user's installed Node.js before code depends on it, and finds the version-matched docs. Use before writing code that uses any Stability 1.x Node.js feature (node:bench, node:vfs, node:ffi, node:quic, node:dtls, stream/iter, zlib ZipFile, --experimental-* or --allow-* flags) or any API added in Node.js 24+, or when an API "is not a function", ERR_UNKNOWN_BUILTIN_MODULE, or "bad option" appears.

Use this Skill: https://skilld.dev/gh/jasnell/node-skills/node-experimental-check

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈129 tokens for metadata: the name and description. ≈704 when used: this file. ≈45 more on demand in 1 file.

Description uses 6.5% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈517 characters, or 6.5%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

Verify experimental Node.js features before relying on them

Experimental APIs (Stability 1, 1.0, 1.1) change between minor releases. Option names change, methods move, and flags get renamed or removed. A skill describes one snapshot. The installed Node.js is the source of truth.

Checklist (do not skip for Stability 1.x)

  1. Find the runtime that will run the code. Run node --version, but also check .nvmrc, package.json engines, volta, the Dockerfile FROM node:<tag>, and the CI node-version. The shell's node may not be the one that matters.
  2. Probe the exact items you will use. Run the bundled script with the target binary:
    node scripts/probe.mjs --flag --experimental-stream-iter --module node:stream/iter
    node scripts/probe.mjs --module node:zlib:ZipFile.openSync --global URLPattern
    node scripts/probe.mjs --flag --experimental-bench --list node:bench   # list exports
    node scripts/probe.mjs --node ./out/Release/node --flag --process-timeout
    The probe passes --experimental-*/--allow-* flags through to the module checks and exits 1 if anything is missing. If you can't run the script, use a one-liner instead: node --experimental-x -p "typeof require('node:mod').thing" and node --help | grep -- --flag.
  3. Read the docs for that version, not latest: https://nodejs.org/docs/<version>/api/<module>.html. For a pre-release build, read doc/api/<module>.md in its checkout. Check the YAML added:/changes: history and the Stability line of each API you use.
  4. Prefer behavior over docs. For anything subtle (defaults, units, error codes), run a 5-line script instead of trusting prose.
  5. Gate or fall back. If the code must run on several versions, use feature detection (typeof x === 'function', a try { await import() } block), not a version-string compare. State the minimum version in engines or in a comment.
  6. Tell the user that the code depends on an experimental API, which flag it needs, and that the API may change in minor releases.

Reading added: lists

added: [v26.8.0, v24.22.0] means the feature is in 24.22+ on the v24 line and in 26.8+. It is not in v25.x or in 26.0–26.7. A single entry v26.1.0 means the feature is not on v24 at all.

Pitfalls

  • A flag that the installed version does not accept fails the process with bad option. That means the version lacks the feature, not that the flag is spelled wrong.
  • Some modules only resolve with the node: prefix (node:sqlite, node:test, node:bench) and some only behind a flag. Probe with the flag.
  • Flags that get unflagged keep an opposite --no-experimental-* form. After that, passing the old --experimental-* flag may warn or error.

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts5d3 checks · Risk SAFE
  • Gen Agent Trust Hub5d

    The skill is a developer utility designed to verify Node.js feature support in the local environment. It executes local Node.js binaries to probe for available modules, globals, and CLI flags. It adheres to security best practices by using execFileSync to avoid shell injection and JSON.stringify to sanitize inputs when generating test scripts. No external network access or credential exposure was detected.

  • Socket5d

    No alerts

  • Snyk5d

    Risk: LOW · No issues

Signed by skilld at 5f83e6c. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 5 days ago.

Activeupdated last week

README badge

README badge for jasnell/node-skills/node-experimental-check