nodejs

nodejs is a skill for Claude Code from xobotyi/cc-foundry. It costs 50 tokens per session (7,024 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,024 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.07024
Opus 5.5 $0.00020 $0.02810
Sonnet 5.5 $0.00010 $0.01405
Haiku 4.5 $0.00005 $0.00702

Measured 7d ago against content hash 6220dc338d92, 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 7d 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 · 390 lines

How it starts

The opening of the file, as written. The whole thing — 390 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 · 390 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. 7d ago Changed · +1 lines 6220dc338d92
  2. 1mo ago Changed · +188 lines · +5 tokens per session 70b055ac9042
  3. 1mo 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 (22 stars, last pushed 7d ago), licensed MIT. It adds 50 tokens to every session and 7,024 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

Other skills, from other repositories

mem0-oss-to-platform

Plan, then execute, a migration of a project from the mem0 open-source / self-hosted SDK (local Memory class) to the mem0 Platform / hosted SDK (MemoryClient). TRIGGER when: the developer wants to move, switch, or migrate mem0 off OSS/self-hosted to the hosted API, e.g. "migrate my mem0 setup to the platform", "switch…

mem0ai/mem0 · 217 tokens

agui-dotnet-protobuf

Use the protobuf wire transport (instead of the default Server-Sent Events) for an AG-UI connection with the AG-UI .NET SDK — a compact binary event stream negotiated via the Accept header. USE FOR: making an AGUIChatClient prefer protobuf by wiring an AGUIEventStreamHandler with ProtobufEventStreamFormatter (then…

ag-ui-protocol/ag-ui · 162 tokens

azure-mgmt-botservice-dotnet

Azure Resource Manager SDK for Bot Service in .NET. Management plane operations for creating and managing Azure Bot resources, channels (Teams, DirectLine, Slack), and connection settings. Triggers: "Bot Service", "BotResource", "Azure Bot", "DirectLine channel", "Teams channel", "bot management .NET", "create bot".

microsoft/skills · 78 tokens

fastapi-router-py

Create FastAPI routers with CRUD operations, authentication dependencies, and proper response models. Use when building REST API endpoints, creating new routes, implementing CRUD operations, or adding authenticated endpoints in FastAPI applications.

microsoft/skills · 46 tokens

migrate-segw-to-rap

Reverse-engineer a SEGW-built OData V2 service (MPC/DPC/MPCEXT/DPCEXT) into a modern RAP V4 service — tables, CDS views (interface + projection), behavior definitions, draft entities, service definition + binding. Use when asked to "migrate this SEGW service to RAP", "convert OData V2 to V4 RAP", "modernize this…

arc-mcp/arc-1 · 106 tokens

telnyx-messaging-hosted-curl

Set up hosted SMS numbers, toll-free verification, and RCS messaging. Use when migrating numbers or enabling rich messaging features. This skill provides REST API (curl) examples.

team-telnyx/ai · 45 tokens