其他

apify-actorization

apify/agent-skills

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.

  • 1万 次安装
  • 2500 星标
  • 收录于

安装命令

npx skills add https://github.com/apify/agent-skills --skill apify-actorization

SKILL.md

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 <actor-name> --user-agent apify-agent-skills/apify-actorization in project root
  2. Create a Dockerfile for the project's language
  3. Wrap code with SDK lifecycle (see language-specific section below)
  4. Configure .actor/input_schema.json
  5. Test with apify run --input '{"key": "value"}' --user-agent apify-agent-skills/apify-actorization
  6. Deploy with apify push --user-agent apify-agent-skills/apify-actorization

When to use this skill

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