javascript
CommunityWrite modern JavaScript, effortlessly.
Software Engineering#typescript#development#best practices#javascript#coding standards#async/await#promises
Authorbendrucker
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill promotes modern JavaScript best practices, particularly around promise handling, to ensure cleaner, more reliable asynchronous code.
Core Features & Use Cases
- Promise Best Practices: Guides on using existing promise-returning APIs instead of manual
new Promiseconstruction, reducing boilerplate and potential errors. - Consistent Standards: Applies to both JavaScript and TypeScript, ensuring a unified approach to coding.
- Use Case: When integrating with an asynchronous API, this Skill helps you write concise and robust promise-based code, avoiding common pitfalls and improving code readability.
Quick Start
// Avoid: // new Promise((resolve, reject) => { // fs.readFile('file.txt', (err, data) => { // if (err) reject(err); // resolve(data); // }); // });
// Prefer: import { promises as fs } from 'fs'; fs.readFile('file.txt'); // Returns a promise directly
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: javascript Download link: https://github.com/bendrucker/claude/archive/main.zip#javascript Please download this .zip file, extract it, and install it in the .claude/skills/ directory.