javascript-conventions

javascript-conventions is a skill for Claude Code, Codex from AdamBien/airails. It costs 200 tokens per session (4,434 once invoked), scanned A, original, MIT.

A set of plain JavaScript coding rules covering syntax, modules, functions, data, asynchronous work, errors, naming, documentation, and supported language features.

In plain words
What is it for?
Use it when writing or reviewing technology-neutral JavaScript with ES modules and JSDoc type annotations.
Why use it?
It gives JavaScript code a consistent baseline and helps avoid using features that the chosen browser or runtime may not support.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: positional $N argument.

Good fit Use it when writing or reviewing technology-neutral JavaScript with ES modules and JSDoc type annotations.

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/adambien/airails/javascript-conventions"><img src="https://agentmods.dev/badge/skills/adambien/airails/javascript-conventions.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 200 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,434 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 warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Data Exfiltration · line 39
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
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.00200 $0.04434
Opus 5.5 $0.00080 $0.01774
Sonnet 5.5 $0.00040 $0.00887
Haiku 4.5 $0.00020 $0.00443

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

Security

Grade A, and why

javascript-conventions 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 6d 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.

web/javascript-conventions/SKILL.md · 239 lines

How it starts

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

Apply all rules below strictly to any JavaScript you write, generate, or review.

Scope

  • Language-level rules for JavaScript only — modules, syntax, functions, data, asynchrony, errors, JSDoc types, naming, comments.
  • HTML, CSS, accessibility, and design tokens are not in this skill — see web-conventions.
  • Architecture, state management, routing, dependency and build policy, project layout, dev server, and verification loops are not in this skill — see web-components (SPAs) and web-sprinkles (static sites with bounded enhancements); web-static forbids JavaScript entirely.
  • When a composed skill specifies a rule, the composed skill wins; this skill is the fallback baseline.

Language Level

  • target the newest ECMAScript syntax and standard-library APIs the Baseline policy permits — the decision is per feature, never per year: there is no "ES2020 target" to configure, only a feature's Baseline status
  • no build step to reach a language feature — no transpiler (Babel, SWC, esbuild), no polyfill bundle; if a feature needs compiling, its Baseline status already says not to use it
  • no TypeScript, no JSX — plain ES modules with JSDoc type annotations
  • modules are strict mode already — never write 'use strict'

Baseline Lookup for JavaScript

The web-conventions Baseline policy governs JavaScript exactly as it governs CSS:

  • Widely Available — use freely
  • Newly Available — requires feature detection with a graceful fallback
  • Limited availability — must not be used

CSS detects with @supports; JavaScript's equivalent is an existence check before first use:

const groupBy = Object.groupBy ?? ((items, key) => items.reduce(intoGroups(key), {}));
if (!document.startViewTransition) return render(url);
if (!('URLPattern' in globalThis)) return matchWithRegExp(url);
  • look up the feature id in web-conventions/references/baseline-snapshot.md — never from model memory; widely-known features can still be Limited (top-level await is, in the 2026-07-08 snapshot)
  • a feature missing from the snapshot or newer than its header date is uncertain — verify against webstatus.dev before recommending it, or treat it as Limited
  • core syntax may have no feature id at all — optional chaining (?.) returns 404 from the API (verified 2026-08-04), meaning untracked, not Limited; judge such syntax on its own rather than by lookup
  • when recommending a newer API, cite its status so the reader can judge support

Read the full file on GitHub · 239 lines

Files

What ships with it

1 file 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. 6d ago Changed · +3 lines af3de6793d04
  2. 1mo ago First seen · 236 lines · 200 tokens per session scan A 8bbedadce253

Subscribe to this mod's changes

javascript-conventions is a skill published in the GitHub repository AdamBien/airails (58 stars, last pushed 3d ago), licensed MIT. It adds 200 tokens to every session and 4,434 once invoked, about $0.0008 per session on Opus 5.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.

Related

Other skills, from other repositories

authoring-java-sdk-tasks

Writes Airflow task logic in Java, Kotlin, or any JVM language using the Airflow Java SDK. Use when the user wants to implement Airflow tasks in Java/JVM, asks about @Builder.Dag/@Builder.Task/@Builder.XCom, the Task/BundleBuilder interfaces, reading connections/variables/XComs from Java, the JSON-to-Java type…

astronomer/agents · 152 tokens

configuring-airflow-language-sdks

Configures Airflow to run language SDK tasks (Java, Go, and future native SDKs) — register a coordinator, map a queue to it, ensure the runtime/artifact on workers, and tune coordinator options. Use when the user wants Airflow to route a queue to a native-language coordinator, asks about the [sdk]…

astronomer/agents · 155 tokens

aws-cloudformation-cloudfront

Provides AWS CloudFormation patterns for CloudFront distributions, origins (ALB, S3, Lambda@Edge, VPC Origins), CacheBehaviors, Functions, SecurityHeaders, parameters, Outputs and cross-stack references. Use when creating CloudFront distributions with CloudFormation, configuring multiple origins, implementing caching…

giuseppe-trisciuoglio/developer-kit · 81 tokens

aws-cloudformation-cloudwatch

Provides AWS CloudFormation patterns for CloudWatch monitoring, metrics, alarms, dashboards, logs, and observability. Use when creating CloudWatch metrics, alarms, dashboards, log groups, log subscriptions, anomaly detection, synthesized canaries, Application Signals, and implementing template structure with…

giuseppe-trisciuoglio/developer-kit · 83 tokens

drawio-logical-diagrams

Creates professional logical flow diagrams and logical system architecture diagrams using draw.io XML format (.drawio files). Use when creating: (1) logical flow diagrams showing data/process flow between system components, (2) logical architecture diagrams representing system structure without cloud provider…

giuseppe-trisciuoglio/developer-kit · 133 tokens

aws-cloudformation-auto-scaling

Provides AWS CloudFormation patterns for Auto Scaling including EC2, ECS, and Lambda. Use when creating Auto Scaling groups, launch configurations, launch templates, scaling policies, lifecycle hooks, and predictive scaling. Covers template structure with Parameters, Outputs, Mappings, Conditions, cross-stack…

giuseppe-trisciuoglio/developer-kit · 74 tokens