nodejs-best-practices

Guide Node.js framework and runtime decisions with principled reasoning.

Updated May 28, 2026
One-click install
npx skills add https://github.com/7Lemaitre7/xp-prj --skill nodejs-best-practices-7lemaitre7
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nodejs-best-practices
Source: https://github.com/7Lemaitre7/xp-prj/tree/main/.agents/skills/nodejs-best-practices
Command: npx skills add https://github.com/7Lemaitre7/xp-prj --skill nodejs-best-practices-7lemaitre7

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps teams make informed Node.js architectural and framework decisions by focusing on thinking through context rather than copying patterns.

Core Features & Use Cases

  • Framework selection guidance across edge/serverless, high-performance API, enterprise, and full-stack contexts.
  • Runtime and architecture principles to guide structure, layering, and deployment.
  • Error handling, async patterns, validation, and security decision guidance.
  • Use Case: When starting a new Node.js project, apply these principles to pick the right framework and runtime based on deployment targets, team experience, and performance requirements.

Quick Start

Ask for project context (deployment target, performance needs, and team familiarity) and apply the decision framework to select the best Node.js approach.

Frequently Asked Questions about nodejs-best-practices

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I choose a Node.js framework for a new project?

Node.js framework selection depends on your deployment target, performance needs, and team familiarity. Apply principled decision criteria to evaluate Hono, Fastify, or Express rather than copying fixed patterns to ensure the architecture fits your context.

When do I need ES modules in my Node.js runtime architecture?

You need ES modules in your Node.js runtime when modern syntax and tree-shaking matter. Evaluate your Node.js versions and architecture layering requirements to decide if ES modules align with your deployment and performance goals.

What is the best way to handle async patterns and error handling in Node.js?

The best way to handle async patterns and error handling in Node.js is applying principled reasoning to your specific context. Define decision criteria for error handling and async patterns based on your architecture layering and performance tuning requirements.

Does Node.js framework selection differ for edge versus enterprise deployments?

Node.js framework selection differs significantly for edge versus enterprise deployments. Edge and serverless contexts favor lightweight runtimes like Hono, while enterprise and full-stack contexts may require Fastify or Express based on specific decision criteria.

How should I plan Node.js security posture and deployment planning?

Plan your Node.js security posture by applying decision guidance to your architecture choices. Evaluate security alongside framework selection, runtime versions, and deployment planning to ensure your security posture matches your performance and layering requirements.