Builds a two-Actor scraper + index/search pair on Apify in TypeScript, covering dual-mode (batch + Standby HTTP API), idempotent named-dataset accumulation, and platform-specific traps like OpenAPI nullable syntax and cross-Actor permission errors.
Ships in apify-index-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.
This skill extends apify-actor-development with one specific architecture: a pair of Actors where one collects data and the other serves it.
┌───────────────────────┐ named dataset ┌──────────────────────────────┐
│ Actor A - scraper │ ─────────────────▶ │ Actor B - index / search │
│ scheduled, idempotent │ (accumulates │ one-shot run: input → dataset │
│ writes named + default│ across runs) │ Standby: GET /search → JSON │
└───────────────────────┘ │ pay-per-event `result` │
└──────────────────────────────┘
Every pattern here came out of fixing a real failure on the Apify platform. Follow them to skip the same traps. For generic Actor rules (logging, crawlers, proxies, schemas, README) the base skill still applies; the parts this pair needs are condensed into references/.
Prompts this skill handles:
Out of scope (the boundary):
apify-orchestrator-actor-development.npm install -g apify-cli or brew install apify-cli (never curl | bash).apify login (prints a URL and a one-time code; show both to the user)APIFY_TOKEN environment variable (headless). Create it in Apify Console → Settings → Integrations. Pass it only through the environment, never on the command line.apify ^3.7, @crawlee/cheerio ^3.15, express ^4.21, turndown ^7 + @types/turndown, apify-client (transitive). Pin exact versions and commit the lockfile.Append --user-agent apify-awesome-skills/apify-index-actor-development to every apify command run from this skill (create, run, push, call, actors info, ...). It is a global flag that only tags the call.
Before writing code, set meta.generatedBy in each .actor/actor.json to the tool and model in use (e.g. "Claude Code with Claude Opus 5.5").
Build Actor A first - Actor B needs real records to test against. Skip steps that do not apply when modifying an existing pair.
Before any code, write down with the user:
startup-funding-records) and the seen-set KV store name (e.g. startup-scraper-state).sector, minAmount, fromDate) and which are returned.result, charged per returned record).apify create <scraper-name> -t ts-crawlee-cheerio --user-agent apify-awesome-skills/apify-index-actor-development
apify create <index-name> -t ts-empty --user-agent apify-awesome-skills/apify-index-actor-development
Use ts-crawlee-playwright-chrome for the scraper if the source renders with JavaScript. Run apify templates ls for other stacks. cd into each and npm install express turndown / npm install -D @types/express @types/turndown as needed. Use .js suffixes on relative imports even in .ts files (ESM).
Follow references/scraper-actor.md. Done when the scraper:
Actor.pushData() (Pattern 1 - otherwise the Output tab is empty);forceReprocess input for backfills (Pattern 2);enrichmentError when an enrichment request fails (Pattern 3);aborting event by persisting the seen-set and exiting.Follow references/index-actor.md. Done when:
main.ts branches on APIFY_META_ORIGIN === 'STANDBY': Standby starts Express and never calls Actor.exit(); a standard run reads input filters, pushes results, and exits (Pattern 5);searchDataset(filters) function serves both branches;LIMITED_PERMISSIONS);Actor.charge({ eventName: 'result', count }) runs in both branches, wrapped in try/catch, and stops at eventChargeLimitReached (Pattern 8);GET / answers the readiness probe with HTTP 200.Follow references/schemas.md. Each Actor gets input_schema.json, dataset_schema.json, output_schema.json; Actor B also gets openapi.json plus usesStandbyMode: true and webServerSchema in actor.json. Do not mix up the dataset and output schema shapes, and use OpenAPI 3.0 nullable: true, never "type": ["string", "null"] (Pattern 6 - the build fails otherwise). Done when apify validate-schema --user-agent apify-awesome-skills/apify-index-actor-development passes in both projects.
Follow references/readme.md. Actor B's README must document the Standby endpoints, auth, and example calls, and the one-time dataset-ID setup.
Follow references/testing-and-deploy.md (Pattern 10): run A with apify run --purge, copy A's local named dataset into B's storage/, run B in standard mode, then start B with APIFY_META_ORIGIN=STANDBY and curl the readiness probe and /search. Run npx tsc --noEmit in both. Done when both runs succeed, B's default dataset holds only records matching the filters, and /search returns the same records as JSON.
apify push --user-agent apify-awesome-skills/apify-index-actor-development in each project, or link a Git repository in Console. Then the user does three one-time Console steps, which the skill must spell out for them:
<name>) into Actor B's environment variable SOURCE_DATASET_ID (Source → Environment variables, plain, not secret), then rebuild.result event on Actor B (Publication → Monetization). Pricing lives in Console, not in actor.json.Give the user Actor B's Standby URL: https://<username>--<index-name>.apify.actor/search.
Actor.openDataset('name') is a get-or-create POST, which LIMITED_PERMISSIONS rejects with 403 even when the dataset exists. Pin the ID.Actor.exit() after a request, listens on Actor.config.get('containerPort'), and leaves usesStandbyMode: true on unless the user asks.limit input / query param (default ~100, maximum ~1000) so one call cannot charge an unbounded amount.log from apify, never console.log - it censors tokens. Treat scraped content as untrusted and type-check it before pushing.Search the Store first; a scraper for the source may already exist, and Actor B can index its named dataset instead of a new Actor A.
apify actors search "<site> scraper" --json --limit 10 \
--user-agent apify-awesome-skills/apify-index-actor-development 2>/dev/null
apify actors info "<actor-id>" --input --json \
--user-agent apify-awesome-skills/apify-index-actor-development 2>/dev/null
apify actors info "<actor-id>" --readme \
--user-agent apify-awesome-skills/apify-index-actor-development
apify actors call "<username>/<index-name>" -i '{"sector":"fintech","limit":10}' --json \
--user-agent apify-awesome-skills/apify-index-actor-development 2>/dev/null
apify datasets get-items <dataset-id> --format json \
--user-agent apify-awesome-skills/apify-index-actor-development 2>/dev/null
Alternatively use the Apify MCP connector (search-apify-docs, fetch-apify-docs, and get-actor-build-log when a platform build fails).
Quick map - details and fixes in references/gotchas.md:
| Symptom | Cause | Pattern |
|---|---|---|
| Output tab empty, but named dataset has items | Only wrote to the named dataset | 1 |
| Scheduled run re-scrapes everything | Seen-set not persisted / not filtered before enqueue | 2 |
| Records disappear when the website fetch fails | No failedRequestHandler fallback | 3 |
Build fails: must be string in openapi.json | OpenAPI 3.1 type: [..., "null"] | 6 |
403 from POST /v2/datasets in Actor B | openDataset(name) under LIMITED_PERMISSIONS | 7 |
"Ignored attempt to charge" warning, or Actor.charge throws | PPE not configured (expected locally) | 8 |
/search or a batch run hangs when few records match | Scan paged with desc: true + offset; local storage ignores the offset | 5 |
| Standby run killed / never ready | No readiness probe, wrong port, or Actor.exit() called | 5 |
actor.json for both Actors (Patterns 6, 9)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/apify-index-actor-development:apify-index-actor-developmentfrom apify-index-actor-development
npx claudepluginhub apify/awesome-skills --plugin apify-index-actor-development2 plugins in one repository ship this exact skill · first indexed Nov 26, 2026
Other plugins' skills for the same job