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 2mo ago against content hash f584aa06dce7, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 2mo 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.

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. 2mo ago 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 (22 stars, last pushed 3mo 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

javascript-coding-standards compared with skills from other repositories

javascript-coding-standards next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
javascript-coding-standardswilliamzujkowski/standardsSkill223mo agoMITA49Claude Code, Codex
react-native-testingcallstack/react-native-testing-librarySkill3.4k8d agoMITA134Claude Code, Codex
verify-workHoangNguyen0403/agent-skills-standardSkill597yesterdayMITA23Codex
authoring-data-quality-checksPostHog/posthogSkill41ktodaynoneA174Claude Code, Codex
appbuilder-testingadobe/skillsSkill339todayApache-2.0A201Claude Code
authoring-benchmarksNVIDIA/elementsSkill122yesterdayApache-2.0A105Claude Code, Codex
vitestjezweb/claude-skillsSkill1.1k1mo agoMITA87Claude Code