apify-performance-tuning
Skill by jeremylongshore
Optimizes Apify Actor performance for crawl speed, memory use, concurrency and proxy rotation. Built for developers whose Actors are slow, memory-heavy, blocked by target sites or costly per run.
Install apify-performance-tuning
Built from the published package, never by AI.
git clone --depth 1 https://github.com/jeremylongshore/tons-of-skills-marketplace /tmp/tons-of-skills-marketplace && mkdir -p ~/.claude/skills && cp -r /tmp/tons-of-skills-marketplace/skills/.curated/apify-performance-tuning ~/.claude/skills/apify-performance-tuningRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install apify-performance-tuning in Claude Code
git clone --depth 1 https://github.com/jeremylongshore/tons-of-skills-marketplace /tmp/tons-of-skills-marketplace && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/tons-of-skills-marketplace/skills/.curated/apify-performance-tuning ~/.gemini/antigravity-cli/skills/apify-performance-tuningAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install apify-performance-tuning in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
Apify Performance Tuning is a Claude Code skill for tuning Apify Actors for speed, cost and reliability. It covers Crawlee concurrency settings, memory profiling, proxy rotation strategies, request batching and crawler selection. The workflow measures a baseline, applies one lever, and then re-measures.
The skill walks through six steps, starting with crawler choice. It says that swapping a browser crawler for CheerioCrawler on non-JavaScript pages can give a 5-10x speedup on its own. Full code is kept in reference files for implementation and monitoring. It is aimed at developers whose Actors run slowly, use too much memory, get blocked by target sites, or cost too much per run.
Written from the project's SKILL.md and checked against it.
What it can do
- Measure baselinePulls runTimeSecs, requestsFinished, memAvgBytes and usageTotalUsd from run stats before changes.
- Choose crawlerRecommends Cheerio crawlers for static HTML or JSON and browser crawlers only when JavaScript rendering is needed.
- Tune concurrencyGives maxConcurrency guidance for Cheerio and browser crawlers and notes autoscaledPoolOptions.
- Optimize memoryPushes data immediately and blocks images, CSS and fonts in preNavigationHooks for browser crawlers.
- Right-size memoryStarts Cheerio Actors at 512 MB and raises the allocation only if the Actor is memory-starved.
- Proxy and session strategyStarts on datacenter proxies and falls back to residential proxies on 403 or blocked responses.
- In-crawl throughput loggerProvides a monitoring reference with a throughput logger and a before and after impact table.
What you need
- Existing Actor with measurable baseline performance
- APIFY_TOKEN set in the environment
- Access to Actor run stats in Apify Console
- Claude Code
Try asking
- Why is my Apify Actor slow? Start by measuring a baseline.
- Should this Actor use CheerioCrawler instead of PlaywrightCrawler?
- Set maxConcurrency and memory for my Apify scraper.
Good to know
- Browser crawler concurrency should stay low, around 3-5, because each page costs about 200MB.
- The 5-10x speedup figure is stated for swapping browser crawlers for CheerioCrawler on non-JavaScript pages.
Security check
B- Allowed to use Write, Edit without limitsIn
SKILL.md
Checked automatically: skills/.curated/apify-performance-tuning/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
Allowed tools: ReadWriteEdit
-
SKILL.md6 KB -
references/implementation.md7 KB -
references/monitoring.md1 KB
Alternatives to apify-performance-tuning
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
apify-performance-tuning: common questions
Which crawler is faster for static pages?
The source says CheerioCrawler is a 5-10x speedup over a browser crawler for non-JavaScript pages. It is recommended for static HTML or JSON.
What should I do when Apify Actors get blocked?
Start on datacenter proxies and fall back to residential proxies on 403 or blocked responses. A session pool is used for IP rotation and ban detection.
How much memory should an Apify Actor get?
Start low, at 512 MB for Cheerio, and raise the allocation only if the Actor is memory-starved. Compute units bill on memory multiplied by duration.
How do I install apify-performance-tuning?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is apify-performance-tuning free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is apify-performance-tuning safe to use?
It scores 80 of 100. Grades: maintenance A, licence A, quality A. Security check: grade B (allowed to use write, edit without limits). Review the code before you install. How grades work.
What are alternatives to apify-performance-tuning?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
