node-modern

node-modern is a skill for Claude Code, Codex from WrongStack/WrongStack. It costs 93 tokens per session (1,775 once invoked), scanned A, original, MIT.

A set of coding practices for modern Node.js version 22 or later with TypeScript. Node.js is a runtime for running JavaScript and TypeScript outside a web browser.

In plain words
What is it for?
Use it when writing, reviewing, or refactoring Node.js TypeScript code, including imports, network requests, cancellation, streams, and async work.
Why use it?
It keeps server-side code consistent with current Node.js patterns and avoids outdated module, networking, and asynchronous-code practices.

Skill for Claude CodeCodex

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

Good fit Use it when writing, reviewing, or refactoring Node.js TypeScript code, including imports, network requests, cancellation, streams, and async work.

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

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 node-modern

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/wrongstack/wrongstack/node-modern"><img src="https://agentmods.dev/badge/skills/wrongstack/wrongstack/node-modern.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 93 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,775 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 2 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 3 findings, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Data Exfiltration · line 90
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
  • medium Data Exfiltration · line 95
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
  • medium Data Exfiltration · line 142
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
How audits are shown
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.00093 $0.01775
Opus 5.5 $0.00037 $0.00710
Sonnet 5.5 $0.00019 $0.00355
Haiku 4.5 $0.00009 $0.00178

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

Security

Grade A, and why

node-modern scanned grade A 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 10d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

const res = await fetch(url, { signal: signal ? AbortSignal.any([signal, deadline]) : deadline });

Runs shell commandslowCapability

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

Triggers: user mentions "Node", "Node.js", "ESM", "CommonJS", "require", "import", "fetch", "AbortSignal", "AbortController", "stream", "child_process", "spawn", "fs", "event loop".
packages/core/skills/node-modern/SKILL.md · 148 lines

How it starts

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

Modern Node.js

Selection card

  • Task: Node runtime APIs, ESM and async cancellation.
  • Start: Locate the affected route/component and its runtime/lockfile.
  • Finish: apply the acceptance checks below; report observed results and unresolved constraints.

Overview

Current Node.js (v26.11.1 as checked 2026-10-09) ships natively what older code pulled from npm: native TypeScript type stripping (node file.ts), native .env loading (node --env-file), built-in SQLite (node:sqlite), global WebSocket, Promise.withResolvers(), global fetch, AbortSignal.timeout, node:test, Web Streams, and node --run. Prefer the platform when its semantics fit; do not remove needed capabilities merely to reduce dependency count.

Rules

  1. Pre-flight: Inspect repo runtime & live Node.js LTS schedule first. Check package.json "engines", .nvmrc, .node-version, and check node -v to determine the active engine. Check the official Node.js release schedule online to ensure target runtime aligns with active LTS or the requested latest stable channel; verify support status from the current release schedule.
  2. Match the module system. In an ESM package ("type": "module" or .mjs) write ES import statements, with explicit file extensions on relative imports when the project compiles with NodeNext. Don't convert a CommonJS package to ESM as a side effect of another change.
  3. Import built-ins with the node: prefix (node:fs/promises, node:path, node:sqlite).
  4. Prefer native platform features over npm bloat:
    • Use native node --env-file=.env instead of installing dotenv.
    • Use native globalThis.fetch() instead of axios or node-fetch.
    • Native WebSocket covers standard clients; verify the required client/server features before replacing ws.
    • Use native node:sqlite for local structured caching and data storage.
    • Use native node:crypto randomUUID() instead of uuid.
    • Use Promise.withResolvers() instead of hand-rolled deferred promises.
  5. Give every operation that can wait a deadline: pass an AbortSignal to fetch calls, child processes, and timers; combine user cancellation with a timeout using AbortSignal.any.
  6. Handle ENOENT by reading inside try/catch and branching on err.code; checking access first is a race (TOCTOU).
  7. Never block the event loop in a server or CLI hot path: no *Sync fs calls or CPU-heavy loops on request paths.
  8. Pass arguments to child processes as an array (execFile/spawn), never by interpolating into a shell string.
  9. Every promise is awaited, returned, or explicitly handled; let entry points report unhandled rejections instead of swallowing them.

Read the full file on GitHub · 148 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. 10d ago Changed 112d762dc699
  2. 11d ago Changed · +29 lines 7aee4bc4b77c
  3. 1mo ago Changed · -103 lines · +41 tokens per session 6dfaa77f3182
  4. 1mo ago First seen · 222 lines · 52 tokens per session scan A a66c3f00d663

Subscribe to this mod's changes

node-modern is a skill published in the GitHub repository WrongStack/WrongStack (388 stars, last pushed today), licensed MIT. It adds 93 tokens to every session and 1,775 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 2 findings (makes network calls, runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.