사용 방법
- 설치 명령을 복사하고 자신의 에이전트 환경에 설치하기 전에 소스 패키지를 확인하세요.
- 필요한 도구, 인증 정보, 지원 환경은 원본 문서에서 확인하세요.
- 입력과 원하는 산출물을 설명하고 출처와 결과를 대조하세요.
npx skills add https://github.com/olsonbd/superpowers-antigravity --skill implementing-schema-org시작 전 확인
- 설치에는 모델 구독, API 한도, 파일 접근 권한이 포함되지 않습니다.
- 별점 수와 설치 수는 활동 지표이며 독립적인 품질·보안 검증이 아닙니다.
원본 저장소의 제목, 예시, 코드, 표, 링크, 이미지를 유지해 표시합니다.
Implementing Schema.org Data Models
Overview
Schema.org is the internet's standard for structured data. Adopting it prevents "bikeshedding" over field names and ensures our data is ready for SEO, AI agents, and external integrations (like calendars) from day one.
Core Principle: If Schema.org has a standard for it, use it. Do not invent your own field names.
When to Use
- Creating a new Collection (e.g., Venues, Events, Users)
- Defining API responses
- Mapping data for export
The Rules
- Strict Naming: Use the exact property name from Schema.org (e.g.,
postalCodenotzip,givenNamenotfirstName). - Preserve Structure: If Schema.org defines a property as a nested Type (like
address->PostalAddress), you MUST nest it. Do not flatten it for convenience. - Use Standard Types: Map your entities to the most specific Schema.org Type available (e.g.,
Event->SocialEventif applicable).
Common Mappings
| Our Concept | Schema.org Type | Key Fields |
|---|---|---|
| Venue | Place | name, address (PostalAddress), geo (GeoCoordinates), publicAccess |
| Event | Event | name, startDate, endDate, location (Place), organizer (Person/Organization) |
| User | Person | givenName, familyName, email, telephone |
Implementation Pattern (Payload CMS)
❌ BAD: Flattened & Ad-Hoc
// Venues.ts
fields: [
{ name: "street", type: "text" }, // Violation: Flattened
{ name: "zip", type: "text" }, // Violation: Wrong name
{ name: "lat", type: "number" }, // Violation: Wrong name & flattened
];✅ GOOD: Nested & Standard
// Venues.ts
fields: [
{
name: "address", // Schema.org property
type: "group", // Preserves structure
fields: [
{ name: "streetAddress", type: "text" },
{ name: "addressLocality", type: "text" }, // City
{ name: "addressRegion", type: "text" }, // State
{ name: "postalCode", type: "text" }, // Zip
{ name: "addressCountry", type: "text" },
],
},
{
name: "geo",
type: "group",
fields: [
{ name: "latitude", type: "number" },
{ name: "longitude", type: "number" },
],
},
];JSON-LD Serialization
When exposing this data via API, simply wrap it to produce valid JSON-LD:
// Example response structure
{
"@context": "https://schema.org",
"@type": "Place",
"name": venue.name,
"address": {
"@type": "PostalAddress",
...venue.address // Spread the nested group directly!
},
"geo": {
"@type": "GeoCoordinates",
...venue.geo
}
}Benefit: Because we preserved the structure in the database, serialization is just a spread operator (...venue.address). No complex mapping code required.
Red Flags - STOP and Fix
- "I'll just call it
zipbecause it's shorter." -> STOP. UsepostalCode. - "Nested groups are annoying to query." -> STOP. Structure matters more than convenience.
- "I'll add a
customField." -> Check Schema.org first. Is there really no standard field?

