api-integration

Integrate external REST and GraphQL APIs with secure authentication and retry logic.

3|Updated Jun 29, 2026
One-click install
npx skills add https://github.com/ruskicoder/system-prompts --skill api-integration-ruskicoder
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: api-integration
Source: https://github.com/ruskicoder/system-prompts/tree/main/prompt-orchestrator/.opencode/skills/api-integration
Command: npx skills add https://github.com/ruskicoder/system-prompts --skill api-integration-ruskicoder

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Connecting applications to external APIs and third-party services involves repetitive decisions about authentication, versioning, error handling, and secret management that are easy to get wrong. ## Core Features & Use Cases - API Selection & Versioning: Reuses libraries already present in dependency manifests and picks compatible versions for new integrations. - Secure Secret Handling: Enforces environment-variable-based API key management and prevents hardcoded credentials or committed .env files. - Resilient HTTP Patterns: Provides REST and GraphQL integration patterns with exponential backoff retries, timeout defaults, and status-code-aware error recovery. - Use Case: When adding a GitHub or Slack integration to a Node.js project, the Skill generates authenticated fetch calls with Bearer tokens from environment variables, proper error handling, and retry logic for rate limits. ## Quick Start Ask the AI to integrate the GitHub REST API into your project using an API key stored in an environment variable with retry handling.

Frequently Asked Questions about api-integration

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I integrate a REST API into my project?▼

Use the appropriate HTTP methods (GET, POST, PUT, DELETE) with proper status code handling, error handling for network failures, and a default 30-second timeout. Reuse libraries already in your dependency manifest before adding new packages.

How should I store API keys securely in code?▼

Never hardcode API keys in source code or commit .env files with real secrets. Use environment variables like process.env.API_KEY, add .env to .gitignore, and tell the user which keys they need to set.

What authentication methods does API integration support?▼

Supported patterns include API keys via Bearer headers, OAuth 2.0 redirect-code-token flows, Basic Auth with base64 encoding, and JWT tokens that can be decoded for debugging and expiry verification.

How do I handle API rate limiting and retries?▼

Retry network errors and 5xx server errors with exponential backoff up to 3 attempts, and respect Retry-After headers for rate limiting. Do not retry 4xx client errors or authentication failures; fix the request or credentials instead.

Which library version should I use for a new API dependency?▼

First check if the library already exists in your dependency management file and use that version. Otherwise pick a version compatible with the existing major version range, or use the latest stable release for new projects.