debugging-nodejs-apps

debugging-nodejs-apps is a skill for Claude Code, Codex from Smirnov-Labs/claude-skills. It costs 71 tokens per session (3,342 once invoked), scanned C, original, MIT.

A systematic troubleshooting guide for Node.js applications, which run JavaScript outside a web browser. It covers startup failures, package and dependency errors, runtime problems, connection issues, logs, and checking basic assumptions.

In plain words
What is it for?
Use it to investigate service startup errors, npm or dependency failures, runtime exceptions, and connection problems by capturing errors, checking versions and configuration, and verifying each fix.
Why use it?
It helps avoid repeatedly trying similar fixes or changing several things without knowing what solved the problem. The workflow encourages checking one assumption and one change at a time.

Skill for Claude CodeCodex

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

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is node src/index.js 2>&1 | tee error.log.

Good fit Use it to investigate service startup errors, npm or dependency failures, runtime exceptions, and connection problems by capturing errors, checking versions and configuration, and verifying each fix.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/Smirnov-Labs/claude-skills
agentmods
npx agentmods add skills/smirnov-labs/claude-skills/debugging-nodejs-apps

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 debugging-nodejs-apps

README.md
[![agentmods](https://agentmods.dev/badge/skills/smirnov-labs/claude-skills/debugging-nodejs-apps/github.svg)](https://agentmods.dev/skills/smirnov-labs/claude-skills/debugging-nodejs-apps)
Your own site
<a href="https://agentmods.dev/skills/smirnov-labs/claude-skills/debugging-nodejs-apps"><img src="https://agentmods.dev/badge/skills/smirnov-labs/claude-skills/debugging-nodejs-apps/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 debugging-nodejs-apps

Your own site · 80×15
<a href="https://agentmods.dev/skills/smirnov-labs/claude-skills/debugging-nodejs-apps"><img src="https://agentmods.dev/badge/skills/smirnov-labs/claude-skills/debugging-nodejs-apps.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 71 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,342 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 2 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.00071 $0.03342
Opus 5.5 $0.00028 $0.01337
Sonnet 5.5 $0.00014 $0.00668
Haiku 4.5 $0.00007 $0.00334

Measured 5d ago against content hash 33f2d374aff1, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade C, and why

debugging-nodejs-apps scanned grade C with 2 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 5d ago.

The scan reads SKILL.md. This mod also ships 3 executable files (test-scripts/test-database-connection.js, test-scripts/test-environment.js, test-scripts/test-minimal-server.js), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

rm -rf node_modules package-lock.json

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl http://localhost:3000/health || curl http://localhost:3000/
skills/debugging-nodejs-apps/SKILL.md · 540 lines

How it starts

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

Node.js Application Debugging Expert

Systematically debug Node.js applications using methodical investigation, avoiding local minimums through structured problem-solving approaches.

Core Philosophy: Escape Local Minimums

When debugging Node.js apps, it's easy to get stuck trying the same approaches repeatedly. This skill provides systematic workflows to break out of those loops.

Red Flags You're in a Local Minimum:

  • Trying the same fix repeatedly with slight variations
  • Not validating basic assumptions (e.g., "is the service actually running?")
  • Skipping verification steps
  • Making multiple changes without testing each one
  • Not checking logs systematically

How to Escape:

  1. Stop and reset
  2. Start from first principles
  3. Validate every assumption
  4. Test one thing at a time
  5. Document what you've tried

Systematic Debugging Workflow

Phase 1: Initial Triage

Before making any changes, gather complete context:

  1. Capture the Full Error

    # Run the service and capture ALL output
    npm start 2>&1 | tee service-error.log
    # OR
    node src/index.js 2>&1 | tee error.log
    
  2. Check Basic Assumptions

    # Node version
    node --version
    
    # Verify package.json exists
    cat package.json
    
    # Check if dependencies are installed
    ls -la node_modules/ | head -20
    
    # Verify the entry point exists
    ls -la src/index.js  # or whatever the main file is
    
  3. Understand the Stack

    • What framework? (Express, Fastify, Koa, vanilla Node)
    • What dependencies are critical?
    • Any environment variables required?
    • Database connections needed?

Phase 2: Systematic Investigation

Work through these steps in order, validating each before moving to the next:

Step 1: Validate Dependencies
# Check for missing dependencies
npm ls 2>&1 | grep -i "missing\|error"

# Fresh install if suspicious
rm -rf node_modules package-lock.json
npm install

# Check for peer dependency issues
npm ls --all 2>&1 | grep -i "unmet"

Read the full file on GitHub · 540 lines

Files

What ships with it

7 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 5d ago First seen · 540 lines · 71 tokens per session scan C 33f2d374aff1

Subscribe to this mod's changes

debugging-nodejs-apps is a skill published in the GitHub repository Smirnov-Labs/claude-skills (6 stars, last pushed 2d ago), licensed MIT. It adds 71 tokens to every session and 3,342 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it C with 2 findings (recursive force delete, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-17.

Related

Other skills, from other repositories

dotnet-reverse

A guide for analyzing compiled .NET and C# programs, including managed Windows executables and libraries. Reverse engineering means studying compiled software to understand how it works, and decompiling turns it back into readable approximate source code.

zhaoxuya520/reverse-skill · 144 tokens

dart-run-static-analysis

Execute dart analyze to identify warnings and errors, and use dart fix --apply to automatically resolve mechanical lint issues. Use during development to ensure code quality and before committing changes.

flutter/agent-plugins · 43 tokens

agents-sdk-dotnet-debugging

Use when troubleshooting an agent built with the Microsoft Agents SDK (Microsoft.Agents.Hosting.AspNetCore and related packages) in C# / .NET. Trigger on any of these symptoms: build or C# compile errors, crashes on startup, 401 or auth errors on incoming requests, the bot not responding to messages, appsettings.json…

microsoft/Agents · 136 tokens

memory-optimization

Optimize Python code for reduced memory usage and improved memory efficiency. Use when asked to reduce memory footprint, fix memory leaks, optimize data structures for memory, handle large datasets efficiently, or diagnose memory issues. Covers object sizing, generator patterns, efficient data structures, and memory…

benchflow-ai/skillsbench · 60 tokens

prismer-python-debugpy

Debug Python: pdb REPL + debugpy remote (DAP).

Prismer-AI/PrismerCloud · 19 tokens

golang-error-handling

Idiomatic Golang error handling — creation, wrapping with %w, errors.Is/As, errors.Join, custom error types, sentinel errors, panic/recover, the single handling rule, structured logging with slog, HTTP request logging middleware, and samber/oops for production errors. Built to make logs usable at scale with log…

samber/cc-skills-golang · 144 tokens