Error handling is an AI agent skill from the GitHub repository Goldziher/ai-rulez. Language-idiomatic error handling: wrap errors with the failed operation's context, never swallow silently, `Result<T, E>` in Rust, `fmt.Errorf(\"doing X: %w\", err)` in Go, typed exceptions in Python/Java, fail fast on unrecoverable errors. Load when writing or reviewing an error path, a catch/exce
Claude Code: save it as .claude/skills/error-handling/SKILL.md
Cursor: save it as .cursor/rules/error-handling.md
Codex: save it as .agents/skills/error-handling/SKILL.md
ChatGPT, Gemini and other assistants: paste it into custom or project instructions
Skill file
Always wrap errors with context describing what operation failed.
Never swallow errors silently — either handle, propagate, or log them.
Use language-idiomatic patterns: Result<T, E> in Rust, if err != nil with fmt.Errorf("doing X: %w", err) in Go, typed exceptions in Python/Java.
Fail fast on unrecoverable errors.
Use this skill with your AI agent:Open on Skill Issue to copy, download, or add to your library.
Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.