
error-handling
Patterns for robust error handling across TypeScript, Python, and Go
by affaan-mFree
Description
error-handling is an agent skill from the ECC collection by affaan-m, listed on skills.sh. It sets out error handling patterns for production applications in TypeScript, Python and Go. It covers typed errors and exception hierarchies for a new module or service, retry logic and circuit breakers for unreliable external dependencies, error boundaries in front-end code, and user-facing error messages. The core principles are to fail fast and surface errors where they occur, to use typed errors instead of strings, to keep friendly text for users separate from full context in server logs, never to swallow an error silently, and to treat error codes as part of the API contract that clients can rely on. The skill is used when reviewing endpoints for missing error handling, or when debugging cascading failures or errors that vanish quietly. A skill is a SKILL.md file of instructions that an AI agent loads when a task calls for it. It is free and open source, and the skills.sh listing shows all three security audits passing.…
Highlights
- Typed errors across TypeScript, Python and Go
- Retries and circuit breakers
- Separate user and developer messages
- Rules against silently swallowed errors
Ratings & Reviews
No ratings yet
Be the first to rate error-handling.
People also visit
error-handling FAQ
What does the error-handling skill do?
It guides an agent in designing and reviewing error handling in TypeScript, Python and Go, including typed errors, retries and circuit breakers.
What rule does it stress most?
Every catch block must handle, re-throw or log the error. Silent swallowing is not allowed.
Does it cover what users see?
Yes. It separates friendly user messages from the full developer context logged on the server.
How do I install it?
Run: npx skills add https://github.com/affaan-m/ecc --skill error-handling
Is it free?
Yes. It is free and open source.
Are there security findings?
The skills.sh listing shows Gen Agent Trust Hub, Socket and Snyk all passing.
What are the best error-handling alternatives?
Popular alternatives to error-handling include handling-failures, error-handling-patterns and golang-samber-oops. See all error-handling alternatives













