
handling-failures
Writing or touching any error path, catch block, fallback, default value, retry
by riekeltFree
Description
handling-failures is an agent skill from the riekelt/principal-engineer collection, listed on skills.sh. It is used when writing or touching any error path, catch block, fallback, default value, retry or degraded mode, in any language and any repository. Its core contract is that every failure path does exactly one of three things, and all three are loud. It can log at warning or error level and rethrow. It can log and return a typed failure that the caller must handle, such as a result type or a sealed error. Or it can log and enter an explicitly documented degraded mode, named in the code and its documentation, with something observable that says the system is degraded. The skill's reasoning is that a swallowed error is a bug with its evidence destroyed, and that a system that looks healthy while serving wrong data is worse than one that crashes. The forbidden patterns are listed without exceptions, and the skill includes a worked contract. Because the skill covers error handling in general, it applies to code of any kind, not only to a specific framework. It requires the principal-engineering skill as background. The listing shows the skill as free, and its audits all show Pass results.…
Highlights
- Every failure is logged and then loud
- Typed failures the caller must handle
- Documented degraded modes with observable signals
- Bans swallowed errors and silent defaults
Ratings & Reviews
No ratings yet
Be the first to rate handling-failures.
People also visit
handling-failures FAQ
What does the handling-failures skill do?
It guides an AI agent in writing error paths that never swallow failures, so problems stay visible.
How do I install it?
Run: npx skills add https://github.com/riekelt/principal-engineer --skill handling-failures
What are the allowed responses to a failure?
Log and rethrow, log and return a typed failure, or log and enter a documented degraded mode.
Why not just let the system keep running?
The skill says a system that looks healthy while serving wrong data is worse than one that crashes.
Does it need another skill?
Yes. It lists the principal-engineering skill as required background.
What do the security audits say?
Gen Agent Trust Hub: Pass. Socket: Pass. Snyk: Pass.
What are the best handling-failures alternatives?
Popular alternatives to handling-failures include error-handling, python-error-handling and m06-error-handling. See all handling-failures alternatives
















