apify-generate-output-schema
Generate output schemas (dataset_schema.json, output_schema.json, key_value_store_schema.json)
Install / Use
npx skills add sickn33/agentic-awesome-skills --skill apify-generate-output-schemaInstalls into whichever agent you are using.
SKILL.md
Installable skill definition
Quality Score
Category
AutomationSupported Platforms
Our assessment of apify-generate-output-schema
apify-generate-output-schema scores 97/100 on our quality scale, 88th of 1,264 Automation skills we index (top 7%).
Its SKILL.md is 17 KB long, well organised into 23 sections with 14 code examples: a thorough specification that gives an agent plenty to work with.
With 46,875 GitHub stars, it is one of the more widely adopted skills in the catalogue.
Maintenance, license and trust
- The repository was last updated yesterday, so apify-generate-output-schema is actively maintained.
- It is released under the MIT license, a permissive license that allows use, modification and commercial use with attribution.
- Its trust signals score 100/100, with no cautions. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
Safety scan
No issues foundOur scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review of the same text found nothing harmful.
AI review by kimi-k2.7-code on 2026-09-26. Automated pattern scan on 2026-09-26. It catches known dangerous patterns, not every risk — read a skill before letting an agent act on it.
apify-generate-output-schema compared with similar skills
All 4 of these similar skills score higher than apify-generate-output-schema; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| apify-generate-output-schema (this skill)by sickn33 | 97 | 46.9k | 1d ago | SKILL.md |
| Agent-Reachby Panniantong | 100 | 85.5k | 10d ago | CLAUDE.md |
| headroomby headroomlabs-ai | 100 | 73.8k | today | CLAUDE.md |
| rufloby ruvnet | 100 | 73.3k | 1d ago | CLAUDE.md |
| Scraplingby D4Vinci | 100 | 83.7k | today | MCP Server |
Frequently asked questions
- How do I install apify-generate-output-schema?
- Run
npx skills add sickn33/agentic-awesome-skills --skill apify-generate-output-schema. The install tabs above show the steps for each supported agent. - Which AI agents does apify-generate-output-schema work with?
- It is written for Universal, as a SKILL.md file. Other agents that read the same format can often use it too.
- Is apify-generate-output-schema safe to use?
- Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review of the same text found nothing harmful. It is MIT-licensed and scores 100/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is apify-generate-output-schema still maintained?
- The repository was last updated yesterday, so apify-generate-output-schema is actively maintained.
Skill content
View source on GitHubname: apify-generate-output-schema description: 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. source_repo: apify/agent-skills source_type: official source: apify date_added: '2026-09-21' risk: unknown
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
}
}
}
}
}
Consistency with existing schemas
If existing output schemas were found in the repository during Phase 1 (step 5), follow their conventions:
- Match the description writing style (sentence case vs. lowercase, period vs. no period, etc.)
- Match the field naming convention (camelCase vs. snake_case) — this must also match the actual keys produced by the Actor code
- Match the example value style (e.g., date formats, URL patterns, placeholder names)
- Match the view structure (number of fields in overview, display format choices)
- Match the JSON formatting (indentation, property ordering, spacing) — all schemas in the same repository must use identical formatting, including standalone Actors
When the Actor code already has well-defined TypeScript interfaces or Python type classes, derive fields directly from those types rather than re-analyzing pushData/push_data calls from scratch. The type definition is the canonical source.
Hard rules (no exceptions)
| Rule | Detail |
|------|--------|
| All fields in properties | The fields.properties object must contain every field the Actor can output, not just the fields shown in the overview view. The views section selects a subset for display — the properties section must be the complete superset |
| "nullable": true | On every field — APIs are unpredictable |
| "additionalProperties": true | On the top-level fields object AND on every nested object within properties. This is the most commonly missed rule — it must appear at both levels |
| "required": [] | Always empty array — on the top-level fields object AND on every nested object within properties |
| Anonymized examples | No real user IDs, usernames, or content |
| "type" required with "nullable" | AJV rejects nullable without a type on the same field |
Warning — most common mistakes:
- Only including fields that appear in the overview view. The
fields.propertiesmust list ALL output fields, even if they are not in theviewssection.- Only adding
"required": []and"additionalProperties": trueon nested object-type properties but forgetting them on the top-levelfieldsobject. Both levels need them.
Note:
nullableis an Apify-specific extension to JSON Schema draft-07. It is intentional and correct.
Field type patterns
String field:
"title": {
"type": "string",
"description": "Title of the scraped item",
"nullable": true,
"example": "Example Item Title"
}
Number field:
"viewCount": {
"type": "number",
"description": "Number of views",
"nullable": true,
"example": 15000
}
Boolean field:
"isVerified": {
"type": "boolean",
"description": "Whether the account is verified",
"nullable": true,
"example": true
}
Array field:
"hashtags": {
"type": "array",
"description": "Hashtags associated with the item",
"items": { "type": "string" },
"nullable": true,
"example": ["#example", "#demo"]
}
Nested object field:
"authorInfo": {
"type": "object",
"description": "Information about the author",
"properties": {
"name": { "type": "string", "nullable": true },
"url": { "type": "string", "nullable": true }
},
"required": [],
"additionalProperties": true,
"nullable": true,
"example": { "name": "Example Author", "url": "https://example.com/author" }
}
Enum field:
"contentType": {
"type": "string",
"description": "Type of content",
"enum": ["article", "video", "image"],
"nullable": true,
"example": "article"
}
Union type (e.g., TypeScript ObjectType | string):
"metadata": {
"type": ["object", "string"],
"description": "Structured metadata object, or error string if unavailable",
"nullable": true,
"example": { "key": "value" }
}
Anonymized example values
Use realistic but generic values. Follow platform ID format conventions:
| Field type | Example approach |
|---|---|
| IDs | Match platform format and length (e.g., 11 chars for YouTube video IDs) |
| Usernames | "exampleuser", "sampleuser123" |
| Display names | "Example Channel", "Sample Author" |
| URLs | Use platform's standard URL format with fake IDs |
| Dates | "2025-01-15T12:00:00.000Z" (ISO 8601) |
| Text content | Generic descriptive text, e.g., "This is an example description." |
Views section
transformation.fields: List 8–12 most important field names (order = column order in UI)display.properties: One entry per overview field withlabelandformat- Available formats:
"text","number","date","link","boolean","image","array","object"
Pick fields that give users the most useful at-a-glance summary of the data.
Phase 3: Generate key_value_store_schema.json (if applicable)
Goal: Define key-value store collections if the Actor stores data in the key-value store
Skip this phase if no
Actor.setValue()/Actor.set_value()calls were found in Phase 1 (beyond the defaultINPUTkey).
File structure
{
"actorKeyValueStoreSchemaVersion": 1,
"title": "<Descriptive title — what the key-value store contains>",
"description": "<One sentence describing the stored data>",
"collections": {
"<collectionName>": {
"title": "<Human-readable title>",
"description": "<What this collection contains>",
"keyPrefix": "<prefix->"
}
}
}
How to identify collections
Group the discovered setValue / set_value calls by key pattern:
- Fixed keys (e.g.,
"RESULTS","summary") — use"key"(exact match) - Dynamic keys with a prefix (e.g.,
"screenshot-${id}",f"image-{name}") — use"keyPrefix"
Each group becomes a collection.
Collection properties
| Property | Required | Description |
|----------|----------|-------------|
| title | Yes | Shown in UI tabs |
| description | No | Shown in UI tooltips |
| key | Conditional | Exact key for single-key collections (use key OR keyPrefix, not both) |
| keyPrefix | Conditional | Prefix for multi-key collections (use key OR keyPrefix, not both) |
| contentTypes | No | Restrict allowed MIME types (e.g., ["image/jpeg"], ["application/json"]) |
| jsonSchema | No | JSON Schema draft-07 for validating application/json content |
Examples
Single file output (e.g., a report):
{
"actorKeyValueStoreSchemaVersion": 1,
"title": "Analysis Results",
"description": "Key-value store containing analysis output",
"collections": {
"report": {
"title": "Report",
"description": "Final analysis report",
"key": "REPORT",
"contentTypes": ["application/json"]
}
}
}
Multiple files with prefix (e.g., screenshots):
{
"actorKeyValueStoreSchemaVersion": 1,
"title": "Scraped Files",
"description": "Key-value store c
Truncated for display — read the full file on GitHub.
Related Skills
Agent-Reach
85.5kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
headroom
73.8kCompress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.
ruflo
73.3k🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated
Scrapling
83.7k🕷️ An adaptive Web Scraping framework that handles everything from a single request to a full-scale crawl! Don't be shy, join here: https://discord.gg/EMgGbDceNQ and follow here for daily tips and tricks: https://x.com/Scrapling_dev
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
