nodejs

nodejs is a skill for Claude Code, Codex from andresquirogadev/skillsense. It costs 0 tokens per session (540 once invoked), scanned A, original, MIT.

A set of best practices for Node.js, a JavaScript runtime used to build servers, command-line tools, and other applications. It covers modules, built-in libraries, asynchronous work, and cancellation.

In plain words
What is it for?
Use it when writing Node.js application code, imports, file-system operations, cryptographic code, concurrent tasks, or cancellable network operations.
Why use it?
It prevents common portability, dependency, and asynchronous-code problems. It also encourages standard Node.js APIs and safer handling of cryptography and timeouts.

Skill for Claude CodeCodex

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

Good fit Use it when writing Node.js application code, imports, file-system operations, cryptographic code, concurrent tasks, or cancellable network operations.

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

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/andresquirogadev/skillsense/nodejs/github.svg)](https://agentmods.dev/skills/andresquirogadev/skillsense/nodejs)
Your own site
<a href="https://agentmods.dev/skills/andresquirogadev/skillsense/nodejs"><img src="https://agentmods.dev/badge/skills/andresquirogadev/skillsense/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 nodejs

Your own site · 80×15
<a href="https://agentmods.dev/skills/andresquirogadev/skillsense/nodejs"><img src="https://agentmods.dev/badge/skills/andresquirogadev/skillsense/nodejs.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 540 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00000 $0.00540
Opus 5.5 $0.00000 $0.00216
Sonnet 5.5 $0.00000 $0.00108
Haiku 4.5 $0.00000 $0.00054

Measured 1mo ago against content hash 3540a3596d21, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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.

- Use `execa` or `node:child_process`'s `execFile` (not `exec`) to run shell commands safely — never interpolate user input into shell strings.
packages/catalog/skills/nodejs/SKILL.md · 51 lines

How it starts

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

Node.js Skill

You are working on a Node.js project. Apply these best practices.

ES Modules

  • Use "type": "module" in package.json for native ESM.
  • Always include the file extension in relative imports: import { foo } from './foo.js'.
  • Use import.meta.url and fileURLToPath to get __filename / __dirname:
    import { fileURLToPath } from 'node:url';
    import { dirname } from 'node:path';
    const __dirname = dirname(fileURLToPath(import.meta.url));
    

Built-in Modules

  • Prefix built-in imports with node: to distinguish from npm packages: import { readFile } from 'node:fs/promises'.
  • Use node:fs/promises instead of callback-based fs for async file operations.
  • Use node:crypto for hashing and cryptographic operations — never implement crypto manually.
  • Use node:os.homedir() instead of process.env.HOME for the home directory (cross-platform).

Async Patterns

  • Use async/await with try/catch for sequential async operations.
  • Use Promise.all() for concurrent operations; Promise.allSettled() when you need all results regardless of failures.
  • Use AbortController + AbortSignal for cancellable operations and fetch timeouts.

Process & Environment

  • Access env vars via process.env.VAR_NAME ?? 'default' — validate at startup with a schema.
  • Handle process.on('uncaughtException') and process.on('unhandledRejection') for graceful shutdown logging.
  • Use process.exitCode = 1 instead of process.exit(1) when possible to allow drain.

Child Processes

  • Use execa or node:child_process's execFile (not exec) to run shell commands safely — never interpolate user input into shell strings.
  • Stream large outputs with child.stdout.pipe(process.stdout).

Performance

  • Use worker_threads for CPU-intensive work to avoid blocking the event loop.
  • Use stream.pipeline() (not .pipe()) for stream error handling.
  • Profile with --inspect and Chrome DevTools or clinic.js before optimizing.

Read the full file on GitHub · 51 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. 1mo ago First seen · 51 lines · 0 tokens per session scan A 3540a3596d21

Subscribe to this mod's changes

nodejs is a skill published in the GitHub repository andresquirogadev/skillsense (2 stars, last pushed 6mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 540 tokens. 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-31.

Related

Other skills, from other repositories

ralphctl-api-and-interface-design

Interface-design discipline for any surface one piece of code exposes to another — network endpoints, library exports, module boundaries, CLI flags and exit codes, file and message formats. Contract first, one consistent error model, validation at the trust boundary, additive change over breaking change, and every…

lukas-grigis/ralphctl · 100 tokens

codegen

Use for .NET code generation work with Roslyn, Microsoft.OpenApi, Razor templates, DTO/manager/controller generation, REST API generation, C# HttpClient generation, Angular/Axios TypeScript request clients, generated formatting, and deterministic output.

AterDev/Perigon.CLI · 53 tokens

find-skills

Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express interest in extending capabilities. This skill should be used when the user is looking for functionality that might exist as an installable skill.

opensolon/soloncode · 67 tokens

wikipedia

Search and read Wikipedia via x wkp — MediaWiki API, no API key, zero install; query, extract, suggest, and DDG route in one module. Load for wiki, wikipedia, encyclopedia lookup, article summary.

x-cmd/x-cmd · 49 tokens

cve

Look up CVE records via x cve — cached, zero-API-key, daily xz TSV. Load for cve, vulnerability id, kev, epss, nvd, cvelist, or security advisory.

x-cmd/x-cmd · 49 tokens

api-doc-generator

Generate API documentation from source code, supporting REST APIs, GraphQL, and various documentation formats.

JackyST0/awesome-agent-skills · 23 tokens