nodejs

nodejs is a skill for Claude Code, Codex from neverinfamous/memory-journal-mcp. It costs 55 tokens per session (512 once invoked), scanned A, original, MIT.

A set of standards for using Node.js, the runtime that runs JavaScript outside a web browser. It focuses on streams, memory use, file and network handling, and keeping servers responsive.

In plain words
What is it for?
Use it when working with Node.js streams, buffers, files, network payloads, child processes, worker threads, or event-loop performance.
Why use it?
It helps prevent large files from filling memory and stops slow or CPU-heavy operations from blocking other requests handled by the server.

Skill for Claude CodeCodex

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

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.

agentmods
npx agentmods add skills/neverinfamous/memory-journal-mcp/nodejs
Any agent
npx skills add neverinfamous/memory-journal-mcp --skill nodejs
Clone the repo
git clone --depth 1 https://github.com/neverinfamous/memory-journal-mcp

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/neverinfamous/memory-journal-mcp/nodejs.svg)](https://agentmods.dev/skills/neverinfamous/memory-journal-mcp/nodejs)
Your own site
<a href="https://agentmods.dev/skills/neverinfamous/memory-journal-mcp/nodejs"><img src="https://agentmods.dev/badge/skills/neverinfamous/memory-journal-mcp/nodejs.svg" alt="Measured on agentmods" height="20"></a>
Per session 55 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 512 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
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.00055 $0.00512
Opus 5 $0.00028 $0.00256
Sonnet 5 $0.00011 $0.00102
Haiku 4.5 $0.00006 $0.00051

Measured 6d ago against content hash ccd67695c7db, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

nodejs scanned grade A with 1 finding 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 6d 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.

Runs shell commandslowCapability

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

Node.js core runtime standards. Use when working with native Node.js APIs like streams, buffers, child_process, worker_threads, filesystem, or event loop tuning. Do NOT trigger for generic 'build a server' requests unles
skills/nodejs/SKILL.md · 47 lines

How it starts

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

Node.js Core Standards

This skill provides best practices for utilizing native Node.js APIs safely and efficiently.

1. Streams and Memory Management

  • Streaming Data: Always use streams (fs.createReadStream, pipeline) when handling files or network payloads larger than a few megabytes. Never buffer entire large files into memory using fs.readFile.
  • Pipeline Utility: Always use stream/promises.pipeline to chain streams together. It properly handles error propagation and stream destruction to prevent memory leaks.
import { pipeline } from 'node:stream/promises'
import { createReadStream, createWriteStream } from 'node:fs'

await pipeline(
  createReadStream('large-file.csv'),
  processTransformStream,
  createWriteStream('output.csv')
)

2. Event Loop Blocking

  • Synchronous APIs: Never use synchronous native APIs (fs.readFileSync, crypto.pbkdf2Sync) in a web server context, as they block the main event loop and freeze all other requests. Only use them during application startup or in CLI scripts.
  • CPU Intensive Tasks: Offload CPU-intensive work (image processing, heavy cryptography, massive JSON parsing) to worker_threads or external processes.

3. Child Processes

  • exec vs spawn: Avoid child_process.exec() for any dynamic input, as it executes in a shell and is vulnerable to command injection. Use child_process.spawn() or execFile() which bypass the shell and pass arguments directly.
import { spawn } from 'node:child_process'

// Safe: arguments are passed as an array
const child = spawn('ls', ['-lh', '/usr'])

4. Modern APIs

  • Native Fetch: Use the native fetch API (Node 18+) instead of third-party libraries like axios or node-fetch unless specific interceptor functionality is required.
  • Prefixes: Always use the node: prefix when importing core modules (e.g., import fs from 'node:fs'). This explicitly bypasses node_modules lookup and improves security.

Read the full file on GitHub · 47 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. 6d ago First seen · 47 lines · 55 tokens per session scan A ccd67695c7db

Subscribe to this mod's changes

nodejs is a skill published in the GitHub repository neverinfamous/memory-journal-mcp (20 stars, last pushed 1mo ago), licensed MIT. It adds 55 tokens to every session and 512 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 1 finding (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

api-designer

Designs RESTful APIs with endpoint naming, versioning strategies (URL path, header-based), pagination (offset and cursor), error response schemas, and OpenAPI conventions. Use when the user asks about REST API design, creating endpoints, URL structure, API versioning, status codes, Swagger, or OpenAPI specs.

nguyenthienthanh/aura-frog · 68 tokens

framework-expert

Unified framework expertise bundle. Lazy-loads relevant framework patterns (React, Vue, Angular, Next.js, Node.js, Python, Laravel, Go, Flutter, React Native, TypeScript) based on detected tech stack.

nguyenthienthanh/aura-frog · 48 tokens

migration-helper

Guide safe database and code migrations with zero-downtime strategies.

nguyenthienthanh/aura-frog · 16 tokens

scalable-thinking

Design for scale while keeping implementation simple (KISS).

nguyenthienthanh/aura-frog · 15 tokens

decile-hub-connector

How augment-it (and any Lossless VC-client workspace) talks to the Decile Hub API — the first per-client custom connector. Use whenever pulling from or pushing to Decile Hub (people, organizations, pipeline prospects, deal shares, deal memos, funds/entities, portfolio companies, capital accounts, notes, tasks, files…

lossless-group/lossless-agent-skills · 239 tokens

api-design

Design or review an HTTP/REST/GraphQL API for versioning, pagination, error shapes, idempotency, auth, status codes, cache headers, and breaking-change management. Use when asked to "design an API", "shape the endpoints", "design the schema", "add a new endpoint", "review this API", or when building/modifying a public…

open-gsd/gsd-pi · 91 tokens