Chuyển đến nội dung
Skillpedia
SEO75k · #3088

website-search

Skill này làm gì

Skill này thêm dữ liệu có cấu trúc cho Google biết về tính năng tìm kiếm của website. Nó dành cho chủ website có hộp tìm kiếm nội bộ.

Khi nào nên dùng

  • ✓Khi một website có hộp tìm kiếm nội bộ nhưng chưa có dữ liệu có cấu trúc cho nó.
  • ✓Khi trang chủ nên đủ điều kiện hiển thị hộp tìm kiếm sitelinks trên Google.
  • ✓Khi kiểm tra vì sao Google không hiển thị hộp tìm kiếm cho một truy vấn thương hiệu.

Liên kết skill

https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/website-search/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/thedaviddias/Front-End-Checklist/blob/main/skills/website-search/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

“Website của tôi có hộp tìm kiếm. Làm sao để báo cho Google biết để nó có thể hiện trong kết quả tìm kiếm thương hiệu của tôi?”

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

Cách hoạt động

Agent thêm một khối WebSite JSON-LD vào trang chủ với một hành động tìm kiếm. Hành động này bao gồm mẫu URL tìm kiếm có chỗ giữ chỗ cho từ khóa tìm kiếm.

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.

WebSite Search Schema

The Sitelinks Searchbox lets users search your site directly from Google's search results page, reducing friction for brand-aware users and increasing the click-through quality from branded queries.

Quick Reference

  • Add WebSite schema with SearchAction to signal that your site has search functionality to Google
  • This enables Google to show a Sitelinks Searchbox below your brand's search result for branded queries
  • The Searchbox only appears at Google's discretion — the schema is a signal, not a guarantee
  • The query-input property must follow the format required name=search_term_string

Check

Check the homepage (or primary entry URL) for a <script type='application/ld+json'> block with "@type": "WebSite" and a potentialAction of type SearchAction. Verify target is a valid search URL template and query-input is correctly set.

Fix

Add WebSite JSON-LD schema to the homepage <head>. Set url to the canonical-url homepage URL. Set potentialAction with SearchAction, target pointing to your search results URL with {search_term_string} placeholder, and query-input as required name=search_term_string.

Explain

Explain how the WebSite SearchAction schema works, what the Sitelinks Searchbox is, why Google may choose not to show it even with valid schema, and how to construct the search URL template.

Code Review

Review metadata generation, rendered HTML, structured data, and response headers related to WebSite Search Schema. Flag exact routes or templates where search-facing output violates the rule, and describe how to verify the final page output.


For full implementation details, code examples, and framework-specific guidance, see references/rule.md.

Rule page: https://frontendchecklist.io/rules/seo/website-search

Câu hỏi thường gặp

Google có luôn hiển thị hộp tìm kiếm không?

Không. Skill cho biết Google tự quyết định khi nào hiển thị, nên đánh dấu chỉ là tín hiệu chứ không phải đảm bảo.

Mẫu URL tìm kiếm là gì?

Đó là địa chỉ web của trang kết quả tìm kiếm, có chỗ giữ chỗ cho từ khóa tìm kiếm.

query-input nên dùng định dạng nào?

Skill cho biết nó phải theo định dạng bắt buộc name=search_term_string.

Chi tiết

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

Use when applies to sites with internal site search functionality. Use when optimizing branded search result appearance or adding structured data for the first time.

repo: thedaviddias/Front-End-Checklist

Độ phổ biến

Sao GitHub
75k
Vị trí xếp hạng
#3088
Giấy phép
MIT
Cập nhật
31/10/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ự