/apify-agent-skills:apify-actor-developmentfrom apify-agent-skills
Creates, modifies, debugs, and deploys Apify Actors. Guides through project setup, template selection, CLI usage, and platform deployment.
Ships in apify-agent-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
An Actor is a serverless program packaged as a Docker image. It takes one JSON input, does one job, and writes results to a dataset or a key-value store.
apify --help # CLI installed?
apify info # logged in? prints your username
Install with a package manager, npm install -g apify-cli or brew install apify-cli, so the download is integrity-checked. Log in with apify login: it prints a URL and a one-time code and waits until the user approves it in a browser, so show the user both. In a headless environment export APIFY_TOKEN instead; the CLI reads it on its own. Create an API token in Apify Console and copy it right after creating it - it is shown only once. Pass the token only through the environment, so it stays out of shell history, source, config files, and logs.
Pass --user-agent apify-agent-skills/apify-actor-development on every apify command you run from this skill: apify create, apify run, apify push, apify call, and the rest. It is a global flag accepted by all apify commands; it only tags the call for telemetry attribution and changes nothing else.
Skip the steps that do not apply when modifying an existing Actor.
Create the project.
apify create <actor-name> -t <template-id> --user-agent apify-agent-skills/apify-actor-development
Pick the template from what the Actor does:
| Actor does | TypeScript | JavaScript | Python |
|---|---|---|---|
| Crawls static HTML | ts-crawlee-cheerio | js-crawlee-cheerio | python-crawlee-beautifulsoup |
| Crawls JavaScript-rendered pages | ts-crawlee-playwright-chrome | js-crawlee-playwright-chrome | python-crawlee-playwright |
| Serves HTTP requests (API, webhook) | ts-standby | js-standby | python-standby |
| Is an MCP server | ts-mcp-empty | — | python-mcp-empty |
| Anything else (API polling, data processing) | ts-empty | js-empty | python-empty |
For other stacks (Puppeteer, Camoufox, Scrapy, AI agent frameworks), apify templates ls lists every template with its language and use cases. With -t the command runs without prompts, which is what an agent needs. Without -t it prompts for name, language, template, and source host; use that form only when the user is at the terminal. Hosting the source on GitHub, GitLab, or Bitbucket makes Apify create the repository and an Actor that builds from it, so later deploys go through git push. Dependencies are installed for you. Done when <name>/.actor/actor.json exists; cd into it before continuing.
Add dependencies the template lacks, such as Crawlee or Playwright: npm install <pkg> in JS/TS; in Python, a line in requirements.txt followed by pip install -r requirements.txt, or uv add <pkg> when the project has pyproject.toml and uv.lock. Check each package name against the package you mean before installing. Pin exact versions and commit the lockfile (package-lock.json, uv.lock, or pkg==1.2.3 lines in requirements.txt).
Implement in src/main.js, src/main.ts, or my_actor/main.py (Python templates are a my_actor package run as python -m my_actor), following the rules. Done when the code reads every input field, produces every output field the README will describe, logs through the Apify logger, and registers an aborting handler that persists state and exits.
Write the input schema in .actor/input_schema.json (see references/input-schema.md). Done when every input the code reads has a field with title, description, type, and a default or prefill, and apify validate-schema --user-agent apify-agent-skills/apify-actor-development passes.
Write the output schemas: dataset_schema.json, output_schema.json, and key_value_store_schema.json when the code stores files. Follow references/output-schemas.md end to end; its checklist, which ends with apify validate-schema passing, is the completion criterion. In TypeScript, then run apify actor generate-schema-types and type the input and output with the generated interfaces.
Configure .actor/actor.json (see references/actor-json.md). Set meta.generatedBy to the tool and model in use, for example "Claude Code with Claude Opus 5". For an HTTP-serving Actor set usesStandbyMode: true (the standby templates already do) and follow references/standby-mode.md.
Write README.md following references/actor-readme.md. An Actor without a README is not finished.
Test locally. Put input in storage/key_value_stores/default/INPUT.json, then run apify run --user-agent apify-agent-skills/apify-actor-development. Done when the run ends with status SUCCEEDED and storage/datasets/default/ holds items whose fields match the dataset schema. Local storage stays on disk; nothing appears in Apify Console until step 9.
Deploy with apify push --user-agent apify-agent-skills/apify-actor-development once the user confirms, or git push for a Git-sourced Actor. Then run the Actor on the platform to see results in Console. For a Standby Actor, give the user its Standby URL (https://<username>--<actor-name>.apify.actor, see references/standby-mode.md) rather than pointing them to Console.
apify run only. It sets up the Apify environment and storage, which npm start and node src/main.js skip.log from the apify package in JS/TS (import { Actor, log } from 'apify'), Actor.log in Python. It censors tokens and credentials; console.log and print do not. Levels and conventions: references/logging.md.eval, a query, or a template, and type-check it before pushing it to storage.APIFY_TOKEN out of request handlers and data pipelines. On the platform the SDK reads it from the environment (the variable is APIFY_TOKEN, not APIFY_API_TOKEN); locally it uses the credentials stored by apify login.CheerioCrawler in JS/TS, BeautifulSoupCrawler or ParselCrawler in Python. Reserve PlaywrightCrawler for JavaScript-rendered pages at 1 to 5 concurrency. Add delays so target servers stay healthy, and respect robots.txt and terms of service.createCheerioRouter or createPlaywrightRouter in JS/TS, crawler.router or a Router in Python) when a crawl has more than one page type.Dataset.getInfo() (dataset.get_info() in Python) lags on the platform.aborting event, which the platform sends when a user or a limit stops the run: persist state, then exit, so the run ends quickly and cheaply. JS/TS: Actor.on('aborting', async () => { await Actor.setValue('STATE', state); await Actor.exit(); }). Python: Actor.on(Event.ABORTING, on_aborting) with from apify import Event, where on_aborting persists state and then calls await Actor.exit().proxyConfiguration input field (editor proxy, see references/input-schema.md): await Actor.createProxyConfiguration(input.proxyConfiguration) in JS/TS, await Actor.create_proxy_configuration(actor_proxy_input=actor_input.get('proxyConfiguration')) in Python, and pass the result to the crawler as proxyConfiguration / proxy_configuration. Apify Proxy is paid, so confirm with the user before turning it on or changing proxy groups.Actor.getInput(), Actor.pushData(), Actor.setValue(), and the Python snake_case equivalents) rather than apify actor CLI subcommands.Standby turns an Actor into a persistent HTTP server with a stable URL. Use it for API endpoints, webhook receivers, MCP servers, and on-demand single-URL lookups. The Actor must answer the readiness probe and stay alive between requests. Configuration, examples, and local testing: references/standby-mode.md.
Pricing is set in Apify Console when the Actor is published, not in code. Under pay-per-event, charge each custom event with await Actor.charge({ eventName: 'result', count }) in JS/TS or await Actor.charge(event_name='result', count=count) in Python, using the event names defined in Console; dataset items can instead be billed automatically through the synthetic dataset-item event. Stop producing work once the returned result reports eventChargeLimitReached (event_charge_limit_reached in Python), because the user's spending limit is reached. The README's cost section describes whichever model the Actor uses. Details: https://docs.apify.com/platform/actors/publishing/monetize/pay-per-event
Search the Store before building from scratch; a dedicated Actor often exists.
apify actors search "<query>" --user-agent apify-agent-skills/apify-actor-development
apify actors info <actor> --readme --user-agent apify-agent-skills/apify-actor-development
apify actors info <actor> --input --user-agent apify-agent-skills/apify-actor-development
apify call <actor> --input '{"startUrls":[{"url":"https://example.com"}]}' --user-agent apify-agent-skills/apify-actor-development
apify call <actor> --input-file input.json --user-agent apify-agent-skills/apify-actor-development
Input is one JSON object. Quote inline JSON; use --input-file for anything complex.
# Append --user-agent apify-agent-skills/apify-actor-development to each of these too.
apify secrets add <name> <value> # reference from actor.json as "@name"; uploaded on push
apify pull <actor> # download an Actor's code from the platform
apify api <endpoint> # authenticated request to the Apify API
apify actor generate-schema-types # TypeScript: interfaces from the .actor schemas, into src/__generated__/actor/
apify <command> --help
https://mcp.apify.com/?tools=docs,builds,versions): search-apify-docs and fetch-apify-docs; get-actor-build-log when a platform build fails; without a shell, create-actor, update-actor-version, and build-actor deploy in place of apify push.npx @playwright/mcp@latest) drives a real browser for inspecting pages and capturing selectors while debugging.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub apify/agent-skills --plugin apify-actor-commands8 skills in this plugin
/apify-actorizationConvert 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./apify-actor-runtimeTest and develop Apify Actors on a local Actor runtime instead of the Apify platform - install it via the Apify CLI, then load its version-matched skill with apify runtime skill. Use when building, running, debugging or testing an Actor locally./apify-api-to-server-actorTurn an existing HTTP API into an Apify Server Actor that works as a thin, pay-per-call wrapper around it, so a company can sell its API on Apify Store as a distribution channel. Reads the API's endpoints (OpenAPI spec or docs) and its pricing page, maps the upstream price of each call to Apify pay-per-event events, and produces a tested Actor project with per-request charging, endpoint schema, README, pricing file and a launch plan. Use whenever someone wants to wrap, proxy, resell, list or publish a third-party or partner API (REST, SaaS, data or AI API) as an Apify Actor, Server Actor or Standby Actor, asks how to price API calls with Actor events or match an API's pricing on Apify, or wants to bring a partner's product to Apify Store, even if they do not say "Server Actor". Not for scrapers or other Actors (use apify-actor-development), and not for wrapping an MCP server (use the ts-mcp-proxy or python-mcp-proxy template)./apify-fix-git-connectionRepair an Apify Actor's broken Git connection - pushes to GitHub that no longer start a build, builds that fail to clone the repository, or a GitHub integration rejected as invalid or expired (for example after Apify API tokens were revoked). Use when a Git-sourced Actor stopped deploying from its repository./apify-generate-output-schemaDeprecated. Output schema generation moved to the apify-actor-development skill; prefer that skill whenever it is available./apify-integration-developmentDesign and build an official Apify integration for a company's product - workflow-automation apps (Zapier/n8n-style), AI agent plugins (coding-agent skills+MCP bundles or OpenClaw/Hermes-style harnesses), AI framework packages (LangChain/LlamaIndex-style), or direct application clients via apify-client. Use when planning, creating, or reviewing an integration that exposes Apify Actors, runs, datasets, or key-value stores inside another product.2 plugins in one repository ship this exact skill · first indexed Nov 18, 2026
Other plugins' skills for the same job