standards-javascript

standards-javascript is a skill for Claude Code, Codex from b33eep/claude-code-setup. It costs 36 tokens per session (2,633 once invoked), scanned A, original, MIT.

A set of JavaScript coding rules for writing modern ES2025 code that is simple, readable, maintainable, and testable.

In plain words
What is it for?
It guides naming, async code, early returns, project structure, comments, duplication, and the use of classes, functions, variables, and constants.
Why use it?
It reduces inconsistent style and unnecessary complexity, making JavaScript easier to understand and change.

Skill for Claude CodeCodex

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

Good fit It guides naming, async code, early returns, project structure, comments, duplication, and the use of classes, functions, variables, and constants.

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/b33eep/claude-code-setup/standards-javascript"><img src="https://agentmods.dev/badge/skills/b33eep/claude-code-setup/standards-javascript.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 36 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,633 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.00036 $0.02633
Opus 5.5 $0.00014 $0.01053
Sonnet 5.5 $0.00007 $0.00527
Haiku 4.5 $0.00004 $0.00263

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

Security

Grade A, and why

standards-javascript 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 1mo 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.

urls.map(url => fetch(url).then(r => r.json()))
skills/standards-javascript/SKILL.md · 433 lines

How it starts

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

JavaScript Coding Standards

Core Principles

  1. Simplicity: Simple, understandable code
  2. Readability: Readability over cleverness
  3. Maintainability: Code that's easy to maintain
  4. Testability: Code that's easy to test
  5. DRY: Don't Repeat Yourself - but don't overdo it

General Rules

  • Early Returns: Use early returns to avoid nesting
  • Descriptive Names: Meaningful names for variables and functions
  • Minimal Changes: Only change relevant code parts
  • No Over-Engineering: No unnecessary complexity
  • Minimal Comments: Code should be self-explanatory. No redundant comments!
  • Async/Await: Always use async/await for async operations

Naming Conventions

Element Convention Example
Variables/Functions camelCase getUserById, isActive
Classes PascalCase UserService, ApiClient
Constants UPPER_SNAKE_CASE MAX_RETRY_COUNT
Private Prefix with _ or # _internalMethod, #privateField
Files kebab-case or camelCase user-service.js, userService.js
Event Handlers Prefix with handle handleClick, handleSubmit

Project Structure

myproject/
├── src/
│   ├── index.js              # Entry point
│   ├── config.js             # Settings, env vars
│   ├── models/
│   │   └── user.js           # Domain models
│   ├── services/
│   │   └── user-service.js   # Business logic
│   ├── routes/
│   │   └── user-routes.js    # API routes
│   └── utils/
│       └── helpers.js        # Utility functions
├── tests/
│   ├── services/
│   │   └── user-service.test.js
│   └── setup.js
├── package.json
└── README.md

ES Modules (Preferred)

// math.js - Named exports
export function add(a, b) {
    return a + b;
}

export function multiply(a, b) {
    return a * b;
}

// app.js - Import
import { add, multiply } from './math.js';

// Default export
export default class UserService {
    // ...
}

// Import default
import UserService from './user-service.js';

Read the full file on GitHub · 433 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. 1mo ago First seen · 433 lines · 36 tokens per session scan A d478ef176bb4

Subscribe to this mod's changes

standards-javascript is a skill published in the GitHub repository b33eep/claude-code-setup (57 stars, last pushed 11d ago), licensed MIT. It adds 36 tokens to every session and 2,633 once invoked, about $0.0001 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-08-30.

Related

Other skills, from other repositories

vigil-instrument

Instrument a service with OpenTelemetry — RED metrics, structured logs, distributed tracing, and health checks. Outputs actual code and config, not a plan. Use when asked to "add monitoring", "instrument this", "add logging", "set up tracing", or "observability".

tonone-ai/tonone · 61 tokens

monday-planning

Suggest a weekly training structure from recent load and deliver the plan.

gtapps/hermitd · 18 tokens

pave-env

Set up local development environments — devcontainers, Docker Compose, one-command setup, dev/prod parity. Use when asked to "set up dev environment", "devcontainer", "docker compose for dev", "local development setup", or "one command to run".

tonone-ai/tonone · 57 tokens

design-system-reference

Style guides and implementation rules for frontend design. Works with design-discovery agent which handles context gathering and VS-based style recommendations. Contains detailed style guides, anti-patterns, and implementation checklists.

wigtn/wigtn-plugins · 43 tokens

github-pr-creation

Creates GitHub Pull Requests with automated validation and task tracking. Use when user wants to create PR, open pull request, submit for review, or check if ready for PR. Analyzes commits, validates task completion, generates Conventional Commits title and description, suggests labels. NOTE - for merging existing…

fvadicamo/dev-agent-skills · 75 tokens

boss-briefing

Vault health check — workflow pattern analysis, profile sync, session gap recovery, persona rule proposals.

sehoon787/my-claude · 23 tokens