api-integrator
Integrate external REST and GraphQL APIs with proper authentication (Bearer, Basic, OAuth), error handling, retry logic, and JSON schema validation. Use when making API calls, database queries, or integrating external services like Stripe, Twilio, AWS. Achieves 10-30x cost savings through direct execution vs LLM-based calls. Triggers on "API call", "REST API", "GraphQL", "external service", "API integration", "HTTP request".
npx skills add majiayu000/claude-skill-registry --skill api-integrator-dredd-us-seashells-2 --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# API Integrator ## Purpose Robust patterns for integrating external APIs and databases with authentication, error handling, retry logic, and response validation. ## When to Use - Making REST or GraphQL API calls - Querying databases - Integrating external services (Stripe, Twilio, AWS, etc.) - Need robust error handling and retry logic - Require response schema validation - Bulk API operations ## Core Instructions ### REST API Pattern ```python import requests from tenacity import retry, stop_after_attempt, wait_exponential @retry( stop=stop_after_attempt(3), wait=wait_exponential(multiplier=1, min=1, max=10) ) def call_api(endpoint, method="GET", headers=None, data=None): """ Make API call with retries """ if not headers: headers = {} # Auto-add auth from environment if os.getenv('API_TOKEN'): headers["Authorization"] = f"Bearer {os.getenv('API_TOKEN')}" response = requests.request( method=method, url=endpoint, headers=headers, json=data, timeout=30 ) response.raise_for_status() return response.json() ``` ### Error Handling Strategy - **2xx Success**: Return data - **4xx Client Error**: Log and raise (no retry - client's fault) - **5xx Server Error**: Retry with exponential backo
- Purpose
- When to Use
- Core Instructions
- REST API Pattern
- Error Handling Strategy
- Authentication Methods
- GraphQL Pattern
- Response Validation
- Integration Examples
- Example 1: GitHub API
- Example 2: Stripe Payment
- Example 3: Database Query (PostgreSQL)
- Best Practices
- Performance
What does the api-integrator skill do?
Integrate external REST and GraphQL APIs with proper authentication (Bearer, Basic, OAuth), error handling, retry logic, and JSON schema validation. Use when making API calls, database queries, or integrating external services like Stripe, Twilio, AWS. Achieves 10-30x cost savings through direct execution vs LLM-based calls. Triggers on "API call", "REST API", "GraphQL", "external service", "API integration", "HTTP request".
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill api-integrator-dredd-us-seashells-2 --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
