javascript-coding-standards

javascript-coding-standards is a skill for Claude Code, Codex from williamzujkowski/standards. It costs 49 tokens per session (5,665 once invoked), scanned A, original, MIT.

A set of standards for modern JavaScript, including naming, error handling, formatting, linting, modules, and Jest tests. JavaScript is a programming language used in web browsers, servers, and tools; React is a library for building user interfaces.

In plain words
What is it for?
Use it when building or reviewing JavaScript projects, including React applications. It covers ESLint, Prettier, modern syntax, Jest tests, documentation, dependency checks, and secure handling of user input.
Why use it?
It reduces inconsistent style, unsafe input handling, unclear asynchronous code, and defects caused by untested changes. Shared rules make JavaScript projects easier to review and maintain.

Skill for Claude CodeCodex

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

Good fit Use it when building or reviewing JavaScript projects, including React applications. It covers ESLint, Prettier, modern syntax, Jest tests, documentation, dependency checks, and secure handling of user input.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/williamzujkowski/standards/javascript
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 williamzujkowski/standards --skill javascript
Clone the repo
git clone --depth 1 https://github.com/williamzujkowski/standards

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 javascript-coding-standards

README.md
[![agentmods](https://agentmods.dev/badge/skills/williamzujkowski/standards/javascript/github.svg)](https://agentmods.dev/skills/williamzujkowski/standards/javascript)
Your own site
<a href="https://agentmods.dev/skills/williamzujkowski/standards/javascript"><img src="https://agentmods.dev/badge/skills/williamzujkowski/standards/javascript/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 javascript-coding-standards

Your own site · 80×15
<a href="https://agentmods.dev/skills/williamzujkowski/standards/javascript"><img src="https://agentmods.dev/badge/skills/williamzujkowski/standards/javascript.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 49 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,665 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
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.00049 $0.05665
Opus 5.5 $0.00020 $0.02266
Sonnet 5.5 $0.00010 $0.01133
Haiku 4.5 $0.00005 $0.00566

Measured yesterday against content hash f584aa06dce7, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-30, from the pricing page.

Security

Grade A, and why

javascript-coding-standards scanned grade A with 1 finding 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 yesterday.

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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

return await fetch(url);
skills/coding-standards/javascript/SKILL.md · 924 lines

How it starts

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

JavaScript Coding Standards

Quick Navigation: Level 1: Quick Start (5 min) → Level 2: Implementation (30 min) → Level 3: Mastery (Extended)


Level 1: Quick Start (<2,000 tokens, 5 minutes)

Core Principles

  1. Modern JavaScript: Use ES6+ features (arrow functions, destructuring, async/await)
  2. Type Safety: Use TypeScript or JSDoc for type annotations where complexity warrants
  3. Test-First: Write Jest tests before implementation
  4. Clean Code: Follow Airbnb style guide, use meaningful names
  5. Modern Tooling: ESLint + Prettier for consistent formatting

Essential Checklist

  • ESLint + Prettier: Code formatted and linted automatically
  • Modern Syntax: Arrow functions, const/let (no var), template literals
  • Testing: Jest tests with >80% coverage
  • Documentation: JSDoc for complex functions and public APIs
  • Error Handling: Try/catch for async operations, proper error types
  • Security: Input validation, no eval(), sanitize user input
  • Module System: ES6 modules (import/export), not CommonJS
  • Dependencies: package.json with exact versions, npm audit passing

Quick Example

/**
 * User authentication module with secure session handling.
 * @module auth
 */

import bcrypt from 'bcrypt';
import jwt from 'jsonwebtoken';

/**
 * Authenticate user with username and password.
 *
 * @param {string} username - User's username
 * @param {string} password - Plain text password
 * @returns {Promise<{success: boolean, token?: string, error?: string}>}
 * @throws {ValidationError} If credentials are invalid
 *
 * @example
 * const result = await authenticateUser('alice', 'secret123');
 * if (result.success) {
 *   console.log('Token:', result.token);
 * }
 */
export const authenticateUser = async (username, password) => {
  // Validate inputs
  if (!username || !password) {
    throw new ValidationError('Username and password required');
  }

  try {
    // Fetch user from database
    const user = await fetchUserFromDb(username);

    if (!user) {
      return { success: false, error: 'Invalid credentials' };
    }

    // Verify password
    const isValid = await bcrypt.compare(password, user.passwordHash);

    if (!isValid) {
      return { success: false, error: 'Invalid credentials' };
    }

    // Generate JWT token
    const token = jwt.sign(
      { userId: user.id, username: user.username },
      process.env.JWT_SECRET,
      { expiresIn: '1h' }
    );

    return { success: true, token };
  } catch (error) {
    console.error('Authentication error:', error);
    throw new AuthenticationError('Authentication failed', error);
  }
};

/**
 * Custom validation error.
 */
class ValidationError extends Error {
  constructor(message) {
    super(message);
    this.name = 'ValidationError';
  }
}

/**
 * Custom authentication error.
 */
class AuthenticationError extends Error {
  constructor(message, cause) {
    super(message);
    this.name = 'AuthenticationError';
    this.cause = cause;
  }
}

Read the full file on GitHub · 924 lines

Files

What ships with it

7 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. yesterday First seen · 924 lines · 49 tokens per session scan A f584aa06dce7

Subscribe to this mod's changes

javascript-coding-standards is a skill published in the GitHub repository williamzujkowski/standards (18 stars, last pushed 1mo ago), licensed MIT. It adds 49 tokens to every session and 5,665 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-29.

Related

Other skills, from other repositories

angular-testing

Write Angular component tests using TestBed, ComponentHarness, and HttpTestingController with proper signal input handling. Use when writing component tests, mocking HTTP calls, or testing signal inputs.

HoangNguyen0403/agent-skills-standard · 39 tokens

appbuilder-testing

Generate and run tests for Adobe App Builder actions and UI components. Scaffolds Jest unit tests, integration tests against deployed actions, contract tests for Adobe API interactions, and React component tests using Testing Library. Provides mock helpers for State, Files, Events SDKs, @adobe/aio-lib- clients, ExC…

adobe/skills · 201 tokens

react-testing

React testing guidance using React Testing Library and modern patterns.

design-sparx/mantine-analytics-dashboard · 14 tokens

sfnext-testing

Write tests for Storefront Next using Vitest unit tests, Storybook stories, interaction tests, snapshot tests, and accessibility tests. Use when writing component tests, creating Storybook stories, running test coverage, or setting up test utilities. Covers testing-library patterns, play functions, and coverage…

SalesforceCommerceCloud/b2c-developer-tooling · 63 tokens

testing

Skill "testing" from udecode/plate-playground-template, covering testing goal, core rules, seam selection, fixtures and assertions and quick reference.

udecode/plate-playground-template · 5 tokens

react-test

Creates Vitest component tests for Next.js App Router pages and React components using React Testing Library and accessible queries. Use when the user asks to "write frontend tests", "test the page", "test the component", "write an RTL test", or mentions React Testing Library, jsdom, or component testing for a Next.js…

AI-Unified-Process/marketplace · 70 tokens