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

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/andresquirogadev/skillsense/nodejs
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.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.svg" alt="Measured on agentmods" 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. 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 $0.00000 $0.00540
Opus 5 $0.00000 $0.00270
Sonnet 5 $0.00000 $0.00108
Haiku 4.5 $0.00000 $0.00054

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

paseo-plugin

Build and manage trusted local Paseo plugins. Use when the user asks to create, edit, install, reload, enable, disable, remove, or troubleshoot a Paseo plugin; add a native surface, sidebar item, or workspace panel; add Command Center items or slash commands; add composer pills or attachment sources; transform…

getpaseo/paseo · 95 tokens

paseo

Paseo reference for managing projects, workspaces, workspace scripts, agents, schedules, and heartbeats.

getpaseo/paseo · 26 tokens

paseo-help

Answer questions about the Paseo product and app, including setup, configuration, connectivity, providers, workspaces, updates, logs, and troubleshooting. Use when a user inside Paseo asks how Paseo works, how to configure it, or why something is broken; use the paseo skill instead to operate agents and workspaces…

getpaseo/paseo · 75 tokens

paseo-advisor

Spin up a single agent as an advisor — second opinion on the current task. Use when the user says "advisor", "second opinion", "what does X think", or wants an outside take without delegating the work itself.

getpaseo/paseo · 52 tokens

paseo-handoff

Hand off the current task to another agent with full context. Use when the user says "handoff", "hand off", "hand this to", or wants to pass work to another agent.

getpaseo/paseo · 45 tokens

paseo-committee

Form a committee of two high-reasoning agents to step back, do root cause analysis, and produce a plan. Use when stuck, looping, tunnel-visioning, or facing a hard planning problem.

getpaseo/paseo · 48 tokens