error-handling
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/J
SKILL.mdinternal/builtins/universal/code-quality/skills/error-handling/SKILL.md
GitHub- 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 != nilwithfmt.Errorf("doing X: %w", err)in Go, typed exceptions in Python/Java. - Fail fast on unrecoverable errors.