nodejs

nodejs is a skill for Claude Code from xobotyi/cc-foundry. It costs 50 tokens per session (7,025 once invoked), scanned B, original, MIT.

A guide to Node.js, the runtime used to run JavaScript outside a web browser. It covers modules, asynchronous work, streams, errors, security, and process behavior.

In plain words
What is it for?
Use it for Node.js servers, command-line tools, scripts, package configuration, streams, and process-lifecycle code.
Why use it?
It helps prevent code from blocking the event loop, mishandling files or network work, or using modules and errors inconsistently.

Skill for Claude Code

Written for Claude Code: when-to-use in frontmatter. Also seen: mentions Claude Code.

Part of the javascript plugin — 5 skills shipped together

Good fit Use it for Node.js servers, command-line tools, scripts, package configuration, streams, and process-lifecycle code.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/xobotyi/cc-foundry/nodejs
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 xobotyi/cc-foundry --skill nodejs
Clone the repo
git clone --depth 1 https://github.com/xobotyi/cc-foundry

Made for: Claude Code.

Or install javascript, the plugin that ships this one along with the rest of its 5 skills.

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 nodejs

README.md
[![agentmods](https://agentmods.dev/badge/skills/xobotyi/cc-foundry/nodejs/github.svg)](https://agentmods.dev/skills/xobotyi/cc-foundry/nodejs)
Your own site
<a href="https://agentmods.dev/skills/xobotyi/cc-foundry/nodejs"><img src="https://agentmods.dev/badge/skills/xobotyi/cc-foundry/nodejs/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 nodejs

Your own site · 80×15
<a href="https://agentmods.dev/skills/xobotyi/cc-foundry/nodejs"><img src="https://agentmods.dev/badge/skills/xobotyi/cc-foundry/nodejs.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 50 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 7,025 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 2 findings. 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.00050 $0.07025
Opus 5.5 $0.00020 $0.02810
Sonnet 5.5 $0.00010 $0.01405
Haiku 4.5 $0.00005 $0.00702

Measured 26d ago against content hash 88064f1f86d7, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

nodejs scanned grade B with 2 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 26d 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.

Strips warnings and disclaimersmediumAnti-refusal

Omitting safety caveats hides risk from the user and is a common jailbreak preamble.

When **reviewing** Node.js code, cite the violation and show the fix inline. Do not lecture.

Runs shell commandslowCapability

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

- **No synchronous file, process, or crypto call on a request path.** `readFileSync`, `execSync`, `pbkdf2Sync`,
plugins/javascript/skills/nodejs/SKILL.md · 391 lines

How it starts

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

One thread runs every callback in a Node process, so anything that holds it holds the whole program. Three biases decide most calls:

  • The engines.node floor decides what may be written, not the node binary on the machine.
  • Read an API's stability index before depending on it. Node ships an API for years before committing to it, and an experimental one can be deleted without a deprecation cycle.
  • Check the standard library before adding a dependency. It absorbed fetch, a test runner, a file watcher, glob, SQLite, .env parsing, a script runner, and TypeScript execution.

Node Version

engines.node in package.json is the floor a project claims. Read it before writing code and never reach for an API above it. Nothing enforces it at run time — Node never reads the field, and npm checks it only under engine-strict=true — so the floor holds by discipline and by CI running the oldest major it names.

The installed binary is not the floor. node --version reports what one machine has, not what the project supports.

Support windows, which decide whether a floor is defensible:

  • 20 — end of life 2026-04-30. A floor of >=20 claims a runtime that receives no fixes at all.
  • 22 — maintenance from 2025-10-21, end of life 2027-04-30. Security and critical fixes only; no new capability.
  • 24 — Active LTS from 2025-10-28, maintenance from 2026-10-20, end of life 2028-04-30.
  • 26 — released 2026-05-05, Active LTS from 2026-10-28, end of life 2029-04-30.

Floor version per feature — the APIs and behavior changes that decide what may be written.

  • 20.19.0 — require(esm) unflagged on the 20 line; syntax detection on by default
  • 22.0.0 — node --run; fs.glob; WebSocket global; watch mode Stable; assert { type: 'json' } removed
  • 22.12.0 — require(esm) unflagged on the 22 line; JSON modules Stable
  • 22.13.0 — Permission Model Stable and --permission accepted; node:sqlite unflagged
  • 22.15.0 — module.registerHooks()
  • 22.16.0 — import.meta.dirname and import.meta.filename Stable; --experimental-config-file
  • 22.18.0 — type stripping on by default; import.meta.main
  • 22.21.0 — --env-file Stable; NODE_USE_ENV_PROXY
  • 24.0.0 — --experimental-permission renamed --permission; AsyncLocalStorage on AsyncContextFrame; URLPattern global; test runner awaits subtests; url.parse() runtime-deprecated (DEP0169); args with { shell: true } runtime-deprecated (DEP0190)
  • 24.12.0 — type stripping Stable
  • 24.20.0 — --permission-audit
  • 26.0.0 — Temporal global; module.register() runtime-deprecated (DEP0205); --experimental-transform-types removed; node:_stream_* removed. It also inherits what 25 added and neither 22 nor 24 received: --allow-net, and with it network confinement under --permission
  • 26.3.0 — permission.drop()

No odd major is a defensible floor. Node 21, 23, and 25 are end of life — 25 since 2026-06-01 — so a feature that arrived on one is reachable only from the LTS major above it.

Read [${CLAUDE_SKILL_DIR}/references/versions/node-NN.md] — one file per LTS major: node-20.md, node-22.md, node-24.md, node-26.md — when writing against a feature near the floor, and whenever raising the floor. Each carries what its major added, the stability each addition holds, the behavior it changed, and the traps it introduced.

Read the full file on GitHub · 391 lines

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. 26d ago Changed 88064f1f86d7
  2. 1mo ago Changed · +1 lines 1fe0ee8df002
  3. 1mo ago Changed · +1 lines 6220dc338d92
  4. 3mo ago Changed · +188 lines · +5 tokens per session 70b055ac9042
  5. 3mo ago First seen · 201 lines · 45 tokens per session scan B 2e7d9914c67a

Subscribe to this mod's changes

nodejs is a skill published in the GitHub repository xobotyi/cc-foundry (23 stars, last pushed yesterday), licensed MIT. It adds 50 tokens to every session and 7,025 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it B with 2 findings (strips warnings and disclaimers, runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

nodejs compared with skills from other repositories

nodejs next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
nodejsxobotyi/cc-foundrySkill23yesterdayMITB50Claude Code
validate-apijohnkozaris/jko-claude-pluginsSkill1129d agoMITA20Claude Code
backend-architecturejohnkozaris/jko-claude-pluginsSkill1129d agoMITA119Claude Code
validate-wsjohnkozaris/jko-claude-pluginsSkill1129d agoMITA19Claude Code
dotnet-backend-expertmathisk2095/jko-claude-pluginsSkill31mo agoMITA181Claude Code
python-backend-expertmathisk2095/jko-claude-pluginsSkill31mo agoMITA183Claude Code
design-code-architecturewondelai/skillsSkill2.9k4d agoMITA220Claude Code