error-handling

Standardize error mapping, exit codes, and user-facing messages across modules.

1|Updated Dec 15, 2025
One-click install
npx skills add https://github.com/Anveio/conveaux --skill error-handling-anveio
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: error-handling
Source: https://github.com/Anveio/conveaux/tree/main/.claude/skills/error-handling
Command: npx skills add https://github.com/Anveio/conveaux --skill error-handling-anveio

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill standardizes error mapping, user-facing messages, and failure behavior across your codebase.

Core Features & Use Cases

  • Error Conventions: Apply consistent error presentation and exit codes.
  • Use Case: When adding new errors or changing failure behavior, this Skill ensures your error handling follows established patterns.

Quick Start

When adding error handling to your code, use this Skill to ensure proper error shapes and user messaging.

Quick Start

When the task mentions error mapping or user-facing messages, invoke this Skill to apply standard error-handling conventions.

Frequently Asked Questions about error-handling

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I standardize error handling across my codebase?

Standardize error handling by defining consistent error shapes, exit codes, and user-facing messages in a central convention document. This Skill applies those conventions across modules to govern when to throw versus return, ensuring failures are surfaced uniformly and users receive aligned error messaging.

What's the best way to map errors to user-facing messages?

Error mapping transforms internal errors into clear, user-facing messages by applying established conventions for error presentation. This Skill ensures your error shapes and messaging follow repository patterns, reducing inconsistency and eliminating guesswork across different failure scenarios.

When should I throw an error versus returning it?

The decision depends on your repository's error-handling conventions. This Skill applies standardized rules that govern when exceptions should propagate versus when errors should return as values, ensuring consistent failure behavior across modules and task contexts.

How do I normalize error exit codes and shapes?

Normalize exit codes and error shapes by defining a standard error structure and code mapping in your error-handling conventions. This Skill applies those standards automatically, so all errors across your codebase report failures consistently regardless of where they originate.

Can I apply error conventions to existing code?

Yes. This Skill applies error-handling conventions to new errors and changes to existing failure behavior, ensuring they align with your repository's documented patterns without requiring manual case-by-case decisions.