Builds TypeScript Apify orchestrator Actors that chain sub-Actors with optional OpenRouter LLM steps, using the apify-orchestrator library. Covers schema fetching via Apify MCP, cost caps, scaffolding, and deployment.
Ships in apify-orchestrator-actor-development. 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 orchestrator Actor is a parent Apify Actor whose job is to coordinate a sequence (or parallel fan-out) of other Actors. It takes user input, calls sub-Actor A, feeds A's output into sub-Actor B, optionally runs an LLM transformation between them, and emits the combined result to its own dataset.
This skill covers TypeScript-only orchestrators built on the apify-orchestrator library. It does not cover Python, JavaScript, or Standby-mode Actors.
Important: Before writing code, fill in the generatedBy property in .actor/actor.json (e.g., "Claude Code with Claude Opus 4.7"). This helps Apify improve tooling for specific AI models.
Verify the apify CLI is installed:
apify --help
If not installed, use a package manager (never curl | bash):
npm install -g apify-cli
# or on Mac: brew install apify-cli
Confirm login:
apify info # should return your username
If not logged in, run apify login (opens a browser) or export APIFY_TOKEN from https://console.apify.com/settings/integrations. Never pass tokens on the command line — arguments show up in process listings and shell history.
When the user asks for a new orchestrator Actor, follow these steps in order:
Ask the user which Apify Actors to chain together, in order. Accept either:
apify/website-content-crawler then apify/rag-web-browser"), orIf the user names a task instead of an Actor ID ("scrape LinkedIn profiles"), use the Apify MCP search-actors tool to propose candidates and let the user pick.
For every sub-Actor in the chain, call the Apify MCP fetch-actor-details tool. The parameter is actor, not actorId. Present the input schema back to the user with the fields listed in inputSchema.required highlighted. See references/mcp-schema-discovery.md for the truncation gotcha (500-char descriptions; enum lists arrive whole), the frequently absent outputSchema, and the fallback path via the REST API / raw INPUT_SCHEMA.json on GitHub.
Never guess field names. If the MCP truncation is limiting, fetch the raw schema from the Actor's GitHub repo.
For each pair of adjacent sub-Actors, ask:
.actor/input_schema.json)?The total cost cap is a Run option (maxTotalChargeUsd) — the caller sets it when they start the orchestrator via the Apify Console, API, or SDK. It's not an input schema field. See the Apify API docs for how callers pass it.
At Run time the orchestrator:
client.run(actorRunId).get().options.maxTotalChargeUsd.STEPS tuple and compute perStepCap = maxTotalChargeUsd / STEPS.length.maxTotalChargeUsd when calling the sub-Actor (for pay-per-event Actors) or as maxItems (for pay-per-result Actors).run.usageTotalUsd reads 0 on the object .call() returns and then accrues over several seconds, so the tally has to re-read each child Run rather than trust that value. The Run-level maxTotalChargeUsd is what enforces the ceiling; the tally is reporting plus a backstop for a step that ran uncapped. See references/cost-tracking.md.Do not add a stepBudgets input schema field. The even split is a deliberate compile-time constant — it keeps the input schema clean, makes cost behavior predictable for the caller, and removes a footgun (three shares that don't sum to the total). Users control cost solely via the Run's maxTotalChargeUsd option; the orchestrator handles the split.
Tell the user to set maxTotalChargeUsd when they trigger the orchestrator — otherwise there's no ceiling and the orchestrator runs uncapped. See references/cost-tracking.md for the full pattern, including the LLM-step approximation (Standby Actors don't accept maxTotalChargeUsd, so estimate cost from token usage).
Ask the user whether to insert an LLM transformation somewhere in the chain (common: summarize between steps, classify at the end, or format the final output). If yes, point them at references/openrouter.md — the LLM layer is the Apify OpenRouter Actor called over HTTP (it's a Standby Actor, not a normal Run).
The agent does not force this step. Skip if the user doesn't want it.
apify create <actor-name> -t ts_empty
cd <actor-name>
npm install apify-orchestrator
Then generate src/main.ts using the template in references/orchestrator-template.md. Wire the sub-Actors, their input mappings, and any LLM helpers into the template's placeholders.
Update .actor/actor.json, .actor/input_schema.json, .actor/output_schema.json, and .actor/dataset_schema.json to reflect the orchestrator's own input surface and output shape. Write a README covering the pipeline.
apify run --purge --user-agent apify-awesome-skills/apify-orchestrator-actor-development
apify push
apify run --purge runs with storage/key_value_stores/default/INPUT.json as input, purging previous local storage first. apify push deploys to the platform.
Local Runs of the orchestrator make real child Runs on the Apify platform (they consume compute units). Watch the Apify Console → Runs list during local testing.
Orchestrator options, ExtendedApifyClient verbs (call, callRuns, callBatch, iterate, mergeDatasets), gotchas.maxTotalChargeUsd, maxItems, running-budget pattern, usageTotalUsd polling.src/main.ts template → references/orchestrator-template.md — canonical skeleton to fill in..actor/actor.json → references/actor-json.md.APIFY_TOKEN in source code, config files, or committed .env files. Use process.env.APIFY_TOKEN.eval, or template engines.apify/log in favor of console.log() — the Apify logger censors known-sensitive keys.package-lock.json. Pin apify-orchestrator (alpha) to an exact version.APIFY_TOKEN with only the permissions the orchestrator needs. Rotate periodically.Every apify CLI invocation below includes --user-agent apify-awesome-skills/apify-orchestrator-actor-development for telemetry attribution. Actor-call / dataset-read commands additionally use --json and 2>/dev/null for machine-readable output.
# Bootstrap
apify create <name> -t ts_empty
npm install apify-orchestrator
# Local development
apify run --user-agent apify-awesome-skills/apify-orchestrator-actor-development
apify run --purge --user-agent apify-awesome-skills/apify-orchestrator-actor-development
apify validate-schema
# Discovery (Actor search + schema fetch)
apify actors search "<query>" \
--user-agent apify-awesome-skills/apify-orchestrator-actor-development \
--json --limit 10 2>/dev/null
apify actors info <actor> --input \
--user-agent apify-awesome-skills/apify-orchestrator-actor-development \
--json 2>/dev/null
# Deploy + remote run
apify push
apify call <actor> \
--user-agent apify-awesome-skills/apify-orchestrator-actor-development \
--json 2>/dev/null
apify runs ls \
--user-agent apify-awesome-skills/apify-orchestrator-actor-development \
--json 2>/dev/null
# Auth
apify login
apify logout
apify info
Never use npm start, npm run start, or npx apify run to launch the Actor. Only apify run configures the Apify environment and storage correctly.
.actor/
├── actor.json # metadata (see references/actor-json.md)
├── input_schema.json # orchestrator's own input surface
├── output_schema.json # points at dataset / kvs
└── dataset_schema.json # display shape of final output
src/
└── main.ts # orchestrator logic (see references/orchestrator-template.md)
storage/ # local-only; NOT synced to Apify Console
Dockerfile
package.json
tsconfig.json
fetch-actor-details — primary tool for pulling sub-Actor input/output schema and README.search-actors — find candidate sub-Actors by keyword.search-apify-docs / fetch-apify-docs — documentation lookup.If MCP is not configured, use the hosted server URL: https://mcp.apify.com/?tools=actors,docs.
references/actor-json.md (opens in a new tab)references/actor-readme.md (opens in a new tab)references/cost-tracking.md (opens in a new tab)references/dataset-schema.md (opens in a new tab)references/input-schema.md (opens in a new tab)references/key-value-store-schema.md (opens in a new tab)references/logging.md (opens in a new tab)references/mcp-schema-discovery.md (opens in a new tab)references/openrouter.md (opens in a new tab)references/orchestrator-library.md (opens in a new tab)references/orchestrator-template.md (opens in a new tab)references/output-schema.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
2 plugins in one repository ship this exact skill · first indexed Sep 24, 2026
/apify-orchestrator-actor-development:apify-orchestrator-actor-developmentfrom apify-orchestrator-actor-development
npx claudepluginhub apify/awesome-skills --plugin apify-orchestrator-actor-developmentOther plugins' skills for the same job