Error Message Patterns

Community

Craft clear, actionable error messages.

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, and detail fields, 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 required

Components

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.
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.