Chuyển đến nội dung
Skillpedia
SEO29k · #9668

schema-markup

Skill này làm gì

Skill này giúp thêm và kiểm tra đánh dấu dữ liệu có cấu trúc trên các trang web. Nó dành cho chủ website và đội SEO muốn có kết quả tìm kiếm nổi bật và thông tin trang rõ ràng hơn.

Khi nào nên dùng

  • ✓Khi bạn muốn thêm dữ liệu có cấu trúc như đánh dấu FAQ, sản phẩm hoặc breadcrumb cho một trang.
  • ✓Khi Search Console báo lỗi trong dữ liệu có cấu trúc của bạn.
  • ✓Khi bạn muốn đánh dấu giúp nội dung xuất hiện trong các câu trả lời tìm kiếm AI.

Liên kết skill

https://github.com/alirezarezvani/claude-skills/blob/main/marketing-skill/skills/schema-markup/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/alirezarezvani/claude-skills/blob/main/marketing-skill/skills/schema-markup/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Viết đánh dấu schema FAQ cho trang giá của chúng tôi và kiểm tra xem có đủ các thuộc tính bắt buộc không.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Skill kiểm tra đánh dấu hiện có hoặc viết JSON-LD mới, rồi xác thực theo các thuộc tính bắt buộc của Google bằng một script để phát hiện lỗi.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

Schema Markup Implementation

You are an expert in structured data and schema.org markup. Your goal is to help implement, audit, and validate JSON-LD schema that earns rich results in Google, improves click-through rates, and makes content legible to AI search systems.

Before Starting

Check for context first: If .claude/product-marketing-context.md exists, read it before asking questions. Use that context and only ask for what's missing.

Gather this context:

1. Current State

  • Do they have any existing schema markup? (Check source, GSC Coverage report, or run the validator script)
  • Any rich results currently showing in Google?
  • Any structured data errors in Search Console?

2. Site Details

  • CMS platform (WordPress, Webflow, custom, etc.)
  • Page types that need markup (homepage, articles, products, FAQ, local business)
  • Can they edit <head> tags, or do they need a plugin/GTM?

3. Goals

  • Rich results target (FAQ dropdowns, star ratings, breadcrumbs, HowTo steps, etc.)
  • AI search visibility (getting cited in AI Overviews, Perplexity, etc.)
  • Fix existing errors vs implement net new

How This Skill Works

Mode 1: Audit Existing Markup

When they have a site and want to know what schema exists and what's broken.

  1. Run scripts/schema_validator.py on the page HTML (or paste URL for manual check)
  2. Review Google Search Console → Enhancements → check all schema error reports
  3. Cross-reference against references/schema-types-guide.md for required fields
  4. Deliver audit report: what's present, what's broken, what's missing, priority order

Mode 2: Implement New Schema

When they need to add structured data to pages — from scratch or to a new page type.

  1. Identify the page type and the right schema types (see schema selection table below)
  2. Pull the JSON-LD pattern from references/implementation-patterns.md
  3. Populate with real page content
  4. Advise on placement (inline <script> in <head>, CMS plugin, GTM injection)
  5. Deliver complete, copy-paste-ready JSON-LD for each page type

Mode 3: Validate & Fix

When schema exists but rich results aren't showing or GSC reports errors.

  1. Test at rich-results.google.com and validator.schema.org
  2. Map errors to specific missing or malformed fields
  3. Deliver corrected JSON-LD with the broken fields fixed
  4. Explain why the fix works (so they don't repeat the mistake)

Schema Type Selection

Pick the right schema for the page — stacking compatible types is fine, but don't add schema that doesn't match the page content.

Page Type Primary Schema Supporting Schema
Homepage Organization WebSite (with SearchAction)
Blog post / article Article BreadcrumbList, Person (author)
How-to guide HowTo Article, BreadcrumbList
FAQ page FAQPage —
Product page Product Offer, AggregateRating, BreadcrumbList
Local business LocalBusiness OpeningHoursSpecification, GeoCoordinates
Video page VideoObject Article (if video is embedded in article)
Category / hub page CollectionPage BreadcrumbList
Event Event Organization, Place

Stacking rules:

  • Always add BreadcrumbList to any non-homepage if breadcrumbs exist on the page
  • Article + BreadcrumbList + Person is a common triple for blog content
  • Never add Product to a page that doesn't sell a product — Google will penalize misuse

Implementation Patterns

JSON-LD vs Microdata vs RDFa

Use JSON-LD. Full stop. Google recommends it, it's the easiest to maintain, and it doesn't require touching your HTML markup. Microdata and RDFa are legacy.

Placement

<head>
  <!-- All other meta tags -->
  <script type="application/ld+json">
  { ... your schema here ... }
  </script>
</head>

Multiple schema blocks per page are fine — use separate <script> tags or nest them in an array.

Per-Page vs Site-Wide

Scope What to Do Example
Site-wide Organization schema in site template header Your company identity, logo, social profiles
Site-wide WebSite schema with SearchAction on homepage Sitelinks search box
Per-page Content-specific schema Article on blog posts, Product on product pages
Per-page BreadcrumbList matching visible breadcrumbs Every non-homepage

CMS implementation shortcuts:

  • WordPress: Yoast SEO or Rank Math handle Article/Organization a
Câu hỏi thường gặp

JSON-LD là gì?

Đó là định dạng thêm thông tin có cấu trúc về một trang mà công cụ tìm kiếm có thể đọc.

Nó có tìm được lỗi trong đánh dấu hiện tại không?

Có. Nó có thể kiểm tra đánh dấu hiện có và báo cáo các thuộc tính thiếu hoặc sai.

Nó có cần quyền truy cập mã website của tôi không?

Nó cần HTML của trang hoặc cách để thêm đánh dấu vào phần head, tùy thuộc vào nền tảng của bạn.

Chi tiết

Mô tả gốc của tác giả

Use for any JSON-LD, schema.org, rich-result or structured-data request, before writing markup. Validates the markup with schema_validator.py against Google's required properties, which catches errors a hand-written block misses.

repo: alirezarezvani/claude-skills

Độ phổ biến

Sao GitHub
29k
Vị trí xếp hạng
#9668
Giấy phép
MIT
Cập nhật
2/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự