What problem does it solve?
Legacy JavaScript code becomes hard to maintain and prone to callback hell, making it slow to debug and update when modern features are avoided.
The modern-javascript-patterns skill frames a structured path to rewrite such codebases using ES6+ syntax, functional pipelines, and resilient async patterns so teams can confidently modernize their applications.
Core Features & Use Cases
- ES6 Syntax Refresh: Highlights arrow functions, destructuring, template literals, and enhanced object literals to reduce boilerplate and clarify intent.
- Asynchronous Mastery: Defines Promises, async/await, combinators (all/any/race/settled), retry logic, and timeout helpers so asynchronous flows become predictable and testable.
- Functional & Modular Practices: Documents higher-order functions, composition/pipe utilities, iterators/generators, optional chaining, nullish coalescing, and agile module patterns, with references to advanced-patterns.md for deep dives and performance optimizations.
Use this skill when refactoring legacy event-driven code, migrating callback chains to modern syntax, and enforcing readability across web-facing services.
Quick Start
Ask the modern-javascript-patterns skill to review a legacy function and rewrite it using ES6+ syntax, async/await, and functional helpers for clarity.