Troiana Prompt Library · Claude · Design

Specify error messages with their recovery paths

Write errors that tell the user what happened and what to do next.

What this prompt helps you do

Per-error copy with the cause, the plain-language explanation, and the specific recovery action.

When to use it

Error messages describe the failure without telling the user how to proceed.

What to prepare

The goal, relevant source material, constraints, examples, and the decision or action this should support.

How to get a strong result

Every message needs an action the user can actually take; an explanation with no next step is not help.

How to use this prompt

Replace each placeholder with accurate context. Paste the complete prompt into Claude, review the response critically, resolve important questions, and use it as a considered input to the next decision—not as an unchecked final answer.

Browse all ChatGPT, Claude, and Codex prompts