node-backend

node-backend is a skill for Claude Code, Codex from WrongStack/WrongStack. It costs 82 tokens per session (2,414 once invoked), scanned A, original, MIT.

A guide for building and upgrading Node.js HTTP services, which are server programs that receive requests and return responses.

In plain words
What is it for?
It is for Hono, Fastify, NestJS, and similar Node servers, including endpoints, authentication, output validation, external calls, readiness, and graceful shutdown.
Why use it?
It helps prevent invalid input, accidental data exposure, unsafe resource use, confused request context, and incomplete startup or shutdown handling.

Skill for Claude CodeCodex

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

Good fit It is for Hono, Fastify, NestJS, and similar Node servers, including endpoints, authentication, output validation, external calls, readiness, and graceful shutdown.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/wrongstack/wrongstack/node-backend
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 WrongStack/WrongStack --skill node-backend
Clone the repo
git clone --depth 1 https://github.com/WrongStack/WrongStack

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-backend

README.md
[![agentmods](https://agentmods.dev/badge/skills/wrongstack/wrongstack/node-backend/github.svg)](https://agentmods.dev/skills/wrongstack/wrongstack/node-backend)
Your own site
<a href="https://agentmods.dev/skills/wrongstack/wrongstack/node-backend"><img src="https://agentmods.dev/badge/skills/wrongstack/wrongstack/node-backend/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-backend

Your own site · 80×15
<a href="https://agentmods.dev/skills/wrongstack/wrongstack/node-backend"><img src="https://agentmods.dev/badge/skills/wrongstack/wrongstack/node-backend.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 82 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,414 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00082 $0.02414
Opus 5.5 $0.00033 $0.00966
Sonnet 5.5 $0.00016 $0.00483
Haiku 4.5 $0.00008 $0.00241

Measured 1mo ago against content hash d0967d4b929d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

node-backend 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 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.

Makes network callslowCapability

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

2. Every outbound call has a deadline (`fetch(url, { signal: AbortSignal.timeout(ms) })` or client timeouts; undici's defaults are minutes long), and every response body is consumed or cancelled, or the socket stays chec
packages/core/skills/node-backend/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 Backend

Selection card

  • Task: Implement or repair Node HTTP endpoints, middleware and server lifecycle in the project's framework.
  • Start: Read package.json (engines, scripts, framework version, type), the lockfile, the server entrypoint and the route being changed.
  • Finish: typecheck, lint and tests pass, the built server starts, the changed route answers valid and invalid input correctly, and SIGTERM drains in-flight work.

Overview

Node services fail at their edges: unvalidated bodies, outbound calls without deadlines, keep-alive timeouts shorter than the load balancer's, and shutdowns that drop in-flight requests. Checked 2026-11-02: Hono 4.13.16, Fastify 5.12.8 and NestJS 12.3.2. Latest stable Node target is 26.13.0 (LTS 26.13.0); verify framework/plugins/adapter requirements together. Current Node can run TypeScript by stripping types, but only erasable syntax: enums, namespaces and parameter properties still need a build step.

Rules

  1. Validate every input with the framework's schema mechanism (Fastify JSON Schema or a type provider, Hono validator middleware, Nest ValidationPipe with whitelist: true, forbidNonWhitelisted: true) and serialize output through a response schema or DTO; never return ORM rows.
  2. Every outbound call has a deadline (fetch(url, { signal: AbortSignal.timeout(ms) }) or client timeouts; undici's defaults are minutes long), and every response body is consumed or cancelled, or the socket stays checked out.
  3. Shutdown order on SIGTERM: fail readiness, stop accepting (server.close(), fastify.close(), app.close()), wait for in-flight requests with a deadline, stop consumers, then close DB and Redis. Nest lifecycle hooks only fire on signals after app.enableShutdownHooks().
  4. Set server.keepAliveTimeout above the load balancer's idle timeout and headersTimeout above that; otherwise the balancer reuses sockets Node already closed and returns intermittent 502s.
  5. Keep the event loop free: no sync crypto, compression, fs or giant JSON.parse in handlers, no unbounded regex on user input. Bound body size (Fastify bodyLimit defaults to 1 MiB; Express and Hono need explicit limits).
  6. Per-request identity lives in the framework's request context (Fastify request, Hono c.var, Nest guards or AsyncLocalStorage), never in module-level variables; authorize the object, not just the route.
  7. No floating promises in handlers: await or explicitly track them. An unhandled rejection terminates the process by default.
  8. Keep the framework, module system (ESM or CJS) and package manager. A framework or Node major is its own change.

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 Changed · +46 lines · +30 tokens per session d0967d4b929d
  2. 1mo ago Changed · +10 lines 2aea9b5121c1
  3. 1mo ago Changed 7e891d0d7762
  4. 1mo ago First seen · 60 lines · 52 tokens per session scan A e8292ba99cd7

Subscribe to this mod's changes

node-backend is a skill published in the GitHub repository WrongStack/WrongStack (448 stars, last pushed today), licensed MIT. It adds 82 tokens to every session and 2,414 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-10.

Related

node-backend compared with skills from other repositories

node-backend next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
node-backendWrongStack/WrongStackSkill448todayMITA82Claude Code, Codex
latchkeyimbue-ai/latchkeySkill134yesterdayMITA38Claude Code, Codex
api-baas-firebaseagents-inc/skillsSkill281mo agoMITA34Claude Code, Codex
api-cms-payloadagents-inc/skillsSkill281mo agoMITA42Claude Code, Codex
api-database-mysqlagents-inc/skillsSkill281mo agoMITA31Claude Code, Codex
ai-orchestration-vercel-ai-sdkagents-inc/skillsSkill281mo agoMITA38Claude Code, Codex
api-auth-clerkagents-inc/skillsSkill281mo agoMITA29Claude Code, Codex