nodejs

Guide production Node.js 24 backend services with runtime, security, and observability defaults.

15|2|Updated May 23, 2026
One-click install
npx skills add https://github.com/VKirill/antigravity-for-claude-code --skill nodejs-vkirill
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nodejs
Source: https://github.com/VKirill/antigravity-for-claude-code/tree/main/skills/nodejs
Command: npx skills add https://github.com/VKirill/antigravity-for-claude-code --skill nodejs-vkirill

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires clinic, autocannon, nc, and includes references (resource) and scripts (resource) components.

What problem does it solve?

This skill helps you build and debug production Node.js 24 backends reliably, safely, and observably without relying on ad-hoc snippets or framework-by-framework guesswork.

Core Features & Use Cases

  • Production Node.js 24 patterns: type-stripping workflows, ESM-first module guidance, and Node-native APIs (fetch, AbortSignal, AsyncLocalStorage, worker_threads).
  • High-stakes operational reliability: graceful shutdown for SIGTERM/SIGINT, deterministic error handling, and guardrails for crash loops and silent failures.
  • Security + observability by default: Helmet/CORS/rate limiting, argon2id + secure comparisons, Pino redaction, and OpenTelemetry integration.
  • Common debugging & troubleshooting: event loop stalls, memory leaks with heap dumps, node:test CI failures, ESM/CJS interop issues, and worker/Piscina OOM patterns.

Quick Start

Use this skill to harden a Node.js 24 Express 5 backend for production by running Node.js with type stripping defaults, wiring Pino + OpenTelemetry, applying secure error handling, and implementing a SIGTERM-safe shutdown plan.

Frequently Asked Questions about nodejs

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement graceful shutdown in Node.js 24 to handle SIGTERM safely?

Graceful shutdown in Node.js 24 requires tracking active connections using AsyncLocalStorage and closing the HTTP server before exiting to ensure no requests are dropped during a SIGTERM signal. This skill provides templates for deterministic shutdown plans that prevent data loss and avoid deadman timer crashes during deployments.

How do I debug memory leaks and event loop stalls in a Node.js backend?

Debugging memory leaks and event loop stalls in a Node.js backend involves analyzing heap dumps to find retained objects and using clinic to profile asynchronous operations. This skill guides you through isolating worker_threads or Piscina OOM patterns and diagnosing silent failures.

What is the best way to secure an Express 5 backend in production?

Securing an Express 5 backend in production requires applying Helmet, strict CORS, and rate limiting, alongside using argon2id for password hashing and secure comparisons. This skill enforces critical constraints like preventing secrets logging and implementing safe error handling by default.

Does Node.js 24 type-stripping work natively with ESM-first module systems?

Type-stripping in Node.js 24 works natively with ESM-first module systems, allowing you to run TypeScript files directly without a separate compilation step. This skill outlines the operational defaults and ESM/CJS interop guardrails needed for production reliability.

How do I integrate OpenTelemetry and Pino for observability in Fastify or Hono?

Integrating OpenTelemetry and Pino for observability in Fastify or Hono involves configuring Pino for structured logging with redaction and wiring OpenTelemetry traces across async primitives. This skill provides reference files to implement consistent observability across Node.js frameworks.

When should I use worker_threads or PM2 cluster for scaling Node.js services?

Use worker_threads or Piscina for CPU-intensive tasks within an event loop, and PM2 cluster for scaling across multiple CPU cores horizontally. This skill helps route your architecture based on framework constraints and reliability issues like crash loops.