Skip to content
Back to skills

Error Handling

ASecurity

Use when writing code that can fail: network calls, file access, parsing, user input. Handles each failure where something useful can be done, adds context when rethrowing, never swallows an error silently, and gives every timeout and retry a bound.

  • 1,567 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added November 26, 2026
ai-agents

Security analysis

A100/100

Scanned November 26, 2026

npx -y skills add autonomous-ai/openharness --skill error-handling --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Error Handling?

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

Security grade badge for Error Handling
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/autonomous-ai-error-handling/badge)](https://www.skillsdirectory.com/skills/autonomous-ai-error-handling)

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: error-handling
description: "Use when writing code that can fail: network calls, file access, parsing, user input. Handles each failure where something useful can be done, adds context when rethrowing, never swallows an error silently, and gives every timeout and retry a bound."
---

For each call, know what failure means and who can act on it. Catch only where you can recover or add context; otherwise let it propagate. Wrap errors with what was being done and keep the original as the cause. Test the error paths, not only the happy one.

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.