apify-generate-output-schema

This skill generates output schema files (dataset_schema.json, output_schema.json, and key_value_store_schema.json) for Apify Actors by analyzing source code and updating actor.json.

5.9K
Installs
5
Use cases
5/10
Quality

Is apify-generate-output-schema safe to install?

Review before installing

Review before installing: our audit of apify-generate-output-schema's source files found 0 shell commands, 0 external URLs, file reads and writes (medium risk). Every command and URL listed appears verbatim in the skill's source. The skill reads source code files and writes JSON schema files to the local directory.

How we audit skills: our security review methodology.

Who is this skill for?

Developers maintaining Apify Actors who need to define or update output schemas for the Apify Console.

What can you do with it?

  • Creating dataset_schema.json based on Actor source code analysis.
  • Generating key_value_store_schema.json for Actors using key-value storage.
  • Creating output_schema.json to link dataset and key-value store results in the Apify Console.
  • Updating actor.json to reference generated schema files.
  • Ensuring schema consistency across multiple Actors in a repository.

How good is this skill?

Quality score: 5/10. The skill provides clear, structured instructions for generating schemas and follows specific Apify-related conventions. It includes robust validation steps and handles common pitfalls like nested object properties.

What does the skill file contain?

SKILL.md
# 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 `dataset_schema.json`, `output_schema.json`, and `key_value_store_schema.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`
- **Anonymi...

Frequently asked questions

Does this skill automatically detect all output fields?

The skill identifies output fields by searching for Actor.pushData, dataset.pushData, and similar methods in the source code, as well as by inspecting TypeScript interfaces or Python type definitions.

How does the skill handle nullable fields?

The skill enforces a rule to set "nullable": true for every field in the schema.

What happens if the Actor uses a key-value store?

The skill generates a key_value_store_schema.json file if it detects Actor.setValue or Actor.set_value calls in the source code.

Does the skill modify existing actor.json files?

Yes, the skill updates actor.json to include references to the generated schema files and migrates any existing inline storage configurations.

Data sourced from apify/agent-skills on GitHub. Install counts from skills.sh. The summary and security audit are derived from the skill's source files: every command and URL listed appears verbatim in the source.

Related skills