본문으로 건너뛰기
Skillpedia
배포 및 클라우드 (DevOps)48k · #3784

apify-actorization

하는 일

기존 프로그램을 Apify 플랫폼과 호환되는 서버리스 애플리케이션으로 변환하는 도구입니다. 코드를 ‘Docker 이미지’로 패키징하며, 이 이미지는 텍스트 지시(JSON)를 받아 작업을 수행하고 결과도 텍스트 형식으로 반환할 수 있습니다.

사용하는 경우

  • ✓서버를 신경 쓰지 않고 클라우드에서 실행하고 싶은 프로그램이 있을 때.
  • ✓스크립트나 명령줄 도구를 Apify 플랫폼에 통합하고 싶을 때.
  • ✓오래된 프로젝트를 Apify 플랫폼으로 옮길 때.

스킬 링크

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

AI에게 요청하는 예시

“이 Python 스크립트를 Apify 애플리케이션으로 바꿔 주세요.”

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

작동 방식

명령을 사용해 새 Apify 프로젝트를 초기화한 다음, 코드를 Apify의 도구를 사용하도록 수정합니다. 마지막으로 프로그램을 테스트하고 플랫폼에 배포합니다.

기술 내용 (원본 SKILL.md)

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

Apify Actorization

Actorization converts existing software into reusable serverless applications compatible with the Apify platform. Actors are programs packaged as Docker images that accept well-defined JSON input, perform an action, and optionally produce structured JSON output.

Quick Start

  1. Run apify init in project root
  2. Wrap code with SDK lifecycle (see language-specific section below)
  3. Configure .actor/input_schema.json
  4. Test with apify run --input '{"key": "value"}'
  5. Deploy with apify push

When to Use This Skill

  • Converting an existing project to run on Apify platform
  • Adding Apify SDK integration to a project
  • Wrapping a CLI tool or script as an Actor
  • Migrating a Crawlee project to Apify

Prerequisites

Verify apify CLI is installed:

apify --help

If not installed:

brew install apify-cli

# Or: npm install -g apify-cli
# Or install from an official release package that your OS package manager verifies

Verify CLI is logged in:

apify info  # Should return your username

If not logged in, check if APIFY_TOKEN environment variable is defined. If not, ask the user to generate one at https://console.apify.com/settings/integrations, add it to their shell or secret manager without putting the literal token in command history, then run:

apify login

Actorization Checklist

Copy this checklist to track progress:

  • Step 1: Analyze project (language, entry point, inputs, outputs)
  • Step 2: Run apify init to create Actor structure
  • Step 3: Apply language-specific SDK integration
  • Step 4: Configure .actor/input_schema.json
  • Step 5: Configure .actor/output_schema.json (if applicable)
  • Step 6: Update .actor/actor.json metadata
  • Step 7: Test locally with apify run
  • Step 8: Deploy with apify push

Step 1: Analyze the Project

Before making changes, understand the project:

  1. Identify the language - JavaScript/TypeScript, Python, or other
  2. Find the entry point - The main file that starts execution
  3. Identify inputs - Command-line arguments, environment variables, config files
  4. Identify outputs - Files, console output, API responses
  5. Check for state - Does it need to persist data between runs?

Step 2: Initialize Actor Structure

Run in the project root:

apify init

This creates:

  • .actor/actor.json - Actor configuration and metadata
  • .actor/input_schema.json - Input definition for the Apify Console
  • Dockerfile (if not present) - Container image definition

Step 3: Apply Language-Specific Changes

Choose based on your project's language:

Quick Reference

Language Install Wrap Code
JS/TS npm install apify await Actor.init() ... await Actor.exit()
Python pip install apify async with Actor:
Other Use CLI in wrapper script apify actor:get-input / apify actor:push-data

Steps 4-6: Configure Schemas

See schemas-and-output.md for detailed configuration of:

  • Input schema (.actor/input_schema.json)
  • Output schema (.actor/output_schema.json)
  • Actor configuration (.actor/actor.json)
  • State management (request queues, key-value stores)

Validate schemas against @apify/json_schemas npm package.

Step 7: Test Locally

Run the actor with inline input (for JS/TS and Python actors):

apify run --input '{"startUrl": "https://example.com", "maxItems": 10}'

Or use an input file:

apify run --input-file ./test-input.json

Important: Always use apify run, not npm start or python main.py. The CLI sets up the proper environment and storage.

Step 8: Deploy

apify push

This uploads and builds your actor on the Apify platform.

Monetization (Optional)

After deploying, you can monetize your actor in the Apify Store. The recommended model is Pay Per Event (PPE):

  • Per result/item scraped
  • Per page processed
  • Per API call made

Configure PPE in the Apify Console under Actor > Monetization. Charge for events in your code with await Actor.charge('result').

…

자주 묻는 질문

‘Actor’란 무엇인가요?

Docker 이미지로 패키징된 프로그램으로, 어디서든 실행할 준비가 되어 있으며 특히 Apify 플랫폼에서 실행됩니다. 입력 데이터를 받아 작업을 수행하고 출력 데이터를 만들 수 있습니다.

Docker 프로그래밍을 알아야 하나요?

꼭 그렇지는 않습니다. `apify init` 명령이 기본 Dockerfile을 만들어 줍니다. 중점은 코드를 Apify SDK를 사용하도록 맞추는 데 있습니다.

AI는 내 프로그램이 무엇을 하는지 어떻게 아나요?

입력과 기대되는 결과를 설정 파일(JSON)에 정의하면, 그 정의가 AI에게 프로그램과 어떻게 상호작용할지 안내합니다.

상세 정보

작성자의 원본 설명

Actorization converts existing software into reusable serverless applications compatible with the Apify platform. Actors are programs packaged as Docker images that accept well-defined JSON input, perform an action, and optionally produce structured JSON output.

repo: sickn33/agentic-awesome-skills

인기도

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

이 스킬이 유용한가요?

0

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

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬