[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7D8HV2MR4DQSSBE5J0V16PV":3,"skill-same:01M7D8HV2MR4DQSSBE5J0V16PV":78},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":56,"commitSha":57,"skillDirectory":58,"forksCount":14,"repositoryHtmlUrl":59,"repositoryHomepageUrl":6,"ownerHtmlUrl":60,"ownerBlogUrl":61,"ownerDescription":62,"updatedAt":63,"install":64,"resources":77},"01M7D8HV2MR4DQSSBE5J0V16PV","Error Message Reviewer",null,"Audit error messages across an application for clarity, actionability, consistency, and user-friendliness by cataloging and grading every error surface.","GrupoANDevelopment-m\u002Falberto-ai","GrupoANDevelopment-m","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F257455179?v=4","01M7D69X2N2KEVN0SJF6WGM6SH","Antônio  Ndombe","01M7D69X3P5JTT8H8S904N3888",0,"MIT","https:\u002F\u002Fgithub.com\u002FGrupoANDevelopment-m\u002Falberto-ai\u002Fblob\u002Fmain\u002Fskills\u002Fqa\u002Ferror-message-reviewer\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: Error Message Reviewer\ndescription: Audit error messages across an application for clarity, actionability, consistency, and user-friendliness by cataloging and grading every error surface.\nversion: 1.0.0\nauthor: Pramod\nlicense: MIT\ntags: [error-messages, ux-writing, microcopy, user-experience, error-handling, copywriting]\ntestingTypes: [e2e, code-quality]\nframeworks: [playwright]\nlanguages: [typescript, javascript]\ndomains: [web]\nagents: [claude-code, cursor, github-copilot, windsurf, codex, aider, continue, cline, zed, bolt, gemini-cli, amp]\n---\n\n# Error Message Reviewer Skill\n\nYou 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.\n\n## Core Principles\n\n1. **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.\"\n\n2. **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.\n\n3. **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.\n\n4. **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.\n\n5. **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.\n\n6. **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.\n\n7. **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.\n\n## Project Structure\n\nOrganize your error message review suite with this directory structure:\n\n```\ntests\u002F\n  error-messages\u002F\n    form-validation-messages.spec.ts\n    api-error-responses.spec.ts\n    auth-error-flows.spec.ts\n    network-error-states.spec.ts\n    empty-state-messages.spec.ts\n    boundary-error-messages.spec.ts\n  fixtures\u002F\n    error-collector.fixture.ts\n  helpers\u002F\n    error-catalog.ts\n    error-grader.ts\n    message-rules.ts\n    security-scanner.ts\n    tone-analyzer.ts\n  reports\u002F\n    error-catalog.json\n    error-grades.html\n  data\u002F\n    known-good-messages.json\n    banned-phrases.json\nplaywright.config.ts\n```\n\nEach 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.\n\n## Detailed Guide\n\n### Step 1: Catalog Every Error Surface\n\nBefore 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.\n\n```typescript\n\u002F\u002F helpers\u002Ferror-catalog.ts\nimport { Page, Locator } from '@playwright\u002Ftest';\n\nexport interface ErrorSurface {\n  id: string;\n  page: string;\n  trigger: string;\n  selector: string;\n  messageText: string;\n  messageType: 'inline' | 'toast' | 'modal' | 'banner' | 'page' | 'tooltip';\n  severity: 'critical' | 'major' | 'minor' | 'cosmetic';\n  timestamp: string;\n  screenshot?: string;\n}\n\nexport class ErrorCatalog {\n  private surfaces: ErrorSurface[] = [];\n\n  async collectInlineErrors(page: Page): Promise\u003CErrorSurface[]> {\n    const errorSelectors = [\n      '[role=\"alert\"]',\n      '[aria-invalid=\"true\"] ~ .error-message',\n      '.field-error',\n      '.validation-error',\n      '.form-error',\n      '.input-error-message',\n      '[data-testid*=\"error\"]',\n      '.text-red-500',\n      '.text-destructive',\n    ];\n\n    const found: ErrorSurface[] = [];\n\n    for (const selector of errorSelectors) {\n      const elements = page.locator(selector);\n      const count = await elements.count();\n\n      for (let i = 0; i \u003C count; i++) {\n        const element = elements.nth(i);\n        const text = await element.textContent();\n\n        if (text && text.trim().length > 0) {\n          found.push({\n            id: `inline-${found.length}`,\n            page: page.url(),\n            trigger: 'form-submission',\n            selector,\n            messageText: text.trim(),\n            messageType: 'inline',\n            severity: 'major',\n            timestamp: new Date().toISOString(),\n          });\n        }\n      }\n    }\n\n    this.surfaces.push(...found);\n    return found;\n  }\n\n  async collectToastErrors(page: Page): Promise\u003CErrorSurface[]> {\n    const toastSelectors = [\n      '[role=\"status\"]',\n      '.toast-error',\n      '.notification-error',\n      '[data-sonner-toast][data-type=\"error\"]',\n      '.Toastify__toast--error',\n    ];\n\n    const found: ErrorSurface[] = [];\n\n    for (const selector of toastSelectors) {\n      const elements = page.locator(selector);\n      const count = await elements.count();\n\n      for (let i = 0; i \u003C count; i++) {\n        const element = elements.nth(i);\n        const text = await element.textContent();\n\n        if (text && text.trim().length > 0) {\n          found.push({\n            id: `toast-${found.length}`,\n            page: page.url(),\n            trigger: 'async-operation',\n            selector,\n            messageText: text.trim(),\n            messageType: 'toast',\n            severity: 'major',\n            timestamp: new Date().toISOString(),\n          });\n        }\n      }\n    }\n\n    this.surfaces.push(...found);\n    return found;\n  }\n\n  async collectModalErrors(page: Page): Promise\u003CErrorSurface[]> {\n    const modalSelectors = [\n      '[role=\"dialog\"] [role=\"alert\"]',\n      '.modal-error',\n      '.dialog-error-body',\n      '[role=\"alertdialog\"]',\n    ];\n\n    const found: ErrorSurface[] = [];\n\n    for (const selector of modalSelectors) {\n      const elements = page.locator(selector);\n      const count = await elements.count();\n\n      for (let i = 0; i \u003C count; i++) {\n        const element = elements.nth(i);\n        const text = await element.textContent();\n\n        if (text && text.trim().length > 0) {\n          found.push({\n            id: `modal-${found.length}`,\n            page: page.url(),\n            trigger: 'critical-operation',\n            selector,\n            messageText: text.trim(),\n            messageType: 'modal',\n            severity: 'critical',\n            timestamp: new Date().toISOString(),\n          });\n        }\n      }\n    }\n\n    this.surfaces.push(...found);\n    return found;\n  }\n\n  getAllSurfaces(): ErrorSurface[] {\n    return [...this.surfaces];\n  }\n\n  exportAsJSON(): string {\n    return JSON.stringify(this.surfaces, null, 2);\n  }\n}\n```\n\n### Step 2: Build a Grading Rubric\n\nEach error message should be scored against a well-defined rubric. The rubric evaluates clarity, actionability, tone, security, accessibility, and localization readiness.\n\n```typescript\n\u002F\u002F helpers\u002Ferror-grader.ts\nimport { ErrorSurface } from '.\u002Ferror-catalog';\n\nexport interface GradeResult {\n  surface: ErrorSurface;\n  scores: {\n    clarity: number;        \u002F\u002F 0-10: Is the message understandable?\n    actionability: number;  \u002F\u002F 0-10: Does it tell the user what to do next?\n    tone: number;           \u002F\u002F 0-10: Is it empathetic and professional?\n    security: number;       \u002F\u002F 0-10: Does it avoid leaking internals?\n    accessibility: number;  \u002F\u002F 0-10: Is it screen-reader friendly?\n    localization: number;   \u002F\u002F 0-10: Is it ready for translation?\n  };\n  totalScore: number;\n  grade: 'A' | 'B' | 'C' | 'D' | 'F';\n  issues: string[];\n  recommendations: string[];\n}\n\nconst BANNED_PHRASES = [\n  'an error occurred',\n  'something went wrong',\n  'unexpected error',\n  'oops',\n  'uh oh',\n  'whoops',\n  'please try again later',\n  'contact support',\n  'error code',\n  'null',\n  'undefined',\n  'NaN',\n  'exception',\n  'stack trace',\n];\n\nconst INTERNAL_LEAK_PATTERNS = [\n  \u002Fat\\s+\\w+\\s+\\(.*:\\d+:\\d+\\)\u002Fi,       \u002F\u002F stack trace lines\n  \u002F\\\u002Fusr\\\u002F|\\\u002Fvar\\\u002F|\\\u002Fhome\\\u002F\u002Fi,          \u002F\u002F server file paths\n  \u002FSELECT\\s+.*FROM\u002Fi,                   \u002F\u002F SQL queries\n  \u002Fpostgres|mysql|mongo|redis\u002Fi,         \u002F\u002F database names\n  \u002F\\b\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\b\u002F, \u002F\u002F IP addresses\n  \u002FECONNREFUSED|ETIMEDOUT|ENOTFOUND\u002Fi,  \u002F\u002F Node.js error codes\n  \u002FTypeError|ReferenceError|SyntaxError\u002Fi, \u002F\u002F JS exception types\n  \u002Fnode_modules\u002Fi,                       \u002F\u002F dependency paths\n  \u002F\\.ts:\\d+|\\.js:\\d+\u002Fi,                 \u002F\u002F source file references\n];\n\nexport class ErrorGrader {\n  gradeMessage(surface: ErrorSurface): GradeResult {\n    const issues: string[] = [];\n    const recommendations: string[] = [];\n    const message = surface.messageText.toLowerCase();\n\n    \u002F\u002F Clarity scoring\n    let clarity = 10;\n    if (surface.messageText.length \u003C 10) {\n      clarity -= 4;\n      issues.push('Message is too short to be meaningful');\n      recommendations.push('Expand the message to explain what happened');\n    }\n    if (surface.messageText.length > 200) {\n      clarity -= 2;\n      issues.push('Message is excessively long');\n      recommendations.push('Shorten to under 200 characters for scannability');\n    }\n    for (const phrase of BANNED_PHRASES) {\n      if (message.includes(phrase)) {\n        clarity -= 3;\n        issues.push(`Contains vague phrase: \"${phrase}\"`);\n        recommendations.push(`Replace \"${phrase}\" with a specific description of the problem`);\n      }\n    }\n\n    \u002F\u002F Actionability scoring\n    let actionability = 10;\n    const actionWords = ['try', 'click', 'check', 'verify', 'update', 'enter', 'select', 'refresh', 'sign in', 'log in', 'contact'];\n    const hasAction = actionWords.some((word) => message.includes(word));\n    if (!hasAction) {\n      actionability -= 5;\n      issues.push('Message does not suggest a next action');\n      recommendations.push('Add a clear call-to-action telling the user what to do');\n    }\n\n    \u002F\u002F Tone scoring\n    let tone = 10;\n    const aggressivePhrases = ['you must', 'you failed', 'invalid', 'illegal', 'forbidden', 'bad request', 'wrong'];\n    for (const phrase of aggressivePhrases) {\n      if (message.includes(phrase)) {\n        tone -= 2;\n        issues.push(`Uses potentially aggressive language: \"${phrase}\"`);\n        recommendations.push(`Soften \"${phrase}\" to be more empathetic`);\n      }\n    }\n\n    \u002F\u002F Security scoring\n    let security = 10;\n    for (const pattern of INTERNAL_LEAK_PATTERNS) {\n      if (pattern.test(surface.messageText)) {\n        security -= 5;\n        issues.push(`Potential information leak detected: ${pattern.source}`);\n        recommendations.push('Remove internal implementation details from user-facing message');\n      }\n    }\n\n    \u002F\u002F Accessibility scoring\n    let accessibility = 10;\n    if (surface.messageText === surface.messageText.toUpperCase() && surface.messageText.length > 5) {\n      accessibility -= 3;\n      issues.push('Message is in ALL CAPS which is hostile to screen readers');\n      recommendations.push('Use sentence case for screen reader compatibility');\n    }\n\n    \u002F\u002F Localization scoring\n    let localization = 10;\n    if (\u002F\\{0\\}|\\$\\{\u002F.test(surface.messageText)) {\n      localization -= 2;\n      issues.push('Uses code-style interpolation visible to the user');\n    }\n\n    const scores = {\n      clarity: Math.max(0, clarity),\n      actionability: Math.max(0, actionability),\n      tone: Math.max(0, tone),\n      security: Math.max(0, security),\n      accessibility: Math.max(0, accessibility),\n      localization: Math.max(0, localization),\n    };\n\n    const totalScore = Object.values(scores).reduce((sum, s) => sum + s, 0);\n    const maxScore = 60;\n    const percentage = (totalScore \u002F maxScore) * 100;\n\n    let grade: GradeResult['grade'];\n    if (percentage >= 90) grade = 'A';\n    else if (percentage >= 80) grade = 'B';\n    else if (percentage >= 70) grade = 'C';\n    else if (percentage >= 60) grade = 'D';\n    else grade = 'F';\n\n    return { surface, scores, totalScore, grade, issues, recommendations };\n  }\n}\n```\n\n### Step 3: Write Playwright Tests That Trigger Error States\n\nThe core of this skill is writing tests that deliberately trigger every error state in the application and then grade the resulting messages.\n\n```typescript\n\u002F\u002F tests\u002Ferror-messages\u002Fform-validation-messages.spec.ts\nimport { test, expect } from '@playwright\u002Ftest';\nimport { ErrorCatalog, ErrorSurface } from '..\u002Fhelpers\u002Ferror-catalog';\nimport { ErrorGrader, GradeResult } from '..\u002Fhelpers\u002Ferror-grader';\n\ntest.describe('Form Validation Error Messages', () => {\n  let catalog: ErrorCatalog;\n  let grader: ErrorGrader;\n\n  test.beforeEach(() => {\n    catalog = new ErrorCatalog();\n    grader = new ErrorGrader();\n  });\n\n  test('login form shows clear errors for empty submission', async ({ page }) => {\n    await page.goto('\u002Flogin');\n    await page.click('button[type=\"submit\"]');\n    await page.waitForTimeout(500);\n\n    const errors = await catalog.collectInlineErrors(page);\n\n    expect(errors.length).toBeGreaterThan(0);\n\n    for (const error of errors) {\n      const grade = grader.gradeMessage(error);\n      expect(grade.grade).not.toBe('F');\n      expect(grade.scores.security).toBeGreaterThanOrEqual(8);\n      expect(grade.scores.clarity).toBeGreaterThanOrEqual(6);\n    }\n  });\n\n  test('registration form validates email format with helpful message', async ({ page }) => {\n    await page.goto('\u002Fregister');\n    await page.fill('[name=\"email\"]', 'not-an-email');\n    await page.fill('[name=\"password\"]', 'short');\n    await page.click('button[type=\"submit\"]');\n    await page.waitForTimeout(500);\n\n    const errors = await catalog.collectInlineErrors(page);\n\n    for (const error of errors) {\n      const grade = grader.gradeMessage(error);\n      expect(grade.scores.actionability).toBeGreaterThanOrEqual(5);\n\n      \u002F\u002F The message should tell the user what valid input looks like\n      const messageText = error.messageText.toLowerCase();\n      const isHelpful =\n        messageText.includes('example') ||\n        messageText.includes('format') ||\n        messageText.includes('like') ||\n        messageText.includes('must be') ||\n        messageText.includes('should');\n      expect(isHelpful).toBe(true);\n    }\n  });\n\n  test('payment form errors never expose card processing details', async ({ page }) => {\n    await page.goto('\u002Fcheckout');\n    \u002F\u002F Trigger payment validation errors\n    await page.fill('[name=\"cardNumber\"]', '0000000000000000');\n    await page.click('button[type=\"submit\"]');\n    await page.waitForTimeout(1000);\n\n    const errors = await catalog.collectInlineErrors(page);\n    const toasts = await catalog.collectToastErrors(page);\n    const allErrors = [...errors, ...toasts];\n\n    for (const error of allErrors) {\n      const grade = grader.gradeMessage(error);\n      \u002F\u002F Payment errors must have perfect security scores\n      expect(grade.scores.security).toBe(10);\n\n      \u002F\u002F Must never contain processor-specific details\n      const forbidden = ['stripe', 'braintree', 'adyen', 'processor', 'gateway', 'merchant'];\n      for (const term of forbidden) {\n        expect(error.messageText.toLowerCase()).not.toContain(term);\n      }\n    }\n  });\n});\n```\n\n### Step 4: Test API Error Responses\n\nAPI error responses that reach the frontend must also be reviewed. Many applications pass raw API error messages directly to the UI without transformation.\n\n```typescript\n\u002F\u002F tests\u002Ferror-messages\u002Fapi-error-responses.spec.ts\nimport { test, expect } from '@playwright\u002Ftest';\n\ninterface APIErrorResponse {\n  status: number;\n  body: {\n    error?: string;\n    message?: string;\n    details?: unknown;\n  };\n}\n\ntest.describe('API Error Response Quality', () => {\n  const endpoints = [\n    { method: 'POST', path: '\u002Fapi\u002Fauth\u002Flogin', body: { email: '', password: '' } },\n    { method: 'POST', path: '\u002Fapi\u002Fusers', body: { email: 'invalid' } },\n    { method: 'GET', path: '\u002Fapi\u002Fresources\u002Fnonexistent-id' },\n    { method: 'DELETE', path: '\u002Fapi\u002Fresources\u002Funauthorized-id' },\n    { method: 'PUT', path: '\u002Fapi\u002Fsettings', body: { theme: 999 } },\n  ];\n\n  for (const endpoint of endpoints) {\n    test(`${endpoint.method} ${endpoint.path} returns a safe error`, async ({ request }) => {\n      const response = await request.fetch(endpoint.path, {\n        method: endpoint.method,\n        data: endpoint.body,\n        headers: { 'Content-Type': 'application\u002Fjson' },\n      });\n\n      if (response.status() >= 400) {\n        const body = await response.json();\n        const message = body.message || body.error || JSON.stringify(body);\n\n        \u002F\u002F Must not contain stack traces\n        expect(message).not.toMatch(\u002Fat\\s+\\w+\\s+\\(.*:\\d+:\\d+\\)\u002F);\n\n        \u002F\u002F Must not contain SQL\n        expect(message).not.toMatch(\u002FSELECT|INSERT|UPDATE|DELETE.*FROM\u002Fi);\n\n        \u002F\u002F Must not contain file paths\n        expect(message).not.toMatch(\u002F\\\u002Fusr\\\u002F|\\\u002Fvar\\\u002F|\\\u002Fhome\\\u002F|node_modules\u002F);\n\n        \u002F\u002F Must not expose database details\n        expect(message).not.toMatch(\u002Fpostgres|mysql|mongo|constraint|violates\u002Fi);\n\n        \u002F\u002F Must be a reasonable length\n        expect(message.length).toBeLessThan(500);\n        expect(message.length).toBeGreaterThan(5);\n      }\n    });\n  }\n});\n```\n\n### Step 5: Analyze Network Error States\n\nUsers frequently encounter network errors when their connection is unstable. Test that the application handles offline states, timeouts, and server errors gracefully.\n\n```typescript\n\u002F\u002F tests\u002Ferror-messages\u002Fnetwork-error-states.spec.ts\nimport { test, expect } from '@playwright\u002Ftest';\nimport { ErrorCatalog } from '..\u002Fhelpers\u002Ferror-catalog';\nimport { ErrorGrader } from '..\u002Fhelpers\u002Ferror-grader';\n\ntest.describe('Network Error Message Quality', () => {\n  test('shows helpful message when API is unreachable', async ({ page, context }) => {\n    await page.goto('\u002Fdashboard');\n\n    \u002F\u002F Simulate network failure for API calls\n    await context.route('**\u002Fapi\u002F**', (route) => route.abort('connectionrefused'));\n\n    \u002F\u002F Trigger an action that requires API\n    await page.click('[data-testid=\"refresh-data\"]');\n    await page.waitForTimeout(2000);\n\n    const catalog = new ErrorCatalog();\n    const grader = new ErrorGrader();\n    const errors = [\n      ...(await catalog.collectInlineErrors(page)),\n      ...(await catalog.collectToastErrors(page)),\n    ];\n\n    expect(errors.length).toBeGreaterThan(0);\n\n    for (const error of errors) {\n      const grade = grader.gradeMessage(error);\n      \u002F\u002F Network errors must suggest checking connectivity\n      expect(grade.scores.actionability).toBeGreaterThanOrEqual(6);\n      expect(grade.scores.clarity).toBeGreaterThanOrEqual(6);\n    }\n  });\n\n  test('handles slow responses without confusing timeout messages', async ({ page, context }) => {\n    \u002F\u002F Simulate very slow API\n    await context.route('**\u002Fapi\u002F**', async (route) => {\n      await new Promise((resolve) => setTimeout(resolve, 30000));\n      await route.fulfill({ status: 504, body: 'Gateway Timeout' });\n    });\n\n    await page.goto('\u002Fdashboard');\n    await page.click('[data-testid=\"load-more\"]');\n\n    \u002F\u002F Wait for the timeout UI to appear\n    await page.waitForTimeout(15000);\n\n    const catalog = new ErrorCatalog();\n    const errors = await catalog.collectInlineErrors(page);\n\n    for (const error of errors) {\n      const message = error.messageText.toLowerCase();\n      \u002F\u002F Should not say \"504\" or \"gateway timeout\" to the user\n      expect(message).not.toContain('504');\n      expect(message).not.toContain('gateway timeout');\n    }\n  });\n});\n```\n\n### Step 6: Generate the Error Catalog Report\n\nAfter running all tests, produce a consolidated report that lists every error surface, its grade, and prioritized recommendations.\n\n```typescript\n\u002F\u002F helpers\u002Ferror-reporter.ts\nimport * as fs from 'fs';\nimport { GradeResult } from '.\u002Ferror-grader';\n\nexport class ErrorReporter {\n  private results: GradeResult[] = [];\n\n  addResult(result: GradeResult): void {\n    this.results.push(result);\n  }\n\n  generateSummary(): {\n    totalSurfaces: number;\n    averageScore: number;\n    gradeDistribution: Record\u003Cstring, number>;\n    criticalIssues: GradeResult[];\n  } {\n    const totalSurfaces = this.results.length;\n    const averageScore =\n      this.results.reduce((sum, r) => sum + r.totalScore, 0) \u002F totalSurfaces;\n\n    const gradeDistribution: Record\u003Cstring, number> = { A: 0, B: 0, C: 0, D: 0, F: 0 };\n    for (const result of this.results) {\n      gradeDistribution[result.grade]++;\n    }\n\n    const criticalIssues = this.results.filter(\n      (r) => r.scores.security \u003C 8 || r.grade === 'F'\n    );\n\n    return { totalSurfaces, averageScore, gradeDistribution, criticalIssues };\n  }\n\n  writeJSONReport(outputPath: string): void {\n    const report = {\n      generatedAt: new Date().toISOString(),\n      summary: this.generateSummary(),\n      results: this.results,\n    };\n    fs.writeFileSync(outputPath, JSON.stringify(report, null, 2));\n  }\n\n  writeHTMLReport(outputPath: string): void {\n    const summary = this.generateSummary();\n    const html = `\u003C!DOCTYPE html>\n\u003Chtml lang=\"en\">\n\u003Chead>\n  \u003Ctitle>Error Message Audit Report\u003C\u002Ftitle>\n  \u003Cstyle>\n    body { font-family: system-ui, sans-serif; max-width: 960px; margin: 0 auto; padding: 2rem; }\n    .grade-A { color: #16a34a; } .grade-B { color: #2563eb; }\n    .grade-C { color: #d97706; } .grade-D { color: #ea580c; }\n    .grade-F { color: #dc2626; font-weight: bold; }\n    table { width: 100%; border-collapse: collapse; margin-top: 1rem; }\n    th, td { text-align: left; padding: 0.5rem; border-bottom: 1px solid #e5e7eb; }\n  \u003C\u002Fstyle>\n\u003C\u002Fhead>\n\u003Cbody>\n  \u003Ch1>Error Message Audit Report\u003C\u002Fh1>\n  \u003Cp>Total surfaces audited: ${summary.totalSurfaces}\u003C\u002Fp>\n  \u003Cp>Average score: ${summary.averageScore.toFixed(1)} \u002F 60\u003C\u002Fp>\n  \u003Ch2>Grade Distribution\u003C\u002Fh2>\n  \u003Cul>\n    ${Object.entries(summary.gradeDistribution)\n      .map(([grade, count]) => `\u003Cli class=\"grade-${grade}\">${grade}: ${count}\u003C\u002Fli>`)\n      .join('')}\n  \u003C\u002Ful>\n  \u003Ch2>All Results\u003C\u002Fh2>\n  \u003Ctable>\n    \u003Cthead>\u003Ctr>\u003Cth>Page\u003C\u002Fth>\u003Cth>Message\u003C\u002Fth>\u003Cth>Grade\u003C\u002Fth>\u003Cth>Issues\u003C\u002Fth>\u003C\u002Ftr>\u003C\u002Fthead>\n    \u003Ctbody>\n      ${this.results\n        .sort((a, b) => a.totalScore - b.totalScore)\n        .map(\n          (r) => `\u003Ctr>\n          \u003Ctd>${r.surface.page}\u003C\u002Ftd>\n          \u003Ctd>${r.surface.messageText.substring(0, 80)}\u003C\u002Ftd>\n          \u003Ctd class=\"grade-${r.grade}\">${r.grade} (${r.totalScore}\u002F60)\u003C\u002Ftd>\n          \u003Ctd>${r.issues.join('; ')}\u003C\u002Ftd>\n        \u003C\u002Ftr>`\n        )\n        .join('')}\n    \u003C\u002Ftbody>\n  \u003C\u002Ftable>\n\u003C\u002Fbody>\n\u003C\u002Fhtml>`;\n    fs.writeFileSync(outputPath, html);\n  }\n}\n```\n\n## Configuration\n\n### Playwright Configuration for Error Message Testing\n\n```typescript\n\u002F\u002F playwright.config.ts\nimport { defineConfig } from '@playwright\u002Ftest';\n\nexport default defineConfig({\n  testDir: '.\u002Ftests\u002Ferror-messages',\n  timeout: 30000,\n  retries: 1,\n  use: {\n    baseURL: process.env.BASE_URL || 'http:\u002F\u002Flocalhost:3000',\n    screenshot: 'on',\n    trace: 'on-first-retry',\n  },\n  reporter: [\n    ['html', { open: 'never' }],\n    ['json', { outputFile: 'reports\u002Ferror-audit-results.json' }],\n  ],\n  projects: [\n    {\n      name: 'error-audit-chromium',\n      use: { browserName: 'chromium' },\n    },\n  ],\n});\n```\n\n### Custom Message Rules Configuration\n\n```typescript\n\u002F\u002F helpers\u002Fmessage-rules.ts\nexport interface MessageRule {\n  id: string;\n  name: string;\n  description: string;\n  severity: 'error' | 'warning' | 'info';\n  check: (message: string) => boolean;\n  recommendation: string;\n}\n\nexport const defaultRules: MessageRule[] = [\n  {\n    id: 'no-technical-jargon',\n    name: 'No Technical Jargon',\n    description: 'Error messages should not contain technical terms unfamiliar to end users',\n    severity: 'error',\n    check: (msg) => \u002Fexception|stack|null pointer|segfault|core dump\u002Fi.test(msg),\n    recommendation: 'Replace technical terms with plain language descriptions',\n  },\n  {\n    id: 'no-blame-language',\n    name: 'No Blame Language',\n    description: 'Error messages should not blame the user for the error',\n    severity: 'warning',\n    check: (msg) => \u002Fyou (did|made|caused|broke)|your fault|your error\u002Fi.test(msg),\n    recommendation: 'Use passive voice or focus on the system state rather than user actions',\n  },\n  {\n    id: 'minimum-length',\n    name: 'Minimum Message Length',\n    description: 'Error messages must be at least 15 characters to be meaningful',\n    severity: 'error',\n    check: (msg) => msg.trim().length \u003C 15,\n    recommendation: 'Expand the message to describe the problem and suggest a solution',\n  },\n  {\n    id: 'no-raw-http-codes',\n    name: 'No Raw HTTP Status Codes',\n    description: 'Users should never see raw HTTP status codes as the primary error message',\n    severity: 'error',\n    check: (msg) => \u002F^(4\\d{2}|5\\d{2})\\b\u002F.test(msg.trim()),\n    recommendation: 'Translate HTTP status codes into human-readable explanations',\n  },\n  {\n    id: 'sentence-case',\n    name: 'Sentence Case',\n    description: 'Error messages should use sentence case, not ALL CAPS or Title Case',\n    severity: 'warning',\n    check: (msg) => msg === msg.toUpperCase() && msg.length > 10,\n    recommendation: 'Convert to sentence case for better readability and accessibility',\n  },\n  {\n    id: 'no-period-missing',\n    name: 'Proper Punctuation',\n    description: 'Multi-sentence error messages should end with proper punctuation',\n    severity: 'info',\n    check: (msg) => msg.includes('. ') && !\u002F[.!?]$\u002F.test(msg.trim()),\n    recommendation: 'End multi-sentence messages with a period',\n  },\n  {\n    id: 'has-recovery-action',\n    name: 'Recovery Action Present',\n    description: 'Error messages should include a recovery action or next step',\n    severity: 'error',\n    check: (msg) => {\n      const actionVerbs = ['try', 'click', 'refresh', 'check', 'update', 'contact', 'sign in', 'reload'];\n      return !actionVerbs.some((verb) => msg.toLowerCase().includes(verb));\n    },\n    recommendation: 'Add a clear action the user can take to recover from the error',\n  },\n];\n```\n\n## Best Practices\n\n1. **Catalog first, fix second.** Build a complete inventory of every error surface before changing any individual message. Fixing messages piecemeal produces inconsistency.\n\n2. **Test errors in context, not in isolation.** An error message that reads well in a spreadsheet might be confusing when displayed inside a small tooltip with truncated text. Always verify messages in the actual UI.\n\n3. **Maintain a banned phrases list.** Keep a centralized list of phrases that must never appear in error messages, such as \"something went wrong\" or \"an error occurred.\" Run automated checks against this list in CI.\n\n4. **Separate user-facing messages from developer logs.** Errors sent to logging services can be as verbose and technical as needed. The user-facing message must be a separate, curated string.\n\n5. **Include error codes for support channels.** If users need to contact support, give them a short, memorable error code (like \"ERR-1042\") that support staff can look up. Never make error codes the primary message.\n\n6. **Test with screen readers.** Error messages must be announced by assistive technology. Verify that ARIA live regions are used correctly and that messages are read aloud when they appear.\n\n7. **Test localized versions.** If the application supports multiple languages, audit error messages in every locale. Machine-translated error messages are frequently nonsensical.\n\n8. **Grade on a rubric, not gut feeling.** Use a consistent scoring system with defined criteria. Subjective \"this seems fine\" reviews miss systemic patterns.\n\n9. **Check error message consistency across related flows.** The password reset flow and the login flow should use the same tone, format, and vocabulary for similar errors.\n\n10. **Monitor error messages in production.** Track which error messages users actually see using analytics. The most frequently shown error messages deserve the most attention.\n\n11. **Validate that errors disappear after correction.** When a user fixes the problem (enters a valid email after an invalid one), the error message must clear immediately. Stale error messages erode trust.\n\n12. **Test empty and boundary states.** Submit forms with maximum-length inputs, special characters, and empty fields. These boundary cases frequently produce unhelpful or broken error messages.\n\n## Anti-Patterns to Avoid\n\n1. **Generic catch-all messages.** Displaying \"Something went wrong\" for every error is lazy and unhelpful. Each error type should have its own tailored message.\n\n2. **Exposing stack traces to users.** This is both a UX failure and a security vulnerability. Never render raw exception output in the UI.\n\n3. **Blaming the user.** Messages like \"You entered an invalid email\" feel accusatory. Prefer \"Please enter a valid email address\" which focuses on the solution.\n\n4. **Using error codes as the sole message.** \"Error 403\" means nothing to most users. Always accompany codes with a human-readable explanation.\n\n5. **Hardcoding error strings in components.** Error messages scattered across dozens of component files become impossible to audit and maintain. Centralize them in a messages file or i18n system.\n\n6. **Showing technical HTTP status pages.** A raw Nginx 502 Bad Gateway page tells the user nothing useful and looks unprofessional.\n\n7. **Hiding errors silently.** Swallowing errors without showing any feedback leaves users confused about why their action did not succeed.\n\n8. **Using humor in critical errors.** A lighthearted \"Oops!\" is acceptable for a non-critical tooltip failure. It is inappropriate for a failed payment or a data loss scenario.\n\n9. **Displaying multiple duplicate errors.** When a form submission triggers three identical \"Required field\" messages with no indication of which field they refer to, the UX is broken.\n\n10. **Inconsistent capitalization and punctuation.** Mixing \"Email is required.\" with \"PASSWORD MUST NOT BE EMPTY\" and \"please provide a username\" across the same form signals a lack of quality control.\n\n## Debugging Tips\n\n1. **Use Playwright's page.on('console') listener** to capture all console output during error state tests. Console warnings often reveal error message rendering issues that are not visible in the UI.\n\n2. **Intercept network responses with page.route()** to simulate specific HTTP error codes and verify the corresponding UI messages. Test 400, 401, 403, 404, 422, 429, 500, 502, 503, and 504 responses individually.\n\n3. **Take screenshots at the moment each error appears.** Visual evidence is invaluable when reporting error message quality issues to designers and copywriters.\n\n4. **Check the DOM for hidden error elements.** Some error messages exist in the DOM but are hidden by CSS. Use page.locator().isVisible() to verify that error messages intended for display are actually visible.\n\n5. **Test error message timing.** Use performance.now() or Playwright's built-in timing to verify that error messages appear within 200ms of the triggering action. Delayed error feedback feels broken.\n\n6. **Inspect ARIA attributes on error containers.** Verify that error message containers have role=\"alert\" or aria-live=\"polite\" so assistive technology announces them.\n\n7. **Test error recovery flows end-to-end.** After triggering an error, verify that correcting the input and resubmitting clears the error and proceeds normally. Error states that persist after correction are severe bugs.\n\n8. **Validate error message rendering at different viewport sizes.** Long error messages may overflow or get truncated on mobile viewports. Test at 320px, 375px, and 768px widths.\n\n9. **Compare error messages across browsers.** Some browsers add their own error text (especially for form validation). Verify that custom error messages override browser defaults consistently.\n\n10. **Log the raw API response alongside the displayed message.** When a UI error message does not match the API error, it indicates a missing or incorrect error transformation layer in the frontend code.\n","# Error Message Reviewer Skill\n\nYou 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.\n\n## Core Principles\n\n1. **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.\"\n\n2. **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.\n\n3. **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.\n\n4. **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.\n\n5. **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.\n\n6. **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.\n\n7. **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.\n\n## Project Structure\n\nOrganize your error message review suite with this directory structure:\n\n```\ntests\u002F\n  error-messages\u002F\n    form-validation-messages.spec.ts\n    api-error-responses.spec.ts\n    auth-error-flows.spec.ts\n    network-error-states.spec.ts\n    empty-state-messages.spec.ts\n    boundary-error-messages.spec.ts\n  fixtures\u002F\n    error-collector.fixture.ts\n  helpers\u002F\n    error-catalog.ts\n    error-grader.ts\n    message-rules.ts\n    security-scanner.ts\n    tone-analyzer.ts\n  reports\u002F\n    error-catalog.json\n    error-grades.html\n  data\u002F\n    known-good-messages.json\n    banned-phrases.json\nplaywright.config.ts\n```\n\nEach 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.\n\n## Detailed Guide\n\n### Step 1: Catalog Every Error Surface\n\nBefore 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.\n\n```typescript\n\u002F\u002F helpers\u002Ferror-catalog.ts\nimport { Page, Locator } from '@playwright\u002Ftest';\n\nexport interface ErrorSurface {\n  id: string;\n  page: string;\n  trigger: string;\n  selector: string;\n  messageText: string;\n  messageType: 'inline' | 'toast' | 'modal' | 'banner' | 'page' | 'tooltip';\n  severity: 'critical' | 'major' | 'minor' | 'cosmetic';\n  timestamp: string;\n  screenshot?: string;\n}\n\nexport class ErrorCatalog {\n  private surfaces: ErrorSurface[] = [];\n\n  async collectInlineErrors(page: Page): Promise\u003CErrorSurface[]> {\n    const errorSelectors = [\n      '[role=\"alert\"]',\n      '[aria-invalid=\"true\"] ~ .error-message',\n      '.field-error',\n      '.validation-error',\n      '.form-error',\n      '.input-error-message',\n      '[data-testid*=\"error\"]',\n      '.text-red-500',\n      '.text-destructive',\n    ];\n\n    const found: ErrorSurface[] = [];\n\n    for (const selector of errorSelectors) {\n      const elements = page.locator(selector);\n      const count = await elements.count();\n\n      for (let i = 0; i \u003C count; i++) {\n        const element = elements.nth(i);\n        const text = await element.textContent();\n\n        if (text && text.trim().length > 0) {\n          found.push({\n            id: `inline-${found.length}`,\n            page: page.url(),\n            trigger: 'form-submission',\n            selector,\n            messageText: text.trim(),\n            messageType: 'inline',\n            severity: 'major',\n            timestamp: new Date().toISOString(),\n          });\n        }\n      }\n    }\n\n    this.surfaces.push(...found);\n    return found;\n  }\n\n  async collectToastErrors(page: Page): Promise\u003CErrorSurface[]> {\n    const toastSelectors = [\n      '[role=\"status\"]',\n      '.toast-error',\n      '.notification-error',\n      '[data-sonner-toast][data-type=\"error\"]',\n      '.Toastify__toast--error',\n    ];\n\n    const found: ErrorSurface[] = [];\n\n    for (const selector of toastSelectors) {\n      const elements = page.locator(selector);\n      const count = await elements.count();\n\n      for (let i = 0; i \u003C count; i++) {\n        const element = elements.nth(i);\n        const text = await element.textContent();\n\n        if (text && text.trim().length > 0) {\n          found.push({\n            id: `toast-${found.length}`,\n            page: page.url(),\n            trigger: 'async-operation',\n            selector,\n            messageText: text.trim(),\n            messageType: 'toast',\n            severity: 'major',\n            timestamp: new Date().toISOString(),\n          });\n        }\n      }\n    }\n\n    this.surfaces.push(...found);\n    return found;\n  }\n\n  async collectModalErrors(page: Page): Promise\u003CErrorSurface[]> {\n    const modalSelectors = [\n      '[role=\"dialog\"] [role=\"alert\"]',\n      '.modal-error',\n      '.dialog-error-body',\n      '[role=\"alertdialog\"]',\n    ];\n\n    const found: ErrorSurface[] = [];\n\n    for (const selector of modalSelectors) {\n      const elements = page.locator(selector);\n      const count = await elements.count();\n\n      for (let i = 0; i \u003C count; i++) {\n        const element = elements.nth(i);\n        const text = await element.textContent();\n\n        if (text && text.trim().length > 0) {\n          found.push({\n            id: `modal-${found.length}`,\n            page: page.url(),\n            trigger: 'critical-operation',\n            selector,\n            messageText: text.trim(),\n            messageType: 'modal',\n            severity: 'critical',\n            timestamp: new Date().toISOString(),\n          });\n        }\n      }\n    }\n\n    this.surfaces.push(...found);\n    return found;\n  }\n\n  getAllSurfaces(): ErrorSurface[] {\n    return [...this.surfaces];\n  }\n\n  exportAsJSON(): string {\n    return JSON.stringify(this.surfaces, null, 2);\n  }\n}\n```\n\n### Step 2: Build a Grading Rubric\n\nEach error message should be scored against a well-defined rubric. The rubric evaluates clarity, actionability, tone, security, accessibility, and localization readiness.\n\n```typescript\n\u002F\u002F helpers\u002Ferror-grader.ts\nimport { ErrorSurface } from '.\u002Ferror-catalog';\n\nexport interface GradeResult {\n  surface: ErrorSurface;\n  scores: {\n    clarity: number;        \u002F\u002F 0-10: Is the message understandable?\n    actionability: number;  \u002F\u002F 0-10: Does it tell the user what to do next?\n    tone: number;           \u002F\u002F 0-10: Is it empathetic and professional?\n    security: number;       \u002F\u002F 0-10: Does it avoid leaking internals?\n    accessibility: number;  \u002F\u002F 0-10: Is it screen-reader friendly?\n    localization: number;   \u002F\u002F 0-10: Is it ready for translation?\n  };\n  totalScore: number;\n  grade: 'A' | 'B' | 'C' | 'D' | 'F';\n  issues: string[];\n  recommendations: string[];\n}\n\nconst BANNED_PHRASES = [\n  'an error occurred',\n  'something went wrong',\n  'unexpected error',\n  'oops',\n  'uh oh',\n  'whoops',\n  'please try again later',\n  'contact support',\n  'error code',\n  'null',\n  'undefined',\n  'NaN',\n  'exception',\n  'stack trace',\n];\n\nconst INTERNAL_LEAK_PATTERNS = [\n  \u002Fat\\s+\\w+\\s+\\(.*:\\d+:\\d+\\)\u002Fi,       \u002F\u002F stack trace lines\n  \u002F\\\u002Fusr\\\u002F|\\\u002Fvar\\\u002F|\\\u002Fhome\\\u002F\u002Fi,          \u002F\u002F server file paths\n  \u002FSELECT\\s+.*FROM\u002Fi,                   \u002F\u002F SQL queries\n  \u002Fpostgres|mysql|mongo|redis\u002Fi,         \u002F\u002F database names\n  \u002F\\b\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\b\u002F, \u002F\u002F IP addresses\n  \u002FECONNREFUSED|ETIMEDOUT|ENOTFOUND\u002Fi,  \u002F\u002F Node.js error codes\n  \u002FTypeError|ReferenceError|SyntaxError\u002Fi, \u002F\u002F JS exception types\n  \u002Fnode_modules\u002Fi,                       \u002F\u002F dependency paths\n  \u002F\\.ts:\\d+|\\.js:\\d+\u002Fi,                 \u002F\u002F source file references\n];\n\nexport class ErrorGrader {\n  gradeMessage(surface: ErrorSurface): GradeResult {\n    const issues: string[] = [];\n    const recommendations: string[] = [];\n    const message = surface.messageText.toLowerCase();\n\n    \u002F\u002F Clarity scoring\n    let clarity = 10;\n    if (surface.messageText.length \u003C 10) {\n      clarity -= 4;\n      issues.push('Message is too short to be meaningful');\n      recommendations.push('Expand the message to explain what happened');\n    }\n    if (surface.messageText.length > 200) {\n      clarity -= 2;\n      issues.push('Message is excessively long');\n      recommendations.push('Shorten to under 200 characters for scannability');\n    }\n    for (const phrase of BANNED_PHRASES) {\n      if (message.includes(phrase)) {\n        clarity -= 3;\n        issues.push(`Contains vague phrase: \"${phrase}\"`);\n        recommendations.push(`Replace \"${phrase}\" with a specific description of the problem`);\n      }\n    }\n\n    \u002F\u002F Actionability scoring\n    let actionability = 10;\n    const actionWords = ['try', 'click', 'check', 'verify', 'update', 'enter', 'select', 'refresh', 'sign in', 'log in', 'contact'];\n    const hasAction = actionWords.some((word) => message.includes(word));\n    if (!hasAction) {\n      actionability -= 5;\n      issues.push('Message does not suggest a next action');\n      recommendations.push('Add a clear call-to-action telling the user what to do');\n    }\n\n    \u002F\u002F Tone scoring\n    let tone = 10;\n    const aggressivePhrases = ['you must', 'you failed', 'invalid', 'illegal', 'forbidden', 'bad request', 'wrong'];\n    for (const phrase of aggressivePhrases) {\n      if (message.includes(phrase)) {\n        tone -= 2;\n        issues.push(`Uses potentially aggressive language: \"${phrase}\"`);\n        recommendations.push(`Soften \"${phrase}\" to be more empathetic`);\n      }\n    }\n\n    \u002F\u002F Security scoring\n    let security = 10;\n    for (const pattern of INTERNAL_LEAK_PATTERNS) {\n      if (pattern.test(surface.messageText)) {\n        security -= 5;\n        issues.push(`Potential information leak detected: ${pattern.source}`);\n        recommendations.push('Remove internal implementation details from user-facing message');\n      }\n    }\n\n    \u002F\u002F Accessibility scoring\n    let accessibility = 10;\n    if (surface.messageText === surface.messageText.toUpperCase() && surface.messageText.length > 5) {\n      accessibility -= 3;\n      issues.push('Message is in ALL CAPS which is hostile to screen readers');\n      recommendations.push('Use sentence case for screen reader compatibility');\n    }\n\n    \u002F\u002F Localization scoring\n    let localization = 10;\n    if (\u002F\\{0\\}|\\$\\{\u002F.test(surface.messageText)) {\n      localization -= 2;\n      issues.push('Uses code-style interpolation visible to the user');\n    }\n\n    const scores = {\n      clarity: Math.max(0, clarity),\n      actionability: Math.max(0, actionability),\n      tone: Math.max(0, tone),\n      security: Math.max(0, security),\n      accessibility: Math.max(0, accessibility),\n      localization: Math.max(0, localization),\n    };\n\n    const totalScore = Object.values(scores).reduce((sum, s) => sum + s, 0);\n    const maxScore = 60;\n    const percentage = (totalScore \u002F maxScore) * 100;\n\n    let grade: GradeResult['grade'];\n    if (percentage >= 90) grade = 'A';\n    else if (percentage >= 80) grade = 'B';\n    else if (percentage >= 70) grade = 'C';\n    else if (percentage >= 60) grade = 'D';\n    else grade = 'F';\n\n    return { surface, scores, totalScore, grade, issues, recommendations };\n  }\n}\n```\n\n### Step 3: Write Playwright Tests That Trigger Error States\n\nThe core of this skill is writing tests that deliberately trigger every error state in the application and then grade the resulting messages.\n\n```typescript\n\u002F\u002F tests\u002Ferror-messages\u002Fform-validation-messages.spec.ts\nimport { test, expect } from '@playwright\u002Ftest';\nimport { ErrorCatalog, ErrorSurface } from '..\u002Fhelpers\u002Ferror-catalog';\nimport { ErrorGrader, GradeResult } from '..\u002Fhelpers\u002Ferror-grader';\n\ntest.describe('Form Validation Error Messages', () => {\n  let catalog: ErrorCatalog;\n  let grader: ErrorGrader;\n\n  test.beforeEach(() => {\n    catalog = new ErrorCatalog();\n    grader = new ErrorGrader();\n  });\n\n  test('login form shows clear errors for empty submission', async ({ page }) => {\n    await page.goto('\u002Flogin');\n    await page.click('button[type=\"submit\"]');\n    await page.waitForTimeout(500);\n\n    const errors = await catalog.collectInlineErrors(page);\n\n    expect(errors.length).toBeGreaterThan(0);\n\n    for (const error of errors) {\n      const grade = grader.gradeMessage(error);\n      expect(grade.grade).not.toBe('F');\n      expect(grade.scores.security).toBeGreaterThanOrEqual(8);\n      expect(grade.scores.clarity).toBeGreaterThanOrEqual(6);\n    }\n  });\n\n  test('registration form validates email format with helpful message', async ({ page }) => {\n    await page.goto('\u002Fregister');\n    await page.fill('[name=\"email\"]', 'not-an-email');\n    await page.fill('[name=\"password\"]', 'short');\n    await page.click('button[type=\"submit\"]');\n    await page.waitForTimeout(500);\n\n    const errors = await catalog.collectInlineErrors(page);\n\n    for (const error of errors) {\n      const grade = grader.gradeMessage(error);\n      expect(grade.scores.actionability).toBeGreaterThanOrEqual(5);\n\n      \u002F\u002F The message should tell the user what valid input looks like\n      const messageText = error.messageText.toLowerCase();\n      const isHelpful =\n        messageText.includes('example') ||\n        messageText.includes('format') ||\n        messageText.includes('like') ||\n        messageText.includes('must be') ||\n        messageText.includes('should');\n      expect(isHelpful).toBe(true);\n    }\n  });\n\n  test('payment form errors never expose card processing details', async ({ page }) => {\n    await page.goto('\u002Fcheckout');\n    \u002F\u002F Trigger payment validation errors\n    await page.fill('[name=\"cardNumber\"]', '0000000000000000');\n    await page.click('button[type=\"submit\"]');\n    await page.waitForTimeout(1000);\n\n    const errors = await catalog.collectInlineErrors(page);\n    const toasts = await catalog.collectToastErrors(page);\n    const allErrors = [...errors, ...toasts];\n\n    for (const error of allErrors) {\n      const grade = grader.gradeMessage(error);\n      \u002F\u002F Payment errors must have perfect security scores\n      expect(grade.scores.security).toBe(10);\n\n      \u002F\u002F Must never contain processor-specific details\n      const forbidden = ['stripe', 'braintree', 'adyen', 'processor', 'gateway', 'merchant'];\n      for (const term of forbidden) {\n        expect(error.messageText.toLowerCase()).not.toContain(term);\n      }\n    }\n  });\n});\n```\n\n### Step 4: Test API Error Responses\n\nAPI error responses that reach the frontend must also be reviewed. Many applications pass raw API error messages directly to the UI without transformation.\n\n```typescript\n\u002F\u002F tests\u002Ferror-messages\u002Fapi-error-responses.spec.ts\nimport { test, expect } from '@playwright\u002Ftest';\n\ninterface APIErrorResponse {\n  status: number;\n  body: {\n    error?: string;\n    message?: string;\n    details?: unknown;\n  };\n}\n\ntest.describe('API Error Response Quality', () => {\n  const endpoints = [\n    { method: 'POST', path: '\u002Fapi\u002Fauth\u002Flogin', body: { email: '', password: '' } },\n    { method: 'POST', path: '\u002Fapi\u002Fusers', body: { email: 'invalid' } },\n    { method: 'GET', path: '\u002Fapi\u002Fresources\u002Fnonexistent-id' },\n    { method: 'DELETE', path: '\u002Fapi\u002Fresources\u002Funauthorized-id' },\n    { method: 'PUT', path: '\u002Fapi\u002Fsettings', body: { theme: 999 } },\n  ];\n\n  for (const endpoint of endpoints) {\n    test(`${endpoint.method} ${endpoint.path} returns a safe error`, async ({ request }) => {\n      const response = await request.fetch(endpoint.path, {\n        method: endpoint.method,\n        data: endpoint.body,\n        headers: { 'Content-Type': 'application\u002Fjson' },\n      });\n\n      if (response.status() >= 400) {\n        const body = await response.json();\n        const message = body.message || body.error || JSON.stringify(body);\n\n        \u002F\u002F Must not contain stack traces\n        expect(message).not.toMatch(\u002Fat\\s+\\w+\\s+\\(.*:\\d+:\\d+\\)\u002F);\n\n        \u002F\u002F Must not contain SQL\n        expect(message).not.toMatch(\u002FSELECT|INSERT|UPDATE|DELETE.*FROM\u002Fi);\n\n        \u002F\u002F Must not contain file paths\n        expect(message).not.toMatch(\u002F\\\u002Fusr\\\u002F|\\\u002Fvar\\\u002F|\\\u002Fhome\\\u002F|node_modules\u002F);\n\n        \u002F\u002F Must not expose database details\n        expect(message).not.toMatch(\u002Fpostgres|mysql|mongo|constraint|violates\u002Fi);\n\n        \u002F\u002F Must be a reasonable length\n        expect(message.length).toBeLessThan(500);\n        expect(message.length).toBeGreaterThan(5);\n      }\n    });\n  }\n});\n```\n\n### Step 5: Analyze Network Error States\n\nUsers frequently encounter network errors when their connection is unstable. Test that the application handles offline states, timeouts, and server errors gracefully.\n\n```typescript\n\u002F\u002F tests\u002Ferror-messages\u002Fnetwork-error-states.spec.ts\nimport { test, expect } from '@playwright\u002Ftest';\nimport { ErrorCatalog } from '..\u002Fhelpers\u002Ferror-catalog';\nimport { ErrorGrader } from '..\u002Fhelpers\u002Ferror-grader';\n\ntest.describe('Network Error Message Quality', () => {\n  test('shows helpful message when API is unreachable', async ({ page, context }) => {\n    await page.goto('\u002Fdashboard');\n\n    \u002F\u002F Simulate network failure for API calls\n    await context.route('**\u002Fapi\u002F**', (route) => route.abort('connectionrefused'));\n\n    \u002F\u002F Trigger an action that requires API\n    await page.click('[data-testid=\"refresh-data\"]');\n    await page.waitForTimeout(2000);\n\n    const catalog = new ErrorCatalog();\n    const grader = new ErrorGrader();\n    const errors = [\n      ...(await catalog.collectInlineErrors(page)),\n      ...(await catalog.collectToastErrors(page)),\n    ];\n\n    expect(errors.length).toBeGreaterThan(0);\n\n    for (const error of errors) {\n      const grade = grader.gradeMessage(error);\n      \u002F\u002F Network errors must suggest checking connectivity\n      expect(grade.scores.actionability).toBeGreaterThanOrEqual(6);\n      expect(grade.scores.clarity).toBeGreaterThanOrEqual(6);\n    }\n  });\n\n  test('handles slow responses without confusing timeout messages', async ({ page, context }) => {\n    \u002F\u002F Simulate very slow API\n    await context.route('**\u002Fapi\u002F**', async (route) => {\n      await new Promise((resolve) => setTimeout(resolve, 30000));\n      await route.fulfill({ status: 504, body: 'Gateway Timeout' });\n    });\n\n    await page.goto('\u002Fdashboard');\n    await page.click('[data-testid=\"load-more\"]');\n\n    \u002F\u002F Wait for the timeout UI to appear\n    await page.waitForTimeout(15000);\n\n    const catalog = new ErrorCatalog();\n    const errors = await catalog.collectInlineErrors(page);\n\n    for (const error of errors) {\n      const message = error.messageText.toLowerCase();\n      \u002F\u002F Should not say \"504\" or \"gateway timeout\" to the user\n      expect(message).not.toContain('504');\n      expect(message).not.toContain('gateway timeout');\n    }\n  });\n});\n```\n\n### Step 6: Generate the Error Catalog Report\n\nAfter running all tests, produce a consolidated report that lists every error surface, its grade, and prioritized recommendations.\n\n```typescript\n\u002F\u002F helpers\u002Ferror-reporter.ts\nimport * as fs from 'fs';\nimport { GradeResult } from '.\u002Ferror-grader';\n\nexport class ErrorReporter {\n  private results: GradeResult[] = [];\n\n  addResult(result: GradeResult): void {\n    this.results.push(result);\n  }\n\n  generateSummary(): {\n    totalSurfaces: number;\n    averageScore: number;\n    gradeDistribution: Record\u003Cstring, number>;\n    criticalIssues: GradeResult[];\n  } {\n    const totalSurfaces = this.results.length;\n    const averageScore =\n      this.results.reduce((sum, r) => sum + r.totalScore, 0) \u002F totalSurfaces;\n\n    const gradeDistribution: Record\u003Cstring, number> = { A: 0, B: 0, C: 0, D: 0, F: 0 };\n    for (const result of this.results) {\n      gradeDistribution[result.grade]++;\n    }\n\n    const criticalIssues = this.results.filter(\n      (r) => r.scores.security \u003C 8 || r.grade === 'F'\n    );\n\n    return { totalSurfaces, averageScore, gradeDistribution, criticalIssues };\n  }\n\n  writeJSONReport(outputPath: string): void {\n    const report = {\n      generatedAt: new Date().toISOString(),\n      summary: this.generateSummary(),\n      results: this.results,\n    };\n    fs.writeFileSync(outputPath, JSON.stringify(report, null, 2));\n  }\n\n  writeHTMLReport(outputPath: string): void {\n    const summary = this.generateSummary();\n    const html = `\u003C!DOCTYPE html>\n\u003Chtml lang=\"en\">\n\u003Chead>\n  \u003Ctitle>Error Message Audit Report\u003C\u002Ftitle>\n  \u003Cstyle>\n    body { font-family: system-ui, sans-serif; max-width: 960px; margin: 0 auto; padding: 2rem; }\n    .grade-A { color: #16a34a; } .grade-B { color: #2563eb; }\n    .grade-C { color: #d97706; } .grade-D { color: #ea580c; }\n    .grade-F { color: #dc2626; font-weight: bold; }\n    table { width: 100%; border-collapse: collapse; margin-top: 1rem; }\n    th, td { text-align: left; padding: 0.5rem; border-bottom: 1px solid #e5e7eb; }\n  \u003C\u002Fstyle>\n\u003C\u002Fhead>\n\u003Cbody>\n  \u003Ch1>Error Message Audit Report\u003C\u002Fh1>\n  \u003Cp>Total surfaces audited: ${summary.totalSurfaces}\u003C\u002Fp>\n  \u003Cp>Average score: ${summary.averageScore.toFixed(1)} \u002F 60\u003C\u002Fp>\n  \u003Ch2>Grade Distribution\u003C\u002Fh2>\n  \u003Cul>\n    ${Object.entries(summary.gradeDistribution)\n      .map(([grade, count]) => `\u003Cli class=\"grade-${grade}\">${grade}: ${count}\u003C\u002Fli>`)\n      .join('')}\n  \u003C\u002Ful>\n  \u003Ch2>All Results\u003C\u002Fh2>\n  \u003Ctable>\n    \u003Cthead>\u003Ctr>\u003Cth>Page\u003C\u002Fth>\u003Cth>Message\u003C\u002Fth>\u003Cth>Grade\u003C\u002Fth>\u003Cth>Issues\u003C\u002Fth>\u003C\u002Ftr>\u003C\u002Fthead>\n    \u003Ctbody>\n      ${this.results\n        .sort((a, b) => a.totalScore - b.totalScore)\n        .map(\n          (r) => `\u003Ctr>\n          \u003Ctd>${r.surface.page}\u003C\u002Ftd>\n          \u003Ctd>${r.surface.messageText.substring(0, 80)}\u003C\u002Ftd>\n          \u003Ctd class=\"grade-${r.grade}\">${r.grade} (${r.totalScore}\u002F60)\u003C\u002Ftd>\n          \u003Ctd>${r.issues.join('; ')}\u003C\u002Ftd>\n        \u003C\u002Ftr>`\n        )\n        .join('')}\n    \u003C\u002Ftbody>\n  \u003C\u002Ftable>\n\u003C\u002Fbody>\n\u003C\u002Fhtml>`;\n    fs.writeFileSync(outputPath, html);\n  }\n}\n```\n\n## Configuration\n\n### Playwright Configuration for Error Message Testing\n\n```typescript\n\u002F\u002F playwright.config.ts\nimport { defineConfig } from '@playwright\u002Ftest';\n\nexport default defineConfig({\n  testDir: '.\u002Ftests\u002Ferror-messages',\n  timeout: 30000,\n  retries: 1,\n  use: {\n    baseURL: process.env.BASE_URL || 'http:\u002F\u002Flocalhost:3000',\n    screenshot: 'on',\n    trace: 'on-first-retry',\n  },\n  reporter: [\n    ['html', { open: 'never' }],\n    ['json', { outputFile: 'reports\u002Ferror-audit-results.json' }],\n  ],\n  projects: [\n    {\n      name: 'error-audit-chromium',\n      use: { browserName: 'chromium' },\n    },\n  ],\n});\n```\n\n### Custom Message Rules Configuration\n\n```typescript\n\u002F\u002F helpers\u002Fmessage-rules.ts\nexport interface MessageRule {\n  id: string;\n  name: string;\n  description: string;\n  severity: 'error' | 'warning' | 'info';\n  check: (message: string) => boolean;\n  recommendation: string;\n}\n\nexport const defaultRules: MessageRule[] = [\n  {\n    id: 'no-technical-jargon',\n    name: 'No Technical Jargon',\n    description: 'Error messages should not contain technical terms unfamiliar to end users',\n    severity: 'error',\n    check: (msg) => \u002Fexception|stack|null pointer|segfault|core dump\u002Fi.test(msg),\n    recommendation: 'Replace technical terms with plain language descriptions',\n  },\n  {\n    id: 'no-blame-language',\n    name: 'No Blame Language',\n    description: 'Error messages should not blame the user for the error',\n    severity: 'warning',\n    check: (msg) => \u002Fyou (did|made|caused|broke)|your fault|your error\u002Fi.test(msg),\n    recommendation: 'Use passive voice or focus on the system state rather than user actions',\n  },\n  {\n    id: 'minimum-length',\n    name: 'Minimum Message Length',\n    description: 'Error messages must be at least 15 characters to be meaningful',\n    severity: 'error',\n    check: (msg) => msg.trim().length \u003C 15,\n    recommendation: 'Expand the message to describe the problem and suggest a solution',\n  },\n  {\n    id: 'no-raw-http-codes',\n    name: 'No Raw HTTP Status Codes',\n    description: 'Users should never see raw HTTP status codes as the primary error message',\n    severity: 'error',\n    check: (msg) => \u002F^(4\\d{2}|5\\d{2})\\b\u002F.test(msg.trim()),\n    recommendation: 'Translate HTTP status codes into human-readable explanations',\n  },\n  {\n    id: 'sentence-case',\n    name: 'Sentence Case',\n    description: 'Error messages should use sentence case, not ALL CAPS or Title Case',\n    severity: 'warning',\n    check: (msg) => msg === msg.toUpperCase() && msg.length > 10,\n    recommendation: 'Convert to sentence case for better readability and accessibility',\n  },\n  {\n    id: 'no-period-missing',\n    name: 'Proper Punctuation',\n    description: 'Multi-sentence error messages should end with proper punctuation',\n    severity: 'info',\n    check: (msg) => msg.includes('. ') && !\u002F[.!?]$\u002F.test(msg.trim()),\n    recommendation: 'End multi-sentence messages with a period',\n  },\n  {\n    id: 'has-recovery-action',\n    name: 'Recovery Action Present',\n    description: 'Error messages should include a recovery action or next step',\n    severity: 'error',\n    check: (msg) => {\n      const actionVerbs = ['try', 'click', 'refresh', 'check', 'update', 'contact', 'sign in', 'reload'];\n      return !actionVerbs.some((verb) => msg.toLowerCase().includes(verb));\n    },\n    recommendation: 'Add a clear action the user can take to recover from the error',\n  },\n];\n```\n\n## Best Practices\n\n1. **Catalog first, fix second.** Build a complete inventory of every error surface before changing any individual message. Fixing messages piecemeal produces inconsistency.\n\n2. **Test errors in context, not in isolation.** An error message that reads well in a spreadsheet might be confusing when displayed inside a small tooltip with truncated text. Always verify messages in the actual UI.\n\n3. **Maintain a banned phrases list.** Keep a centralized list of phrases that must never appear in error messages, such as \"something went wrong\" or \"an error occurred.\" Run automated checks against this list in CI.\n\n4. **Separate user-facing messages from developer logs.** Errors sent to logging services can be as verbose and technical as needed. The user-facing message must be a separate, curated string.\n\n5. **Include error codes for support channels.** If users need to contact support, give them a short, memorable error code (like \"ERR-1042\") that support staff can look up. Never make error codes the primary message.\n\n6. **Test with screen readers.** Error messages must be announced by assistive technology. Verify that ARIA live regions are used correctly and that messages are read aloud when they appear.\n\n7. **Test localized versions.** If the application supports multiple languages, audit error messages in every locale. Machine-translated error messages are frequently nonsensical.\n\n8. **Grade on a rubric, not gut feeling.** Use a consistent scoring system with defined criteria. Subjective \"this seems fine\" reviews miss systemic patterns.\n\n9. **Check error message consistency across related flows.** The password reset flow and the login flow should use the same tone, format, and vocabulary for similar errors.\n\n10. **Monitor error messages in production.** Track which error messages users actually see using analytics. The most frequently shown error messages deserve the most attention.\n\n11. **Validate that errors disappear after correction.** When a user fixes the problem (enters a valid email after an invalid one), the error message must clear immediately. Stale error messages erode trust.\n\n12. **Test empty and boundary states.** Submit forms with maximum-length inputs, special characters, and empty fields. These boundary cases frequently produce unhelpful or broken error messages.\n\n## Anti-Patterns to Avoid\n\n1. **Generic catch-all messages.** Displaying \"Something went wrong\" for every error is lazy and unhelpful. Each error type should have its own tailored message.\n\n2. **Exposing stack traces to users.** This is both a UX failure and a security vulnerability. Never render raw exception output in the UI.\n\n3. **Blaming the user.** Messages like \"You entered an invalid email\" feel accusatory. Prefer \"Please enter a valid email address\" which focuses on the solution.\n\n4. **Using error codes as the sole message.** \"Error 403\" means nothing to most users. Always accompany codes with a human-readable explanation.\n\n5. **Hardcoding error strings in components.** Error messages scattered across dozens of component files become impossible to audit and maintain. Centralize them in a messages file or i18n system.\n\n6. **Showing technical HTTP status pages.** A raw Nginx 502 Bad Gateway page tells the user nothing useful and looks unprofessional.\n\n7. **Hiding errors silently.** Swallowing errors without showing any feedback leaves users confused about why their action did not succeed.\n\n8. **Using humor in critical errors.** A lighthearted \"Oops!\" is acceptable for a non-critical tooltip failure. It is inappropriate for a failed payment or a data loss scenario.\n\n9. **Displaying multiple duplicate errors.** When a form submission triggers three identical \"Required field\" messages with no indication of which field they refer to, the UX is broken.\n\n10. **Inconsistent capitalization and punctuation.** Mixing \"Email is required.\" with \"PASSWORD MUST NOT BE EMPTY\" and \"please provide a username\" across the same form signals a lack of quality control.\n\n## Debugging Tips\n\n1. **Use Playwright's page.on('console') listener** to capture all console output during error state tests. Console warnings often reveal error message rendering issues that are not visible in the UI.\n\n2. **Intercept network responses with page.route()** to simulate specific HTTP error codes and verify the corresponding UI messages. Test 400, 401, 403, 404, 422, 429, 500, 502, 503, and 504 responses individually.\n\n3. **Take screenshots at the moment each error appears.** Visual evidence is invaluable when reporting error message quality issues to designers and copywriters.\n\n4. **Check the DOM for hidden error elements.** Some error messages exist in the DOM but are hidden by CSS. Use page.locator().isVisible() to verify that error messages intended for display are actually visible.\n\n5. **Test error message timing.** Use performance.now() or Playwright's built-in timing to verify that error messages appear within 200ms of the triggering action. Delayed error feedback feels broken.\n\n6. **Inspect ARIA attributes on error containers.** Verify that error message containers have role=\"alert\" or aria-live=\"polite\" so assistive technology announces them.\n\n7. **Test error recovery flows end-to-end.** After triggering an error, verify that correcting the input and resubmitting clears the error and proceeds normally. Error states that persist after correction are severe bugs.\n\n8. **Validate error message rendering at different viewport sizes.** Long error messages may overflow or get truncated on mobile viewports. Test at 320px, 375px, and 768px widths.\n\n9. **Compare error messages across browsers.** Some browsers add their own error text (especially for form validation). Verify that custom error messages override browser defaults consistently.\n\n10. **Log the raw API response alongside the displayed message.** When a UI error message does not match the API error, it indicates a missing or incorrect error transformation layer in the frontend code.\n",{"name":5,"tags":24,"agents":31,"author":44,"domains":45,"license":15,"version":47,"languages":48,"frameworks":51,"description":7,"testingTypes":53},[25,26,27,28,29,30],"error-messages","ux-writing","microcopy","user-experience","error-handling","copywriting",[32,33,34,35,36,37,38,39,40,41,42,43],"claude-code","cursor","github-copilot","windsurf","codex","aider","continue","cline","zed","bolt","gemini-cli","amp","Pramod",[46],"web","1.0.0",[49,50],"typescript","javascript",[52],"playwright",[54,55],"e2e","code-quality","main","eac438ea9216a7cb8a570cab803eb01eeafc6793","skills\u002Fqa\u002Ferror-message-reviewer","https:\u002F\u002Fgithub.com\u002FGrupoANDevelopment-m\u002Falberto-ai","https:\u002F\u002Fgithub.com\u002FGrupoANDevelopment-m","https:\u002F\u002Fid-preview--d5bef06d-6c9e-4563-a3d4-a855b9d61610.lovable.app\u002F","Eu sou Antonio B. B. Ndombe \r\nEu sou um Pesquisador e desenvolvedor de sistema autonomia cognitivos, fundador de sistemas ODCs ( organismos digital conscientes)","2026-11-04 06:53:39",{"source":8,"skillName":5,"commands":65,"prompt":75,"zipAvailable":76},[66,69,72],{"tool":67,"command":68},"npx","npx skills add GrupoANDevelopment-m\u002Falberto-ai --skill \"Error Message Reviewer\"",{"tool":70,"command":71},"bunx","bunx skills add GrupoANDevelopment-m\u002Falberto-ai --skill \"Error Message Reviewer\"",{"tool":73,"command":74},"pnpm","pnpm dlx skills add GrupoANDevelopment-m\u002Falberto-ai --skill \"Error Message Reviewer\"","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FGrupoANDevelopment-m\u002Falberto-ai\u002Fblob\u002Fmain\u002Fskills\u002Fqa\u002Ferror-message-reviewer\u002FSKILL.md",true,[],[79,87,94,101,108,115],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":83,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":19},"01M7DASC6FSCJP49JZBSK0NY1Z","nemoclaw-user-reference","Describes the NemoClaw integration layer and blueprint architecture and how they orchestrate compatible agent sandboxes. Use when looking up architecture, agent integration, plugin structure, or blueprint design. Trigger keywords - nemoclaw architecture, nemoclaw agent architecture, nemoclaw plugin blueprint structure, nemoclaw vs openshell, which cli, nemoclaw cli, openshell cli, sandbox commands, nemoclaw cli commands, nemoclaw command reference, nemoclaw network policy, sandbox egress control operator approval, nemoclaw troubleshooting, nemoclaw debug sandbox issues.","Apache-2.0","https:\u002F\u002Fgithub.com\u002FGrupoANDevelopment-m\u002Falberto-ai\u002Fblob\u002Fmain\u002Fupstream\u002Fnemoclaw\u002Fskills\u002Fnemoclaw-user-reference\u002FSKILL.md",[],[],{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":83,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":19},"01M7DAS5S79VK33XFGVAM2TFWF","nemoclaw-user-overview","Explains how OpenClaw, OpenShell, and NemoClaw form the ecosystem, NemoClaw's position in the stack, what NemoClaw adds beyond the community sandbox, and when to prefer NemoClaw versus integrating OpenShell and OpenClaw directly. Use when users ask about the relationship between OpenClaw, OpenShell, and NemoClaw, or when to use NemoClaw versus OpenShell. Trigger keywords - nemoclaw ecosystem, openclaw openshell, nemoclaw vs openshell, sandboxed openclaw, how nemoclaw works, nemoclaw sandbox lifecycle blueprint, nemoclaw overview, openclaw always-on assistants, nvidia openshell, nvidia nemotron, nemoclaw release notes, nemoclaw changelog.","https:\u002F\u002Fgithub.com\u002FGrupoANDevelopment-m\u002Falberto-ai\u002Fblob\u002Fmain\u002Fupstream\u002Fnemoclaw\u002Fskills\u002Fnemoclaw-user-overview\u002FSKILL.md",[],[],{"skillNo":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":83,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":19},"01M7DAS0PQEMET5MNGZ1ABSZVS","nemoclaw-user-monitor-sandbox","Inspects sandbox health, traces agent behavior, and diagnoses problems. Use when monitoring a running sandbox, debugging agent issues, or checking sandbox logs. Trigger keywords - monitor nemoclaw sandbox, debug nemoclaw agent issues.","https:\u002F\u002Fgithub.com\u002FGrupoANDevelopment-m\u002Falberto-ai\u002Fblob\u002Fmain\u002Fupstream\u002Fnemoclaw\u002Fskills\u002Fnemoclaw-user-monitor-sandbox\u002FSKILL.md",[],[],{"skillNo":102,"name":103,"nameZh":6,"description":104,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":83,"licenseFileUrl":6,"sourceHtmlUrl":105,"categories":106,"keywords":107,"publishedAt":19},"01M7DARQYGF7E9A69VH6S3CGN9","nemoclaw-user-manage-sandboxes","Explains operational tasks after the quickstart: listing sandboxes, status and health checks, logs, diagnostics, port forwards, multiple sandboxes, credential reset, rebuilds, network presets, upgrades, and uninstall. Trigger keywords - manage nemoclaw sandboxes, nemoclaw status, nemoclaw list, nemoclaw dashboard port, nemoclaw rebuild, nemoclaw upgrade sandboxes, nemoclaw uninstall, sandbox mutability, sandbox runtime configuration, sandbox rebuild, nemoclaw backup, nemoclaw restore, workspace backup, openshell sandbox download upload, nemoclaw messaging channels, nemoclaw telegram, nemoclaw discord, nemoclaw slack, nemoclaw wechat, nemoclaw whatsapp, openshell channel messaging, nemoclaw workspace files, soul.md, user.md, identity.md, agents.md, sandbox persistence.","https:\u002F\u002Fgithub.com\u002FGrupoANDevelopment-m\u002Falberto-ai\u002Fblob\u002Fmain\u002Fupstream\u002Fnemoclaw\u002Fskills\u002Fnemoclaw-user-manage-sandboxes\u002FSKILL.md",[],[],{"skillNo":109,"name":110,"nameZh":6,"description":111,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":83,"licenseFileUrl":6,"sourceHtmlUrl":112,"categories":113,"keywords":114,"publishedAt":19},"01M7DARH8BRTG51TRCAB7YWDJ4","nemoclaw-user-manage-policy","Adds, removes, or modifies allowed endpoints in the sandbox policy. Use when customizing network policy, changing egress rules, or configuring sandbox endpoint access. Trigger keywords - customize nemoclaw network policy, sandbox egress policy configuration, nemoclaw integration policy examples, post-install policy setup, openshell approval workflow, policy preset, nemoclaw approve network requests, sandbox egress approval tui.","https:\u002F\u002Fgithub.com\u002FGrupoANDevelopment-m\u002Falberto-ai\u002Fblob\u002Fmain\u002Fupstream\u002Fnemoclaw\u002Fskills\u002Fnemoclaw-user-manage-policy\u002FSKILL.md",[],[],{"skillNo":116,"name":117,"nameZh":6,"description":118,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":83,"licenseFileUrl":6,"sourceHtmlUrl":119,"categories":120,"keywords":121,"publishedAt":19},"01M7DARAT62M2VR37590VCZ5NS","nemoclaw-user-get-started","Installs NemoClaw, launches a sandbox, and runs the first agent prompt. Use when onboarding, installing, or launching a NemoClaw sandbox for the first time. Trigger keywords - nemoclaw quickstart, install nemoclaw openclaw sandbox, nemohermes quickstart, hermes agent nemoclaw, run hermes openshell sandbox, nemoclaw prerequisites, nemoclaw supported platforms, nemoclaw hardware software, nemoclaw windows wsl2 setup, nemoclaw install windows docker desktop.","https:\u002F\u002Fgithub.com\u002FGrupoANDevelopment-m\u002Falberto-ai\u002Fblob\u002Fmain\u002Fupstream\u002Fnemoclaw\u002Fskills\u002Fnemoclaw-user-get-started\u002FSKILL.md",[],[]]