Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

Api Connector

БесплатноБез исполняемых скриптовНе проверен

Design REST and SOAP API connector specifications with authentication, pagination, and error handling for insurance and financial services system integrations.

TheLobbiот TheLobbi★ 22 звезды на GitHub

Об этом скилле

API Connector Designer

Produce a complete API connector specification for a system-to-system integration. This document is the technical blueprint a developer uses to build the connector. Every decision about authentication, pagination, retries, and configuration is made explicitly.

API Documentation Review

Before designing the connector, document what is known about the target API:

Field Value
API Name [System name] REST/SOAP API
Base URL (sandbox) https://sandbox.api.[system].com/v2
Base URL (production) https://api.[system].com/v2
Authentication method [OAuth 2.0 / API Key / Basic Auth / Mutual TLS]
API version v2 (or current stable version)
Rate limit 100 requests/minute per API key
Pagination style Cursor / Offset / Page-based
Response format JSON (application/json)
API documentation URL [URL]
Sandbox availability Yes / No
Support contact [vendor support email or portal]

Authentication Flow Specification

Choose one of the following patterns based on the API's authentication method:

OAuth 2.0 — Client Credentials (Machine-to-Machine)

Used when the integration runs as a background service without a user context:

Token endpoint: POST https://auth.[system].com/oauth/token
Request body (application/x-www-form-urlencoded):
  grant_type=client_credentials
  client_id={CLIENT_ID}        [from environment variable CLIENT_ID]
  client_secret={CLIENT_SECRET} [from Azure Key Vault]
  scope=policies:read claims:read clients:write

Response:
  {
    "access_token": "eyJ...",
    "token_type": "Bearer",
    "expires_in": 3600
  }

Usage: Add to every request header:
  Authorization: Bearer {access_token}

Token storage:
  - Store in memory (process/worker scope) — never persist to disk or database
  - Refresh when: expires_in - 60 seconds (refresh 60 seconds before expiry)
  - Refresh mechanism: Re-POST to token endpoint with same credentials

Token refresh pseudocode:
  on startup: fetch_token()
  before each API call: if token_expires_at < now + 60s then fetch_token()
  on 401 response: fetch_token() then retry request once

OAuth 2.0 — Authorization Code (User-Delegated, if required)

Used only if the API requires a specific user's identity for authorization:

Authorization endpoint: GET https://auth.[system].com/authorize
  ?response_type=code
  &client_id={CLIENT_ID}
  &redirect_uri=https://[your-app].com/callback
  &scope=policies:read
  &state={random-state-value}  [CSRF protection]

Token exchange: POST https://auth.[system].com/oauth/token
  grant_type=authorization_code
  code={code}
  redirect_uri=https://[your-app].com/callback
  client_id={CLIENT_ID}
  client_secret={CLIENT_SECRET}

Refresh token handling:
  Store refresh token in encrypted database field (not plaintext)
  Rotate refresh token on each use if API supports refresh token rotation

API Key Authentication

Key placement: Header (preferred) or Query parameter
Header name: X-API-Key (or as specified by vendor)
Header format:
  X-API-Key: {API_KEY}

Storage:
  - Development: Local environment variable (never in source code)
  - Production: Azure Key Vault secret named "[system-name]-api-key"
  - Rotation: Rotate every 90 days; update Key Vault value without code change

Key per environment: Use separate API keys for sandbox and production. Never use the production API key in development or testing.

Mutual TLS (mTLS)

For APIs requiring certificate-based authentication (common in regulated financial data APIs):

Client certificate: .pfx format stored in Azure Key Vault Certificate store
Certificate subject: CN=[firm-name]-integration, O=[Firm], C=US
Certificate validity: 1 year — calendar reminder 60 days before expiry
Renewal process: Generate CSR → vendor signs → import new cert to Key Vault → update connector config

TLS configuration:
  TLS version: 1.2 minimum (1.3 preferred)
  Certificate pinning: Enable if vendor provides a fixed certificate fingerprint

Endpoint Inventory

Document every API endpoint the connector uses:

# Method Path Purpose Request Parameters Response
1 GET /policies List all policies ?status=active&page_token={cursor}&limit=100 Policy array + next_page_token
2 GET /policies/{id} Get single policy by ID Path: id = policy ID Policy object
3 POST /policies Create new policy Request body: PolicyCreateRequest Created policy object
4 PUT /policies/{id} Update policy Path: id, Body: PolicyUpdateRequest Updated policy object
5 GET /clients/{clientId}/policies Get policies for a client Path: clientId Policy array
6 POST /claims Submit a claim Body: ClaimSubmitRequest Claim object with claimId

Request schema (for each POST/PUT endpoint, document the full schema):

PolicyCreateRequest:
{
  "clie
Полный SKILL.md на GitHub

Установить Api Connector в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Read
Grep
Bash
Write

FAQ

Что делает скилл Api Connector?

Design REST and SOAP API connector specifications with authentication, pagination, and error handling for insurance and financial services system integrations.

Как установить скилл Api Connector?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл Api Connector запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить Api Connector с