apify-generate-output-schema

Generate Apify dataset and output JSON schema files from Actor source code.

Updated Apr 6, 2026
One-click install
npx skills add https://github.com/daanteijema-beep/ai-gids-platform --skill apify-generate-output-schema
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: apify-generate-output-schema
Source: https://github.com/daanteijema-beep/ai-gids-platform/tree/main/.agents/skills/apify-generate-output-schema
Command: npx skills add https://github.com/daanteijema-beep/ai-gids-platform --skill apify-generate-output-schema

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It eliminates guesswork and broken UI output in Apify runs by generating the correct dataset and output schema files from an Actor’s actual source code.

Core Features & Use Cases

  • Code-driven schema generation: Analyzes the Actor implementation to enumerate every dataset field, output shape, and key-value store key actually produced.
  • Apify-compatible JSON Schema rules: Produces dataset_schema.json, output_schema.json, and key_value_store_schema.json with the required nullability and validation patterns.
  • Repository convention alignment: Reuses existing schema patterns from other Actors in the same repository to keep formatting, naming, and examples consistent.
  • Safe, anonymized examples: Ensures examples never contain real user identifiers, usernames, or personal data.

Quick Start

Use the apify-generate-output-schema skill to generate or update dataset_schema.json, output_schema.json, and key_value_store_schema.json for an Apify Actor by analyzing its source code.

Frequently Asked Questions about apify-generate-output-schema

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate Apify dataset and output JSON schemas from my Actor source code?

Generate Apify JSON schemas by analyzing your Actor's source code to discover output fields and types, then create dataset_schema.json and output_schema.json files. The process marks all fields as nullable, adds additionalProperties, includes empty required arrays, and wires the files back into actor.json.

Why does my Apify Actor console display broken or missing dataset output fields?

Broken Apify console displays usually occur when dataset_schema.json and output_schema.json do not match the actual fields pushed by your Actor. Generating schemas directly from source code ensures the console accurately reflects your dataset output and key-value store artifacts.

What are the JSON Schema requirements for Apify actor.json console display?

Apify requires all dataset and output schema fields to be marked as nullable, with additionalProperties and empty required arrays added at the correct schema levels. These JSON Schema validation patterns ensure the console displays Actor run results without UI errors.

Can I generate key-value store schemas for my Apify Actor along with dataset schemas?

Yes, generating key-value store schemas is supported alongside dataset and output schemas. The process analyzes your Actor code to enumerate key-value store keys and produces key_value_store_schema.json that wires back into actor.json for complete storage validation.

Does Apify schema generation reuse existing JSON schema patterns from other Actors in my repository?

Yes, schema generation aligns with repository conventions by reusing existing schema patterns from other Actors. This keeps formatting, naming, and examples consistent across your Apify project while ensuring generated examples remain anonymized and free of real user identifiers.

What is the best way to update actor.json schemas when my Apify Actor output changes?

The best way to update actor.json schemas is to regenerate dataset_schema.json and output_schema.json by analyzing your updated Actor source code. This discovers new fields and types automatically, applies required nullability, and wires the resulting files back into actor.json.