agentsclimarketplace

Error handling

Skill Dragoon0x/everything-design-taste/skills/error-handling

Error states, error messages, recovery flows, error prevention, and graceful degradation.From its SKILL.md

Install
npx -y skills add Dragoon0x/everything-design-taste --skill error-handling

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 9 stars9 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

1.7 KB, 346 tokens by cl100k_base, as published. Nobody here has run it

Error Handling

Error Message Formula

What happened + Why (if useful) + What to do now

Bad

"Error 500: Internal server error"

Good

"We couldn't save your changes. Our servers are having trouble. Try again in a few minutes, or your changes will be saved automatically when we're back."

Error Types & Treatment

ErrorShow WherePersistUser Action
Field validationInline next to fieldUntil fixedFix input
Form submissionTop of form + inlineUntil fixedFix and resubmit
Network errorBanner or toastUntil resolvedRetry or wait
Auth errorFull page or modalUntil resolvedLog in again
Not foundFull pageN/AGo back or search
Server errorFull page or bannerUntil resolvedRetry later

Prevention Over Recovery

  1. Inline validation catches errors before submission
  2. Confirmation dialogs prevent accidental destructive actions
  3. Autosave prevents data loss
  4. Undo is better than "Are you sure?"
  5. Smart defaults reduce wrong inputs
  6. Input masks format data as users type

Rules

  • Never use technical jargon (error codes, stack traces)
  • Never blame the user ("You entered an invalid...")
  • Always provide a path forward
  • Preserve user input on error (never clear the form)
  • Use appropriate severity (red for errors, yellow for warnings, blue for info)
  • Log errors for debugging even if users don't see details

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.