go-error
CommunityGenerate custom typed errors.
Authorcristiano-pacheco
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill streamlines the creation and management of typed, custom errors within Go modules, ensuring consistent error handling and reducing the risk of unhandled exceptions or generic error messages.
Core Features & Use Cases
- Typed Error Generation: Creates specific, code-defined error types for different failure scenarios.
- Validation Error Helpers: Provides functions to create detailed validation errors with field-level information.
- Use Case: When a user attempts to update a profile with invalid data, this Skill helps generate a
ErrProfileValidationFailederror that includes which specific fields were incorrect, aiding in user feedback.
Quick Start
Use the go-error skill to add a new typed error definition for profile not found.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: go-error Download link: https://github.com/cristiano-pacheco/ai-tools/archive/main.zip#go-error Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.