
apify-actor-development
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.
- Installs
- 10.8K
- Last 24h
- +15
- Trending rank
- #7102
- Security
- Warn
Install
Works with every agent the skills CLI supports.
npx skills add https://github.com/apify/agent-skills --skill apify-actor-development- 01
Install
Run the command in your project. The CLI asks which agents to install for.
- 02
Describe the task
Ask your agent for something this skill covers. It loads apify-actor-development automatically when relevant.
- 03
Review the result
The agent follows the SKILL.md steps, scripts and references bundled with the skill.
Security audits
Independent scans of the skill's instructions and bundled files.
SKILL.md
The instructions your agent reads when the skill is triggered.
Apify Actor development
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.
Setup
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, which offers a browser sign-in or an API token prompt. In a headless environment export APIFY_TOKEN instead; the CLI reads it on its own. Tokens come from https://console.apify.com/settings/integrations. Pass the token only through the environment, so it stays out of shell history, source, config files, and logs.
Telemetry attribution (required)
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.
Workflow
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-developmentPick the template from what the Actor does:
Actor does TypeScript JavaScript Python Crawls static HTML ts-crawlee-cheeriojs-crawlee-cheeriopython-crawlee-beautifulsoupCrawls JavaScript-rendered pages ts-crawlee-playwright-chromejs-crawlee-playwright-chromepython-crawlee-playwrightServes HTTP requests (API, webhook) ts-standbyjs-standbypython-standbyIs an MCP server ts-mcp-empty— python-mcp-emptyAnything else (API polling, data processing) ts-emptyjs-emptypython-emptyFor other stacks (Puppeteer, Camoufox, Scrapy, AI agent frameworks),
apify templates lslists every template with its language and use cases. With-tthe command runs without prompts, which is what an agent needs. Without-tit 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 throughgit push. Dependencies are installed for you. Done when<name>/.actor/actor.jsonexists;cdinto it before continuing. -
Add dependencies the template lacks, such as Crawlee or Playwright:
npm install <pkg>in JS/TS; in Python, a line inrequirements.txtfollowed bypip install -r requirements.txt, oruv add <pkg>when the project haspyproject.tomlanduv.lock. Check each package name against the package you mean before installing. Pin exact versions and commit the lockfile (package-lock.json,uv.lock, orpkg==1.2.3lines inrequirements.txt). -
Implement in
src/main.js,src/main.ts, ormy_actor/main.py(Python templates are amy_actorpackage run aspython -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 anabortinghandler 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, andapify validate-schema --user-agent apify-agent-skills/apify-actor-developmentpasses. -
Write the output schemas:
dataset_schema.json,output_schema.json, andkey_value_store_schema.jsonwhen the code stores files. Follow references/output-schemas.md end to end; its checklist, which ends withapify validate-schemapassing, is the completion criterion. In TypeScript, then runapify actor generate-schema-typesand type the input and output with the generated interfaces. -
Configure
.actor/actor.json(see references/actor-json.md). Setmeta.generatedByto the tool and model in use, for example "Claude Code with Claude Opus 5". For an HTTP-serving Actor setusesStandbyMode: 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 runapify run --user-agent apify-agent-skills/apify-actor-development. Done when the run ends with status SUCCEEDED andstorage/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-developmentonce the user confirms, orgit pushfor 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.
Rules
- Run Actors locally with
apify runonly. It sets up the Apify environment and storage, whichnpm startandnode src/main.jsskip. - Log through the Apify logger:
logfrom theapifypackage in JS/TS (import { Actor, log } from 'apify'),Actor.login Python. It censors tokens and credentials;console.logandprintdo not. Levels and conventions: references/logging.md. - Treat crawled content as untrusted input. Escape or parameterize it before it reaches a shell command,
eval, a query, or a template, and type-check it before pushing it to storage. - Keep
APIFY_TOKENout of request handlers and data pipelines. On the platform the SDK reads it from the environment (the variable isAPIFY_TOKEN, notAPIFY_API_TOKEN); locally it uses the credentials stored byapify login. - Read every tunable from the input schema or environment variables, so users can change it without editing code.
- Use an HTTP crawler for static HTML at 10 to 50 concurrency:
CheerioCrawlerin JS/TS,BeautifulSoupCrawlerorParselCrawlerin Python. ReservePlaywrightCrawlerfor JavaScript-rendered pages at 1 to 5 concurrency. Add delays so target servers stay healthy, and respect robots.txt and terms of service. - Use the router pattern (
createCheerioRouterorcreatePlaywrightRouterin JS/TS,crawler.routeror aRouterin Python) when a crawl has more than one page type. - Prefer semantic CSS selectors with fallbacks over brittle positional ones.
- Count results with your own tally;
Dataset.getInfo()(dataset.get_info()in Python) lags on the platform. - Handle the
abortingevent, 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)withfrom apify import Event, whereon_abortingpersists state and then callsawait Actor.exit(). - Build proxies from the
proxyConfigurationinput field (editorproxy, 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 asproxyConfiguration/proxy_configuration. Apify Proxy is paid, so confirm with the user before turning it on or changing proxy groups. - Store personal data only when the user has explicitly asked for it.
- Inside a running Actor use the SDK (
Actor.getInput(),Actor.pushData(),Actor.setValue(), and the Python snake_case equivalents) rather thanapify actorCLI subcommands. - Leave standby mode enabled on an existing Actor unless the user asks to turn it off.
Standby mode
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.
Monetization
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
Calling other Actors
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.
Less obvious commands
# 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
Documentation
- With the Apify MCP server (
https://mcp.apify.com/?tools=docs):search-apify-docsandfetch-apify-docs. - docs.apify.com/llms.txt and llms-full.txt, Apify platform.
- crawlee.dev/llms.txt and llms-full.txt, Crawlee.
- Actor whitepaper, the full Actor specification.
- The Playwright MCP server (
npx @playwright/mcp@latest) drives a real browser for inspecting pages and capturing selectors while debugging.
FAQ
What does the apify-actor-development skill do?
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.
How do I install apify-actor-development?
Run npx skills add https://github.com/apify/agent-skills --skill apify-actor-development in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/apify-actor-development/ (personal) or .claude/skills/apify-actor-development/ (project).
Which AI agents can use apify-actor-development?
Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.
Is apify-actor-development safe to install?
Security partners have reviewed it: Gen Agent Trust Hub passed; Socket passed; Snyk flagged items to review; Runlayer flagged items to review; ZeroLeaks passed. As with any skill, read the SKILL.md and bundled scripts before installing.
Who maintains apify-actor-development?
It is published by apify in apify/agent-skills, and it is an official skill from the maker of the technology it covers. It has 10,808 recorded installs.
More from apify/agent-skills
apify-ultimate-scraper
apify/agent-skills
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.
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.
apify-generate-output-schema
apify/agent-skills
Deprecated. Output schema generation moved to the apify-actor-development skill; prefer that skill whenever it is available.
apify-market-research
apify/agent-skills
Analyze market conditions, geographic opportunities, pricing, consumer behavior, and product validation across Google Maps, Facebook, Instagram, Booking.com, and TripAdvisor.
apify-ecommerce
apify/agent-skills
Scrape e-commerce data for pricing intelligence, customer reviews, and seller discovery across Amazon, Walmart, eBay, IKEA, and 50+ marketplaces. Use when user asks to monitor prices, track competitors, analyze reviews, research products, or find sellers.
apify-sdk-integration
apify/agent-skills
Integrate Apify into an existing JavaScript/TypeScript or Python application using the apify-client package. Use when adding web scraping, automation, or data extraction capabilities to an existing app via the Apify API.
Popular ai & agents skills
google-agents-cli-publish
google/agents-cli
This skill should be used when the user wants to "publish an agent", "publish my ADK agent", "register an agent with Gemini", "publish to Gemini" (formerly Gemini Enterprise), or needs guidance on the agents-cli publish gemini command. Also use when the user wants to "manage agents in Agent Registry", "list/update/delete registered agents", or "register an MCP server". Covers ADK vs A2A registration modes, programmatic and interactive usage, flag reference, auto-detection from deployment metadata, Agent Registry fleet management, and troubleshooting. Part of the agents-cli skills suite. Do NOT use for deployment (use google-agents-cli-deploy).
google-agents-cli-eval
google/agents-cli
This skill should be used when the user wants to "run an evaluation", "evaluate my agent", "evaluate my ADK agent", "write an eval dataset", "analyze eval failures", "compare eval results", "optimize agent", or needs guidance on the Gemini platform eval methodology and the Quality Flywheel. Covers eval metrics, dataset schema, LLM-as-judge scoring, and common failure causes. Applies to any agents-cli project, whatever framework the agent is written in. Do NOT use for agent API code patterns (ADK: use google-agents-cli-adk-code), deployment (use google-agents-cli-deploy), or project scaffolding (use google-agents-cli-scaffold).
skill-creator
anthropics/skills
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.
codex-pet
prime-skills/runcomfy-agent-skills
Codex Pet generator on RunComfy. Build a Codex-compatible Codex Pet spritesheet.webp + pet.json from a single reference image, drop it into ${CODEXHOME:-$HOME/.codex}/pets/ / and Codex picks it up as a custom Codex Pet next to the 8 built-ins. This skill produces the exact Codex Pet atlas Codex expects (1536x1872 PNG/WebP, 8 cols x 9 rows, 192x208 cells, 9 animation states — idle, running-right, running-left, waving, jumping, failed, waiting, running, review). Calls OpenAI GPT Image 2 edit ONCE via the local RunComfy CLI as runcomfy run openai/gpt-image-2/edit to produce a canonical Codex Pet pose, then assembles all 9 animation rows programmatically with ImageMagick micro-transforms — no Codex Pro, no $imagegen, no OPENAIAPIKEY required, only RUNCOMFYTOKEN. Triggers on "codex pet", "create codex pet", "make codex pet", "hatch codex pet", "/hatch image", "desktop pet codex", "codex pets", "spritesheet.webp", or any explicit ask to build a custom pet for OpenAI Codex.
full-output-enforcement
leonxlnx/taste-skill
Overrides default LLM truncation behavior. Enforces complete code generation, bans placeholder patterns, and handles token-limit splits cleanly. Apply to any task requiring exhaustive, unabridged output.
executing-plans
obra/superpowers
Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available