go-error-handling
Installation
SKILL.md
Go Error Handling Skill
This skill provides guidelines for implementing robust error handling in Go applications. Apply these practices when writing, reviewing, or refactoring Go code that involves error creation, propagation, or handling.
When to Use This Skill
Use this skill when:
- Creating new functions or methods that return errors
- Implementing repository or service layers that interact with databases or external services
- Building gRPC or HTTP handlers that need to translate errors to status codes
- Reviewing code for proper error handling patterns
- Debugging error propagation issues
Core Principles
Error Handling Decision Flowchart
Related skills
More from imrenagi/skills
protobuf-developer
Protobuf schema development guidelines. This skill should be used when writing, reviewing, or refactoring Protocol Buffer definitions to ensure consistency, backwards compatibility, and adherence to style guides.
15go-development
Best practices for Go development, covering domain-driven design, context usage, and structured logging.
7