ia-nodejs-backend

ia-nodejs-backend is a skill for Claude Code from iliaal/whetstone. It costs 70 tokens per session (876 once invoked), scanned A, a copy of nodejs-backend, MIT.

A set of patterns for building server-side applications with Node.js, a platform for running JavaScript outside the browser. It covers web APIs, request validation, errors, security, logging, metrics, and deployment, with TypeScript support.

In plain words
What is it for?
Use it to build REST APIs, server middleware, and tRPC or server-side TypeScript applications with frameworks such as Express, Fastify, Hono, NestJS, Koa, or Bun.
Why use it?
It helps keep HTTP handling, business rules, and database access separate. That makes backend code easier to test, maintain, and operate safely.

Skill for Claude Code

Written for Claude Code: paths in frontmatter.

Part of the whetstone plugin — 32 skills, 22 commands, 19 agents, 1 hook, 1 MCP server shipped together

Good fit Use it to build REST APIs, server middleware, and tRPC or server-side TypeScript applications with frameworks such as Express, Fastify, Hono, NestJS, Koa, or Bun.

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

Made for: Claude Code.

Or install whetstone, the plugin that ships this one along with the rest of its 32 skills, 22 commands, 19 agents, 1 hook, 1 MCP server.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/iliaal/whetstone/ia-nodejs-backend"><img src="https://agentmods.dev/badge/skills/iliaal/whetstone/ia-nodejs-backend.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 70 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 876 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 98% copy Near-identical to another mod 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.00070 $0.00876
Opus 5 $0.00035 $0.00438
Sonnet 5 $0.00014 $0.00175
Haiku 4.5 $0.00007 $0.00088

Measured 2d ago against content hash 34bf8a9c8153, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

ia-nodejs-backend 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 2d 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.

Origin

This is a copy

98% identical to nodejs-backend — 2 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

plugins/whetstone/skills/ia-nodejs-backend/SKILL.md · 84 lines

How it starts

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

Node.js Backend

Verify before implementing: For framework-specific APIs (Express 5, Fastify 5, Node.js 22+ built-ins), look up current docs via Context7 (query-docs) before writing code. Training data may lag current releases.

Working rules

  • Validate request and third-party data before use; keep response serialization and error envelopes explicit.
  • Preserve caller-visible contracts and authorization when adding resilience or fallbacks.
  • Bound concurrency, set timeouts, and avoid blocking production request paths.
  • Verify actual resource identity before parsing or caching a reused client's result.
  • Exercise operational telemetry and failure paths, not successful return codes alone.

Architecture

src/
├── routes/          # HTTP: parse request, call service, format response
├── middleware/       # Auth, validation, rate limiting, logging
├── services/        # Business logic (no HTTP types)
├── repositories/    # Data access only (queries, ORM)
├── config/          # Env, DB pool, constants
└── types/           # Shared TypeScript interfaces
  • Routes never contain business logic
  • Services never import Request/Response
  • Repositories never throw HTTP errors
  • Dependencies point inward only (Clean Architecture rule): routes -> services -> repositories. Never the reverse.
  • For scripts/prototypes: single file is fine -- ask "will this grow?"

TypeScript Rules

  • Use import type { } for type-only imports -- eliminates runtime overhead
  • Prefer interface for object shapes (2-5x faster type resolution than intersections)
  • Prefer unknown over any -- forces explicit narrowing
  • Use z.infer<typeof Schema> as single source of truth -- never duplicate types and schemas
  • Minimize as assertions -- use type guards instead
  • Add explicit return types to exported functions (faster declaration emit)
  • Untyped package? declare module 'pkg' { const v: unknown; export default v; } in types/ambient.d.ts

Discipline

  • Simplicity first -- every change as simple as possible, impact minimal code
  • Only touch what's necessary -- avoid introducing unrelated changes
  • No hacky workarounds -- if a fix feels wrong, step back and implement the clean solution
  • Before adding a new abstraction, verify it appears in 3+ places. If not, inline it.
  • If a fix requires bypassing TypeScript (as any, non-null assertions on untrusted data, // @ts-ignore), treat it as a design smell and find the typed solution

Read the full file on GitHub · 84 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. 2d ago Changed · -57 lines 34bf8a9c8153
  2. 3d ago First seen · 141 lines · 70 tokens per session scan A 9a0b97a6aeb8

Subscribe to this mod's changes

ia-nodejs-backend is a skill published in the GitHub repository iliaal/whetstone (33 stars, last pushed 3d ago), licensed MIT. It adds 70 tokens to every session and 876 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. It is 98% identical to nodejs-backend, differing in 2 lines, and is treated as a copy.