[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7823ARG86HCHK1KHWKGZB8E":3,"skill-same:01M7823ARG86HCHK1KHWKGZB8E":47},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":29,"ownerHtmlUrl":30,"ownerBlogUrl":6,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M7823ARG86HCHK1KHWKGZB8E","apify-actor-development",null,"Develop, debug, and deploy Apify Actors - serverless cloud programs for web scraping, automation, and data processing. Use when creating new Actors, modifying existing ones, or troubleshooting Actor code.","Lord1Egypt\u002Fawesome-skill-forge","Lord1Egypt","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F99746359?v=4","01M7592YDNT0XK9WJ0T2MQVPDN","Mohamed Mounir Ali AL Keshita","01M75GRFNHC8VZNWEB8DKDE433",3,"MIT","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fskills_sh\u002Fs\u002Fskills-sh_apify_agent-skills_apify-actor-development\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: apify-actor-development\ndescription: Develop, debug, and deploy Apify Actors - serverless cloud programs for web scraping, automation, and data processing. Use when creating new Actors, modifying existing ones, or troubleshooting Actor code.\n---\n\n# Apify Actor development\n\n**Important:** Before you begin, fill in the `generatedBy` property in the meta section of `.actor\u002Factor.json`. Replace it with the tool and model you're currently using, such as \"Claude Code with Claude Sonnet 4.5\". This helps Apify monitor and improve AGENTS.md for specific AI tools and models.\n\n## What are Apify Actors?\n\nActors are serverless programs inspired by the UNIX philosophy - programs that do one thing well and can be easily combined to build complex systems. They're packaged as Docker images and run in isolated containers in the cloud.\n\n**Core Concepts:**\n- Accept well-defined JSON input\n- Perform isolated tasks (web scraping, automation, data processing)\n- Produce structured JSON output to datasets and\u002For store data in key-value stores\n- Can run from seconds to hours or even indefinitely\n- Persist state and can be restarted\n\n## Prerequisites and setup (mandatory)\n\nBefore creating or modifying Actors, verify that `apify` CLI is installed `apify --help`.\n\nIf it is not installed, use one of these methods (listed in order of preference):\n\n```bash\n# Preferred: install via a package manager (provides integrity checks)\nnpm install -g apify-cli\n\n# Or (Mac): brew install apify-cli\n```\n\n> **Security note:** Do NOT install the CLI by piping remote scripts to a shell\n> (e.g. `curl … | bash` or `irm … | iex`). Always use a package manager.\n\nWhen the apify CLI is installed, check that it is logged in with:\n\n```bash\napify info  # Should return your username\n```\n\nIf not logged in, authenticate using OAuth (opens browser):\n\n```bash\napify login\n```\n\nIf browser login isn't available (headless environment or CI), the CLI automatically reads `APIFY_TOKEN` from the environment. Ensure the env var is exported and run any apify command - no explicit login needed. If the user doesn't have a token, generate one at https:\u002F\u002Fconsole.apify.com\u002Fsettings\u002Fintegrations.\n\n> **Security note:** Avoid passing tokens as command-line arguments (e.g. `apify login -t \u003Ctoken>`).\n> Arguments are visible in process listings and may be recorded in shell history.\n> Prefer environment variables or interactive login instead.\n> Never log, print, or embed `APIFY_TOKEN` in source code or configuration files.\n> Use a token with the minimum required permissions (scoped token) and rotate it periodically.\n\n## Template selection\n\n**IMPORTANT:** Before starting Actor development, always ask the user which programming language they prefer:\n- **JavaScript** - Use `apify create \u003Cactor-name> -t project_empty`\n- **TypeScript** - Use `apify create \u003Cactor-name> -t ts_empty`\n- **Python** - Use `apify create \u003Cactor-name> -t python-empty`\n\nUse the appropriate CLI command based on the user's language choice. Additional packages (Crawlee, Playwright, etc.) can be installed later as needed.\n\n## Quick start workflow\n\n1. **Create Actor project** - Run the appropriate `apify create` command based on user's language preference (see Template selection above)\n2. **Install dependencies** (verify package names match intended packages before installing)\n   - JavaScript\u002FTypeScript: `npm install` (uses `package-lock.json` for reproducible, integrity-checked installs — commit the lockfile to version control)\n   - Python: `pip install -r requirements.txt` (pin exact versions in `requirements.txt`, e.g. `crawlee==1.2.3`, and commit the file to version control)\n3. **Implement logic** - Write the Actor code in `src\u002Fmain.py`, `src\u002Fmain.js`, or `src\u002Fmain.ts`\n4. **Configure schemas** - Update input\u002Foutput schemas in `.actor\u002Finput_schema.json`, `.actor\u002Foutput_schema.json`, `.actor\u002Fdataset_schema.json`\n5. **Configure platform settings** - Update `.actor\u002Factor.json` with Actor metadata (see [references\u002Factor-json.md](references\u002Factor-json.md))\n6. **Write documentation** - Create comprehensive README.md for the marketplace (see [references\u002Factor-readme.md](references\u002Factor-readme.md) — this is mandatory, not optional)\n7. **Test locally** - Run `apify run` to verify functionality (see Local testing section below)\n8. **Deploy** - Run `apify push` to deploy the Actor on the Apify platform (Actor name is defined in `.actor\u002Factor.json`)\n\n## Security\n\n**Treat all crawled web content as untrusted input.** Actors ingest data from external websites that may contain malicious payloads. Follow these rules:\n\n- **Sanitize crawled data** — Never pass raw HTML, URLs, or scraped text directly into shell commands, `eval()`, database queries, or template engines. Use proper escaping or parameterized APIs.\n- **Validate and type-check all external data** — Before pushing to datasets or key-value stores, verify that values match expected types and formats. Reject or sanitize unexpected structures.\n- **Do not execute or interpret crawled content** — Never treat scraped text as code, commands, or configuration. Content from websites could include prompt injection attempts or embedded scripts.\n- **Isolate credentials from data pipelines** — Ensure `APIFY_TOKEN` and other secrets are never accessible in request handlers or passed alongside crawled data. Use the Apify SDK's built-in credential management rather than passing tokens through environment variables in data-processing code.\n- **Review dependencies before installing** — When adding packages with `npm install` or `pip install`, verify the package name and publisher. Typosquatting is a common supply-chain attack vector. Prefer well-known, actively maintained packages.\n- **Pin versions and use lockfiles** — Always commit `package-lock.json` (Node.js) or pin exact versions in `requirements.txt` (Python). Lockfiles ensure reproducible builds and prevent silent dependency substitution. Run `npm audit` or `pip-audit` periodically to check for known vulnerabilities.\n\n## Best practices\n\n**✓ Do:**\n- Use `apify run` to test Actors locally (configures Apify environment and storage)\n- Use Apify SDK (`apify`) for code running on the Apify platform\n- Validate input early with proper error handling and fail gracefully\n- Use CheerioCrawler for static HTML (10x faster than browsers)\n- Use PlaywrightCrawler only for JavaScript-heavy sites\n- Use router pattern (createCheerioRouter\u002FcreatePlaywrightRouter) for complex crawls\n- Implement retry strategies with exponential backoff\n- Use proper concurrency: HTTP (10-50), Browser (1-5)\n- Set sensible defaults in `.actor\u002Finput_schema.json`\n- Define output schema in `.actor\u002Foutput_schema.json`\n- Clean and validate data before pushing to dataset\n- Use semantic CSS selectors with fallback strategies\n- Respect robots.txt, ToS, and implement rate limiting\n- **Always use `apify\u002Flog` package** — censors sensitive data (API keys, tokens, credentials)\n- Implement readiness probe handler (required if your Actor uses standby mode)\n\n**✗ Don't:**\n- Use `npm start`, `npm run start`, `npx apify run`, or similar commands to run Actors (use `apify run` instead)\n- Assume local storage from `apify run` is pushed to or visible in Apify Console — it is local-only; deploy with `apify push` and run on the platform to see results in Apify Console\n- Rely on `Dataset.getInfo()` for final counts on Cloud\n- Use browser crawlers when HTTP\u002FCheerio works\n- Hard code values that should be in input schema or environment variables\n- Skip input validation or error handling\n- Overload servers - use appropriate concurrency and delays\n- Scrape prohibited content or ignore Terms of Service\n- Store personal\u002Fsensitive data unless explicitly permitted\n- Use deprecated options like `requestHandlerTimeoutMillis` on CheerioCrawler (v3.x)\n- Use `additionalHttpHeaders` - use `preNavigationHooks` instead\n- Pass raw crawled content into shell commands, `eval()`, or code-generation functions\n- Use `console.log()` or `print()` instead of the Apify logger — these bypass credential censoring\n- Disable standby mode without explicit permission\n\n## Logging\n\nSee [references\u002Flogging.md](references\u002Flogging.md) for complete logging documentation including available log levels and best practices for JavaScript\u002FTypeScript and Python.\n\n## Commands\n\n```bash\n# Bootstrap & local development\napify create [name]                    # Create new Actor project from a template\napify init                             # Initialize Actor in current directory\napify run                              # Run Actor locally with simulated platform env\napify run --purge                      # Run after clearing previous local storage\napify validate-schema                  # Validate .actor\u002Finput_schema.json\n\n# Authentication & account\napify login                            # Authenticate account (token stored in ~\u002F.apify)\napify logout                           # Remove stored credentials\napify info                             # Print currently authenticated account info\n\n# Deployment & remote execution\napify push                             # Deploy Actor to platform per .actor\u002Factor.json\napify pull \u003Cactor>                     # Download Actor code from the platform\napify call \u003Cactor>                     # Execute Actor remotely on the platform\napify actors build \u003Cactor>             # Create a new build of an Actor\napify runs ls                          # List recent runs\n\n# Discovery (search Apify Store for community Actors)\napify actors search \"\u003Cquery>\" --user-agent \u003Cyour-agent-name>\napify actors info \u003Cactor>              # Details about a specific Actor\n\n# Secrets (referenced from actor.json via \"@mySecret\")\napify secrets add \u003Cname> \u003Cvalue>       # Store a secret locally; uploaded on push\napify secrets ls                       # List stored secret keys\n\n# Direct API access\napify api \u003Cendpoint>                   # Authenticated HTTP request to Apify API\n\n# Help\napify help                             # List all commands\napify \u003Ccommand> --help                 # Detailed help for a specific command\n```\n\nNote: If no dedicated Actor exists for your target, search Apify Store for community options with `apify actors search \"\u003Cquery>\" --user-agent \u003Cyour-agent-name>` before building from scratch.\n\nTip: Inside a running Actor, prefer the SDK (`Actor.getInput()` \u002F `Actor.get_input()`, `Actor.pushData()` \u002F `Actor.push_data()`, `Actor.setValue()` \u002F `Actor.set_value()`) over the equivalent `apify actor` runtime subcommands.\n\n**IMPORTANT:** Always use `apify run` to test Actors locally. Do not use `npm run start`, `npm start`, `yarn start`, or other package manager commands - these will not properly configure the Apify environment and storage.\n\n## Apify platform environment\n\nWhen the Actor runs on the Apify platform, the API token is automatically available via the `APIFY_TOKEN` environment variable (note: the variable is `APIFY_TOKEN`, not `APIFY_API_TOKEN`). The Apify SDK reads it automatically, so you do not need to pass it explicitly. Locally, run `apify login` once and the SDK will use your stored credentials.\n\n## Local testing\n\nWhen testing an Actor locally with `apify run`, provide input data by creating a JSON file at:\n\n```\nstorage\u002Fkey_value_stores\u002Fdefault\u002FINPUT.json\n```\n\nThis file should contain the input parameters defined in your `.actor\u002Finput_schema.json`. The actor will read this input when running locally, mirroring how it receives input on the Apify platform.\n\n**IMPORTANT - Local storage is NOT synced to Apify Console:**\n- Running `apify run` stores all data (datasets, key-value stores, request queues) **only on your local filesystem** in the `storage\u002F` directory.\n- This data is **never** automatically uploaded or pushed to the Apify platform. It exists only on your machine.\n- To verify results on Apify Console, you must deploy the Actor with `apify push` and then run it on the platform.\n- Do **not** rely on checking Apify Console to verify results from local runs — instead, inspect the local `storage\u002F` directory or check the Actor's log output.\n\n## Standby mode\n\nStandby mode enables Actors to work as API servers - they remain ready in the background to handle HTTP requests.\n\n**When to use Standby mode:** Use Standby when the Actor must handle interactive, real-time HTTP requests — API endpoints, webhook receivers, real-time data lookups, MCP servers, or scraping APIs serving on-demand single-URL requests.\n\nWhen building a Standby Actor, set `usesStandbyMode: true` in `.actor\u002Factor.json` and implement an HTTP server. See [references\u002Fstandby-mode.md](references\u002Fstandby-mode.md) for configuration, environment variables, complete code examples, and operational limits.\n\n## Project structure\n\n```\n.actor\u002F\n├── actor.json           # Actor config: name, version, env vars, runtime\n├── input_schema.json    # Input validation & Console form definition\n└── output_schema.json   # Output storage and display templates\nsrc\u002F\n└── main.js\u002Fts\u002Fpy       # Actor entry point\nstorage\u002F                # Local-only storage (NOT synced to Apify Console)\n├── datasets\u002F           # Output items (JSON objects)\n├── key_value_stores\u002F   # Files, config, INPUT\n└── request_queues\u002F     # Pending crawl requests\nDockerfile              # Container image definition\n```\n\n## Actor configuration\n\nSee [references\u002Factor-json.md](references\u002Factor-json.md) for complete actor.json structure and configuration options.\n\n## Input schema\n\nSee [references\u002Finput-schema.md](references\u002Finput-schema.md) for input schema structure and examples.\n\n## Output schema\n\nSee [references\u002Foutput-schema.md](references\u002Foutput-schema.md) for output schema structure, examples, and template variables.\n\n## Dataset schema\n\nSee [references\u002Fdataset-schema.md](references\u002Fdataset-schema.md) for dataset schema structure, configuration, and display properties.\n\n## Key-value store schema\n\nSee [references\u002Fkey-value-store-schema.md](references\u002Fkey-value-store-schema.md) for key-value store schema structure, collections, and configuration.\n\n## Actor README\n\n**IMPORTANT:** Always generate a README.md as part of Actor development. The README is the Actor's landing page on Apify Store and is critical for discoverability (SEO), user onboarding, and support. Do not consider an Actor complete without a proper README.\n\nSee [references\u002Factor-readme.md](references\u002Factor-readme.md) for the required structure, SEO best practices, and content guidelines. Also review these top Actors for best practices:\n\n- [Instagram Scraper](https:\u002F\u002Fapify.com\u002Fapify\u002Finstagram-scraper)\n- [Google Maps Scraper](https:\u002F\u002Fapify.com\u002Fcompass\u002Fcrawler-google-places)\n\n## MCP tools\n\n### Apify MCP\n\nIf the Apify MCP server is configured, use these tools for documentation:\n\n- `search-apify-docs` - Search documentation\n- `fetch-apify-docs` - Get full doc pages\n\nOtherwise, the MCP Server url: `https:\u002F\u002Fmcp.apify.com\u002F?tools=docs`.\n\n### Playwright MCP (debugging)\n\nThe Playwright MCP server is a useful tool for debugging Actors that interact with the web - it lets the agent drive a real browser to inspect pages, capture selectors, and reproduce issues.\n\nInstall with the Claude Code CLI:\n\n```bash\nclaude mcp add playwright npx @playwright\u002Fmcp@latest\n```\n\nOr add it manually to your MCP config:\n\n```json\n{\n  \"mcpServers\": {\n    \"playwright\": {\n      \"command\": \"npx\",\n      \"args\": [\"@playwright\u002Fmcp@latest\"]\n    }\n  }\n}\n```\n\n## Resources\n\n- [docs.apify.com\u002Fllms.txt](https:\u002F\u002Fdocs.apify.com\u002Fllms.txt) - Apify quick reference documentation\n- [docs.apify.com\u002Fllms-full.txt](https:\u002F\u002Fdocs.apify.com\u002Fllms-full.txt) - Apify complete documentation\n- [https:\u002F\u002Fcrawlee.dev\u002Fllms.txt](https:\u002F\u002Fcrawlee.dev\u002Fllms.txt) - Crawlee quick reference documentation\n- [https:\u002F\u002Fcrawlee.dev\u002Fllms-full.txt](https:\u002F\u002Fcrawlee.dev\u002Fllms-full.txt) - Crawlee complete documentation\n- [whitepaper.actor](https:\u002F\u002Fraw.githubusercontent.com\u002Fapify\u002Factor-whitepaper\u002Frefs\u002Fheads\u002Fmaster\u002FREADME.md) - Complete Actor specification\n","# Apify Actor development\n\n**Important:** Before you begin, fill in the `generatedBy` property in the meta section of `.actor\u002Factor.json`. Replace it with the tool and model you're currently using, such as \"Claude Code with Claude Sonnet 4.5\". This helps Apify monitor and improve AGENTS.md for specific AI tools and models.\n\n## What are Apify Actors?\n\nActors are serverless programs inspired by the UNIX philosophy - programs that do one thing well and can be easily combined to build complex systems. They're packaged as Docker images and run in isolated containers in the cloud.\n\n**Core Concepts:**\n- Accept well-defined JSON input\n- Perform isolated tasks (web scraping, automation, data processing)\n- Produce structured JSON output to datasets and\u002For store data in key-value stores\n- Can run from seconds to hours or even indefinitely\n- Persist state and can be restarted\n\n## Prerequisites and setup (mandatory)\n\nBefore creating or modifying Actors, verify that `apify` CLI is installed `apify --help`.\n\nIf it is not installed, use one of these methods (listed in order of preference):\n\n```bash\n# Preferred: install via a package manager (provides integrity checks)\nnpm install -g apify-cli\n\n# Or (Mac): brew install apify-cli\n```\n\n> **Security note:** Do NOT install the CLI by piping remote scripts to a shell\n> (e.g. `curl … | bash` or `irm … | iex`). Always use a package manager.\n\nWhen the apify CLI is installed, check that it is logged in with:\n\n```bash\napify info  # Should return your username\n```\n\nIf not logged in, authenticate using OAuth (opens browser):\n\n```bash\napify login\n```\n\nIf browser login isn't available (headless environment or CI), the CLI automatically reads `APIFY_TOKEN` from the environment. Ensure the env var is exported and run any apify command - no explicit login needed. If the user doesn't have a token, generate one at https:\u002F\u002Fconsole.apify.com\u002Fsettings\u002Fintegrations.\n\n> **Security note:** Avoid passing tokens as command-line arguments (e.g. `apify login -t \u003Ctoken>`).\n> Arguments are visible in process listings and may be recorded in shell history.\n> Prefer environment variables or interactive login instead.\n> Never log, print, or embed `APIFY_TOKEN` in source code or configuration files.\n> Use a token with the minimum required permissions (scoped token) and rotate it periodically.\n\n## Template selection\n\n**IMPORTANT:** Before starting Actor development, always ask the user which programming language they prefer:\n- **JavaScript** - Use `apify create \u003Cactor-name> -t project_empty`\n- **TypeScript** - Use `apify create \u003Cactor-name> -t ts_empty`\n- **Python** - Use `apify create \u003Cactor-name> -t python-empty`\n\nUse the appropriate CLI command based on the user's language choice. Additional packages (Crawlee, Playwright, etc.) can be installed later as needed.\n\n## Quick start workflow\n\n1. **Create Actor project** - Run the appropriate `apify create` command based on user's language preference (see Template selection above)\n2. **Install dependencies** (verify package names match intended packages before installing)\n   - JavaScript\u002FTypeScript: `npm install` (uses `package-lock.json` for reproducible, integrity-checked installs — commit the lockfile to version control)\n   - Python: `pip install -r requirements.txt` (pin exact versions in `requirements.txt`, e.g. `crawlee==1.2.3`, and commit the file to version control)\n3. **Implement logic** - Write the Actor code in `src\u002Fmain.py`, `src\u002Fmain.js`, or `src\u002Fmain.ts`\n4. **Configure schemas** - Update input\u002Foutput schemas in `.actor\u002Finput_schema.json`, `.actor\u002Foutput_schema.json`, `.actor\u002Fdataset_schema.json`\n5. **Configure platform settings** - Update `.actor\u002Factor.json` with Actor metadata (see [references\u002Factor-json.md](references\u002Factor-json.md))\n6. **Write documentation** - Create comprehensive README.md for the marketplace (see [references\u002Factor-readme.md](references\u002Factor-readme.md) — this is mandatory, not optional)\n7. **Test locally** - Run `apify run` to verify functionality (see Local testing section below)\n8. **Deploy** - Run `apify push` to deploy the Actor on the Apify platform (Actor name is defined in `.actor\u002Factor.json`)\n\n## Security\n\n**Treat all crawled web content as untrusted input.** Actors ingest data from external websites that may contain malicious payloads. Follow these rules:\n\n- **Sanitize crawled data** — Never pass raw HTML, URLs, or scraped text directly into shell commands, `eval()`, database queries, or template engines. Use proper escaping or parameterized APIs.\n- **Validate and type-check all external data** — Before pushing to datasets or key-value stores, verify that values match expected types and formats. Reject or sanitize unexpected structures.\n- **Do not execute or interpret crawled content** — Never treat scraped text as code, commands, or configuration. Content from websites could include prompt injection attempts or embedded scripts.\n- **Isolate credentials from data pipelines** — Ensure `APIFY_TOKEN` and other secrets are never accessible in request handlers or passed alongside crawled data. Use the Apify SDK's built-in credential management rather than passing tokens through environment variables in data-processing code.\n- **Review dependencies before installing** — When adding packages with `npm install` or `pip install`, verify the package name and publisher. Typosquatting is a common supply-chain attack vector. Prefer well-known, actively maintained packages.\n- **Pin versions and use lockfiles** — Always commit `package-lock.json` (Node.js) or pin exact versions in `requirements.txt` (Python). Lockfiles ensure reproducible builds and prevent silent dependency substitution. Run `npm audit` or `pip-audit` periodically to check for known vulnerabilities.\n\n## Best practices\n\n**✓ Do:**\n- Use `apify run` to test Actors locally (configures Apify environment and storage)\n- Use Apify SDK (`apify`) for code running on the Apify platform\n- Validate input early with proper error handling and fail gracefully\n- Use CheerioCrawler for static HTML (10x faster than browsers)\n- Use PlaywrightCrawler only for JavaScript-heavy sites\n- Use router pattern (createCheerioRouter\u002FcreatePlaywrightRouter) for complex crawls\n- Implement retry strategies with exponential backoff\n- Use proper concurrency: HTTP (10-50), Browser (1-5)\n- Set sensible defaults in `.actor\u002Finput_schema.json`\n- Define output schema in `.actor\u002Foutput_schema.json`\n- Clean and validate data before pushing to dataset\n- Use semantic CSS selectors with fallback strategies\n- Respect robots.txt, ToS, and implement rate limiting\n- **Always use `apify\u002Flog` package** — censors sensitive data (API keys, tokens, credentials)\n- Implement readiness probe handler (required if your Actor uses standby mode)\n\n**✗ Don't:**\n- Use `npm start`, `npm run start`, `npx apify run`, or similar commands to run Actors (use `apify run` instead)\n- Assume local storage from `apify run` is pushed to or visible in Apify Console — it is local-only; deploy with `apify push` and run on the platform to see results in Apify Console\n- Rely on `Dataset.getInfo()` for final counts on Cloud\n- Use browser crawlers when HTTP\u002FCheerio works\n- Hard code values that should be in input schema or environment variables\n- Skip input validation or error handling\n- Overload servers - use appropriate concurrency and delays\n- Scrape prohibited content or ignore Terms of Service\n- Store personal\u002Fsensitive data unless explicitly permitted\n- Use deprecated options like `requestHandlerTimeoutMillis` on CheerioCrawler (v3.x)\n- Use `additionalHttpHeaders` - use `preNavigationHooks` instead\n- Pass raw crawled content into shell commands, `eval()`, or code-generation functions\n- Use `console.log()` or `print()` instead of the Apify logger — these bypass credential censoring\n- Disable standby mode without explicit permission\n\n## Logging\n\nSee [references\u002Flogging.md](references\u002Flogging.md) for complete logging documentation including available log levels and best practices for JavaScript\u002FTypeScript and Python.\n\n## Commands\n\n```bash\n# Bootstrap & local development\napify create [name]                    # Create new Actor project from a template\napify init                             # Initialize Actor in current directory\napify run                              # Run Actor locally with simulated platform env\napify run --purge                      # Run after clearing previous local storage\napify validate-schema                  # Validate .actor\u002Finput_schema.json\n\n# Authentication & account\napify login                            # Authenticate account (token stored in ~\u002F.apify)\napify logout                           # Remove stored credentials\napify info                             # Print currently authenticated account info\n\n# Deployment & remote execution\napify push                             # Deploy Actor to platform per .actor\u002Factor.json\napify pull \u003Cactor>                     # Download Actor code from the platform\napify call \u003Cactor>                     # Execute Actor remotely on the platform\napify actors build \u003Cactor>             # Create a new build of an Actor\napify runs ls                          # List recent runs\n\n# Discovery (search Apify Store for community Actors)\napify actors search \"\u003Cquery>\" --user-agent \u003Cyour-agent-name>\napify actors info \u003Cactor>              # Details about a specific Actor\n\n# Secrets (referenced from actor.json via \"@mySecret\")\napify secrets add \u003Cname> \u003Cvalue>       # Store a secret locally; uploaded on push\napify secrets ls                       # List stored secret keys\n\n# Direct API access\napify api \u003Cendpoint>                   # Authenticated HTTP request to Apify API\n\n# Help\napify help                             # List all commands\napify \u003Ccommand> --help                 # Detailed help for a specific command\n```\n\nNote: If no dedicated Actor exists for your target, search Apify Store for community options with `apify actors search \"\u003Cquery>\" --user-agent \u003Cyour-agent-name>` before building from scratch.\n\nTip: Inside a running Actor, prefer the SDK (`Actor.getInput()` \u002F `Actor.get_input()`, `Actor.pushData()` \u002F `Actor.push_data()`, `Actor.setValue()` \u002F `Actor.set_value()`) over the equivalent `apify actor` runtime subcommands.\n\n**IMPORTANT:** Always use `apify run` to test Actors locally. Do not use `npm run start`, `npm start`, `yarn start`, or other package manager commands - these will not properly configure the Apify environment and storage.\n\n## Apify platform environment\n\nWhen the Actor runs on the Apify platform, the API token is automatically available via the `APIFY_TOKEN` environment variable (note: the variable is `APIFY_TOKEN`, not `APIFY_API_TOKEN`). The Apify SDK reads it automatically, so you do not need to pass it explicitly. Locally, run `apify login` once and the SDK will use your stored credentials.\n\n## Local testing\n\nWhen testing an Actor locally with `apify run`, provide input data by creating a JSON file at:\n\n```\nstorage\u002Fkey_value_stores\u002Fdefault\u002FINPUT.json\n```\n\nThis file should contain the input parameters defined in your `.actor\u002Finput_schema.json`. The actor will read this input when running locally, mirroring how it receives input on the Apify platform.\n\n**IMPORTANT - Local storage is NOT synced to Apify Console:**\n- Running `apify run` stores all data (datasets, key-value stores, request queues) **only on your local filesystem** in the `storage\u002F` directory.\n- This data is **never** automatically uploaded or pushed to the Apify platform. It exists only on your machine.\n- To verify results on Apify Console, you must deploy the Actor with `apify push` and then run it on the platform.\n- Do **not** rely on checking Apify Console to verify results from local runs — instead, inspect the local `storage\u002F` directory or check the Actor's log output.\n\n## Standby mode\n\nStandby mode enables Actors to work as API servers - they remain ready in the background to handle HTTP requests.\n\n**When to use Standby mode:** Use Standby when the Actor must handle interactive, real-time HTTP requests — API endpoints, webhook receivers, real-time data lookups, MCP servers, or scraping APIs serving on-demand single-URL requests.\n\nWhen building a Standby Actor, set `usesStandbyMode: true` in `.actor\u002Factor.json` and implement an HTTP server. See [references\u002Fstandby-mode.md](references\u002Fstandby-mode.md) for configuration, environment variables, complete code examples, and operational limits.\n\n## Project structure\n\n```\n.actor\u002F\n├── actor.json           # Actor config: name, version, env vars, runtime\n├── input_schema.json    # Input validation & Console form definition\n└── output_schema.json   # Output storage and display templates\nsrc\u002F\n└── main.js\u002Fts\u002Fpy       # Actor entry point\nstorage\u002F                # Local-only storage (NOT synced to Apify Console)\n├── datasets\u002F           # Output items (JSON objects)\n├── key_value_stores\u002F   # Files, config, INPUT\n└── request_queues\u002F     # Pending crawl requests\nDockerfile              # Container image definition\n```\n\n## Actor configuration\n\nSee [references\u002Factor-json.md](references\u002Factor-json.md) for complete actor.json structure and configuration options.\n\n## Input schema\n\nSee [references\u002Finput-schema.md](references\u002Finput-schema.md) for input schema structure and examples.\n\n## Output schema\n\nSee [references\u002Foutput-schema.md](references\u002Foutput-schema.md) for output schema structure, examples, and template variables.\n\n## Dataset schema\n\nSee [references\u002Fdataset-schema.md](references\u002Fdataset-schema.md) for dataset schema structure, configuration, and display properties.\n\n## Key-value store schema\n\nSee [references\u002Fkey-value-store-schema.md](references\u002Fkey-value-store-schema.md) for key-value store schema structure, collections, and configuration.\n\n## Actor README\n\n**IMPORTANT:** Always generate a README.md as part of Actor development. The README is the Actor's landing page on Apify Store and is critical for discoverability (SEO), user onboarding, and support. Do not consider an Actor complete without a proper README.\n\nSee [references\u002Factor-readme.md](references\u002Factor-readme.md) for the required structure, SEO best practices, and content guidelines. Also review these top Actors for best practices:\n\n- [Instagram Scraper](https:\u002F\u002Fapify.com\u002Fapify\u002Finstagram-scraper)\n- [Google Maps Scraper](https:\u002F\u002Fapify.com\u002Fcompass\u002Fcrawler-google-places)\n\n## MCP tools\n\n### Apify MCP\n\nIf the Apify MCP server is configured, use these tools for documentation:\n\n- `search-apify-docs` - Search documentation\n- `fetch-apify-docs` - Get full doc pages\n\nOtherwise, the MCP Server url: `https:\u002F\u002Fmcp.apify.com\u002F?tools=docs`.\n\n### Playwright MCP (debugging)\n\nThe Playwright MCP server is a useful tool for debugging Actors that interact with the web - it lets the agent drive a real browser to inspect pages, capture selectors, and reproduce issues.\n\nInstall with the Claude Code CLI:\n\n```bash\nclaude mcp add playwright npx @playwright\u002Fmcp@latest\n```\n\nOr add it manually to your MCP config:\n\n```json\n{\n  \"mcpServers\": {\n    \"playwright\": {\n      \"command\": \"npx\",\n      \"args\": [\"@playwright\u002Fmcp@latest\"]\n    }\n  }\n}\n```\n\n## Resources\n\n- [docs.apify.com\u002Fllms.txt](https:\u002F\u002Fdocs.apify.com\u002Fllms.txt) - Apify quick reference documentation\n- [docs.apify.com\u002Fllms-full.txt](https:\u002F\u002Fdocs.apify.com\u002Fllms-full.txt) - Apify complete documentation\n- [https:\u002F\u002Fcrawlee.dev\u002Fllms.txt](https:\u002F\u002Fcrawlee.dev\u002Fllms.txt) - Crawlee quick reference documentation\n- [https:\u002F\u002Fcrawlee.dev\u002Fllms-full.txt](https:\u002F\u002Fcrawlee.dev\u002Fllms-full.txt) - Crawlee complete documentation\n- [whitepaper.actor](https:\u002F\u002Fraw.githubusercontent.com\u002Fapify\u002Factor-whitepaper\u002Frefs\u002Fheads\u002Fmaster\u002FREADME.md) - Complete Actor specification\n",{"name":5,"description":7},"master","4aa004da461d820f4ea5499e58eb8d196cf99016","community\u002Fskills_sh\u002Fs\u002Fskills-sh_apify_agent-skills_apify-actor-development",0,"https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge","https:\u002F\u002Fskill-explorer-rho.vercel.app","https:\u002F\u002Fgithub.com\u002FLord1Egypt","Unbreakable. Unstoppable. Unmatched⚡.\r\n Speaker of machine tongues 🤖  | World-builder of decentralized dreams 🌐 | Defender of the digital realm🛡️.","2026-06-10 08:21:01",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add Lord1Egypt\u002Fawesome-skill-forge --skill apify-actor-development",{"tool":39,"command":40},"bunx","bunx skills add Lord1Egypt\u002Fawesome-skill-forge --skill apify-actor-development",{"tool":42,"command":43},"pnpm","pnpm dlx skills add Lord1Egypt\u002Fawesome-skill-forge --skill apify-actor-development","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fskills_sh\u002Fs\u002Fskills-sh_apify_agent-skills_apify-actor-development\u002FSKILL.md",true,[],[48,55,62,69,76,83],{"skillNo":49,"name":50,"nameZh":6,"description":51,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":54,"publishedAt":19},"01M785WKJB99G3STR1NF9NRTJW","youtube-content","YouTube transcripts to summaries, threads, blogs.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fyoutube-content\u002FSKILL.md",[],[],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":19},"01M785WEFHB0G2S9YA6EPR3H0E","xurl","X\u002FTwitter via xurl CLI: post, search, DM, media, v2 API.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fxurl\u002FSKILL.md",[],[],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":19},"01M785W98EDN4EFJXJPMQEHCRC","touchdesigner-mcp","Control a running TouchDesigner instance via twozero MCP — create operators, set parameters, wire connections, execute Python, build real-time visuals. 36 native tools.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftouchdesigner-mcp\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M785W5S9FP3QBH2V191E025P","test-driven-development","TDD: enforce RED-GREEN-REFACTOR, tests before code.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftest-driven-development\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":19},"01M785W2AS08NSSH9YATCV6FJB","teams-meeting-pipeline","Operate the Teams meeting summary pipeline via Hermes CLI — summarize meetings, inspect pipeline status, replay jobs, manage Microsoft Graph subscriptions.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fteams-meeting-pipeline\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":19},"01M785VXKW4T34BTP1SCHW1R7F","systematic-debugging","4-phase root cause debugging: understand bugs before fixing.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fsystematic-debugging\u002FSKILL.md",[],[]]