Agent skill

Javascript Coding Guidelines

by BlueAndi in BlueAndi/Pixelix

Write, refactor, and review JavaScript according to MDN JavaScript code-style guidance and ECMAScript 2025.

MITAuto-check passedDevelopment

Install Javascript Coding Guidelines

skills CLI
$ npx skills add BlueAndi/Pixelix --skill javascript-coding-guidelines -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install BlueAndi/Pixelix javascript-coding-guidelines --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/BlueAndi/Pixelix.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.github/skills/javascript-coding-guidelines .claude/skills/javascript-coding-guidelines && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
javascript-coding-guidelines
GitHub stars
443
Token cost
~1.8k tokens
SKILL.md length
836 words
Files
1
Skills in repo
10
Repo updated
First seen
Licence
MIT

At a glance

Write, refactor, and review JavaScript according to MDN JavaScript code-style guidance and ECMAScript 2025.

  • : modernizing legacy JavaScript
  • SKILL.md covers When to Use, Core Principles, Default Rules and ECMAScript 2025 Guidance, plus 3 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
  • Updating inline scripts

What it does

Javascript Coding Guidelines is an agent skill from BlueAndi/Pixelix. Write, refactor, and review JavaScript according to MDN JavaScript code-style guidance and ECMAScript 2025. Use when: modernizing legacy JavaScript, updating inline scripts, replacing var/function-expression-heavy code, improving async flow, choosing safe DOM APIs, reviewing naming/control flow, or adopting appropriate ECMAScript 2025 features.

Its SKILL.md is about 1.8k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Development, covering Embedded systems. It works with JavaScript and ESP32. The repository describes itself as: Full RGB LED matrix, based on an ESP32 and WS2812B LEDs or emulated LEDs on TFT. The licence is MIT.

When your agent uses it

  • : modernizing legacy JavaScript
  • Updating inline scripts
  • Replacing var/function-expression-heavy code
  • Improving async flow

Example prompts

  • “/javascript-coding-guidelines”

Requirements

  • Node.js

What it can do on your machine

Read from SKILL.md and the folder at commit 0f92652. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • developer.mozilla.org
    • tc39.es

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Javascript Coding Guidelines loads about 1.8k tokens when it runs. Until then it costs about 94 tokens; SKILL.md has 836 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~94
When it runs · the whole SKILL.md, loaded when a task matches
~1.8k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from BlueAndi/Pixelix at commit 0f92652, republished under its MIT licence (© BlueAndi). 836 words, ~1,792 tokens.

Download SKILL.mdSave it as .claude/skills/javascript-coding-guidelines/SKILL.md (or your agent's skills folder).
name
javascript-coding-guidelines
description
Write, refactor, and review JavaScript according to MDN JavaScript code-style guidance and ECMAScript 2025. Use when: modernizing legacy JavaScript, updating inline scripts, replacing var/function-expression-heavy code, improving async flow, choosing safe DOM APIs, reviewing naming/control flow, or adopting appropriate ECMAScript 2025 features.
argument-hint
Describe the JavaScript files, target runtime constraints, and whether you want modernization, review, or a focused rewrite

JavaScript Coding Guidelines

When to Use

Load this skill when asked to:

  • Create or update .js files or inline JavaScript in HTML.
  • Modernize legacy JavaScript to current ECMAScript patterns.
  • Review JavaScript for readability, maintainability, safety, and standards alignment.
  • Replace outdated async, DOM, array, object, string, or control-flow patterns.

Core Principles

  • Prefer standardized ECMAScript and Web APIs over deprecated, prefixed, or ad-hoc patterns.
  • Optimize for readability first: short, semantic names and direct control flow.
  • Use modern syntax when the target runtime supports it; do not introduce shiny syntax that the runtime cannot execute.
  • Keep code compact and focused; add comments only when intent is not obvious.
  • Avoid hidden behavior, broad fallbacks, and overly clever coercions.

Default Rules

Variables and naming
  • Use const by default and let only when reassignment is required.
  • Do not use var.
  • Declare one variable per line.
  • Use camelCase for variables, functions, properties, and methods.
  • Use PascalCase for classes.
  • Use short, semantic names; avoid non-obvious abbreviations, Hungarian notation, and type suffixes/prefixes.
  • Name collections by content in plural form (plugins, icons, users), not by container type (pluginList, iconArray).
Functions and methods
  • Prefer function declarations for named functions.
  • Use arrow functions for callbacks that do not need their own this.
  • Do not use arrow functions for object methods.
  • Prefer concise arrow callbacks with implicit return when that stays readable.
  • Use method shorthand in object literals.
Collections and objects
  • Use array literals ([]) and object literals ({}), not new Array() or new Object().
  • Prefer array.push(value) over array[array.length] = value.
  • Use object property shorthand when keys and variable names match.
  • Use class syntax for classes and extends for inheritance.
  • Prefer Object.hasOwn() over Object.prototype.hasOwnProperty().
Control flow and operators
  • Always use braces with if, for, while, and similar statements.
  • If an if branch ends with return, continue after it instead of adding else.
  • Prefer the conditional operator for simple value selection or returns.
  • Prefer strict equality operators (===, !==).
  • Treat == null as the only acceptable loose-equality exception, and only when intentional.
  • Prefer boolean shortcuts like if (value) and if (!value) unless truthy/falsy distinctions matter.
Loops and iteration
  • Prefer for...of, .forEach(), or other semantic array methods over index-based for (;;) loops when iterating collections.
  • Prefer semantic methods like .map(), .find(), .findIndex(), .includes(), .every(), and similar when they express intent more clearly.
  • Never use for...in with arrays or strings.
  • Use const in for...of loops and let for counter-based loops.
Strings and coercion
  • Use template literals for interpolation.
  • Do not use template literals when a plain string literal is sufficient.
  • Avoid implicit coercion tricks such as "" + value or +value.
  • Use String(value) and Number(value) for explicit conversion.
Async code
  • Prefer async/await over long Promise chains when both are practical.
  • Keep Promise-based APIs explicit; surface errors instead of swallowing them.
  • Use Promise.all() for independent concurrent work and Promise.allSettled() when partial failure is acceptable.
  • Use top-level await only when the file is an ECMAScript module and the runtime/toolchain supports it.
Comments
  • Use comments to explain intent, constraints, or non-obvious behavior.
  • Prefer single-line // comments.
  • Put comments on their own lines above the code they describe.
  • Do not restate obvious code in prose.
  • Use comment-based ellipses for intentionally omitted code in examples.
Show full SKILL.md (322 more words)Show less
DOM and Web API safety
  • Prefer fetch() over XMLHttpRequest.
  • Prefer textContent for textual DOM updates.
  • Avoid innerHTML for plain text or where safer DOM construction is practical.
  • Avoid browser prefixes and deprecated APIs unless the task is explicitly about them.

ECMAScript 2025 Guidance

  • Consider ECMAScript 2025 features when they improve clarity and the target runtime supports them.
  • Especially relevant additions include:
    • Iterator helpers for clearer iterator pipelines
    • New Set operations for common set math
    • RegExp.escape() for safe dynamic regular expressions
    • Promise.try() when normalizing sync-or-async execution paths
    • JSON modules and import attributes where module tooling/runtime supports them
  • If runtime support is uncertain, prefer broadly supported modern syntax and mention the compatibility constraint explicitly.

Procedure

  1. Identify the target runtime
  • Browser, embedded web UI, Node.js, bundler/transpiler, or mixed environment.
  • Determine whether ECMAScript 2025-only features are safe to use directly.
  1. Audit for legacy patterns
  • Look for var, constructor-style arrays/objects, loose equality, implicit coercion, callback-heavy async flow, for...in on arrays, innerHTML, XHR, and prefixed/deprecated APIs.
  1. Refactor to modern patterns
  • Replace legacy syntax with const/let, declarations, literals, method shorthand, template literals, async/await, and safer DOM/Web APIs.
  • Keep behavior equivalent unless the request explicitly asks for a behavior change.
  1. Validate clarity and compatibility
  • Confirm names are semantic and control flow is direct.
  • Confirm any ECMAScript 2025 feature fits the runtime support expectations.
  • Avoid growing small files with unnecessary wrappers, abstractions, or documentation.
  1. Verify output
  • Ensure the updated code still works and that errors are surfaced clearly.
  • Re-check that no deprecated or unsafe pattern was reintroduced while fixing another issue.

Review Checklist

  • const/let used appropriately; no var
  • Names are semantic, concise, and convention-aligned
  • Arrays/objects/classes use modern literal or class syntax
  • Control flow is simple, braced, and uses strict equality
  • Async flow is readable and errors are not hidden
  • DOM updates use safe APIs where practical
  • ECMAScript 2025 features are used only when runtime support is acceptable

References

© BlueAndi, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .github/skills/javascript-coding-guidelines of BlueAndi/Pixelix.

Open the folder on GitHubat commit 0f92652

Compare with similar skills

Javascript Coding Guidelines next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Javascript Coding Guidelines compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Javascript Coding Guidelines this skillBlueAndi/Pixelix443—~1.8kAutomated safety check: PassMIT
RuView Hardware Setupruvnet/RuView97k—~1.8kAutomated safety check: NotesMIT
Esp32 Firmware Engineeralxv2016/folloup-sticky1161 repos~3.8kAutomated safety check: PassGPL-3.0
RuView mmWave Radar Setupruvnet/RuView97k—~907Automated safety check: NotesMIT
Embedded DebugFastLED/FastLED7.5k—~1.4kAutomated safety check: PassMIT
Auto EmbeddedDunCanYounG-1/MICU-auto-embedded253—~1.6kAutomated safety check: PassCC-BY-NC-4.0

Similar skills

  • Brings a RuView CSI sensing node online by building ESP32-S3 or ESP32-C6 firmware, flashing the board, provisioning WiFi and checking the serial output.

    97k GitHub stars~1.8k tokensUpdated today
    DevelopmentAuto-check: notes
  • Esp32 Firmware Engineer

    alxv2016/folloup-sticky

    ESP32 firmware engineering for ESP-IDF projects. An agent skill from alxv2016/folloup-sticky.

    116 GitHub starsUsed in 1 repo~3.8k tokens
    DevelopmentAuto-check passed
  • Sets up and runs 60 GHz and 24 GHz mmWave radar sensing on ESP32 boards in RuView, alone or fused with WiFi CSI.

    97k GitHub stars~907 tokensUpdated today
    DevelopmentAuto-check: notes
  • Embedded Debug

    FastLED/FastLED

    Firmware crash analysis, stack trace decoder, and register dump interpreter for ESP32/ARM/AVR platforms.

    7.5k GitHub stars~1.4k tokensUpdated today
    DevelopmentAuto-check passed
  • Auto Embedded

    DunCanYounG-1/MICU-auto-embedded

    全平台嵌入式 AI 开发框架(对标 Trellis):把 RIPER-5 五阶段协议 + 四文件记忆 + 分层架构门禁 + Scout/Builder/Verifier 多 Agent + 24 个工具调用技能(build/flash/debug/serial/can/modbus/visa/static/memory/rtos/scons),做成『装进工程、项目级 hook…

    253 GitHub stars~1.6k tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Esp32 Log Triage

    FastLED/FastLED

    Parse and classify ESP32 serial log output to identify FastLED-related errors, RMT/I2S/SPI driver faults, timing violations, RTOS issues, and crash signatures.

    7.5k GitHub stars~1.9k tokensUpdated today
    DevelopmentAuto-check passed

More from BlueAndi/Pixelix

All 10 skills in this repo
  • Embedded Cpp14 Misra

    BlueAndi/Pixelix

    A skill your agent uses when writing, reviewing, or refactoring C/C++ firmware code in this repository (src/, lib/, test/) — creating or editing .h/.hpp/.cpp files, applying MISRA-oriented and…

    443 GitHub stars~2k tokensUpdated today
    Auto-check passed
  • Embedded Cpp14 Misra

    BlueAndi/Pixelix

    Write, review and refactor embedded C/C++14 firmware code in this repository (src/, lib/, test/) with MISRA-oriented rules, defensive programming, Yoda conditions, single-exit/pathfinder control…

    443 GitHub stars~2.2k tokensUpdated today
    Auto-check passed
  • Openscad Mechanical

    BlueAndi/Pixelix

    Create and edit OpenSCAD (.scad) files for 3D-printable mechanical parts and housings.

    443 GitHub stars~1.8k tokensUpdated today
    Auto-check passed
  • Openapi Spec

    BlueAndi/Pixelix

    Write and update OpenAPI 3.0 specification files from REST API code.

    443 GitHub stars~3.1k tokensUpdated today
    Auto-check passed
  • Plantuml Diagrams

    BlueAndi/Pixelix

    Model, create, update, and embed PlantUML diagrams (.wsd files).

    443 GitHub stars~1.2k tokensUpdated today
    Auto-check passed
  • Bootstrap Reference

    BlueAndi/Pixelix

    A skill your agent uses when building or reviewing UI with Bootstrap 5.3 — setting up the CDN/npm, using the grid & breakpoints, utility classes (spacing/color/flex/display), components (navbar…

    443 GitHub stars~2k tokensUpdated today
    Auto-check passed

Works with

Categories

Questions about Javascript Coding Guidelines

What does Javascript Coding Guidelines do?

Write, refactor, and review JavaScript according to MDN JavaScript code-style guidance and ECMAScript 2025. Javascript Coding Guidelines is an agent skill from BlueAndi/Pixelix. Write, refactor, and review JavaScript according to MDN JavaScript code-style guidance and ECMAScript 2025.

When should I use Javascript Coding Guidelines?

Javascript Coding Guidelines fits situations like: : modernizing legacy JavaScript; updating inline scripts; replacing var/function-expression-heavy code; improving async flow.

How do I install Javascript Coding Guidelines in Claude Code?

Run `npx skills add BlueAndi/Pixelix --skill javascript-coding-guidelines -a claude-code`. Or copy the skill folder (.github/skills/javascript-coding-guidelines in BlueAndi/Pixelix) into .claude/skills/javascript-coding-guidelines in your project. Claude Code loads it when a task matches its description.

How do I install Javascript Coding Guidelines in Codex?

Run `npx skills add BlueAndi/Pixelix --skill javascript-coding-guidelines -a codex`. Or copy the skill folder (.github/skills/javascript-coding-guidelines in BlueAndi/Pixelix) into .agents/skills/javascript-coding-guidelines in your project. Codex loads it when a task matches its description.

Can I use Javascript Coding Guidelines in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add BlueAndi/Pixelix --skill javascript-coding-guidelines -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/javascript-coding-guidelines, .gemini/skills/javascript-coding-guidelines, .github/skills/javascript-coding-guidelines and .opencode/skills/javascript-coding-guidelines in your project.

What does Javascript Coding Guidelines need to run?

SKILL.md names no scripts, command-line tools or credentials: Javascript Coding Guidelines is instructions for the agent only. Our summary lists: Node.js.

Does Javascript Coding Guidelines access the network?

SKILL.md names 2 domains. As links in the text: developer.mozilla.org and tc39.es. This is read from the text; nothing was executed.

Is Javascript Coding Guidelines safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Javascript Coding Guidelines use?

Javascript Coding Guidelines is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Javascript Coding Guidelines use?

About 1.8k tokens (SKILL.md is roughly 7.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Javascript Coding Guidelines?

Skills that share tags, products or a category with Javascript Coding Guidelines: RuView Hardware Setup (ruvnet/RuView, 97k stars), Esp32 Firmware Engineer (alxv2016/folloup-sticky, 116 stars), RuView mmWave Radar Setup (ruvnet/RuView, 97k stars) and Embedded Debug (FastLED/FastLED, 7.5k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Javascript Coding Guidelines?

BlueAndi (a GitHub user) maintains it in BlueAndi/Pixelix, which has 443 GitHub stars. The repository holds 10 skills in this directory. The repository was last updated on October 7, 2026.

Source: BlueAndi/Pixelix on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.