javascript

Generate modern JavaScript and TypeScript code with ES6+ and Node.js patterns.

77|4|Updated Jun 20, 2022
One-click install
npx skills add https://github.com/htlin222/dotfiles --skill javascript-htlin222
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: javascript
Source: https://github.com/htlin222/dotfiles/tree/main/claude.symlink/skills/javascript
Command: npx skills add https://github.com/htlin222/dotfiles --skill javascript-htlin222

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps developers write clean, modern JavaScript and TypeScript code, focusing on best practices for asynchronous operations, module systems, and Node.js development.

Core Features & Use Cases

  • Modern JS/TS: Write code using ES6+ features, async/await, destructuring, and classes.
  • Node.js Development: Utilize patterns for server-side JavaScript, including ESM and streams.
  • TypeScript Support: Implement interfaces, generics, and utility types for robust code.
  • Debugging: Identify and fix common JavaScript pitfalls like this binding and unhandled promises.

Quick Start

Use the javascript skill to write an async function that fetches user data from an API.

Frequently Asked Questions about javascript

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

FAQPage Schema
How do I write modern JavaScript and TypeScript code using ES6+ features?

Debugging async/await and unhandled promises in Node.js requires identifying missing await keywords or uncaught rejections. This Skill helps fix common JavaScript pitfalls by generating patterns for proper error handling and resolving `this` binding issues.

How do I implement TypeScript interfaces and generics for robust code?

Implementing TypeScript interfaces and generics provides strict type checking for robust code. This Skill generates definitions utilizing utility types and module systems to enforce structural typing and prevent runtime errors in your applications.

What is the best way to handle asynchronous operations in Node.js?

The best way to handle asynchronous operations in Node.js is using async/await patterns over traditional callbacks. This approach facilitates server-side JavaScript development by managing streams and ESM modules efficiently without blocking the event loop.

Does this Skill support server-side Node.js development with ESM and streams?

Yes, this Skill supports server-side Node.js development by generating code that adheres to best practices for ESM and streams. It helps optimize client-side and server-side JavaScript applications using modern async patterns.

Why does `this` binding cause issues in modern JavaScript classes?

`this` binding causes issues in modern JavaScript classes when methods lose their context during asynchronous callbacks or event handling. This Skill identifies and fixes these common pitfalls by generating correctly bound functions and robust class structures.