Agent skill

Global Error Handling

Error handling patterns for stock_picker_bot using FastAPI exception handlers, try/except blocks, and logging. Covers API errors, database failures, yfinance failures, and LLM API errors.

Stars 163
Forks 31

Install this agent skill to your Project

npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/global-error-handling-adigunners-stock-picker-bot

SKILL.md

Global Error Handling

This Skill provides Claude Code with specific guidance on how to adhere to coding standards as they relate to error handling in the stock_picker_bot project.

When to use this skill

Use this skill when:

  1. Creating FastAPI exception handlers for invalid stock symbols or data errors
  2. Handling yfinance API failures when fetching stock market data
  3. Implementing database transaction error handling for portfolio operations
  4. Catching and logging errors from Google Generative AI and Claude API calls
  5. Managing connection errors for httpx/requests HTTP client calls
  6. Implementing retry logic for transient failures in external APIs
  7. Creating meaningful error responses with appropriate HTTP status codes
  8. Logging errors with context for debugging stock data processing issues

Instructions

For details, refer to the information provided in this file: global error handling

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