Agent Skillsmohitagw15856/pm-claude-skills › error-message-writer

error-message-writer

GitHub

用于撰写清晰、无指责的用户错误提示,指导用户排查问题并执行下一步操作。支持根据内联、Toast或全页等不同展示面生成适配文案,确保语气人性化且分离技术日志与用户可见信息。

plugins/pm-uxwriting/skills/error-message-writer/SKILL.md mohitagw15856/pm-claude-skills

Trigger Scenarios

请求编写错误提示信息 需要重写晦涩的系统报错 设计失败或空状态文案

Install

npx skills add mohitagw15856/pm-claude-skills --skill error-message-writer -g -y
More Options

Non-standard path

npx skills add https://github.com/mohitagw15856/pm-claude-skills/tree/main/plugins/pm-uxwriting/skills/error-message-writer -g -y

Use without installing

npx skills use mohitagw15856/pm-claude-skills@error-message-writer

指定 Agent (Claude Code)

npx skills add mohitagw15856/pm-claude-skills --skill error-message-writer -a claude-code -g -y

安装 repo 全部 skill

npx skills add mohitagw15856/pm-claude-skills --all -g -y

预览 repo 内 skill

npx skills add mohitagw15856/pm-claude-skills --list

SKILL.md

Frontmatter
{
    "name": "error-message-writer",
    "description": "Write clear, helpful error messages that tell users what happened and how to fix it. Use when asked to write an error message, validation text, a failure\/empty-error state, or to rewrite a cryptic system error. Produces human, blame-free error copy — what went wrong, why (if useful), and the next step — with options per surface (inline, toast, full page) and the related success\/empty states."
}

Error Message Writer Skill

An error is a moment of friction; a good error message turns it into a recovery. The formula is simple and rarely followed: say what happened, in plain language, and what to do next — without blaming the user or exposing a stack trace. This skill writes error copy that helps people get unstuck and keeps trust intact.

Working from a brief

Given "the payment failed" or a raw system error, write the message anyway — infer the likely cause and the recovery path, and label assumptions. Where the real cause is unknown to the user, focus on the next action. Never hand back a question instead of the copy; never surface internal/technical detail to end users.

Required Inputs

Ask for these only if they aren't already provided (else infer and label):

  • What failed — the action or system, and the likely cause(s).
  • The surface — inline field, toast/snackbar, modal, or full-page error.
  • Recovery — what the user can actually do (retry, fix input, wait, contact support).
  • Voice & constraints — tone, length limits, and whether a support/error code is needed.

Output Format

Error Message: [scenario]

  • Recommended message — structured as:
    • What happened — plainly, in the user's terms ("We couldn't process your payment").
    • Why / what to check — only if it helps them act ("Your card was declined — check the details or try another card").
    • Next step — the clear action (a button label or instruction).
  • By surface — short variants for inline validation, toast, and full-page where relevant.
  • Tone notes — blame-free, calm, human; matched to severity (a wrong field ≠ a data-loss event).
  • For developers — a note on what to log vs. what to show (keep stack traces and codes out of the user message; offer a support reference if needed).

Quality Checks

  • States what happened in plain language — no codes, no jargon, no stack traces shown to the user
  • Gives a concrete next step the user can take
  • Blame-free — never "you entered it wrong"; focus on the fix
  • Tone matches severity (minor validation vs. serious failure)
  • Variants fit the surface (inline vs. toast vs. full page) and any length limits
  • Separates what to log (technical) from what to show (human)

Anti-Patterns

  • Do not show raw/technical errors ("Error 500", "null pointer") to end users
  • Do not blame the user ("Invalid input") — say what to do instead
  • Do not write a dead-end ("Something went wrong") with no next step
  • Do not be jokey about serious failures (payment, data loss) — match the tone to the stakes
  • Do not bury the action — the recovery step should be obvious

Based On

UX writing practice — plain-language, blame-free error messages with clear recovery, surface-appropriate variants, and log-vs-show separation.

Version History

  • a38bc30 Current 2026-07-05 11:27

Same Skill Collection

exports/openclaw/360-feedback-template/SKILL.md
exports/openclaw/401k-plan-decoder/SKILL.md
exports/openclaw/ab-test-planner/SKILL.md
exports/openclaw/ab-test-readout/SKILL.md
exports/openclaw/accessibility-audit/SKILL.md
exports/openclaw/account-plan/SKILL.md
exports/openclaw/acquirer-red-team/SKILL.md
exports/openclaw/ad-copy/SKILL.md
exports/openclaw/aeo-optimizer/SKILL.md
exports/openclaw/agenda-or-cancel/SKILL.md
exports/openclaw/agent-design-review/SKILL.md
exports/openclaw/agent-observability-spec/SKILL.md
exports/openclaw/agent-spec/SKILL.md
exports/openclaw/ai-ethics-review/SKILL.md
exports/openclaw/ai-eval-plan/SKILL.md
exports/openclaw/ai-feature-prd/SKILL.md
exports/openclaw/ai-product-canvas/SKILL.md
exports/openclaw/air-quality/SKILL.md
exports/openclaw/altitude-shifter/SKILL.md
exports/openclaw/ambiguity-resolver/SKILL.md
exports/openclaw/analyst-relations-brief/SKILL.md
exports/openclaw/announcement-card/SKILL.md
exports/openclaw/api-docs-writer/SKILL.md
exports/openclaw/api-test-plan/SKILL.md
exports/openclaw/api-versioning-strategy/SKILL.md
exports/openclaw/apology-letter/SKILL.md
exports/openclaw/architecture-decision-record/SKILL.md
exports/openclaw/architecture-diagram/SKILL.md
exports/openclaw/archive-strategy/SKILL.md
exports/openclaw/assumption-bounty/SKILL.md
exports/openclaw/assumption-mapper/SKILL.md
exports/openclaw/async-update-format/SKILL.md
exports/openclaw/auto-repair-estimate-decoder/SKILL.md
exports/openclaw/autopilot-charter/SKILL.md
exports/openclaw/benefits-decoder/SKILL.md
exports/openclaw/bid-tender-review/SKILL.md
exports/openclaw/board-deck-narrative/SKILL.md
exports/openclaw/board-minutes/SKILL.md
exports/openclaw/board-pre-read/SKILL.md
exports/openclaw/bom-cost-review/SKILL.md
exports/openclaw/bookkeeping-categorization/SKILL.md
exports/openclaw/boolean-search-builder/SKILL.md
exports/openclaw/brag-doc/SKILL.md
exports/openclaw/brainstorming/SKILL.md
exports/openclaw/brief-builder/SKILL.md
exports/openclaw/briefing-note/SKILL.md
exports/openclaw/budget-builder/SKILL.md
exports/openclaw/budget-variance-analysis/SKILL.md
exports/openclaw/bug-diagnosis/SKILL.md
exports/openclaw/bug-report/SKILL.md

Metadata

Files
0
Version
471c606
Hash
3a62988f
Indexed
2026-07-05 11:27

- 위키
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-07-29 14:16
浙ICP备14020137号-1 $방문자$