Skip to main content

error-message-optimizer

Optimizes error messages for clarity, actionability, and user experience. Transforms technical errors into user-friendly messages.

Source facts

Repository
Fadil369/Solutions
Last source activity
April 9, 2026 at 00:36
Detected SKILL.md language
English
Stars
1
Forks
0

Install options

The review-first prompt is selected by default. You can switch to a direct command or download a local copy.

Review the source files

Read SKILL.md and any companion files shown by SkillsMP before deciding whether to install.

Showing SKILL.md

SKILL.md
Source instructions · Read-only preview
name
Error Message Optimizer
version
1.0.0
description
Optimizes error messages for clarity, actionability, and user experience. Transforms technical errors into user-friendly messages.
author
workspace
activated
false
# Error Message Optimizer Optimizes error messages for clarity, actionability, and user experience. Transforms technical errors into user-friendly messages. ## Decision Framework ### When to Apply Use when: Form validation, API error handling, user-facing error states, onboarding flows ### When NOT to Apply Don't use when: Internal logging only, developer-only tools ## Anti-Patterns ### 1. Technical Errors to Users ```javascript // BAD "Error: ECONNREFUSED 127.0.0.1:5432" // GOOD "We couldn't connect to our servers. Please try again in a few moments." ``` ### 2. Blame Language ```javascript // BAD: Blames user "You entered an invalid email address" // GOOD: Neutral "Please enter a valid email address (e.g., name@example.com)" ``` ### 3. No Recovery Path ```javascript // BAD: Dead end "Error occurred" // GOOD: Actionable "Your session expired. <a href='/login'>Sign in again</a> to continue." ``` ## Trigger Phrases - "Improve error messages" - "User-friendly errors" - "Form validation messages" - "Error UX" ## Patterns ### Error Message Map ```javascript const errorMessages = { 'auth/invalid-email': { user: 'Please enter a valid email address.', action: 'highlight-field', recovery: 'Check for typos in your email.' }, 'auth/user-not-found': { user: 'No account found with this email.', action: 'show-signup-link', recovery: 'Would you like to create an account?' }, 'network/timeout': { user: 'The request took too long. Please try again.', action: 'show-retry-button', recovery: 'Check your internet connection.' } }; ``` ## Integration - Works with: form-pattern-engine, accessibility-pattern-library, notification-system-builder
View on GitHub