Agent skill · software engineering · apify
apify-generate-output-schema
Generate output schemas (dataset_schema.json, output_schema.json, key_value_store_schema.json) for an Apify Actor by analyzing its source code. Use when creating or updating Actor output schemas.
Why this skill is useful
Adds specific commands and patterns for generating output schemas for Apify Actors that the AI wouldn't reliably generate on its own.
What it needs
About 9k tokens when loaded. Last updated 2026-08-04. 2,326 stars on the source repository.
What this skill does
Generate Actor output schema You are generating output schema files for an Apify Actor. The output schema tells Apify Console how to display run results. You will analyze the Actor's source code, create datasetschema.json, outputschema.json, and keyvaluestoreschema.json (if the Actor uses key-value store), and update actor.json. Core principles Analyze code first: Read the Actor's source to understand what data it actually pushes to the dataset — never guess Every field is nullable: APIs and websites are unpredictable — always set "nullable": true Anonymize examples: Never use real user IDs, usernames, or personal data in examples Verify against code: If TypeScript types exist, cross-check the schema against both the type definition AND the code that produces the values Reuse existing patterns: Before generating schemas, check if other Actors in the same repository already have output schemas — match their structure, naming conventions, description style, and formatting Don't reinvent the wheel: Reuse existing type definitions, interfaces, and utilities from the codebase instead of creating duplicate definitions --- Phase 1: Discover Actor structure Goal: Locate the Actor and understand its output Initial request: $ARGUMENTS Actions: 1. Create todo list with all phases 2. Find the .actor/ directory containing actor.json 3. Read actor.json to understand the Actor's configuration 4. Check if datasetschema.json, outputschema.json, and keyvaluestoreschema.json already exist 5. Search for existing schemas in the repository: Look for other .actor/ directories or schema files (e.g., /datasetschema.json, /outputschema.json, /keyvaluestoreschema.json) to learn the repo's conventions — match their description style, field naming, example formatting, and overall structure 6. …
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills apify/apify-generate-output-schema