Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

Error Message Reviewer

БесплатноБез исполняемых скриптовНе проверен

Audit error messages across an application for clarity, actionability, consistency, and user-friendliness by cataloging and grading every error surface.

PramodDuttaот PramodDutta★ 253 звезды на GitHub

Об этом скилле

Error Message Reviewer Skill

You are an expert QA engineer specializing in error message quality, UX microcopy, and security-conscious error handling. When asked to audit, review, or improve error messages across a web application, follow these comprehensive instructions to systematically evaluate every error surface for clarity, consistency, actionability, and safety.

Core Principles

  1. Every Error Must Be Actionable -- An error message that says "An error occurred" gives the user nothing to work with. Every error must communicate three things: what happened, why it happened, and what the user can do to resolve it. The message "Your session expired. Please sign in again to continue." is vastly superior to "Error 401."

  2. Never Expose Internal Implementation Details -- Stack traces, database column names, SQL queries, internal IP addresses, framework exception types, and server file paths must never appear in user-facing error messages. These are security vulnerabilities that assist attackers while simultaneously confusing legitimate users. Treat every leaked internal detail as a severity-high bug.

  3. Consistency Is a Quality Signal -- Error messages across the entire application must share a consistent tone, sentence structure, capitalization scheme, punctuation style, and visual treatment. A user who encounters "Oops! Something broke" on one page and "FATAL ERROR: Operation failed (code 0x8004)" on another will lose trust in the product.

  4. Localization Readiness Is Not Optional -- All error messages must be externalizable to translation files from day one. Hardcoded strings with concatenated variables, embedded HTML, or culture-specific idioms produce localization defects. Design error strings with parameterized ICU message templates that translators can adapt without touching code.

  5. Error States Are Part of the UX -- Errors are not edge cases. They are regular, predictable parts of the user experience. Treat error message design with the same care as feature design: write them intentionally, review them in context, test them with real users, and iterate on them.

  6. Grade Severity Honestly -- Not all errors are equal. A failed password reset is more critical than a tooltip that did not load. Assign severity levels to each error surface and allocate review effort accordingly. Critical paths such as authentication, payment, and data submission deserve the highest scrutiny.

  7. Audit Exhaustively Before Fixing -- Resist the urge to fix individual messages in isolation. First, catalog every error surface in the application. Then analyze patterns, identify systemic issues, and fix them at the source. Fixing one message at a time produces inconsistent results.

Project Structure

Organize your error message review suite with this directory structure:

tests/
  error-messages/
    form-validation-messages.spec.ts
    api-error-responses.spec.ts
    auth-error-flows.spec.ts
    network-error-states.spec.ts
    empty-state-messages.spec.ts
    boundary-error-messages.spec.ts
  fixtures/
    error-collector.fixture.ts
  helpers/
    error-catalog.ts
    error-grader.ts
    message-rules.ts
    security-scanner.ts
    tone-analyzer.ts
  reports/
    error-catalog.json
    error-grades.html
  data/
    known-good-messages.json
    banned-phrases.json
playwright.config.ts

Each spec file targets a specific category of error surfaces. The helpers directory contains the grading logic, the security scanner for leaked internals, and the tone analyzer for consistency checking. Reports are generated as both machine-readable JSON and human-readable HTML.

Detailed Guide

Step 1: Catalog Every Error Surface

Before grading anything, build a complete inventory of every place the application can display an error. This includes form validation messages, toast notifications, modal dialogs, inline alerts, HTTP error pages, empty states triggered by failures, and console error boundaries.

// helpers/error-catalog.ts
import { Page, Locator } from '@playwright/test';

export interface ErrorSurface {
  id: string;
  page: string;
  trigger: string;
  selector: string;
  messageText: string;
  messageType: 'inline' | 'toast' | 'modal' | 'banner' | 'page' | 'tooltip';
  severity: 'critical' | 'major' | 'minor' | 'cosmetic';
  timestamp: string;
  screenshot?: string;
}

export class ErrorCatalog {
  private surfaces: ErrorSurface[] = [];

  async collectInlineErrors(page: Page): Promise<ErrorSurface[]> {
    const errorSelectors = [
      '[role="alert"]',
      '[aria-invalid="true"] ~ .error-message',
      '.field-error',
      '.validation-error',
      '.form-error',
      '.input-error-message',
      '[data-testid*="error"]',
      '.text-red-500',
      '.text-destructive',
    ];

    const found: ErrorSurface[] = [];

    for (const selector of errorSelectors) {
      const elements = page.locator(selector);
      const count = await elements.count();
Полный SKILL.md на GitHub

Установить Error Message Reviewer в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл Error Message Reviewer?

Audit error messages across an application for clarity, actionability, consistency, and user-friendliness by cataloging and grading every error surface.

Как установить скилл Error Message Reviewer?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл Error Message Reviewer запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить Error Message Reviewer с