# nodejs

A reference skill that makes the agent follow your project's own Node.js or Bun backend conventions instead of generic defaults.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 163 installs · ★ 5 repo stars
- Author: ulpi-io
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/ulpi-io/skills/tree/HEAD/nodejs/SKILL.md
- Updated: 2026-08-31
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/nodejs

## What it does

The skill behaves like a dispatcher. It opens `references/stack.md` before touching any code and pins down the runtime, the framework, the ORM, the test runner and the package manager already in use. Spot `bun.lockb` or `bunfig.toml` in the repo and it treats the runtime as Bun, pulling the Bun-specific notes too.

After that it loads only what the current job needs. A routing table points to files on HTTP servers, API design, Zod validation, database access, auth, typed errors, pino logging, testing, BullMQ queues, caching, Docker, WebSockets, CLI tooling and observability. A fixed rule set stays active throughout: strict TypeScript with no `any`, validation on every external input, no `console.log` in production paths, a clean exit on SIGTERM and SIGINT.

Frontend-only work is out of scope, and so is anything where a framework owns the surface. Next.js, NestJS and Laravel each have their own skill. What is left is the framework-agnostic backend, so a Laravel repo will get advice that misses. The skill calls Bash, Read, Write, Edit and Grep.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add ulpi-io/skills --skill nodejs -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/nodejs/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/nodejs/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add ulpi-io/skills --skill nodejs -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/nodejs/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add ulpi-io/skills --skill nodejs -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/nodejs/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install ulpi-io/skills nodejs
```

2. **Manually: put the files in place**
- File: `.github/skills/nodejs/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add ulpi-io/skills --skill nodejs -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/ulpi-io/skills --path nodejs
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/nodejs/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add ulpi-io/skills --skill nodejs -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/ulpi-io/skills/tree/HEAD/nodejs/SKILL.md

## When to use it
- add an HTTP endpoint that matches the existing server layout
- validate request bodies and env vars with Zod
- wire pino request logs with correlation ids
- drain connections on SIGTERM before exit
- build a multi-stage Docker image for the service

## Example prompts
- Add a `POST /orders` endpoint with a Zod schema and our error format.
- Track down the unhandled promise rejection in the worker and fix it.
- Set up a BullMQ queue with retries and a dead-letter list.

## Similar
- [nodejs-development](https://affpapa.org/en/nevibecode/skills/nodejs-development.md) — skill · 800 installs
- [nodejs-backend](https://affpapa.org/en/nevibecode/skills/bobmatnyc-nodejs-backend.md) — skill · 307 installs
- [backend-dev-guidelines](https://affpapa.org/en/nevibecode/skills/backend-dev-guidelines.md) — skill · 1800 installs
- [feature-flags-nodejs](https://affpapa.org/en/nevibecode/skills/feature-flags-nodejs.md) — skill · 113 installs
- [nodejs-expert](https://affpapa.org/en/nevibecode/skills/nodejs-expert.md) — skill · 216 installs
- [fastify-best-practices](https://affpapa.org/en/nevibecode/skills/fastify-best-practices.md) — skill · 100800 installs

From the same set: [ulpi-io/skills](https://affpapa.org/en/nevibecode/by/ulpi-io/skills.md) — 49 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
