json-ld-valid
하는 일
이 스킬은 페이지의 구조화된 데이터 블록에서 문법 오류와 필수 필드 누락을 확인합니다. 풍부한 검색 결과를 원하는 사이트 운영자와 개발자를 위한 것입니다.
사용하는 경우
- ✓Google Search Console에서 풍부한 결과가 나타나지 않을 때.
- ✓페이지에 기사, 제품, FAQ, 빵 부스러기 마크업을 추가할 때.
- ✓코드나 템플릿으로 구조화된 데이터를 만들 때.
스킬 링크
https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/json-ld-valid/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“제 구조화된 데이터를 확인하고 풍부한 결과가 보이지 않는 이유를 알려 주실 수 있나요?”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 각 JSON-LD 블록을 파싱하고 context와 type을 확인하며, 그 유형에 필요한 속성이 있는지 검사합니다. 문법 오류와 누락된 필드를 고치도록 제안하고, Google의 리치 결과 테스트를 권합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Use valid JSON-LD structured data
Invalid JSON-LD is silently ignored by Google — there are no error messages in search results, only the absence of rich results. Invalid structured data means no eligibility for rich results (stars, FAQs, breadcrumbs, etc.) that increase click-through rates.
Quick Reference
- JSON-LD must be valid JSON, reference
@context: 'https://schema.org', and include all required properties for the chosen@type - Invalid JSON (unclosed brackets, missing commas) causes the entire block to be silently ignored by Google
- Validate with Google's Rich Results Test before deploying structured data changes
Check
Find all <script type='application/ld+json'> elements on the page. For each: (1) Attempt to parse the content as JSON — flag syntax errors. (2) Verify @context is set to 'https://schema.org'. (3) Verify @type is a valid schema.org type. (4) For the detected type, check required properties are present (e.g., Article requires headline, author, datePublished; Product requires name; FAQPage requires mainEntity). (5) Run through Google's Rich Results Test API if available.
Fix
- Parse the JSON-LD with
JSON.parse()— fix any syntax errors (trailing commas, single quotes, missing brackets). - Ensure
@contextis exactly"https://schema.org"(not"http://schema.org"or omitted). - Verify the
@typevalue against schema.org types. - Add required properties for the type:
- Article: headline, author (with @type Person and name), datePublished
- Product: name (and ideally offers, description)
- FAQPage: mainEntity array with Question and acceptedAnswer
- BreadcrumbList: itemListElement array with ListItem, position, name, item
- Validate at https://search.google.com/test/rich-results
- Validate JSON syntax at https://jsonlint.com
Explain
Google uses JSON-LD structured data to generate rich results — enhanced search result formats that include stars, images, expandable Q&As, and other features. Invalid JSON-LD is ignored entirely: no rich results are generated, and no error is reported to you. Only by testing with the Rich Results Test can you discover validation failures. Correct, complete JSON-LD is a prerequisite for rich result eligibility.
Code Review
Extract all <script type='application/ld+json'> element contents. Run JSON.parse() on each — catch and report parse errors. Validate that @context equals 'https://schema.org'. Check @type against a whitelist of common valid types. For each type, validate required properties are present and non-empty. Report the first validation error found for each block.
For full implementation details, code examples, and framework-specific guidance,
see references/rule.md.
Rule page: https://frontendchecklist.io/rules/seo/json-ld-valid
자주 묻는 질문
Google은 유효하지 않은 구조화된 데이터에 오류를 보여 주나요?
스킬은 유효하지 않은 JSON-LD는 조용히 무시되므로, 풍부한 결과가 없다는 것이 유일한 신호라고 설명합니다.
흔한 문법 문제는 무엇인가요?
스킬은 끝에 붙은 쉼표, 작은따옴표, 빠진 괄호를 흔한 원인으로 언급합니다.
마크업은 어떻게 테스트하나요?
스킬은 변경 사항을 게시하기 전에 Google의 리치 결과 테스트를 사용하라고 권합니다.
상세 정보
작성자의 원본 설명
Use when generating or auditing any `<script type='application/ld+json'>` blocks, implementing structured data for articles, products, FAQs, breadcrumbs, or local businesses, or investigating why rich results are not appearing in Google Search Console.
인기도
- GitHub 스타
- 75k
- 순위
- #2906
- 라이선스
- MIT
- 업데이트
- 2026. 10. 31.
댓글
- …
이 저장소의 다른 스킬
frontendchecklist
75k명령줄 도구를 사용해 380개가 넘는 규칙으로 프런트엔드 코드와 실시간 페이지를 접근성, 속도, SEO, 보안 측면에서 점검합니다.
frontend-checklist-global
75kFront-End Checklist의 386개 규칙 전체로 프런트엔드 프로젝트를 감사하고, 발견한 문제마다 구체적인 해결 방법을 제시합니다.
404-page
75k없는 페이지 화면에 도움이 되는 링크가 있고 실제 404 상태 코드를 반환하는지 확인해, 길을 잃은 방문자를 돕습니다.
about-page
75k사이트를 운영하는 사람을 설명하는 명확한 소개 페이지가 있는지 검토해, 방문자와 검색 엔진의 신뢰를 높입니다.
비슷한 스킬
competitive-platform-analysis
280k경쟁사를 식별하고 분류하며 걸러내 더 깊은 분석을 하기 전에 경쟁 구도를 이해하도록 돕습니다.
competitive-report-structure
280k경쟁사 정보를 결합해 전체 시장 현황과 추천 사항을 보여 주는 종합 보고서를 만들고, 팀의 방향을 맞추도록 돕습니다.
lead-intelligence
280k중요한 사람을 찾고 연락하도록 에이전트를 돕습니다. 잠재 고객을 분석하고 접근 방법을 제안하며, 이메일과 소셜 미디어를 통한 연락을 관리합니다.