javascript-code-style

Community

Enforce robust JavaScript coding standards.

Authoriamyojimbo
Version1.0.0
Installs0

System Documentation

What problem does it solve?

JavaScript developers often struggle with inconsistent error handling across Express API routes, leading to hard-to-debug failures and missed user feedback in the ECP codebase.

Core Features & Use Cases

  • Guaranteed error boundaries: Always wrap async route handlers in try-catch to prevent unhandled rejections and improve reliability.
  • Standardized error responses: Use setErrorResponse(res, title, detail, status) for consistent client feedback.
  • Observability and safety: Log errors with console.error() before returning responses, and apply appropriate status codes (400 for client errors, 500 for server errors).

Quick Start

Apply these guidelines to an Express API route in the api/ directory and wrap all async handlers with proper error handling.

Dependency Matrix

Required Modules

None required

Components

scriptsreferencesassets

💻 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-code-style
Download link: https://github.com/iamyojimbo/prompts/archive/main.zip#javascript-code-style

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.