nodejs-best-practices

nodejs-best-practices is a skill for Claude Code from HigorAlves/orc. It costs 33 tokens per session (588 once invoked), scanned A, a copy of nodejs-best-practices, MIT.

A collection of principles for making Node.js architecture and development decisions, including framework choice, asynchronous code, security, and deployment.

In plain words
What is it for?
Use it when designing a Node.js application, choosing between frameworks, planning asynchronous behavior, or deciding how to handle security and deployment.
Why use it?
It helps developers choose approaches based on the project's needs instead of copying one pattern everywhere or selecting a framework by habit.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the orc plugin — 87 skills, 29 commands, 14 agents, 6 hooks shipped together

Good fit Use it when designing a Node.js application, choosing between frameworks, planning asynchronous behavior, or deciding how to handle security and deployment.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/higoralves/orc/nodejs-best-practices
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add HigorAlves/orc --skill nodejs-best-practices
Clone the repo
git clone --depth 1 https://github.com/HigorAlves/orc

Made for: Claude Code.

Or install orc, the plugin that ships this one along with the rest of its 87 skills, 29 commands, 14 agents, 6 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for nodejs-best-practices

README.md
[![agentmods](https://agentmods.dev/badge/skills/higoralves/orc/nodejs-best-practices/github.svg)](https://agentmods.dev/skills/higoralves/orc/nodejs-best-practices)
Your own site
<a href="https://agentmods.dev/skills/higoralves/orc/nodejs-best-practices"><img src="https://agentmods.dev/badge/skills/higoralves/orc/nodejs-best-practices/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for nodejs-best-practices

Your own site · 80×15
<a href="https://agentmods.dev/skills/higoralves/orc/nodejs-best-practices"><img src="https://agentmods.dev/badge/skills/higoralves/orc/nodejs-best-practices.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 33 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 588 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 86% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00033 $0.00588
Opus 5.5 $0.00013 $0.00235
Sonnet 5.5 $0.00007 $0.00118
Haiku 4.5 $0.00003 $0.00059

Measured today against content hash a9280c9a2ce6, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

nodejs-best-practices scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

86% identical to nodejs-best-practices — 298 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

orc/skills/nodejs-best-practices/SKILL.md · 79 lines

How it starts

The opening of the file, as written. The whole thing — 79 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Node.js Best Practices

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

When to Use

Use this skill when making Node.js architecture decisions, choosing frameworks, designing async patterns, or applying security and deployment best practices.


⚠️ 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

Principles by topic

Read the file for the decision at hand; each holds the original numbered sections.


10. Anti-Patterns to Avoid

❌ DON'T:

  • Use Express for new edge projects (use Hono)
  • Use sync methods in production code
  • Put business logic in controllers
  • Skip input validation
  • Hardcode secrets
  • Trust external data without validation
  • Block event loop with CPU work

✅ DO:

  • Choose framework based on context
  • Ask user for preferences when unclear
  • Use layered architecture for growing projects
  • Validate all inputs
  • Use environment variables for secrets
  • Profile before optimizing

11. Decision Checklist

Before implementing:

  • Asked user about stack preference?
  • Chosen framework for THIS context? (not just default)
  • Considered deployment target?
  • Planned error handling strategy?
  • Identified validation points?
  • Considered security requirements?

Remember: Node.js best practices are about decision-making, not memorizing patterns. Every project deserves fresh consideration based on its requirements.

Read the full file on GitHub · 79 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today Changed · -265 lines a9280c9a2ce6
  2. 1mo ago First seen · 344 lines · 33 tokens per session scan A e588649daf39

Subscribe to this mod's changes

nodejs-best-practices is a skill published in the GitHub repository HigorAlves/orc (6 stars, last pushed today), licensed MIT. It adds 33 tokens to every session and 588 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 86% identical to nodejs-best-practices, differing in 298 lines, and is treated as a copy.

Related

Other skills, from other repositories

fastapi-expert

Use when building or debugging FastAPI services - files importing fastapi, pydantic, or sqlalchemy.ext.asyncio; projects with pyproject.toml using uv/ruff/mypy; mentions of FastAPI, Pydantic v2, APIRouter, Depends, async endpoints, OAuth2/JWT auth, or pytest with httpx. Builds REST APIs, migrates Pydantic v1 to v2…

Aarvion-AI/stackwise-skills · 134 tokens

go-expert

Use when writing or reviewing Go backend services - go.mod, .go files, net/http handlers, pgx/sqlc database code, goroutines, context.Context plumbing, or failing go test runs. Builds HTTP APIs on the Go 1.22+ stdlib router, fixes error-wrapping and context-cancellation bugs, designs leak-free goroutine lifecycles…

Aarvion-AI/stackwise-skills · 117 tokens

clean-code-audio

Use when writing JUCE/audio DSP code — real-time-safety and DSP-specific idioms (parameter smoothing, block processing, branch-free loops, denormals, message↔audio-thread model). Complements clean-code-cpp.

CassetteTapeCrackle/claude-starters · 52 tokens

clean-code-cpp

Use when writing or reviewing C++ code — deeper idioms beyond the basics (ownership, noexcept/constexpr discipline, span/stringview, error-handling policy, concrete-before-abstract).

CassetteTapeCrackle/claude-starters · 42 tokens

interfaces-and-autowiring

Master Symfony Dependency Injection with autowiring, #[Target] interface binding, decoration, and tagged services.

dev-toolings/superpowers-symfony · 26 tokens

clean-code-c

Use when writing or reviewing C — deeper idioms (ownership discipline, bounded string ops, allocation checking, linkage, initialization) beyond clang-tidy.

CassetteTapeCrackle/claude-starters · 34 tokens