upstage-schema-generation
/upstage-schema-generation
Generate a JSON schema for structured document information extraction. Use this skill whenever the user asks to generate or create a schema for a document — including phrases like "스키마 생성해줘", "이 문서에서 뭘 추출할지 스키마 짜줘", "generate a schema for this document", or any request to define extraction fields for a document. Also trigger when the user provides file paths or a folder path containing documents and wants a schema generated.
- Author
- upstageai ↗
- Repository
- upstage-extensions-hub ↗
- Licence
- MIT
- Last repository change
- 07.05.2026
Assessment and security
- Files in this package
- 3
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 3
No signals detected. Repository changed on 07.05.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
What it does and when to use it
Generate a JSON schema for structured document information extraction. Use this skill whenever the user asks to generate or create a schema for a document — including phrases like "스키마 생성해줘", "이 문서에서 뭘 추출할지 스키마 짜줘", "generate a schema for this document", or any request to define extraction fields for a document. Also trigger when the user provides file paths or a folder path containing documents and wants a schema generated.
Triggers from the description
Original author description
Generate a JSON schema for structured document information extraction. Use this skill whenever the user asks to generate or create a schema for a document — including phrases like "스키마 생성해줘", "이 문서에서 뭘 추출할지 스키마 짜줘", "generate a schema for this document", or any request to define extraction fields for a document. Also trigger when the user provides file paths or a folder path containing documents and wants a schema generated.
How it works
- Prerequisites
- Two Modes
- API Mode (Default)
- VLM Mode
- Output Files
- Related Skills
SKILL.md preview
---
name: upstage-schema-generation
description: Generate a JSON schema for structured document information extraction. Use this skill whenever the user asks to generate or create a schema for a document — including phrases like "스키마 생성해줘", "이 문서에서 뭘 추출할지 스키마 짜줘", "generate a schema for this document", or any request to define extraction fields for a document. Also trigger when the user provides file paths or a folder path containing documents and wants a schema generated.
model: claude-opus-4-6
---
# Upstage Schema Generation
Analyze sample documents and automatically generate a JSON schema for use with Information Extraction.
## Prerequisites
- **API Key**: `UPSTAGE_API_KEY` environment variable is required. Get your key at [console.upstage.ai](https://console.upstage.ai).
## Two Modes
| Mode | When to use | Latency |
|------|-------------|---------|
| **API mode** | Default. Fast schema generation via Upstage endpoint. | Low |
| **VLM mode** (`claude-opus-4-6`) | When the user wants careful, hand-tuned schemas with precise extraction rules and table-aware design. | High |
## API Mode (Default)
**Endpoint**: `POST https://api.upstage.ai/v1/information-extraction/schema-generation`
```python
import os
import json
import requests
import base64
api_key = os.environ["UPSTAGE_API_KEY"]
with open("document.pdf", "rb") as f:
b64 = base64.b64encode(f.read()).decode()
response = requests.post(
"https://api.upstage.ai/v1/information-extraction/schema-generation",
headers={"Authorization": f"Bearer {api_key}", "Content-Type": "application/json"},
json={
"model": "information-extract",
"messages": [
{"role": "system", "content": "Generate schema for this invoice document."},
{"role": "user", "content": [
{"type": "image_url", "image_url": {"url": f"data:application/pdf;base64,{b64}"}}
]}
]
}
)
schema = json.loads(response.json()["choices"][0]["message"]["content"])
print(json.dumps(schema, indent=2))
```
> **Note**: The API model is `information-extract` (not `schema-generate`). The `system` message can guide the schema focus (e.g., "Generate schema about bank_name."). Up to 3 sample images can be provided in the user message.
## VLM Mode
For carefully designed schemas with precise extraction rules, follow the 4-step VLM workflow.
- **Workflow**: Read `references/vlm-workflow.md` (parameter gathering, document reading, property list, JSON schema conversion)
- **Design rules**: Read `references/schema-design.md` (key naming, descriptions, table handling, blank/duplicate handling)
## Output Files
- **Default**: write generated schema to `<system-temp>/<input-stem>.schema.json` (e.g., `/tmp/invoice.schema.json`). For inline input with no source file, use `<system-temp>/<timestamp>-schema.json`.
- **Override**: if the user specifies an output path, use it.
- **Always print the resolved absolute path** in your response so the user can locate the file.
## Related Skills
- Generated schema → use directly as `response_format` in `upstage-information-extraction`
- If documents need pre-sorting → classify with `upstage-document-classification` first, then generate per-category schemas
- For multi-API pipelines → see `upstage-builder`
Files in this package (3)
- SKILL.md 3 KB
- references/schema-design.md 8 KB
- references/vlm-workflow.md 5 KB
Versions
The database has no other skills named upstage-schema-generation.
Database snapshot: 13.11.2026 · package version 7e00fe771112 (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 100upstage-document-parse
Parse documents (PDF, images, DOCX, PPTX, XLSX, HWP) into layout-aware markdown/HTML with tables, figures, headings, and bounding boxes using Upstage Document Parse API. Use when user asks to convert documents to markdown/HTML, preserve layout/tables, or analyze document… - 100upstage-ocr
Extract plain text with word-level bounding box coordinates from images and scanned documents using Upstage OCR API. Use when user asks to OCR a document, extract raw text from an image/scan, or get text coordinates — '이미지에서 텍스트만 뽑아줘', 'OCR 돌려줘', 'extract text with coordinates'.… - 100generate-data-schema
Use this skill to build a data-extraction schema JSON file that tells ScrapeOps what fields to extract. Trigger on phrases like "generate schema", "create schema", "data schema for X", "schema for crawler", "build a schema". Also invoked programmatically by other skills (e.g.… - 100database-documentation-gen
Process use when you need to work with database documentation. This skill provides automated documentation generation with comprehensive guidance and automation. Trigger with phrases like "generate docs", "document schema", or "create database documentation". - 95parse-integration
Extract structured data from documents (invoices, receipts, purchase orders, bills of lading, bank statements, contracts, forms, ID documents, scans, photos of paper) with Parse by Conversion Tools, and build a production integration against its API. Covers getting an API key,… - 90traceable-extraction
Build an auditable field ledger and structured records from business documents. Use when extracting fields or tables, normalizing document values, assigning extraction confidence, or checking totals and cross-document consistency.