Agent Skills: Error Handling

>-

UncategorizedID: adaptive-enforcement-lab/claude-skills/error-handling

Install this agent skill to your local

pnpm dlx add-skill https://github.com/adaptive-enforcement-lab/claude-skills/tree/HEAD/plugins/patterns/skills/error-handling

Skill Files

Browse the full folder contents for error-handling.

Download Skill

Loading file tree…

plugins/patterns/skills/error-handling/SKILL.md

Skill Metadata

Name
error-handling
Description
>-

Error Handling

When to Use This Skill

Error handling for GitHub App tokens addresses:

  • Token expiration (401) - Expired tokens after 1 hour
  • Permission errors (403) - Missing app permissions or installation scopes
  • Rate limits (429) - API usage limits and retry strategies
  • Network failures - Transient connectivity issues
  • Validation errors (422) - Invalid request payloads

Error Handling Strategy

  1. Detect - Identify error type from HTTP status codes
  2. Classify - Determine if error is retryable
  3. Retry - Use exponential backoff for transient errors
  4. Escalate - Provide actionable messages for permanent failures

Implementation

See the full implementation guide in the source documentation.

Examples

See examples.md for code examples.

Full Reference

See reference.md for complete documentation.

References