neo-javascript

neo-javascript is a skill for Claude Code, Codex from Benknightdark/neo-skills. It costs 60 tokens per session (2,449 once invoked), scanned A, original, MIT.

A guide for writing, reviewing, debugging, and updating modern JavaScript for browsers, Node.js, and other JavaScript runtimes.

In plain words
What is it for?
Use it for ES modules and CommonJS, async code, arrays and iterators, DOM behavior, JavaScript configuration, and modernizing older code.
Why use it?
It helps resolve differences between JavaScript module systems, asynchronous code, language versions, and browser or runtime behavior.

Skill for Claude CodeCodex

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

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.

agentmods
npx agentmods add skills/benknightdark/neo-skills/neo-javascript
Any agent
npx skills add Benknightdark/neo-skills --skill neo-javascript
Clone the repo
git clone --depth 1 https://github.com/Benknightdark/neo-skills

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/benknightdark/neo-skills/neo-javascript.svg)](https://agentmods.dev/skills/benknightdark/neo-skills/neo-javascript)
Your own site
<a href="https://agentmods.dev/skills/benknightdark/neo-skills/neo-javascript"><img src="https://agentmods.dev/badge/skills/benknightdark/neo-skills/neo-javascript.svg" alt="Measured on agentmods" height="20"></a>
Per session 60 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,449 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00060 $0.02449
Opus 5 $0.00030 $0.01224
Sonnet 5 $0.00012 $0.00490
Haiku 4.5 $0.00006 $0.00245

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

Security

Grade A, and why

neo-javascript 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.

skills/neo-javascript/SKILL.md · 131 lines

How it starts

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

Modern JavaScript (ES6+) Expert Skill

Trigger On

  • The user asks to write, debug, refactor, or review JavaScript code.
  • The project directory contains *.js, *.mjs, or JavaScript configuration files (e.g., eslint.config.js, vite.config.js).
  • HTML files (*.html) or Razor views (*.cshtml) contain inline <script> blocks or reference external .js files via <script src="...">.
  • The target runtime is a modern browser (Chrome 80+, Firefox 78+, Safari 14+) or a pure JS environment.
  • Code modernization is needed (e.g., converting var to const/let, callbacks to async/await, legacy scripts to ESM).

Workflow

  1. Perceive (Environment Awareness):
    • Inspect ESLint / Biome configuration to identify the project's ecmaVersion and coding conventions.
    • Determine runtime target: browser (check for DOM APIs, bundler config like vite.config.js, webpack.config.js).
    • Detect JavaScript embedded in HTML (*.html) or Razor views (*.cshtml): identify inline <script> blocks and external <script src="..."> references. For .cshtml files, note the interplay with Razor syntax (@ directives, @section Scripts).
    • Identify the effective ES version upper limit based on the runtime/transpiler configuration (e.g., Babel targets, TypeScript target, browserslist). For inline scripts without a build pipeline, default to the browser's native ES support.
  2. Reason (Planning Phase):
    • Evaluate the modernization level of the current code to determine the refactoring strategy.
    • In environments targeting older runtimes (e.g., IE11 via Babel), avoid using features without polyfill support, but prioritize using const/let, arrow functions, and template literals.
    • In modern environments (modern browsers), actively adopt new features to reduce boilerplate code.
    • Be aware of browser-specific concerns (DOM manipulation, Web APIs, rendering performance).
  3. Act (Execution Phase):
    • Write high-quality code using modern syntax to improve readability and maintainability.
    • Implement immutable data patterns (spread operators, Object.freeze, structuredClone, immutable array methods).
    • Utilize async/await and Promise composition for asynchronous operations.
    • Prefer ESM (import/export) as the standard module system.
  4. Validate (Standard Validation):
    • Validate strict equality (===) usage and absence of var declarations.
    • Check if asynchronous operations correctly handle errors (try/catch around await, .catch() on Promises).
    • Ensure code avoids common security pitfalls (no eval(), no prototype pollution, no innerHTML with unsanitized input).
    • Verify naming conventions follow community standards (camelCase for variables/functions, PascalCase for classes).

Read the full file on GitHub · 131 lines

Files

What ships with it

3 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. 6d ago First seen · 131 lines · 60 tokens per session scan A 5f56fb7de71f

Subscribe to this mod's changes

neo-javascript is a skill published in the GitHub repository Benknightdark/neo-skills (7 stars, last pushed today), licensed MIT. It adds 60 tokens to every session and 2,449 once invoked, about $0.0003 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-31.