JavaScript Pro guides Claude through vanilla JavaScript work in five steps: read package.json and the module setup, design modules and async flows, implement with ES2023+ features, validate with ESLint and memory checks, and test with Jest. A failing linter, a leak or short coverage sends the agent back to fix it before moving on.
Five reference files cover modern syntax, async patterns, module systems, browser APIs and Node.js essentials.
What You Get
- Modules with named exports, JSDoc on public APIs and a short note on the patterns used
- Async code with try/catch, Promise combinators, AbortController cancellation and queues
- ESM and CommonJS guidance covering dynamic imports, package exports and import maps
- Browser code for Fetch, Web Workers, Service Workers, storage and observers
- Node.js code for fs/promises, streams, EventEmitter, worker threads and an HTTP server
- Jest tests aimed at 85 percent coverage with no unhandled rejections
Common Use Cases
- Building a vanilla JavaScript app with modern syntax
- Fixing unhandled Promise rejections and callback-style code
- Moving a CommonJS package to ESM with package.json exports
- Moving heavy browser work into a Web Worker
- Writing a Node.js service on fs/promises and streams
What Makes It Unique
It is a vanilla JavaScript skill with no framework attached, and it pairs every rule with a correct and an incorrect example. The workflow gates progress on ESLint with auto-fix, a memory-leak check with DevTools or the inspect flag, a bundle size check and Jest coverage, and the constraints ban var, callbacks, mixed module systems and synchronous Node I/O.
Under The Hood
The skill is a SKILL.md with five reference files and no scripts, and the references load by topic. The workflow tells the agent to run eslint with the fix flag, inspect memory with DevTools or the Node inspect flag and run Jest, so it uses the shell and edits source and test files. The examples call fetch against API endpoints, the Node reference shows child processes started with exec, spawn and execFile, and a browser import-map example loads a package from a CDN. One example reads an API key from an environment variable. The skill does not tell the agent to browse the web.