apify-generate-output-schema
하는 일
Apify Actor라는 프로그램의 설정 파일을 만드는 데 도움을 주는 AI 에이전트입니다. 프로그램의 코드를 분석해 어떤 정보를 생성하고 어떻게 구조화되어야 하는지 파악합니다.
사용하는 경우
- ✓Apify에서 새 프로그램(Actor)을 만들 때.
- ✓기존 Apify 프로그램이 결과를 표시하는 방식을 업데이트해야 할 때.
- ✓프로그램이 생성하는 데이터를 어떻게 설명할지 확신이 없을 때.
스킬 링크
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/apify-generate-output-schema/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“제품 이름과 가격을 수집하는 Actor를 위한 스키마 파일을 만들어야 합니다.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 프로그램의 코드를 읽어 정확히 어떤 데이터를 출력하는지 확인합니다. 이를 바탕으로 Apify가 결과를 체계적이고 일관되게 표시하는 방법을 알려 주는 스키마 파일을 만듭니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 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
}
}
…
자주 묻는 질문
dataset_schema.json과 output_schema.json은 무엇인가요?
프로그램이 생성하는 데이터의 구조를 정의하는 파일입니다. Apify가 결과를 표처럼 명확하고 체계적으로 보여 주도록 돕습니다.
왜 모든 필드가 ‘nullable’이어야 하나요?
웹사이트와 데이터 소스는 바뀌거나 실패할 수 있기 때문입니다. 필드를 ‘nullable’(값이 없을 수 있음)로 설정하면, 특정 데이터를 사용할 수 없더라도 프로그램이 깨지지 않습니다.
‘예시를 익명화한다’는 무슨 뜻인가요?
스키마에 데이터 예시를 보여 줄 때 실제 사람의 정보(이름이나 ID 등)를 쓰지 말아야 한다는 뜻입니다. 개인정보를 보호하기 위해 가짜 데이터를 사용하세요.
상세 정보
작성자의 원본 설명
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.
인기도
- GitHub 스타
- 48k
- 순위
- #3790
- 라이선스
- MIT
- 업데이트
- 2026. 10. 15.
댓글
- …
이 저장소의 다른 스킬
00-andruia-consultant
48k에이전트가 AI 프로젝트를 시작하거나 개선할 수 있도록 코드를 분석하고 스페인어로 실행 계획을 세워 줍니다.
007
48k에이전트가 보안 감사와 위협 모델링을 수행해 공격과 취약점으로부터 프로젝트를 보호하도록 돕습니다.
10-andruia-skill-smith
48k에이전트가 AI 도구의 작동 방식을 정의하고 문서를 쓰며 구조를 검증하도록 돕습니다.
20-andruia-niche-intelligence
48k에이전트가 신뢰할 수 있는 자료를 바탕으로 특정 산업의 맥락, 규칙, 사용 패턴, 위험을 정리한 요약을 만들도록 돕습니다.
비슷한 스킬
openclaw-update
394k에이전트가 설치 방식에 맞는 방법을 골라 기존 OpenClaw Gateway를 업데이트하고, 세션이 계속 작동하도록 돕습니다.
diagnose-gateway
394k에이전트가 설정, 채널, 포트를 확인해 OpenClaw Gateway가 왜 실패하는지 찾되, 아무것도 바꾸지 않도록 돕습니다.
crabbox-apps
394k에이전트가 임시 클라우드 머신에서 앱을 열고 실행한 뒤, 그 화면을 채팅의 측면 패널에 보여 주도록 돕습니다.