Node.js Debugger

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

Use this skill when debugging runtime failures in Node.js or Bun: stack traces, async errors, startup crashes, port conflicts, and memory leaks.

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/amariahak/atlarix-skills/debug-nodejs
Any agent
npx skills add AmariahAK/atlarix-skills --skill debug-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 Debugger

README.md
[![agentmods](https://agentmods.dev/badge/skills/amariahak/atlarix-skills/debug-nodejs.svg)](https://agentmods.dev/skills/amariahak/atlarix-skills/debug-nodejs)
Your own site
<a href="https://agentmods.dev/skills/amariahak/atlarix-skills/debug-nodejs"><img src="https://agentmods.dev/badge/skills/amariahak/atlarix-skills/debug-nodejs.svg" alt="Measured on agentmods" height="20"></a>
Per session 4 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 834 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin unknown 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.00004 $0.00834
Opus 5 $0.00002 $0.00417
Sonnet 5 $0.00001 $0.00167
Haiku 4.5 $0.00000 $0.00083

Measured today against content hash cd8c02cc041f, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

Node.js Debugger 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 today.

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/debug-nodejs/SKILL.md · 116 lines

How it starts

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

Node.js Debugger (Node + Bun)

When to use this skill

Use this skill when debugging runtime failures in Node.js or Bun: stack traces, async errors, startup crashes, port conflicts, and memory leaks.

Core patterns

Reading stack traces (find the first app frame)

Rule: the top frames are often internal wrappers. Find the first frame in your project path.

Checklist:

  • identify the thrown error type/message
  • find the earliest application frame
  • trace inputs to that frame (request payload, file path, env var)

Unhandled promise rejections

Common causes:

  • forgetting await
  • Promise.all where one rejects and the rejection isn’t handled upstream

Fix patterns:

  • always await async calls in request handlers
  • add top-level process.on("unhandledRejection") logging in services (carefully)

Async error propagation

Prefer explicit boundaries:

  • validate input early
  • catch and wrap errors at module boundaries (DB, HTTP, FS)

Common error codes

  • ENOENT: missing file → check path + cwd + packaging
  • EADDRINUSE: port in use → pick a new port or kill existing process
  • ECONNREFUSED: service not reachable → check host/port, local service running
  • MODULE_NOT_FOUND: missing dependency/build output → reinstall or rebuild

Memory leak patterns

Frequent culprits:

  • event listener leaks (never removed)
  • global caches that grow unbounded
  • retaining large objects in closures

Fix patterns:

  • add caps/TTL to caches
  • remove listeners on teardown
  • avoid caching per-request data globally

Debugger usage (--inspect)

When reproduction is hard, use a debugger:

  • start with --inspect or --inspect-brk
  • set breakpoints at boundary code
  • inspect inputs and invariants

Structured logging over console spam

Prefer:

  • consistent log keys
  • request IDs / correlation IDs
  • log errors with context

Example (structured):

logger.error("db.connect_failed", { host, port, cause: String(err) });

Reproduction discipline

Before changing code:

  • reduce to the smallest failing command
  • capture exact inputs (env vars, args, payload)
  • confirm the failure is still present after restarting the process

Read the full file on GitHub · 116 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. today First seen · 116 lines · 4 tokens per session scan A cd8c02cc041f

Subscribe to this mod's changes

Node.js Debugger is a skill published in the GitHub repository AmariahAK/atlarix-skills (2 stars, last pushed 4d ago), licensed Apache-2.0. It adds 4 tokens to every session and 834 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

implementing-jsc-classes-cpp

Implements JavaScript classes in C++ using JavaScriptCore. Use when creating new JS classes with C++ bindings, prototypes, or constructors.

oven-sh/bun · 38 tokens

slowest-tests

Find the top-N slowest test files in CI from a recent BuildKite run, optionally posting the results to a Slack channel as a formatted table. Use when asked to find slow CI tests, "what's making CI slow", or to post a slow-test report to Slack.

oven-sh/bun · 61 tokens

lemmalog

Externalize working memory and logical state into the lemmalog Datalog engine (MCP). Use for ANY multi-step task where state should outlive one context window or span agents: long investigations, debugging sessions, audits, multi-agent searches, systematic explorations, planning with many interdependent constraints…

JordyZomer/lemmalog · 105 tokens

release

Autonomously cut a Rove (@sma1lboy/rove) release end-to-end — detect the semver bump from pending changesets (flagging an upstream minor you didn't intend), run the release gates, bump/tag/push via scripts/release.sh, then poll the GitHub Actions Release workflow with gh until npm publish completes, diagnosing CI…

Sma1lboy/rove · 155 tokens

hyperframes-cli

HyperFrames CLI dev loop. Use when running npx hyperframes init, add, catalog, capture, lint, validate, inspect, layout, snapshot, preview, play, render, publish, lambda, doctor, browser, info, upgrade, skills, compositions, docs, benchmark, telemetry, transcribe, or remove-background, or when troubleshooting the…

Sma1lboy/rove · 101 tokens

changelog-generator

Draft Rove release notes as Changesets. Writes user-facing entries as .changeset/.md files for @sma1lboy/rove (consumed into packages/kobe/CHANGELOG.md at release time). Use when the user asks for "changelog", "release notes", "what changed", "add a changeset", or before cutting a version. Enforces Rove's no-soft-wrap…

Sma1lboy/rove · 101 tokens