Agent skill

Error Message Writer

by mohitagw15856 in mohitagw15856/pm-claude-skills

Write clear, helpful error messages that tell users what happened and how to fix it.

MITAuto-check passed

Install Error Message Writer

skills CLI
$ npx skills add mohitagw15856/pm-claude-skills --skill error-message-writer -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install mohitagw15856/pm-claude-skills error-message-writer --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/mohitagw15856/pm-claude-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/error-message-writer .claude/skills/error-message-writer && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
error-message-writer
GitHub stars
1.4k
Token cost
~878 tokens
SKILL.md length
459 words
Files
1
Skills in repo
1,348
Repo updated
First seen
Licence
MIT

At a glance

Write clear, helpful error messages that tell users what happened and how to fix it.

  • Asked to write an error message
  • SKILL.md covers Working from a brief, Required Inputs, Output Format and Quality Checks, plus 3 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
  • Validation text

What it does

Error Message Writer is an agent skill from mohitagw15856/pm-claude-skills. 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.

Its SKILL.md is about 880 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

The repository describes itself as: 1255 professional Agent Skills for Claude, ChatGPT, Gemini, Cursor & Codex — PRDs, postmortems, leases, medical bills, layoffs, go-bags, new countries. Plain markdown, MIT, in… The licence is MIT.

When your agent uses it

  • Asked to write an error message
  • Validation text
  • A failure/empty-error state
  • Rewrite a cryptic system error

Example prompts

  • “/error-message-writer”

What it can do on your machine

Read from SKILL.md and the folder at commit 1cbf1f0. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Error Message Writer loads about 878 tokens when it runs. Until then it costs about 104 tokens; SKILL.md has 459 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~104
When it runs · the whole SKILL.md, loaded when a task matches
~878

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from mohitagw15856/pm-claude-skills at commit 1cbf1f0, republished under its MIT licence (© mohitagw15856). 459 words, ~878 tokens.

Download SKILL.mdSave it as .claude/skills/error-message-writer/SKILL.md (or your agent's skills folder).
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).
Show full SKILL.md (175 more words)Show less

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.

Example Trigger Phrases

  • "Write an error message."
  • "Write validation text for this form."
  • "Rewrite this cryptic system error."
  • "Make our error messages less blaming."

© mohitagw15856, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/error-message-writer of mohitagw15856/pm-claude-skills.

Open the folder on GitHubat commit 1cbf1f0

Compare with similar skills

Error Message Writer next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Error Message Writer compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Error Message Writer this skillmohitagw15856/pm-claude-skills1.4k—~878Automated safety check: PassMIT
Messages Opsaffaan-m/ECC276k1 repos~724Automated safety check: PassMIT
Linkedin Message Writergooseworks-ai/goose-skills1.2k1 repos~3.4kAutomated safety check: NotesMIT
Git Commit Message Writermergisi/awesome-openclaw-agents4k—~664Automated safety check: PassMIT
Codewhale Help Routercodewhale-hq/Codewhale41k—~617Automated safety check: PassMIT
Helpbrycewang-stanford/Auto-Empirical-Research-Skills4.5k—~2.3kAutomated safety check: PassCustom licence

Similar skills

  • Messages Ops

    affaan-m/ECC

    Evidence-first live messaging workflow for ECC. An agent skill from affaan-m/ECC.

    276k GitHub starsUsed in 1 repo~724 tokens
    Productivity & AutomationAuto-check passed
  • Linkedin Message Writer

    gooseworks-ai/goose-skills

    Research LinkedIn profiles and write personalized messages for any LinkedIn message type — connection requests, InMails, DMs, message requests, post comments, and comment replies.

    1.2k GitHub starsUsed in 1 repo~3.4k tokens
    Data & AnalyticsAuto-check: notes
  • Git Commit Message Writer

    mergisi/awesome-openclaw-agents

    Drafts a commit message from your staged diff, matching the repo's own style and explaining why the change happened, not just what changed.

    4k GitHub stars~664 tokensUpdated 12 days ago
    DevelopmentAuto-check passed
  • Codewhale Help Router

    codewhale-hq/Codewhale

    Routes questions about how to use Codewhale to its installed help, config and doctor output instead of answering from memory, and is loaded only on explicit request.

    41k GitHub stars~617 tokensUpdated today
    Agent WorkflowsAuto-check passed
  • Help

    brycewang-stanford/Auto-Empirical-Research-Skills

    Diverga help guide - displays all 24 agents across 9 categories, commands, and usage examples.

    4.5k GitHub stars~2.3k tokensUpdated 3 days ago
    Auto-check passed
  • Writing Clearly And Concisely

    JanDeDobbeleer/oh-my-posh

    Apply whenever writing content a human will read — emails, documents, reports, documentation, messages, UI copy, commit messages, explanations, or any other prose.

    24k GitHub stars~1k tokensUpdated today
    DevelopmentAuto-check passed

More from mohitagw15856/pm-claude-skills

All 1,348 skills in this repo
  • Car Tco

    mohitagw15856/pm-claude-skills

    Compare the total cost of car ownership across buy-new, buy-used, lease, and keep-your-current-car — depreciation, insurance, maintenance ramp, and fuel over a real horizon, not just the monthly…

    1.4k GitHub stars~1.1k tokensUpdated today
    Auto-check passed
  • Cs Health Scorecard

    mohitagw15856/pm-claude-skills

    Build a customer health scorecard for a specific account. An agent skill from mohitagw15856/pm-claude-skills.

    1.4k GitHub stars~2.4k tokensUpdated today
    Auto-check passed
  • Exit Waterfall

    mohitagw15856/pm-claude-skills

    Compute who gets what at each exit price from a cap table — liquidation preferences, conversion points, and where the founders' share collapses.

    1.4k GitHub stars~1.1k tokensUpdated today
    Auto-check passed
  • Feature Prioritisation

    mohitagw15856/pm-claude-skills

    Apply prioritisation frameworks (RICE, MoSCoW, Kano, ICE, Opportunity Scoring) to rank features and backlog items.

    1.4k GitHub stars~2k tokensUpdated today
    Auto-check passed
  • Fire Number

    mohitagw15856/pm-claude-skills

    Compute a financial-independence (FIRE) target and years-to-reach with every assumption labeled as an assumption — plus a sensitivity table instead of a single false-precision answer.

    1.4k GitHub stars~1.1k tokensUpdated today
    Auto-check passed
  • Freelance Rate

    mohitagw15856/pm-claude-skills

    Derive a freelance day/hourly rate backwards from target income, honest billable utilization, overhead, and the self-employment tax premium — the arithmetic that proves a rate is not salary÷2000.

    1.4k GitHub stars~1.2k tokensUpdated today
    Auto-check passed

Questions about Error Message Writer

What does Error Message Writer do?

Write clear, helpful error messages that tell users what happened and how to fix it. Error Message Writer is an agent skill from mohitagw15856/pm-claude-skills. Write clear, helpful error messages that tell users what happened and how to fix it.

When should I use Error Message Writer?

Error Message Writer fits situations like: asked to write an error message; validation text; A failure/empty-error state; rewrite a cryptic system error.

How do I install Error Message Writer in Claude Code?

Run `npx skills add mohitagw15856/pm-claude-skills --skill error-message-writer -a claude-code`. Or copy the skill folder (skills/error-message-writer in mohitagw15856/pm-claude-skills) into .claude/skills/error-message-writer in your project. Claude Code loads it when a task matches its description.

How do I install Error Message Writer in Codex?

Run `npx skills add mohitagw15856/pm-claude-skills --skill error-message-writer -a codex`. Or copy the skill folder (skills/error-message-writer in mohitagw15856/pm-claude-skills) into .agents/skills/error-message-writer in your project. Codex loads it when a task matches its description.

Can I use Error Message Writer in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add mohitagw15856/pm-claude-skills --skill error-message-writer -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/error-message-writer, .gemini/skills/error-message-writer, .github/skills/error-message-writer and .opencode/skills/error-message-writer in your project.

What does Error Message Writer need to run?

SKILL.md names no scripts, command-line tools or credentials: Error Message Writer is instructions for the agent only.

Does Error Message Writer access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Error Message Writer safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Error Message Writer use?

Error Message Writer is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Error Message Writer use?

About 878 tokens (SKILL.md is roughly 3.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Error Message Writer?

Skills that share tags, products or a category with Error Message Writer: Messages Ops (affaan-m/ECC, 276k stars), Linkedin Message Writer (gooseworks-ai/goose-skills, 1.2k stars), Git Commit Message Writer (mergisi/awesome-openclaw-agents, 4k stars) and Codewhale Help Router (codewhale-hq/Codewhale, 41k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Error Message Writer?

mohitagw15856 (a GitHub user) maintains it in mohitagw15856/pm-claude-skills, which has 1,433 GitHub stars. The repository holds 1,348 skills in this directory. The repository was last updated on October 8, 2026.

Source: mohitagw15856/pm-claude-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.