skills/dokhacgiakhoa/antigravity-ide/nodejs-best-practices

nodejs-best-practices

SKILL.md

Node.js Best Practices

Principles and decision-making for Node.js development in 2025. 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 (2025)

🧠 Knowledge Modules (Fractal Skills)

1. Decision Tree

2. Comparison Principles

3. Selection Questions to Ask:

4. Native TypeScript

5. Module System Decision

6. Runtime Selection

7. Layered Structure Concept

8. Why This Matters:

9. When to Simplify:

10. Centralized Error Handling

11. Error Response Philosophy

12. Status Code Selection

13. When to Use Each

14. Event Loop Awareness

15. Avoiding Event Loop Blocking

16. Validate at Boundaries

17. Validation Library Selection

18. Validation Philosophy

19. Security Checklist (Not Code)

20. Security Mindset

21. Test Strategy Selection

22. What to Test (Priorities)

23. Built-in Test Runner (Node.js 22+)

24. ❌ DON'T:

25. ✅ DO:

Weekly Installs
5
GitHub Stars
384
First Seen
Feb 10, 2026
Installed on
amp5
gemini-cli5
github-copilot5
codex5
kimi-cli5
opencode5