apify-generate-output-schema
Lets your agent create a template for organizing collected data. It helps ensure information is structured correctly for your projects.
What it does
This AI agent helps create configuration files for a program called an Apify Actor. It analyzes the program's code to understand what information it produces and how it should be structured.
When to use it
- ✓When creating a new program (Actor) on Apify.
- ✓When you need to update how an existing Apify program displays its results.
- ✓If you're unsure how to describe the data your program generates.
Example of what to ask your AI
“I need to create a schema file for my Actor that collects product names and their prices.”
Want more? Open the sections below.
How to use
The easiest way: copy the message below and paste it into Claude, ChatGPT, Cursor or any AI. It reads the skill and follows the instructions.
Skill link
Ready-to-paste message
How it works
The agent reads your program's code to see exactly what data it outputs. Based on this, it creates schema files that tell Apify how to display this data in an organized and consistent way.
Installation
Easiest way: copy the skill link and paste it into Claude, ChatGPT or Cursor asking it to follow the instructions.
In the terminal (Claude Code, Codex, Cursor), in your project folder:
npx skills add sickn33/agentic-awesome-skills --skill apify-generate-output-schemaOr download just the file:
curl -L https://raw.githubusercontent.com/sickn33/agentic-awesome-skills/main/plugins/agentic-awesome-skills-claude/skills/apify-generate-output-schema/SKILL.md -o SKILL.mdTechnical content (original SKILL.md)
Original text by the author, straight from GitHub.
When to Use
- Use when this upstream workflow matches the user's stated goal.
- Use when the task requires the procedures documented in this skill.
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 - 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:
- Create todo list with all phases
- Find the
.actor/directory containingactor.json - Read
actor.jsonto understand the Actor's configuration - Check if
dataset_schema.json,output_schema.json, andkey_value_store_schema.jsonalready exist - Search for existing schemas in the repository: Look for other
.actor/directories or schema files (e.g.,**/dataset_schema.json,**/output_schema.json,**/key_value_store_schema.json) to learn the repo's conventions — match their description style, field naming, example formatting, and overall structure - Find all places where data is pushed to the dataset:
- JavaScript/TypeScript: Search for
Actor.pushData(,dataset.pushData(,Dataset.pushData( - Python: Search for
Actor.push_data(,dataset.push_data(,Dataset.push_data(
- JavaScript/TypeScript: Search for
- Find all places where data is stored in the key-value store:
- JavaScript/TypeScript: Search for
Actor.setValue(,keyValueStore.setValue(,KeyValueStore.setValue( - Python: Search for
Actor.set_value(,key_value_store.set_value(,KeyValueStore.set_value(
- JavaScript/TypeScript: Search for
- Find output type definitions — reuse them directly instead of recreating from scratch:
- TypeScript: Look for output type interfaces/types (e.g., in
src/types/,src/types/output.ts). If an interface or type already defines the output shape, derive the schema fields from it — do not create a parallel definition - Python: Look for TypedDict, dataclass, or Pydantic model definitions. Use the existing field names, types, and docstrings as the source of truth
- TypeScript: Look for output type interfaces/types (e.g., in
- Check for existing shared schema utilities or helper functions in the codebase that handle schema generation or validation — reuse them rather than creating new logic
- If inline
storages.datasetorstorages.keyValueStoreconfig exists inactor.json, note it for migration
Present findings to user: list all discovered dataset output fields, key-value store keys, their types, and where they come from.
Phase 2: Generate dataset_schema.json
Goal: Create a complete dataset schema with field definitions and display views
File structure
{
"actorSpecification": 1,
"fields": {
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
// ALL output fields here — every field the Actor can produce,
// not just the ones shown in the overview view
},
"required": [],
"additionalProperties": true
},
"views": {
"overview": {
"title": "Overview",
"description": "Most important fields at a glance",
"transformation": {
"fields": [
// 8-12 most important field names
]
},
"display": {
"component": "table",
"properties": {
// Display config for each overview field
}
}
…
FAQ
What are these schema files (dataset_schema.json, output_schema.json)?
These are files that define the structure of the data your program generates. They help Apify display the results clearly and organized, like in a table.
Why do all fields need to be 'nullable'?
Because websites and data sources can change or fail. Setting a field as 'nullable' ensures the program doesn't break if a specific piece of data isn't available.
What does 'anonymize examples' mean?
It means that when showing data examples in the schema, you should not use real people's information (like names or IDs). Use fake data to protect privacy.
Details
Original description by the author
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.
Popularity
- GitHub stars
- 48k
- Ranking position
- #2176
- License
- MIT
- Updated
- 10/15/2026
Comments
- …
More skills from this repository
00-andruia-consultant
Helps your agent start or improve AI projects. It analyzes code, suggests tools, and creates action plans in Spanish.
sickn33/agentic-awesome-skills
007
Lets your agent perform security audits and threat modeling. It's useful for protecting projects against attacks and vulnerabilities.
sickn33/agentic-awesome-skills
10-andruia-skill-smith
Helps your agent create or improve AI tools. It defines how tools work, writes documentation, and validates the structure.
sickn33/agentic-awesome-skills
20-andruia-niche-intelligence
Lets your agent create a summary about a specific industry. It's useful for understanding the context, rules, usage patterns, and risks of a project, using reliable sources.
sickn33/agentic-awesome-skills
Similar skills
bun-runtime
Has your agent use Bun to run, organize, and test code. It helps choose Bun over other tools and migrate existing projects.
affaan-m/ECC
database-migrations
Helps your agent make safe changes to databases. It ensures changes can be undone and minimizes downtime.
affaan-m/ECC
deployment-patterns
Sets up deployment and CI/CD workflows, containerization, and rollback strategies to ensure safe releases.
affaan-m/ECC