Skip to content
vudovn avatar

Nodejs Best Practices

Decision-driven guidance for Node.js backends covering framework choice, async patterns, validation, and security.

CCM score
46 of 100
skills.sh installs
235
GitHub stars
8.2K
last updated
Jun 3, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers framework selection among Hono, Fastify, NestJS, Express, and Next.js API routes, with a decision tree and comparison table
  • Includes principles for runtime and module choice, layered architecture, centralized error handling, and HTTP status selection
  • Enforces validation at every boundary, parameterized queries, verified JWT signatures, and secrets held only in environment variables
  • Designed for backend work where the stack is open and the agent should ask about preferences before choosing

Install

$ npx -y skills add vudovn/ag-kit --skill nodejs-best-practices -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Node.js Best Practices

Principles and decision-making for modern Node.js development. Learn to THINK, not memorize code patterns.


⚠️ How to Use This Skill

This skill teaches decision-making principles, not fixed code to copy.

  • ASK user for preferences when unclear
  • Choose framework/pattern based on CONTEXT
  • Don't default to same solution every time

1. Framework Selection

Decision Tree

What are you building?
│
├── Edge/Serverless (Cloudflare, Vercel)
│   └── Hono (zero-dependency, ultra-fast cold starts)
│
├── High Performance API
│   └── Fastify (~5x req/sec of Express in Fastify's own hello-world benchmark; benchmark your own workload)
│
├── Enterprise/Team familiarity
│   └── NestJS (structured, DI, decorators)
│
├── Legacy/Stable/Maximum ecosystem
│   └── Express (mature, most middleware)
│
└── Full-stack with frontend
    └── Next.js API Routes or tRPC

Comparison Principles

Details

Repository
github.com/vudovn/ag-kit
Categories
Backend & APIs, Security
First seen
Jun 3, 2026

Questions

What does the nodejs-best-practices skill do?

nodejs-best-practices teaches decision-making principles for Node.js development, covering framework selection, async patterns, security, and architecture. It guides the agent to choose a framework such as Express, Fastify, NestJS, or Hono based on context rather than copying fixed code.

How do I install the nodejs-best-practices skill?

Run npx -y skills add vudovn/ag-kit --skill nodejs-best-practices -y in your project. Once installed, nodejs-best-practices lets the agent apply Node.js backend principles while you build APIs.

Which Node.js topics does nodejs-best-practices cover?

nodejs-best-practices covers framework choice, native TypeScript and module systems, layered backend architecture, centralized error handling with HTTP status codes, async and event loop patterns, and input validation. It also includes a security checklist and testing strategy for Node.js backends.

Who should use nodejs-best-practices?

nodejs-best-practices suits developers building Node.js backends who want the agent to weigh trade-offs before picking Express, Fastify, NestJS, or Hono. It fits teams deciding on structure, validation, and security for an API.

More from vudovn/ag-kit

All 30

Similar to Nodejs Best Practices

More Backend & APIs