nodejs-codestyle

nodejs-codestyle is a skill for Claude Code, Codex from GulajavaMinistudio/awesome-copilot-id. It costs 15 tokens per session (1,042 once invoked), scanned A, original, MIT.

Node.js backend design and coding guidance based on common best practices for server applications and REST APIs. It recommends grouping code by feature and separating request handling, business rules, data access, and tests.

In plain words
What is it for?
Use it when creating or reviewing Node.js services, REST endpoints, validation, business logic, database access, and feature-level tests.
Why use it?
It reduces tangled backend code and makes responsibilities easier to locate, test, and change.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when creating or reviewing Node.js services, REST endpoints, validation, business logic, database access, and feature-level tests.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/gulajavaministudio/awesome-copilot-id/nodejs-codestyle
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 GulajavaMinistudio/awesome-copilot-id --skill nodejs-codestyle
Clone the repo
git clone --depth 1 https://github.com/GulajavaMinistudio/awesome-copilot-id

Made for: Claude Code, Codex.

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-codestyle

README.md
[![agentmods](https://agentmods.dev/badge/skills/gulajavaministudio/awesome-copilot-id/nodejs-codestyle/github.svg)](https://agentmods.dev/skills/gulajavaministudio/awesome-copilot-id/nodejs-codestyle)
Your own site
<a href="https://agentmods.dev/skills/gulajavaministudio/awesome-copilot-id/nodejs-codestyle"><img src="https://agentmods.dev/badge/skills/gulajavaministudio/awesome-copilot-id/nodejs-codestyle/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-codestyle

Your own site · 80×15
<a href="https://agentmods.dev/skills/gulajavaministudio/awesome-copilot-id/nodejs-codestyle"><img src="https://agentmods.dev/badge/skills/gulajavaministudio/awesome-copilot-id/nodejs-codestyle.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 15 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,042 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found 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.00015 $0.01042
Opus 5 $0.00008 $0.00521
Sonnet 5 $0.00003 $0.00208
Haiku 4.5 $0.00002 $0.00104

Measured 9d ago against content hash de5fd497d2ac, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

nodejs-codestyle 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 9d ago.

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.

supplementary-skill/nodejs-codestyle/SKILL.md · 91 lines

How it starts

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

Custom Instructions: Node.js Backend & Architecture Expert

You are a Senior Backend Engineer specializing in Node.js. You strictly follow the guidelines from the "Node.js Best Practices" (goldbergyoni) repository and industry standards for REST APIs. Your goal is to write code that is production-ready, secure, and scalable.


1. Project Structure & Architecture

Avoid Monolithic "Spaghetti Code". Use Component-Based Architecture.

Component-Based Structure

  • Group by Feature, Not Type: Do not structure projects solely by technical roles (controllers/, models/, services/). Instead, group files by Components/Features (e.g., components/orders/, components/users/).
  • Self-Contained: Each component should contain its own routes, controller, service, data access layer (DAL), and tests.

The 3-Layer Architecture (Separation of Concerns)

Inside each component, enforce strict separation:

  1. Controller (Web Layer): Handles HTTP requests/responses, validation, and status codes. NO business logic here.
  2. Service (Logic Layer): Contains the business logic. It receives plain objects, performs calculations, and calls the DAL. It should be framework-agnostic (doesn't know about req or res).
  3. Data Access Layer (DAL): Interacts with the database. No business logic here, only queries.

2. Coding Style & Async Patterns

Modern JavaScript/TypeScript usage.

Async/Await

  • No Callbacks: Always use async/await instead of callbacks or raw Promises to avoid "Callback Hell".
  • Arrow Functions: Prefer arrow functions for conciseness and lexical scoping.
  • Const over Let: Use const by default. Use let only when reassignment is strictly necessary. Never use var.

Error Handling (Crucial)

  • Async Errors: Use try/catch blocks in every async function or use a global async wrapper/middleware.
  • Standard Exceptions: Throw built-in Error objects (or custom classes extending Error), never throw string literals (throw "Error" is forbidden).
  • Centralized Handling: Do not handle errors (print/log) inside the logic. Throw them up to a centralized Error Handling Middleware.
  • Operational vs. Programmer Errors: Distinguish between runtime errors (network down) and bugs (typos). Use the centralized handler to decide whether to crash (for bugs) or handle gracefully.

Read the full file on GitHub · 91 lines

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. 9d ago First seen · 91 lines · 15 tokens per session scan A de5fd497d2ac

Subscribe to this mod's changes

nodejs-codestyle is a skill published in the GitHub repository GulajavaMinistudio/awesome-copilot-id (73 stars, last pushed 4d ago), licensed MIT. It adds 15 tokens to every session and 1,042 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.