smithery/sraloff

modern-javascript-core

Core JavaScript features (ES2025+), modules, and syntax patterns.

Installation

$ npx skills add smithery/sraloff --skill modern-javascript-core

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery/sraloff.

npx skills add smithery/sraloff

Browse all from smithery/sraloff

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,192 B
  • docs SUMMARY.md 95 B

History

  1. First recorded snapshot · 0 installs

SKILL.md

Modern JavaScript Core

When to use this skill

  • Writing vanilla JavaScript logic.
  • Understanding modern syntax in PR reviews.
  • Avoiding legacy patterns (var, callbacks).

1. Essential Syntax

  • Variables: const by default, let if reassignment is needed. Never var.
  • Functions: Arrow functions () => {} for callbacks and lexical this.
  • Destructuring: Use generously (const { id, name } = user).
  • Template Literals: Use backticks for string interpolation.

2. Async Patterns

  • Async/Await: Prefer over .then() chains.
  • Top-level Await: Supported in modern modules.
  • Promise.allSettled: Better for unrelated concurrent tasks than Promise.all (which fails fast).

3. Modules

  • ES Modules: import/export syntax is standard.
  • Named Exports: Prefer named exports (export const foo) over export default for better refactoring support.

4. Modern Array Methods

  • Usage: map, filter, reduce, find, some, every.
  • Newer: floated (toSorted), toSpliced (immutable alternatives).