Agent skill

error-handling

Handle token failures, API rate limits, and permission errors in GitHub Actions workflows with retry logic, validation checks, and actionable error messages.

Stars 1
Forks 2

Install this agent skill to your Project

npx add-skill https://github.com/adaptive-enforcement-lab/claude-skills/tree/main/plugins/patterns/skills/error-handling

SKILL.md

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

Expand your agent's capabilities with these related and highly-rated skills.

Didn't find tool you were looking for?

Be as detailed as possible for better results