javascript-code-style
CommunityEnforce robust JavaScript coding standards.
Software Engineering#logging#validation#javascript#error-handling#coding-standards#express#api-development
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 requiredComponents
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.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.