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.

A guide for diagnosing runtime failures in Node.js and Bun, JavaScript runtimes used to run server-side programs. It focuses on stack traces, asynchronous errors, startup crashes, port conflicts, and memory leaks.

In plain words
What is it for?
Use it to investigate unhandled promise rejections, missing files, occupied ports, unreachable services, and other Node.js or Bun runtime problems.
Why use it?
It helps trace failures back to the first relevant part of your own code and handle errors that otherwise disappear or surface in confusing ways.

Skill for Claude CodeCodex

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

Good fit Use it to investigate unhandled promise rejections, missing files, occupied ports, unreachable services, and other Node.js or Bun runtime problems.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/amariahak/atlarix-skills/debug-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 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/github.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/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 Debugger

Your own site · 80×15
<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="Reviewed on agentmods" width="80" 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. 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.00004 $0.00834
Opus 5.5 $0.00002 $0.00334
Sonnet 5.5 $0.00001 $0.00167
Haiku 4.5 $0.00000 $0.00083

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

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. 1mo ago 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 1mo ago), licensed Apache-2.0. It adds 4 tokens to every session and 834 once invoked, about $0.0000 per session on Opus 5.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

ros2-troubleshooting

Diagnose ROS 2 Jazzy faults that reading the code cannot settle: QoS mismatch, sensor-mount and frame errors (REP 103/105), and odometry calibrated against CAD instead of the floor. Ships four runnable pass/fail checks.

Leehyunbin0131/claude-ros2-skills · 57 tokens

dejavu

Protocol for working with the dejavu error-gate plugin. Use when a tool call is answered with a "[dejavu] REMINDER" or "[dejavu] BLOCKED" message, when the same tool call fails repeatedly, or when you discover the root cause of a gated failure. Covers how to react to reminders, what BLOCKED means, the dejavu:proceed…

WhiteBite/opencode-dejavu · 99 tokens

eide

A build tool for EIDE projects, an embedded-development extension for Visual Studio Code. It finds EIDE project settings and builds firmware using ARM CC or GCC.

zhinkgit/embeddedskills · 151 tokens

net

A toolkit for diagnosing network connections and traffic in embedded systems. A packet capture is a recorded sample of network traffic, and this tool can create or analyze captures in formats such as pcap and pcapng.

zhinkgit/embeddedskills · 234 tokens

probe-rs

A command-line tool wrapper for probe-rs, which connects a computer to a microcontroller through a hardware debug probe. It supports common firmware programming and debugging operations over SWD or JTAG.

zhinkgit/embeddedskills · 182 tokens

terminal

An interactive terminal session that keeps a live connection to a local shell, an SSH remote computer, or a serial device. It lets you send commands and read the next output while preserving the session’s login, menu, or program state.

zhinkgit/embeddedskills · 105 tokens