Node.js Core Standards
SkillFiles & storageNode.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 unless the platform/language is explicitly specified.
Available today. Use it from your connected AI after setup.
No other account needed.
Connect ahel once, and every AI you use reads what you have installed.
Then ask your AI: use the Node.js Core Standards skill
What this skill tells your AI
The instructions your AI receives, as published by neverinfamous/memory-journal-mcp in skills/nodejs/SKILL.md and read by ahel’s review.
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 usingfs.readFile. - Pipeline Utility: Always use
stream/promises.pipelineto 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_threadsor 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. Usechild_process.spawn()orexecFile()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
fetchAPI (Node 18+) instead of third-party libraries likeaxiosornode-fetchunless specific interceptor functionality is required. - Prefixes: Always use the
node:prefix when importing core modules (e.g.,import fs from 'node:fs'). This explicitly bypassesnode_moduleslookup and improves security.
Signals
- GitHub stars
- 20
- Forks
- 5
- Last commit
- Jul 2026
Advanced
- Catalog kind
- skill
- Gateway key
nodejs- Source
- github.com/neverinfamous/memory-journal-mcp