/backend-nodejs:nodejs-codingfrom backend-nodejs
Use when writing or reviewing Node.js and TypeScript backend code — enforces idiomatic patterns including strict TypeScript, async/await error handling, ESM modules, type-safe patterns, and Node.js best practices
Ships in backend-nodejs. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
"strict": true always — no exceptions"noUncheckedIndexedAccess": true for array safety"exactOptionalPropertyTypes": true to distinguish undefined from missingES2022 minimum, module: NodeNext| Element | Convention | Example |
|---|---|---|
| File | kebab-case | order-service.ts, create-order.handler.ts |
| Class | PascalCase | OrderService, CreateOrderHandler |
| Interface/Type | PascalCase | OrderResponse, CreateOrderInput |
| Function | camelCase | createOrder, findById |
| Constant | UPPER_SNAKE or camelCase | MAX_RETRIES, defaultConfig |
| Enum | PascalCase members | OrderStatus.Pending |
// Good — explicit error handling
async function createOrder(input: CreateOrderInput): Promise<Result<Order>> {
try {
const order = Order.create(input);
await repository.save(order);
return Result.ok(order);
} catch (error) {
if (error instanceof ValidationError) {
return Result.fail(error.message);
}
throw error; // re-throw unexpected errors
}
}
// Bad — unhandled promise
function createOrder(input: CreateOrderInput) {
repository.save(Order.create(input)); // floating promise!
}
await promises — never leave floating promisesPromise.all() for parallel operations, Promise.allSettled() when partial failures are OKAppError → ValidationError, NotFoundError, AuthorizationErrornew NotFoundError(\Order ${id} not found`)`cause for error chaining: new AppError("failed", { cause: originalError })interface for object shapes, type for unions/intersectionsunknown over any — always narrow before useas) — use type guards instead// Discriminated union
type OrderResult =
| { status: "success"; order: Order }
| { status: "validation_error"; errors: string[] }
| { status: "not_found" };
import/export) — never CommonJS (require).js extension in imports (TypeScript resolves .ts → .js)index.ts) only at module boundaries, not withinWhat SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub gagandeepp/software-agent-teams --plugin backend-nodejs4 skills in this plugin
/nodejs-frameworksUse when implementing Node.js HTTP services — enforces patterns for NestJS modules and controllers, Express middleware chains, Fastify plugins, request validation with Zod, and response formatting/nodejs-project-structureUse when scaffolding or reviewing Node.js project layout — NestJS module structure, Express project layout, monorepo with workspaces, ESM configuration, and tsconfig conventions/nodejs-testingUse when writing tests for Node.js and TypeScript code — Jest or Vitest with supertest for HTTP testing, proper mocking patterns, and async test conventions