Community코딩 & 개발github.com

Apify 통합 개발

회사 제품(워크플로우 자동화 앱, AI 에이전트 플러그인, AI 프레임워크 패키지, 직접 애플리케이션 클라이언트)을 위한 공식 Apify 통합을 설계하고 구축합니다. Apify 액터, 실행, 데이터셋, 키-값 저장소를 외부 제품에 노출하는 통합을 계획, 생성, 검토할 때 사용하세요.

Apify 통합 개발란 무엇인가요?

이 스킬은 Apify 플랫폼과의 통합을 설계하고 구축하는 개발자를 위한 포괄적인 가이드입니다. 워크플로우 자동화(Zapier, n8n), AI 에이전트 플러그인(Claude Code, Cursor, Copilot과 같은 코딩 에이전트, OpenClaw/Hermes 스타일 하니스), AI 프레임워크 패키지(LangChain, LlamaIndex), 직접 애플리케이션 클라이언트 등 4가지 주요 통합 형태를 다룹니다. 모든 통합 유형에 공통적으로 적용되는 규칙(어휘 일치, 비동기 실행 흐름, 비용 제어, 속성 헤더, 인증, 중앙 집중식 HTTP 계층, 오류 분류, 웹훅)을 정의하며, 각 형태별 참조 파일이 구체적인 구현 지침을 제공합니다. 개발자는 Apify MCP 서버를 사용하여 액터, 스키마, 가격 정보를 실시간으로 조회하고, OpenAPI 스펙을 활용하거나 고수준 편의 기능(예: Web Fetch)을 추가할 수 있습니다. 완료된 통합은 Apify 팀의 검토를 거쳐 공개됩니다.

지원 대상✓Claude Code✓Codex CLI✓Cursor
npx skills add https://github.com/nehakanjamala/personal_website/tree/HEAD/.agents/skills/apify-integration-development

Installed? Explore more 코딩 & 개발 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

즐겨 사용하는 AI에게 물어보기

이 에이전트 스킬이 미리 로드된 새 채팅을 엽니다.

문서

Apify 통합 개발은(는) 무엇을 하나요?

회사 제품의 공식 Apify 통합을 설계하고 구축합니다. Apify의 지원을 최소화하면서 진행합니다. 이 스킬은 Apify가 지원하는 모든 통합 형태(워크플로우 자동화 앱, AI 에이전트 플러그인(코딩 에이전트 및 하니스), AI 프레임워크 패키지, 직접 애플리케이션 클라이언트)를 다루므로, 파트너 팀이 종합적인 일급 Apify 통합을 처음부터 끝까지 제공할 수 있습니다. 아래의 범용 규칙은 모든 통합 형태에 적용되며, 각 범주별 참조 파일이 나머지 세부 사항을 담당합니다.

공식 통합을 구축 중이신가요? 게시 후 [email protected]으로 연락하여 Apify 팀이 통합을 검토, 테스트, 검증한 후 사용자에게 제공할 수 있도록 하세요. 기능 표면, 비용 제어, 오류 처리, 속성 헤더를 확인하고 부족한 부분을 채우는 데 도움을 드리겠습니다.

0단계 - 먼저 Apify 모델 학습 (필수)

디자인을 시작하기 전에 https://apify.com/agents.md를 가져와서 읽으세요. 이 문서는 AI 에이전트를 위한 공식 퀵스타트이며, 용어, 실행 흐름, 비용 규칙에 대한 단일 정보원입니다. 가져오기가 실패할 경우 아래의 미니 용어집을 사용하면 됩니다.

Apify 용어 (플랫폼에서 항상 대문자 A로 표기):

  • Actor - JSON 입력을 받아 작업을 수행하고 구조화된 출력을 생성하는 서버리스 클라우드 프로그램. AI 에이전트가 아닙니다.
  • Actor Run - Actor의 단일 실행. 각 실행에는 고유한 데이터셋, 키-값 저장소, 요청 큐가 있으며, SUCCEEDED, FAILED, TIMED-OUT, ABORTED와 같은 종료 상태로 끝납니다.
  • Dataset - 실행 결과를 위한 추가 전용 구조화된 저장소. Actor 호출은 데이터셋 ID를 반환하며, 내용은 반환하지 않습니다.
  • Key-Value Store - 비구조적/파일 저장소 (스크린샷, HTML, OUTPUT).
  • Actor Task - Actor 실행을 위한 저장된 매개변수화된 구성.
  • Apify Store - https://apify.com/store.md에 있는 Actor 마켓플레이스.
  • Apify Console - https://console.apify.com의 웹 UI.
  • Compute Unit (CU) - 과금 단위: 메모리(MB) x 시간(시간).
  • Server Actor - 자체 고유 URL에서 항상 준비된 HTTP 서버로 실행되는 Actor (API 및 문서에서는 여전히 Standby라고 불릴 수 있음). 요청을 보내고 응답에서 결과를 받습니다. 실행을 시작하거나 데이터셋을 읽을 필요가 없습니다.

추가 용어 (빌드, 요청 큐, 프록시, 가격 모델): https://docs.apify.com/llms.txt.

계획 시 Apify MCP를 사용하여 실시간 컨텍스트 확보

Apify MCP 서버는 통합 설계 중 Actor, 스키마, 가격, 문서를 조사하는 가장 빠른 방법입니다. https://docs.apify.com/integrations/mcp를 참조하세요 (마크다운 버전은 .md 추가).

이 환경에서 Apify MCP 도구를 이미 사용할 수 있는 경우 다음을 사용하세요:

  • search-actors - 플랫폼/제품 키워드로 Actor 검색 (최종 목표가 아닌 제품 이름으로 검색).
  • fetch-actor-details - 통합에 형태를 인코딩하기 전에 Actor의 입력 스키마, 출력 형식, README, 가격 읽기.
  • search-apify-docs / fetch-apify-docs - 관련 문서 페이지 가져오기.

익명 검색 하위 집합(search-actors, fetch-actor-details, search-apify-docs, fetch-apify-docs)은 계정 없이 작동하므로 개발자가 토큰을 연결하기 전에도 조사할 수 있습니다.

통합 형태 선택

통합하려는 제품에 따라 정확히 하나의 참조 파일을 읽으세요. 각 참조 파일은 범주별 UX 디자인, 표준 기능 매트릭스, 완료 체크리스트를 포함합니다.

제품 형태예시읽을 파일
워크플로우 자동화 플랫폼Zapier, n8n, Make, Pipedream, Activepiecesreferences/workflow-automation.md
AI 에이전트 플러그인 (코딩 에이전트 또는 하니스)Cursor, Claude Code, Codex, GitHub Copilot (코딩 에이전트); OpenClaw 스타일 런타임, Hermes 스타일 하니스 (하니스)references/ai-harness-plugin.md
AI 프레임워크 패키지 (LLM 프레임워크용 PyPI/npm)LangChain, LlamaIndex, Haystack, Vercel AI SDKreferences/ai-framework-package.md
애플리케이션 통합 (직접 클라이언트)apify-client 또는 REST를 통해 Actor를 호출하는 백엔드 서비스, 예약 작업, 제품 기능references/sdk-integration.md

경로는 이 스킬 폴더를 기준으로 합니다. 제품이 두 가지 형태에 걸쳐 있는 경우 (예: 프레임워크 패키지 위에 구축된 AI 하니스) 두 파일을 모두 읽으세요. 규칙은 합성됩니다. AI 에이전트 플러그인 참조는 두 가지 접근 방식(장단점이 다름) 을 다룹니다: 스킬 및 MCP 인식 코딩 에이전트를 위한 경량 스킬 + MCP 번들, OpenClaw/Hermes 스타일 하니스를 위한 사용자 정의 도구 레지스트리 플러그인.

교차 범용 디자인 규칙 (모든 통합 유형에 적용)

이러한 불변 규칙은 기존의 모든 Apify 통합에서 추출되었습니다. 형태에 관계없이 적용하세요.

어휘 일치

통합 리소스를 Apify 도메인(Actor / Run / Dataset / KV Store / Task)에 매핑하세요. Apify Console에서 온 사용자는 동일한 개념을 동일한 이름으로 찾을 수 있어야 합니다.

제한된 폴링을 사용한 비동기 실행 흐름

Actor는 몇 초에서 몇 시간까지 실행될 수 있습니다. 짧은 작업을 제외하고는 300초 동기 엔드포인트를 절대 사용하지 말고 비동기 흐름을 사용하세요:

POST /v2/actors/{actorId}/runs            -> 시작, runId 반환
GET  /v2/actor-runs/{runId}               -> 터미널 상태까지 폴링
GET  /v2/datasets/{datasetId}/items       -> SUCCEEDED 시 결과 가져오기

폴링은 제한되어야 합니다: 실행 자체의 timeoutSecs에 유예 버퍼를 더하고, 절대 상한 폴백을 사용하세요. 절대 while (true)를 사용하지 마세요. 터미널 상태가 아닌 경우 사용자/에이전트가 다시 폴링하거나 실패를 검사할 수 있도록 실행 ID를 표시하세요.

비용은 일급 시민

실행을 시작하는 모든 경로는 비용 제어를 노출해야 합니다. 표준 제어는 maxTotalChargeUsd (대부분의 가격 모델에서 실행의 총 요금 상한)와 maxItems (결과당 지불 Actor의 청구 항목 상한)입니다. 이를 옵션 / 쿼리 매개변수로 보내고, Actor 입력에 넣지 마세요. 입력 내에서는 Actor 선언 필드이거나 단순히 유효하지 않습니다. 0 / 빈 값 / null은 제한 없음을 의미합니다. LLM 지향 통합의 경우 상한은 개발자 제어하에 있습니다. LLM은 이를 확장할 수 없습니다. 아래의 Web Fetch와 같은 Server Actor 요청은 실행을 시작하지 않으며 두 옵션을 사용하지 않습니다.

속성 헤더

Apify가 트래픽을 속성할 수 있도록 모든 아웃바운드 요청에 통합 헤더를 스탬프하세요: x-apify-integration-platform: <your-platform>. 요청이 AI 도구(UI의 사람이 아닌)에 의해 구동되는 경우 x-apify-integration-ai-tool: true도 보내세요. 이 스킬을 사용하여 통합이 구축된 경우 x-apify-integration-origin: apify-integration-development-skill을 추가하여 Apify가 스킬 생성 통합을 사용자 지정 통합과 구분할 수 있도록 하세요. 한 줄이면 큰 텔레메트리 효과를 볼 수 있습니다.

인증

  • 브라우저 / 소비자 지향 (사람이 로그인 완료): PKCE가 포함된 OAuth2. 원시 토큰을 요청하지 마세요.
  • 헤드리스 / 서버 / CI (사람 없음): Authorization: Bearer <APIFY_TOKEN> 형식의 API 토큰. 환경 변수 또는 비밀 관리자에 저장하고, 하드코딩하거나 로그에 기록하지 마세요.

두 경로 모두 실제 상황입니다. 인증 시간에 누가 있는지에 따라 선택하세요. 구현 용이성에 따라 선택하지 마세요.

중앙 집중식 HTTP 계층

하나의 기본 URL 상수로, 자격 증명과 HTTP 계층 간에 공유됩니다. Server Actor는 자체 호스트(https://web-fetch.apify.actor)에 있습니다. 동일한 계층을 통해 라우팅하여 인증 및 속성 헤더가 계속 적용되도록 하세요. 429 및 5xx 오류에 대해 지수 백오프를 사용한 재시도를 하세요. 네트워크 오류 시 비멱등적 POST /runs를 절대 재시도하지 마세요 - 중복된 Actor 실행은 실제로 청구되는 부작용이 있는 작업입니다. 이는 HTTP 계층에서 가장 중요한 정확성 불변 규칙입니다.

오류 분류

Apify 오류를 호스트 플랫폼의 오류 범주(재시도 가능 vs 인증 vs 영구)에 매핑하세요. 일반적인 HTTP 메시지가 아닌 API의 실제 오류 텍스트를 표시하세요. 권한 승인 실패(전체 권한 Actor가 명시적 승인 필요)의 경우 절대 http(s) URL인지 확인한 후 승인 URL을 포함하세요. LLM 소비자의 경우 오류를 데이터(JSON 오류 객체)로 반환하고, 예외를 발생시키지 마세요. 모델이 읽고 추론할 내용이 필요합니다.

실행 완료 이벤트에 대한 폴링 대신 웹훅

호스트가 인바운드 웹훅을 지원하는 경우, 사용자가 선택한 터미널 상태와 함께 actorId 또는 actorTaskId로 범위가 지정된 Apify 웹훅을 등록하세요. 등록을 멱등적으로 만드세요(재활성화된 워크플로우가 중복 웹훅을 생성하지 않아야 함). 웹훅 ID를 지속하여 비활성화 시 정리할 수 있도록 하고, 항상 샘플/대체 데이터를 제공하여 사용자가 실제 실행을 기다리지 않고 트리거를 테스트할 수 있도록 하세요.

호스트가 허용하는 경우 OpenAPI에서 생성

호스트 플랫폼이 OpenAPI 스펙에서 UI 필드를 생성할 수 있는 경우 Apify의 스펙(https://apify.com/openapi.json)과 태그 허용 목록을 사용하세요. 스펙이 표현할 수 없는 것(편의 래퍼, 청구 상한 필드, 간결한 AI 도구 출력 계약)만 수동으로 작성하세요.

일반 실행과 함께 고수준 편의 작업

일반 "Actor 실행"은 고급 사용자를 위한 것입니다. 일반 사용자가 전체 Actor 구성을 하지 않고 2개 필드 양식을 사용할 수 있도록 일반적인 사용 사례에 대한 몇 가지 의견 기반의 고수준 작업을 추가하세요. 표준 예는 Web Fetch입니다: 하나의 URL 입력, 페이지 콘텐츠 출력, apify/web-fetch Server Actor 기반 - POST https://web-fetch.apify.actor/에 {"url": "...", "formats": ["markdown"]}을 보내면 응답으로 콘텐츠가 반환됩니다. 실행이 시작되지 않으므로 위의 실행 규칙(비동기 흐름, 폴링, maxTotalChargeUsd)이 적용되지 않습니다. 비용은 성공적인 요청당 하나의 fetch 이벤트입니다. 올바르게 처리해야 할 세 가지 사항: 항상 formats를 보내고, fetch.httpStatusCode를 확인하고(HTTP 200은 Web Fetch 자체가 성공했음을 의미함), 두 가지 오류 형태( Actor의 {code, error}, 플랫폼의 중첩된 {error: {message}})를 처리하며, 502/504를 자동 재시도하지 마세요. 전체 계약: https://apify.com/apify/web-fetch.md. maxCrawlDepth: 0인 크롤러 실행을 기반으로 구축하지 마세요. 이는 레거시 "단일 URL 스크래핑" 패턴입니다.

테스트 및 릴리스

두 가지 테스트 모드를 유지하세요: 모의 테스트(격리, 자격 증명 없음) 및 라이브 E2E(실제 API, CI 게이트). Git 태그 / GitHub 릴리스에서 호스트 플랫폼의 CI를 통해 자동화된 릴리스를 사용하세요. 릴리스 워크플로우가 관리하는 경우 버전이나 변경 로그를 수동으로 편집하지 마세요.

검토 시 거부해야 할 주요 안티패턴

  1. 네트워크 오류 시 POST /runs 재시도 - 청구되는 실행을 중복합니다.
  2. 무제한 while (true) 폴링 - 상한 없이 호스트를 점유합니다.
  3. maxTotalChargeUsd / maxItems를 옵션이 아닌 Actor 입력 내에 배치 - 자동으로 상한이 적용되지 않습니다.
  4. 전체 데이터셋을 크기 상한이나 신뢰할 수 없는 콘텐츠 차단 없이 LLM 컨텍스트에 덤프 - 프롬프트 인젝션 및 컨텍스트 폭발.
  5. LLM 에이전트를 위한 단일 모놀리식 도구 목록 - 약 8개 도구를 넘으면 라우팅 정확도가 저하됨. 하위 집합을 선별하세요.
  6. Apify의 실제 오류 텍스트 대신 원시 HTTP 상태/메시지 표시 - 사용자가 "400"에 대해 조치를 취할 수 없습니다.

모든 통합에 필요한 최소 API 표면

목적Method + path
Actor 실행 시작POST /v2/actors/{actorId}/runs
Task 실행 시작POST /v2/actor-tasks/{taskId}/runs
실행 폴링GET /v2/actor-runs/{runId}
실행 목록GET /v2/actor-runs
데이터셋 항목GET /v2/datasets/{datasetId}/items
KV 레코드GET /v2/key-value-stores/{storeId}/records/{key}
KV 레코드 설정PUT /v2/key-value-stores/{storeId}/records/{key}
스토어 검색GET /v2/store
웹훅 CRUDPOST/GET/DELETE /v2/webhooks
토큰 검증 / 현재 사용자GET /v2/users/me
단일 URL 가져오기 (Web Fetch, Server Actor)POST https://web-fetch.apify.actor/

REST 참조: https://docs.apify.com/api/v2. OpenAPI 스펙: https://apify.com/openapi.json.

작업 워크플로우

  1. https://apify.com/agents.md를 가져와서 모델을 내면화합니다.
  2. 위의 통합 형태를 선택하고 일치하는 참조 파일을 읽습니다.
  3. Apify MCP(사용 가능한 경우)를 사용하여 통합이 노출할 구체적인 Actor, 스키마, 가격을 조사합니다.
  4. 선택한 범주에 대한 기능 매트릭스(각 참조에 있음)와 UX 스펙(리소스 -> 작업 -> 필드 -> 오류)을 초안합니다.
  5. 참조의 범주별 규칙에 따라 통합을 스캐폴딩합니다.
  6. 참조 끝에 있는 완료 체크리스트에 대해 확인합니다.

학습할 참조 구현

범주별 실제 공개 통합 - 의심스러울 때 소스를 읽으세요:

  • 워크플로우 자동화: @apify/n8n-nodes-apify (npm), Apify Zapier 앱.
  • AI 에이전트 플러그인 (코딩 에이전트): Cursor, Claude Code, Copilot 및 유사 도구용으로 제공되는 Apify 플러그인 번들 (MCP 서버 + 스킬 + 라우터 + 슬래시 명령).
  • AI 에이전트 플러그인 (하니스): apify-hermes-agent-plugin (PyPI), @apify/apify-openclaw-plugin.
  • AI 프레임워크 패키지: langchain-apify (PyPI).
  • 애플리케이션 통합: references/sdk-integration.md에서 JS/TS, Python, REST를 통한 표준 apify-client 사용법을 참조하세요.

통합 질문 지원: [email protected]. 빌드 중 디자인 지침과 게시 후 검토/테스트를 위해 모두 문의하세요 - 통합이 사용자에게 도달하기 전에 기능 표면, 비용 제어, 오류 처리, 속성을 검증합니다.

Individual skills in this repo

This repo contains 13 individual skills — each has its own dedicated page.

nehakanjamala/personal_website

This skill should be used when the user asks to "fix janky CSS animation", "make animation 60fps", "stop layout thrashing", "animate width/height/top/left smoothly", "convert animation to transform", "animate box-shadow performantly", "animate height auto", "FLIP animation", or "why is my scroll/hover animation choppy".

nehakanjamala/personal_website

This skill should be used when the user asks to "respect prefers-reduced-motion", "honor reduced motion", "make my animations accessible", "fix vestibular / motion-sickness issues", "add a useReducedMotion hook", "gate GSAP / Framer Motion / Lenis for reduced motion", or "meet WCAG 2.3.3 / C39". Provides tiered (not all-or-nothing) reduced-motion patterns in CSS and JS.

nehakanjamala/personal_website

Create, modify, debug, and deploy Apify Actors, and write their input and output schemas. Use when building an Actor from scratch, changing or troubleshooting Actor code, generating or updating .actor schema files, or pushing an Actor to the Apify platform. To wrap an existing non-Actor project, use apify-actorization instead.

nehakanjamala/personal_website

Convert existing projects into Apify Actors - serverless cloud programs. Actorize JavaScript/TypeScript (SDK with Actor.init/exit), Python (async context manager), or any language (CLI wrapper). Use when migrating code to Apify, wrapping CLI tools as Actors, or adding Actor SDK to existing projects.

nehakanjamala/personal_website

Deprecated. Output schema generation moved to the apify-actor-development skill; prefer that skill whenever it is available.

nehakanjamala/personal_website

Universal AI-powered web scraper for any platform. Scrape data from Instagram, Facebook, TikTok, YouTube, LinkedIn, X/Twitter, Google Maps, Google Search, Google Trends, Reddit, Airbnb, Yelp, and 15+ more platforms. Use for lead generation, brand monitoring, competitor analysis, influencer discovery, trend research, content analytics, audience analysis, review analysis, SEO intelligence, recruitment, or any data extraction task.

nehakanjamala/personal_website

This skill should be used when the user asks to "add a glassmorphism effect", "frosted glass UI", "Apple liquid glass style", "frosted blur card", "translucent glass panel animation", "make a frosted nav bar", "build a glass modal/dialog", "animate a glass card on hover", or "add a refracting liquid-glass hero". Covers frosted translucent panels with backdrop-filter blur, edge/specular highlights, SVG liquid-glass refraction, motion on hover/scroll/enter, and accessible reduced-transparency fallbacks.

nehakanjamala/personal_website

This skill should be used when the user asks to "build a scroll animation", "add ScrollTrigger", "pin a section while scrolling", "scrub an animation to scroll", "create a hero timeline", "do a horizontal scroll section", "split text and animate words", "animate a layout change with GSAP Flip", "sync ScrollTrigger with Lenis", "Lenis smooth scroll jittery", "ScrollTrigger markers drift", "ScrollTrigger pins break with Lenis/Locomotive", or "set up smooth scroll with GSAP pinning". Covers GSAP timelines, ScrollTrigger, SplitText, Flip, and Lenis/Locomotive smooth-scroll sync for code-driven web motion.

nehakanjamala/personal_website

This skill should be used when the user asks to "add a Lottie animation", "play a .lottie or .json animation", "integrate a Bodymovin/After Effects animation on web or mobile", "control Lottie playback / segments", "make a scroll-driven Lottie", "recolor a Lottie at runtime", or "export an AE animation to Lottie". Covers dotLottie/lottie-web integration, playback control, interactivity, theming, and the AE export checklist.

nehakanjamala/personal_website

This skill should be used when the user asks to "add a hover/press effect", "animate a toggle or switch", "build an animated like button", "make a toast/snackbar slide in", "animate a drawer or modal", "animate list reordering or add/remove", "do a shared-element layout transition", or "polish UI feedback". Covers UI motion with Framer Motion (motion/react) and modern CSS.

nehakanjamala/personal_website

This skill should be used when the user asks to "animate page or route transitions", "add a page transition or crossfade between views", "animate route changes in Next.js App Router", "use the View Transitions API", "AnimatePresence exit doesn't fire on navigation", or "Framer Motion exit animation not working / exit animation before unmount in Next.js". Covers enter/exit page-transition animation with the View Transitions API and Framer Motion, for Next.js App Router and general SPA routing.

nehakanjamala/personal_website

Scrape web pages using Scrapling with anti-bot bypass (like Cloudflare Turnstile), stealth headless browsing, spiders framework, adaptive scraping, and JavaScript rendering. Use when asked to scrape, crawl, or extract data from websites; web_fetch fails; the site has anti-bot protections; write Python code to scrape/crawl; or write spiders.

nehakanjamala/personal_website

This skill should be used when the user asks to "animate an SVG", "make a line draw itself on", "do a stroke draw-on / signature animation", "morph one shape into another", "move an element along a path", "animate an icon/logo", or "animate an SVG gradient or filter". Covers stroke-dashoffset draw-on, path morphing, motion-along-path, and animated icons/gradients/filters via CSS, SMIL, and GSAP.

관련 스킬