Node.js Patterns

Node.js Patterns is a skill for Claude Code, Codex from AmariahAK/atlarix-skills. It costs 3 tokens per session (349 once invoked), scanned A, original, Apache-2.0.

A set of coding guidelines for Node.js services and command-line tools. Node.js runs JavaScript outside the browser; these guidelines cover asynchronous work, input checks, logging, dependencies, and graceful shutdown.

In plain words
What is it for?
Use it when writing or reviewing Node.js APIs, services, command-line tools, scripts, and operational code.
Why use it?
It helps prevent hanging network calls, unsafe inputs, leaked secrets, rejected operations, and services that stop without cleaning up.

Skill for Claude CodeCodex

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

Good fit Use it when writing or reviewing Node.js APIs, services, command-line tools, scripts, and operational code.

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

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.js Patterns

README.md
[![agentmods](https://agentmods.dev/badge/skills/amariahak/atlarix-skills/nodejs/github.svg)](https://agentmods.dev/skills/amariahak/atlarix-skills/nodejs)
Your own site
<a href="https://agentmods.dev/skills/amariahak/atlarix-skills/nodejs"><img src="https://agentmods.dev/badge/skills/amariahak/atlarix-skills/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 Node.js Patterns

Your own site · 80×15
<a href="https://agentmods.dev/skills/amariahak/atlarix-skills/nodejs"><img src="https://agentmods.dev/badge/skills/amariahak/atlarix-skills/nodejs.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 3 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 349 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.00003 $0.00349
Opus 5 $0.00002 $0.00175
Sonnet 5 $0.00001 $0.00070
Haiku 4.5 $0.00000 $0.00035

Measured 8d ago against content hash 53f96d8a2840, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

Node.js Patterns 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 8d 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.

skills/nodejs/SKILL.md · 64 lines

What it actually says

Node.js Patterns

When to use this skill

Use this skill when working in Node.js services/CLIs and you want predictable async behavior, safe boundaries, and good operational defaults.

Core patterns

Async all the way

Rules:

  • await IO
  • set timeouts on network calls
  • handle rejection paths explicitly

Boundary validation

Validate:

  • request payloads
  • env vars
  • filesystem paths

Prefer a single validation point over scattered checks.

Structured logging

Prefer:

  • consistent event names
  • correlation IDs
  • avoid logging secrets

Shutdown and cleanup

Services should handle:

  • SIGINT/SIGTERM
  • closing DB pools
  • stopping servers gracefully

Dependency hygiene

  • avoid huge transitive deps for small tasks
  • keep lockfiles committed

Atlarix tool notes

  • Explore: locate package.json scripts, entry points, and config.
  • Build: run the project’s test/lint scripts; keep diffs small.
  • Debug: reproduce errors in terminal; capture complete stack traces.
  • Review: check for missing timeouts and unsafe input handling.

Common mistakes to avoid

  • No timeouts on outbound requests
  • Logging secrets
  • Global mutable state that grows unbounded

Mini-checklist

  • Inputs validated
  • Errors handled
  • Logs structured
  • Shutdown graceful
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. 8d ago First seen · 64 lines · 3 tokens per session scan A 53f96d8a2840

Subscribe to this mod's changes

Node.js Patterns is a skill published in the GitHub repository AmariahAK/atlarix-skills (2 stars, last pushed 5d ago), licensed Apache-2.0. It adds 3 tokens to every session and 349 once invoked, about $0.0000 per session on Opus 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-09-03.

Related

Other skills, from other repositories

bun

Bun all-in-one JavaScript runtime and toolkit reference. Covers runtime APIs (file I/O, HTTP server, SQLite, shell), ultra-fast package manager, built-in bundler with plugins, test runner with mocking, TypeScript support, and Node.js compatibility.

bytesagain/ai-skills · 55 tokens

nestjs-patterns

NestJS architecture patterns for modules, controllers, providers, DTO validation, guards, interceptors, config, and production-grade TypeScript backends.

affaan-m/ECC · 33 tokens

prisma-8

Use when working in a project that depends on @prisma/orm-postgres, @prisma/orm-sqlite, or @prisma/orm-mongo (Prisma 8, formerly Prisma Next): editing contract.prisma or a contract.ts builder, running prisma contract emit, planning or applying migrations, editing migration.ts, writing db.orm / db.sql / db.query…

prisma/orm · 220 tokens

stripe-apps

Use when building, modifying, or reviewing a Stripe App — or when the user describes something that implies one (e.g. "add a panel to the customer page", "customize my Stripe Dashboard", "react to Stripe events from my app", "connect my service to Stripe without sharing API keys"). Covers the full app development…

stripe/ai · 197 tokens

stripe-projects

Use when the user wants to provision infrastructure or third-party services using Stripe Projects. Triggers: "I need a database", "set up auth", "add caching", "give me a Postgres", "provision Redis", "I need hosting", "add a vector DB", "get me an API key for X", "get credentials for X", "sign up for a service", "set…

stripe/ai · 213 tokens

upgrade-stripe

Guide for upgrading Stripe API versions and SDKs.

stripe/ai · 13 tokens