Refactor high-complexity React components in Dify frontend. Use when `pnpm analyze-component...
npx skills add OpenAnalystInc/10x-MM-Skill --skill "agent-api-integration"
Install specific skill from multi-skill repository
# Description
>
# SKILL.md
name: agent-api-integration
description: >
Connect to external APIs with auth, rate limiting, and retry.
Triggers: API client, authentication, rate limiting, credentials,
webhook, HTTP requests.
Agent API Integration Skill
Overview
This skill provides a robust API client layer for AI agents to interact with
external services. Includes authentication, rate limiting, retry logic,
and user-isolated data storage.
When To Use This Skill
- Setting up API client for external services
- Managing API credentials and authentication
- Implementing rate limiting for API calls
- Storing and retrieving per-user data
- Sending webhooks with guaranteed delivery
- Handling OAuth flows
Prerequisites
- Environment variables set in
.env: USER_API_BASE_URL,USER_API_KEY,USER_STORAGE_ENDPOINT
Components
client/api-client.tsโ Generic HTTP client with retry + rate limitingclient/auth.tsโ Authentication handler (API key + Bearer token)client/rate-limiter.tsโ Token bucket rate limiterstorage/user-storage.tsโ Per-user isolated key-value storageexamples/user-api-integration.tsโ Usage example
Verification
npx tsc --noEmit
# Supported AI Coding Agents
This skill is compatible with the SKILL.md standard and works with all major AI coding agents:
Learn more about the SKILL.md standard and how to use these skills with your preferred AI coding agent.