javascript-pro
Installation
SKILL.md
JavaScript Pro
Guidelines for modern JavaScript and async programming patterns.
Core Principles
- Async/await over promise chains - Cleaner, more readable code
- Functional patterns - Map, filter, reduce over imperative loops
- Error boundaries - Handle errors at appropriate levels
- Module-first - ES modules with clean exports
- Defensive coding - Nullish coalescing and optional chaining
Modern Syntax (ES2020+)
Nullish Coalescing and Optional Chaining
// Nullish coalescing (??) - only null/undefined
const port = config.port ?? 3000;