javascript-pro

Implements modern JavaScript with ES6+ features, async patterns, and Node.js APIs.

1|Updated Aug 17, 2025
One-click install
npx skills add https://github.com/ratnesh-maurya/mdconverter --skill javascript-pro-ratnesh-maurya
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: javascript-pro
Source: https://github.com/ratnesh-maurya/mdconverter/tree/main/.claude/skills/javascript-pro
Command: npx skills add https://github.com/ratnesh-maurya/mdconverter --skill javascript-pro-ratnesh-maurya

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Writing and debugging modern JavaScript across Node.js and browser environments is error-prone, especially around async behavior, event loops, and cross-runtime compatibility. This Skill provides expert guidance for building, debugging, and migrating JavaScript code using current standards. ## Core Features & Use Cases - Modern JavaScript Implementation: Applies ES6+ features like destructuring, modules, and classes with proper error handling and JSDoc comments. - Async Pattern Guidance: Uses async/await, promises, and generators while preventing race conditions and callback hell. - Runtime Compatibility: Supports both Node.js and browser targets with polyfill strategies and cross-browser considerations. - Use Case: When migrating a legacy callback-based Node.js service to modern async/await, this Skill restructures the code, adds error boundaries, and includes Jest tests with async test patterns. ## Quick Start Ask the assistant to refactor your legacy JavaScript file into modern ES6+ code with async/await and Jest tests.

Frequently Asked Questions about javascript-pro

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

FAQPage Schema
How do I migrate legacy JavaScript to ES6+?

Migrate legacy JavaScript by replacing var with const/let, converting callbacks to async/await, and adopting ES modules with classes and destructuring. The Skill restructures code incrementally while preserving behavior and adding JSDoc comments.

How to fix race conditions in async JavaScript code?

Race conditions in async JavaScript are prevented by preferring async/await over raw promise chains, sequencing dependent operations, and handling errors at appropriate boundaries. Understanding the event loop and microtask queue is essential for correct ordering.

Does modern JavaScript code work in both Node.js and browsers?

Yes, but you must identify runtime targets first and account for API differences between Node.js and browsers. The Skill provides polyfill strategies and cross-browser compatibility checks, plus bundle size considerations for browser code.

When should I not use this JavaScript skill?

Avoid this Skill when you need TypeScript architecture guidance, work in a non-JavaScript runtime, or require backend architecture decisions. It focuses specifically on JavaScript language features and async programming patterns.

How do I write Jest tests for async JavaScript functions?

Write Jest async tests using async/await in test functions, returning promises, and asserting on resolved or rejected values. The Skill generates Jest tests with async patterns alongside the implementation code.