Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

apify-sdk-patterns

Skill by jeremylongshore

Apify SDK Patterns gives developers TypeScript patterns for building Actors with Crawlee and calling Actors with apify-client. It is for developers who manage datasets, key-value stores, or client wrappers with retry and validation.

  • Score 79
  • 3k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install apify-sdk-patterns

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-sdk-patterns ~/.claude/skills/apify-sdk-patterns

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install apify-sdk-patterns in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill provides production patterns for the apify SDK, used to build Actors, and apify-client, used to call Actors remotely. It includes an inline typed client singleton that validates the APIFY_TOKEN environment variable, and a guide to choosing between CheerioCrawler, PlaywrightCrawler, and PuppeteerCrawler based on the page type.

The remaining patterns cover Actor lifecycle with error handling, dataset and key-value store operations, proxy configuration, a router for multi-page Actors, and a safe result wrapper. These are stored in separate reference files, and two worked examples show how the patterns combine. The skill is written for developers using Claude Code who build or call Apify Actors in TypeScript.

Written from the project's SKILL.md and checked against it.

What it can do

  • Typed client singletonCreates one lazily initialized ApifyClient that validates APIFY_TOKEN and can be reset for tests.
  • Crawlee crawler selectionGuides the choice between Cheerio, Playwright, and Puppeteer crawlers based on the target page.
  • Actor lifecycle and error handlingWraps Actor.main() with input validation, conditional proxy, and a failedRequestHandler.
  • Dataset operationsCovers pushing records from an Actor and listing, creating, or downloading datasets from an external app.
  • Key-value store operationsCovers storing JSON config and binary artifacts by content type.
  • Proxy configurationDescribes datacenter, residential, and SERP proxy tiers.
  • Router for multi-page ActorsShows labeled listing and detail handlers for multi-page scrapes.
  • Safe result wrapperReturns a discriminated-union Result<T> around remote calls so callers branch on error.

What you need

  • Apify personal API token set as APIFY_TOKEN
  • apify-client package for calling Actors remotely
  • apify and crawlee packages for building Actors
  • TypeScript, recommended

Try asking

  • Create a typed ApifyClient singleton that validates APIFY_TOKEN
  • Show me how to choose between CheerioCrawler and PlaywrightCrawler
  • Write a safe wrapper that runs apify/web-scraper and reads its dataset

Good to know

  • Patterns 3 to 8 are in separate reference files, not in the main skill file
  • Apify uses a personal API token, not OAuth

Security check

B
  • Allowed to use Write, Edit without limitsIn SKILL.md

Checked automatically: skills/.curated/apify-sdk-patterns/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/examples.md3 KB
  • references/patterns.md9 KB

Alternatives to apify-sdk-patterns

All alternatives →
openclaw-github-repo-commandersickn33
94

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.

AAA Skill 50k
gradiogradio-app
94

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.

AAA Skill 44k
hig-components-menussickn33
94

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.

AAA Skill 50k
fastapi-templateswshobson
94

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.

AAA Skill 43k
appfunctionsandroid
94

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.

AAA Skill 11k
agent-qa-authoringsickn33
94

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.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

apify-sdk-patterns: common questions

What does apify-sdk-patterns cover?

It covers patterns for the apify SDK used to build Actors with Crawlee, and apify-client used to call Actors remotely, in TypeScript. The source lists eight patterns, with six in reference files.

Which credential does it need?

The source says APIFY_TOKEN is the only credential these patterns require. It should be read from process.env and not hard-coded.

When should I use the Cheerio crawler instead of Playwright?

The source says to use CheerioCrawler for static HTML, server-rendered pages, and APIs. PlaywrightCrawler is for SPAs and JavaScript-heavy pages.

How do I install apify-sdk-patterns?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is apify-sdk-patterns free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is apify-sdk-patterns safe to use?

It scores 79 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-sdk-patterns?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

apify-sdk-patterns Install

Add to stack

Loading.