modern-javascript-core

Refactor legacy JavaScript codebases to adopt ES2025+ features and ES modules.

2|1|Updated Jan 20, 2026
One-click install
npx skills add https://github.com/sraloff/gravityboots --skill modern-javascript-core
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: modern-javascript-core
Source: https://github.com/sraloff/gravityboots/tree/main/.agent/skills/modern-javascript-core
Command: npx skills add https://github.com/sraloff/gravityboots --skill modern-javascript-core

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Many teams struggle to keep JavaScript codebases aligned with modern language features, leading to technical debt and slower feature delivery.

Core Features & Use Cases

  • Modern syntax adoption: Use ES2025+ features to simplify code and improve readability.
  • Module-first development: Emphasize ES modules, named exports, and scalable project structure across frontend and Node.
  • Use Case: When reviewing PRs for a large codebase, apply this skill to identify and refactor legacy patterns like var, callbacks, and non-module scripts.

Quick Start

Ask the agent to apply modern JavaScript features and best practices to your codebase.

Frequently Asked Questions about modern-javascript-core

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I refactor legacy JavaScript patterns to use modern ES2025+ syntax?▼

Refactor legacy JavaScript by replacing var, callbacks, and non-module scripts with ES2025+ syntax like async-await, destructuring, and ES modules to improve readability and reduce technical debt safely.

What is the best way to use top-level await in ES modules?▼

Top-level await in ES modules allows asynchronous code execution at the module scope without wrapping functions, supported by modern JavaScript to simplify top-level async patterns in frontend and Node environments.

Can I use ES modules and named exports in both frontend and backend JavaScript?▼

Yes, ES modules and named exports work across both frontend and backend JavaScript contexts, enabling scalable project structures and module-first development for vanilla scripts and Node applications.

How do I safely replace callbacks with async-await in JavaScript codebases?▼

Replace callbacks with async-await to handle asynchronous operations sequentially, applying modern JavaScript refactoring guidance to ensure correctness and avoid execution errors during legacy pattern migration.

When should I use modern array methods and destructuring in JavaScript?▼

Use modern array methods and destructuring to simplify data extraction and transformation logic, replacing verbose legacy loops and assignments with modern JavaScript syntax for better code readability and maintainability.