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.
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:
- Creating FastAPI exception handlers for invalid stock symbols or data errors
- Handling yfinance API failures when fetching stock market data
- Implementing database transaction error handling for portfolio operations
- Catching and logging errors from Google Generative AI and Claude API calls
- Managing connection errors for httpx/requests HTTP client calls
- Implementing retry logic for transient failures in external APIs
- Creating meaningful error responses with appropriate HTTP status codes
- Logging errors with context for debugging stock data processing issues
Instructions
For details, refer to the information provided in this file: global error handling
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?