MR
Mayur Rathi
@sickn33
⭐ 47.3k GitHub stars

apify-generate-output-schema

apify-generate-output-schema is an productivity AI skill with a core value of Generate output schemas (dataset_schema. It helps developers solve real-world problems in the productivity domain, boosting efficiency, automating repetitive tasks, and optimizing workflows.

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.

Last verified on: 2026-10-06

Quick Facts

Category productivity
Works With Claude
Source sickn33/antigravity-awesome-skills
Stars ⭐ 47.3k
Last Verified 2026-10-06
Risk Level Low
mkdir -p ./skills/apify-generate-output-schema && curl -sfL https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/main/skills/apify-generate-output-schema/SKILL.md -o ./skills/apify-generate-output-schema/SKILL.md

Run in terminal / PowerShell. Requires curl (Unix) or PowerShell 5+ (Windows).

Skill Content

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**:

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 `dataset_schema.json`, `output_schema.json`, and `key_value_store_schema.json` already exist

5. **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

6. 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(`

7. 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(`

8. 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

9. 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

10. If inline `storages.dataset` or `storages.keyValueStore` config exists in `actor.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


json
{
    "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": [],
        "additio

🎯 Best For

  • Developers scaffolding new projects
  • Prototype builders
  • Claude users
  • Knowledge workers
  • Remote teams

💡 Use Cases

  • Bootstrapping React components
  • Creating API route handlers
  • Using apify-generate-output-schema in daily workflow
  • Automating repetitive productivity tasks

📖 How to Use This Skill

  1. 1

    Install the Skill

    Copy the install command from the Terminal tab and run it. The SKILL.md file downloads to your local skills directory.

  2. 2

    Load into Your AI Assistant

    Open Claude and reference the skill. Paste the SKILL.md content or use the system prompt tab.

  3. 3

    Apply apify-generate-output-schema to Your Work

    Provide context for your task — paste source material, describe your audience, or share existing work to guide the AI.

  4. 4

    Review and Refine

    Edit the AI output for accuracy, tone, and completeness. Add human insight where the AI lacks context.

❓ Frequently Asked Questions

Can I customize the generated output?

Yes — modify the skill's prompt instructions to match your project conventions and coding style.

How do I install apify-generate-output-schema?

Copy the install command from the Terminal tab and run it. The skill downloads to ./skills/apify-generate-output-schema/SKILL.md, ready to use.

Can I customize this skill for my team?

Absolutely. Edit the SKILL.md file to add team-specific instructions, examples, or workflows.

⚠️ Common Mistakes to Avoid

Using generated code without understanding

Understand what generated code does before shipping it to production.

Not reading the full skill

Skills contain important context and edge cases beyond the quick start.

🔗 Related Skills