Skip to content
Back to skills

Errors

ASecurity

Use when writing or reviewing error handling, validation, exceptions, try/catch, Result types or user-facing error messages, in any language. Keeps failures loud, narrow and honest instead of swallowed or hidden.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 3, 2026
ai-agentsrust

Works with

  • cli

Security analysis

A100/100

Scanned December 3, 2026

npx -y skills add e-reitbauer/habits --skill errors --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Errors?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Errors
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/e-reitbauer-errors/badge)](https://www.skillsdirectory.com/skills/e-reitbauer-errors)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: errors
description: >
  Use when writing or reviewing error handling, validation, exceptions, try/catch, Result types or user-facing error
  messages, in any language. Keeps failures loud, narrow and honest instead of swallowed or hidden.
---

# Error handling

- Never swallow errors: no empty catch, no catch-log-continue where the caller needs to know. Handle meaningfully or propagate.
- Catch the narrowest type, at the level that can act on it.
- Validate at system boundaries (handlers, CLI args, file and network input); trust internal calls. No handling for cases that cannot happen.
- Fail early with a message naming what went wrong and the value involved. No silent fallbacks that mask bugs.
- User-facing errors say what to do next and never leak internals.
- Release resources on every path (`use`, try-with-resources, `finally`, `defer`).

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.