Skip to content
Skillpedia
SEO75k · #3005

robots-txt

What it does

This skill checks the robots.txt file at the root of a website and makes sure it is valid and does not block the whole site. It is for site owners who want search engines to reach their content.

When to use it

  • ✓When you ask the agent to create or review the robots.txt file for your website.
  • ✓When your site is missing from search and you suspect a blocking rule in robots.txt.
  • ✓When you launch a new site and want a clean robots.txt with your sitemap link.

Skill link

https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/robots-txt/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/robots-txt/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

Example of what to ask your AI

“Can you check my robots.txt file and make sure it does not block my site and points to my sitemap?”

5 new skills a week. 1 minute to read.

How it works

The agent fetches the robots.txt file and checks that it returns a working response with correct directives. It looks for accidental full-site blocks and adds a Sitemap line pointing to your production sitemap.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

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

FAQ

What happens if robots.txt blocks everything?

The skill says an accidental Disallow of the whole site can remove it from search.

Should CSS and JavaScript be blocked?

No. The skill says those files must stay accessible so search engines can render the pages.

Does robots.txt control indexing?

It controls crawling. The skill explains that noindex tags on pages are the way to control indexing.

Details

Original description by the author

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

repo: thedaviddias/Front-End-Checklist

Popularity

GitHub stars
75k
Ranking position
#3005
License
MIT
Updated
10/31/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills