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

robots-txt

Skill này làm gì

Skill này kiểm tra tệp robots.txt ở gốc website và đảm bảo nó hợp lệ, không chặn toàn bộ site. Skill dành cho chủ website muốn công cụ tìm kiếm tới được nội dung của họ.

Khi nào nên dùng

  • ✓Khi bạn yêu cầu agent tạo hoặc rà soát tệp robots.txt cho website của bạn.
  • ✓Khi site của bạn biến mất khỏi tìm kiếm và bạn nghi có quy tắc chặn trong robots.txt.
  • ✓Khi bạn ra mắt site mới và muốn một robots.txt gọn gàng có liên kết sitemap.

Liên kết skill

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

“Bạn có thể kiểm tra tệp robots.txt của tôi, đảm bảo nó không chặn site và trỏ tới sitemap của tôi không?”

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

Cách hoạt động

Agent tải tệp robots.txt và kiểm tra nó trả về phản hồi hoạt động với các chỉ thị đúng. Agent tìm các chặn toàn site vô tình và thêm dòng Sitemap trỏ tới sitemap production của bạn.

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.

Publish a robots.txt file

robots.txt is the first file crawlers fetch; misconfigured directives can silently block search engines from crawling your entire site, killing organic visibility.

Quick Reference

  • Serve a valid robots.txt at /robots.txt on the production domain, returning HTTP 200
  • Include a Sitemap: directive pointing to your XML sitemap
  • Never disallow crawling of CSS/JS assets that render your pages
  • Avoid blocking all crawlers with Disallow: / on a live site

Check

Fetch /robots.txt on the live domain and verify it returns HTTP 200, uses correct User-agent / Disallow / Allow syntax, and includes a Sitemap: directive pointing to the XML sitemap. Check for accidental Disallow: / directives.

Fix

Create or update robots.txt at the web root with valid directives. Add a live Sitemap: line for the production sitemap URL. Remove any Disallow: / rules that block the whole site or resources needed for rendering.

Explain

Explain how robots.txt controls crawler access, why an accidental Disallow: / can delist a site, and why CSS/JS must remain accessible for rendering-based indexing.

Code Review

Review metadata generation, rendered HTML, structured data, and response headers related to Publish a robots.txt file. 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/robots-txt

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

Điều gì xảy ra nếu robots.txt chặn tất cả?

Skill nói một Disallow vô tình cho toàn bộ site có thể khiến site biến mất khỏi tìm kiếm.

CSS và JavaScript có nên bị chặn không?

Không. Skill nói các tệp đó phải truy cập được để công cụ tìm kiếm có thể hiển thị trang.

robots.txt có kiểm soát lập chỉ mục không?

Nó kiểm soát việc thu thập. Skill giải thích rằng thẻ noindex trên trang là cách kiểm soát lập chỉ mục.

Chi tiết

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

Use when applies to any public website. Use when auditing technical SEO foundations or diagnosing crawl coverage gaps.

repo: thedaviddias/Front-End-Checklist

Độ phổ biến

Sao GitHub
75k
Vị trí xếp hạng
#3005
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ự