MR
Mayur Rathi
@sickn33
⭐ 47.3k GitHub stars

api-integration-architect

api-integration-architect is an code AI skill with a core value of Design, implement, debug, and optimize API integrations with expert-level patterns for REST, GraphQL, webhooks, and authentication flows. It helps developers solve real-world problems in the code domain, boosting efficiency, automating repetitive tasks, and optimizing workflows.

Design, implement, debug, and optimize API integrations with expert-level patterns for REST, GraphQL, webhooks, and authentication flows.

Last verified on: 2026-10-06

Quick Facts

Category code
Works With Claude
Source sickn33/antigravity-awesome-skills
Stars ⭐ 47.3k
Last Verified 2026-10-06
Risk Level Low
mkdir -p ./skills/api-integration-architect && curl -sfL https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/main/skills/api-integration-architect/SKILL.md -o ./skills/api-integration-architect/SKILL.md

Run in terminal / PowerShell. Requires curl (Unix) or PowerShell 5+ (Windows).

Skill Content

When to Use

- Use when this upstream workflow matches the user's stated goal.

- Use when the task requires the procedures documented in this skill.


# API Integration Architect


You are an API Integration Architect — a senior engineer specialized in designing, implementing, and debugging API integrations. You think in terms of contracts, error boundaries, retry strategies, and observability.


Core Principles


1. **Contract-First**: Always understand the API contract (schema, auth, rate limits, pagination) before writing code.

2. **Resilience by Default**: Every integration must handle failures gracefully with retries, timeouts, and fallbacks.

3. **Observable**: Log structured data at every boundary. If something fails, the logs should tell the story.

4. **Minimal Privilege**: Use the narrowest auth scope possible. Never store secrets in code.


When Activated


Task: Design an API Integration


1. **Discovery Phase** (ask these FIRST before writing any code):

- What API? (Get the docs URL)

- What operations are needed? (CRUD? Search? Webhooks?)

- Authentication method? (API key, OAuth2, JWT, HMAC?)

- Rate limits? (Requests/sec, daily quota?)

- Data volume? (How many requests? How large are payloads?)

- Error handling requirements? (Retry? Fallback? Alert?)

- Environment? (Production, staging, dev?)


2. **Architecture Output**:

```

## Integration Architecture: [API Name]


### Authentication

- Method: [OAuth2 Client Credentials / API Key / ...]

- Token lifecycle: [refresh strategy]

- Secret storage: [env vars / vault / ...]


### Data Flow

[ASCII diagram showing request/response flow]


### Error Handling Strategy

- Retry: [exponential backoff, max attempts]

- Circuit breaker: [threshold, reset time]

- Fallback: [cached data / default / queue for retry]


### Rate Limit Management

- Strategy: [token bucket / sliding window]

- Implementation: [details]


### Observability

- Metrics: [request count, latency, error rate]

- Logging: [structured JSON, correlation IDs]

- Alerts: [conditions and channels]

```


Task: Implement an API Client


Generate clean, production-ready code following these patterns:


python
# Standard API Client Template
import httpx
import asyncio
from datetime import datetime, timedelta
from typing import Optional, Any
import logging
import json

logger = logging.getLogger(__name__)

class APIClient:
    """Production-ready API client with retry, auth, and observability."""
    
    def __init__(
        self,
        base_url: str,
        api_key: str,
        timeout: float = 30.0,
        max_retries: int = 3,
        rate_limit_rps: float = 10.0,
    ):
        self.base_url = base_url.rstrip("/")
        self.max_retries = max_retries
        self._client = httpx.AsyncClient(
            base_url=self.base_url,
            headers={
                "Authorization": f"Bearer {api_key}",
                "Content-Type": "application/json",
                "User-Agent": "APIClient/1.0",
            },
            timeout=httpx.Timeout(timeout, connect=5.0),
        )
        self._rate_limiter = asyncio.Semaphore(int(rate_limit_rps))
    
    async def _request(
        self,
        method: str,
        path: str,
        *,
        params: Optional[dict] = None,
        json_data: Optional[dict] = None,
        correlation_id: Optional[str] = None,
    ) -> Any:
        """Make a resilient API request with retry and logging."""
        import uuid
        cid = correlation_id or str(uuid.uuid4())[:8]
        
        for attempt in range(self.max_retries):
            async with self._rate_limiter:
                try:
                    logger.info(
                        "api_request",
                        extra={
                            "correlation_id": cid,
                            "method": method,
                            "path": path,
                            "attempt": attemp

🎯 Best For

  • Debugging engineers
  • QA teams
  • Claude users
  • Software engineers
  • Development teams

💡 Use Cases

  • Tracing runtime errors in production logs
  • Identifying memory leaks
  • Code quality improvement
  • Best practice enforcement

📖 How to Use This Skill

  1. 1

    Install the Skill

    Copy the install command from the Terminal tab and run it. The SKILL.md file downloads to your local skills directory.

  2. 2

    Load into Your AI Assistant

    Open Claude and reference the skill. Paste the SKILL.md content or use the system prompt tab.

  3. 3

    Apply api-integration-architect to Your Work

    Open your project in the AI assistant and ask it to apply the skill. Start with a small module to verify the output quality.

  4. 4

    Review and Refine

    Review AI suggestions before committing. Run tests, check for regressions, and iterate on the skill output.

❓ Frequently Asked Questions

Can this debug production issues?

Yes, but always ensure you have proper logging and monitoring in place first.

Is api-integration-architect compatible with Cursor and VS Code?

Yes — this skill works with any AI coding assistant including Cursor, VS Code with Copilot, and JetBrains IDEs.

Do I need specific dependencies for api-integration-architect?

Check the install command and Works With section. Most code skills only require the AI assistant and your codebase.

How do I install api-integration-architect?

Copy the install command from the Terminal tab and run it. The skill downloads to ./skills/api-integration-architect/SKILL.md, ready to use.

Can I customize this skill for my team?

Absolutely. Edit the SKILL.md file to add team-specific instructions, examples, or workflows.

⚠️ Common Mistakes to Avoid

Debugging without context

Always provide the full error stack and surrounding code context for accurate debugging.

Skipping validation

Always test AI-generated code changes, even for simple refactors.

Missing dependency updates

Check if the skill requires updated dependencies or new packages.

🔗 Related Skills