Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add skills/apify/apify-claude-code-plugin/apify-generate-output-schemanpx skills add apify/apify-claude-code-plugin --skill apify-generate-output-schemagit clone --depth 1 https://github.com/apify/apify-claude-code-pluginWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/apify/apify-claude-code-plugin/apify-generate-output-schema)<a href="https://agentmods.dev/skills/apify/apify-claude-code-plugin/apify-generate-output-schema"><img src="https://agentmods.dev/badge/skills/apify/apify-claude-code-plugin/apify-generate-output-schema.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00045 | $0.03998 |
| Opus 5 | $0.00023 | $0.01999 |
| Sonnet 5 | $0.00009 | $0.00800 |
| Haiku 4.5 | $0.00005 | $0.00400 |
Grade A, and why
apify-generate-output-schema scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
This is a copy
98% identical to apify-generate-output-schema — 6 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.
How it starts
The opening of the file, as written. The whole thing — 419 lines — stays where its author put it; the contents beside it link to each section on GitHub.
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
Use the user's most recent request as the scope for this skill (which Actor to target, which subdirectory, any specific fields to focus on). If the scope is unclear, ask one clarifying question before continuing.
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
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 3d ago First seen · 419 lines · 45 tokens per session scan A 84c665f922cc
apify-generate-output-schema is a skill published in the GitHub repository apify/apify-claude-code-plugin (3 stars, last pushed 9d ago), licensed Apache-2.0. It adds 45 tokens to every session and 3,998 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. It is 98% identical to apify-generate-output-schema, differing in 6 lines, and is treated as a copy.
Other skills, from other repositories
systematic-debugging
Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.
brainstorming
You MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation.
auto-perf-optimize
Run agent-driven VS Code performance or memory investigations. Use when asked to launch Code OSS, automate a VS Code scenario, run the Chat memory smoke runner, capture renderer heap snapshots, take workflow screenshots, compare run summaries, or drive a repeatable scenario before heap-snapshot analysis.
chat-perf
Run chat perf benchmarks and memory leak checks against the local dev build or any published VS Code version. Use when investigating chat rendering regressions, validating perf-sensitive changes to chat UI, or checking for memory leaks in the chat response pipeline.
chat-pet-sprite-creation
Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.
cpu-profile-analysis
Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…