nodejs

nodejs is a skill for Claude Code, Codex from ndisisnd/cook. It costs 70 tokens per session (1,613 once invoked), scanned A, original, MIT.

A set of Node.js runtime standards for services, command-line tools, workers, and servers. Node.js is the program runtime used to execute JavaScript outside a web browser.

In plain words
What is it for?
Implementing or reviewing Node.js code, including event-loop behaviour, error handling, streams, process signals, buffers, dependency installation, and startup configuration.
Why use it?
It helps avoid failures involving unfinished asynchronous work, rejected promises, process shutdown, streams, memory, and environment loading.

Skill for Claude CodeCodex

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

Good fit Implementing or reviewing Node.js code, including event-loop behaviour, error handling, streams, process signals, buffers, dependency installation, and startup configuration.

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

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 nodejs

README.md
[![agentmods](https://agentmods.dev/badge/skills/ndisisnd/cook/nodejs/github.svg)](https://agentmods.dev/skills/ndisisnd/cook/nodejs)
Your own site
<a href="https://agentmods.dev/skills/ndisisnd/cook/nodejs"><img src="https://agentmods.dev/badge/skills/ndisisnd/cook/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/ndisisnd/cook/nodejs"><img src="https://agentmods.dev/badge/skills/ndisisnd/cook/nodejs.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 70 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,613 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 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.00070 $0.01613
Opus 5.5 $0.00028 $0.00645
Sonnet 5.5 $0.00014 $0.00323
Haiku 4.5 $0.00007 $0.00161

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

Security

Grade A, and why

nodejs 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 1mo 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.

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.

standards/nodejs/SKILL.md · 78 lines

How it starts

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

Node.js Standards

Target: Node.js 24 LTS. Node 26 becomes LTS on 2026-10-28; Node 20 reached end of life on 2026-04-30.

Default load: this file only. Pull refs/runtime-safety.md, refs/async-errors.md, refs/tooling.md, or refs/testing.md only when the task needs that depth.

Node.js owns runtime failure modes only: event loop, promise rejections, streams/backpressure, workers, signals, Buffer safety, installs, boot-time env. TypeScript → standards/typescript/; API, security, auth, performance, architecture, CI → standards/global/; persistence → standards/database/.

Priority: P0 — Runtime Safety

  • Every promise is awaited, returned, or has an explicit rejection handler; no floating promises. Node exits on unhandled rejections by default, and unobserved rejections still make failures nondeterministic. void is allowed only for a documented fire-and-forget call that attaches .catch() or routes through a helper that centralizes rejection logging. Signal: a call returning a Promise on a statement line with no await, return, .catch, or approved fire-and-forget helper.
  • Global unhandledRejection / uncaughtException handlers are last-resort logging plus graceful exit, never primary control flow, and never resume normal operation after uncaughtException. Catch errors where they occur. Signal: business logic such as retry, fallback, or response handling inside a process.on('uncaughtException') handler, or a handler that logs and keeps serving indefinitely.
  • Throws across callback, timer, and event boundaries are caught locally and converted to rejections or error events. Throws in setTimeout, EventEmitter, or stream callbacks escape the original .catch().
  • Handle SIGTERM and SIGINT for graceful shutdown: fail readiness or stop accepting connections, drain in-flight work up to a fixed deadline, close DB/Redis/pool resources, then exit before the orchestrator kills the process. Signal: no signal handler or shutdown timeout; process.exit() in a request handler.
  • Never block the event loop on the request path. No synchronous CPU work such as large JSON.parse, crypto.pbkdf2Sync, compression, image transforms, and no sync fs such as readFileSync or existsSync in a hot handler; offload CPU work to worker_threads or a queue, and use async APIs for I/O.
  • Respect stream backpressure. Prefer stream.pipeline() or stream/promises.pipeline() for multi-stream flows so errors and cleanup propagate; .pipe() is acceptable only when error and cleanup paths are handled. Honour write() returning false and wait for 'drain'. Signal: a.pipe(b) with no error handling, or .write() in a loop ignoring the return value.
  • Use Buffer.alloc for buffers that may be read before full overwrite; use Buffer.allocUnsafe only when every byte is overwritten before any read, response, log, persistence, crypto/compression input, or serialization. Unsafe buffers can leak prior heap contents. Signal: Buffer.allocUnsafe or allocUnsafeSlow flowing to an external sink without a complete overwrite first.

Read the full file on GitHub · 78 lines

Files

What ships with it

5 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. 1mo ago Changed · -12 lines · +5 tokens per session 019ae84d2501
  2. 3mo ago First seen · 90 lines · 65 tokens per session scan A 517690100fca

Subscribe to this mod's changes

nodejs is a skill published in the GitHub repository ndisisnd/cook (2 stars, last pushed 1mo ago), licensed MIT. It adds 70 tokens to every session and 1,613 once invoked, about $0.0003 per session on Opus 5.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-31.

Related

nodejs compared with skills from other repositories

nodejs next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
nodejsndisisnd/cookSkill21mo agoMITA70Claude Code, Codex
optimize-for-gpuK-Dense-AI/scientific-agent-skillsSkill59kyesterdayMITA151Claude Code, Codex
pennylaneK-Dense-AI/scientific-agent-skillsSkill59kyesterdayMITA74Claude Code
laravel-specialistJeffallan/claude-skillsSkill13ktodayMITA86Claude Code
kotlin-specialistJeffallan/claude-skillsSkill13ktodayMITA86Claude Code
ecto-patternsoliver-kriska/claude-elixir-phoenixSkill579yesterdayMITA51Claude Code
documentoliver-kriska/claude-elixir-phoenixSkill579yesterdayMITA48Claude Code