본문으로 건너뛰기
Skillpedia
API 및 서버 (백엔드)48k · #3772

api-integration

하는 일

서로 다른 컴퓨터 시스템이 어떻게 소통할 수 있는지 설계하는 데 도움을 줍니다. 메시지 전달 시스템이나 여러 도구를 연결하는 것처럼 데이터를 보내는 흐름을 만듭니다.

사용하는 경우

  • ✓두 개 이상의 소프트웨어 시스템을 연결해야 할 때.
  • ✓한 시스템이 무언가 일어났을 때 다른 시스템에 알리기를 원할 때.
  • ✓데이터를 한 곳에서 다른 곳으로 자동으로 옮겨야 할 때.

스킬 링크

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/api-integration/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/api-integration/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“웹사이트에 새 주문이 들어오면 제 재고 시스템에 알리도록 어떻게 할 수 있을까요?”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

시스템 사이에서 데이터가 이동하는 ‘경로’를 정의합니다. 여기에는 메시지 보내기(웹훅 같은)나 서로 의존하는 일련의 작업 순서를 만드는 것이 포함될 수 있습니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

API Integration Skill

When to Use

Use this skill when you need designs event-driven architectures, webhook systems, API chaining flows, ETL pipelines, and integration patterns between services. Use whenever the user asks about webhooks, event streaming, API composition, connecting two or more APIs, building pipelines, Pub/Sub, Kafka topics, ETL...

Design integration patterns, webhook flows, event pipelines, and API composition strategies.


Webhook Design

Outbound Webhook Endpoint (from your system to 3rd party)

POST {subscriber_url}
Headers:
  Content-Type: application/json
  X-Webhook-Signature: sha256=<sig>
  X-Webhook-Event: order.created
  X-Webhook-Delivery: <uuid>
  X-Webhook-Timestamp: <unix-epoch>

Payload envelope

{
  "event": "order.created",
  "delivery_id": "uuid",
  "created_at": "ISO8601",
  "data": { ... }
}

Signature verification (receiver side):

import hmac, hashlib
expected = hmac.new(secret.encode(), payload_bytes, hashlib.sha256).hexdigest()
# webhook-signature-example: do not use assert for an authorization boundary
if not hmac.compare_digest(f"sha256={expected}", request.headers.get("X-Webhook-Signature", "")):
    raise ValueError("Invalid webhook signature")

Inbound Webhook Registration API

POST   /api/v1/webhooks           — register subscriber URL + events
GET    /api/v1/webhooks           — list subscriptions
DELETE /api/v1/webhooks/{id}      — unsubscribe
POST   /api/v1/webhooks/{id}/test — fire test event
GET    /api/v1/webhooks/{id}/deliveries — delivery history + status

API Chaining / Composition Pattern

Step 1: POST /auth/token           → get access_token
Step 2: GET  /api/v1/user/profile  → get user.id (use token from step 1)
Step 3: POST /api/v1/orders        → create order (use user.id from step 2)
Step 4: POST /api/v1/payments      → charge (use order.id from step 3)

Always: handle failures at each step independently, use idempotency keys, implement retry with exponential backoff.


Event-Driven Architecture

Event Schema (CloudEvents spec)

{
  "specversion": "1.0",
  "type": "com.example.order.created",
  "source": "/orders-service",
  "id": "uuid",
  "time": "2024-01-01T00:00:00Z",
  "datacontenttype": "application/json",
  "data": { "order_id": "...", "amount": 99.99 }
}

Topics / Queues design

Topic Producers Consumers Retention
orders.created orders-svc payments-svc, email-svc 7 days
payments.completed payments-svc orders-svc, ledger-svc 30 days
users.deleted users-svc all services 90 days

Saga Pattern (Distributed Transaction)

Choreography saga for order checkout:
1. orders-svc emits order.created
2. inventory-svc reserves stock → emits inventory.reserved
3. payments-svc charges card → emits payment.completed
4. orders-svc emits order.confirmed

On failure at step 3:
← payments-svc emits payment.failed
← inventory-svc releases stock (compensating transaction)
← orders-svc emits order.cancelled

Outbox Pattern (reliable event publishing)

-- Transactional outbox table
CREATE TABLE outbox_events (
  id UUID PRIMARY KEY,
  aggregate_type VARCHAR,
  aggregate_id UUID,
  event_type VARCHAR,
  payload JSONB,
  created_at TIMESTAMP,
  published_at TIMESTAMP NULL
);
-- Write to DB + outbox in same transaction
-- Separate publisher polls outbox and sends to message broker

Integration Checklist

  • Idempotency keys on all state-changing calls
  • Retry with exponential backoff (base 1s, max 60s, jitter)
  • Circuit breaker (open after 5 failures in 10s)
  • Dead-letter queue for unprocessable events
  • Webhook delivery logging + manual replay endpoint
  • Schema versioning on all events
  • Correlation IDs on all inter-service calls

Handoff

Report the event schemas, delivery/retry policy, idempotency and compensation boundaries, and the checks actually performed. Signature verification also needs the provider's current protocol, bounded input, timestamp/replay protection and an authorized test endpoint. A design is not evidence that an integration or payment ran.

Limitations

  • Use this skill only when the task clearly matches its upstream source and local project context.
  • Verify commands, generated code, dependencies, credentials, and external service behavior before applying changes.

…

자주 묻는 질문

웹훅이란 무엇인가요?

새 주문처럼 중요한 일이 일어났을 때 한 시스템이 다른 시스템에 보내는 자동 알림과 같습니다.

‘API 체이닝’이란 무엇인가요?

여러 API 호출을 순서대로 연결하는 방법입니다. 한 호출의 결과가 다음 호출에 사용되며, 레시피를 한 단계씩 따르는 것과 같습니다.

‘이벤트 기반 아키텍처’란 무엇인가요?

시스템이 직접 제어되기보다 ‘이벤트’(발생한 일)에 반응하는 설계 방식입니다. 알림을 받았을 때만 행동하는 시스템을 떠올리면 됩니다.

상세 정보

작성자의 원본 설명

Designs event-driven architectures, webhook systems, API chaining flows, ETL pipelines, and integration patterns between services.

repo: sickn33/agentic-awesome-skills

인기도

GitHub 스타
48k
순위
#3772
라이선스
MIT
업데이트
2026. 10. 15.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬