JavaScript Development Expert
Paste the following prompt into your AI chat to install this skill:
Please install @org-02qudk26/javascript-pro according to https://skillhub.cn/install/skillhub.md.
About this skill
Problem
Modern JavaScript projects often fail on subtle runtime behavior: hard-to-track Promise chains, async/await mixed with callbacks, lost errors, inconsistent Node.js and browser behavior, or ES6+ migration that breaks compatibility and bundle size. This skill targets those concrete issues rather than general JS basics.
How it works
It starts from runtime target, constraints, and module boundaries, then chooses async patterns such as async/await, Promise, generators, and clear exports. It covers ES6+ destructuring, classes, modules, event loop and microtask queue, Node.js APIs, performance tuning, browser compatibility, and TypeScript migration. Its approach favors avoiding callback-style code, handling errors at proper boundaries, using functional patterns where useful, and considering bundle size or polyfill strategy for browser code. Expected output includes maintainable module structure, race-condition prevention, JSDoc comments, async test patterns, and profiling notes.
Boundaries
Use it for modern JavaScript and async programming, not for TypeScript architecture design, non-JS runtimes, or backend architecture decisions. If the task centers on type systems, databases, service governance, or framework selection, choose a more specific architecture skill.
Use Cases
- Debug lost errors in a Node.js Promise chain and rewrite the critical request path with async/await.
- Refactor browser callbacks and mixed Promises into clean ES modules with JSDoc and async tests.
- Migrate a legacy front-end script to ES6+ and produce a polyfill strategy for browser compatibility.
- Identify event-loop and microtask ordering causing UI stalls, then add performance-based fixes.
Best For
- Full-stack engineer maintaining Node.js APIs and needing to replace callbacks and Promise chains with testable async/await.
- Front-end engineer modernizing browser scripts to ES6+ while keeping bundle size and module exports clean.
- JavaScript maintainer fixing event-loop, microtask, and cross-browser compatibility issues.
- Senior front-end engineer migrating legacy JS to modern syntax with JSDoc and async tests.
Related Skills
A one-shot coding agent built on Claude Code CLI that runs non-interactively, supports a specified workdir, and can be monitored in the foreground or background.
Preview and confirm file sorting by extension, with recursive cleanup, ignore rules, and transactional rollback.
An engineering assistant for static HTML/CSS/JS pages, design-token extraction, IE8-compatible review, and structured delivery.
An engineering workflow for requirement analysis, scenario modeling, risk planning, quality gates, testing, and knowledge capture, with lightweight, standard, and full modes.