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.mdCopy 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
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
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.txtat/robots.txton 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.
Popularity
- GitHub stars
- 75k
- Ranking position
- #3005
- License
- MIT
- Updated
- 10/31/2026
Comments
- …
More skills from this repository
frontendchecklist
75kChecks frontend code and live pages against 380+ rules for accessibility, speed, SEO and security, using a command-line tool.
frontend-checklist-global
75kAudits a frontend project against all 386 Front-End Checklist rules, and gives a specific fix for each issue found.
404-page
75kChecks that your missing-page screen offers helpful links and returns a real 404 status, to help lost visitors find their way.
about-page
75kReviews whether your site has a clear About page that explains who runs it, to build trust with visitors and search engines.
Similar skills
competitive-platform-analysis
280kHelps understand your competitors. It identifies, categorizes, and filters competing companies before any deeper analysis.
competitive-report-structure
280kCreates comprehensive competitor reports. It combines information to show the overall landscape, recommendations, and helps align the team.
lead-intelligence
280kHelps your agent find and contact important people. It analyzes leads, suggests approaches, and manages outreach via email and social media.