nodejs-best-practices
Installation
SKILL.md
Node.js Best Practices β Node 22+ Production Mastery
Mandatory Pre-Flight Context Inspection
Before reading, generating, or refactoring code in the nodejs-best-practices domain, inspect these 5 critical parameters:
- System Boundaries & Dependencies: Verify that all required dependencies exist in target package manifests and environment paths.
- Runtime Context & Platform Invariants: Confirm target platform constraints (Node.js, Browser, Mobile OS, Edge runtime) before applying APIs.
- Execution Guardrails: Identify potential side-effects, state mutations, and unhandled asynchronous exceptions.
- Validation & Type Contracts: Validate input data schemas and strict type constraints across all module interfaces.
- Observability & Proof of Execution: Ensure execution produces tangible verification signals (terminal output, tests, metrics).
Activation Boundaries
- Activate when: Use when designing, implementing, auditing, and hardening nodejs best practices server logic, APIs, background jobs, and error boundaries.
- DO NOT activate when: The task falls outside the
nodejs-best-practicesdomain or is managed by a different dedicated specialist agent.