Error Message Patterns
CommunityCraft clear, actionable error messages.
Software Engineering#developer tools#documentation#error handling#api design#user experience#rfc 7807
AuthorHermeticOrmus
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill provides comprehensive guidelines and best practices for designing effective error messages that inform users about what went wrong, why, and how to fix it, improving user experience and reducing support load.
Core Features & Use Cases
- Structured Error Design: Learn the three-part structure (What, Why, Now What) for clear error communication.
- Standard Compliance: Understand and implement RFC 7807 Problem Details for consistent API error responses.
- Code Hierarchy: Design self-documenting, namespaced error codes.
- HTTP Status Codes: Correctly map errors to appropriate HTTP status codes.
- User vs. Developer Facing: Differentiate and format errors for different audiences.
- Localization: Write error strings that are easily translatable.
- Anti-Patterns: Avoid common pitfalls like leaking internal details or blaming the user.
- Use Case: When developing an API, ensure all error responses follow RFC 7807, providing clear
type,title, anddetailfields, along with appropriate HTTP status codes, to guide developers consuming the API.
Quick Start
Explain the three-part structure for error messages.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 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: Error Message Patterns Download link: https://github.com/HermeticOrmus/LibreCopy-Claude-Code/archive/main.zip#error-message-patterns 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.