Crawl control is not index control
The skill treats robots.txt as crawl control only: a disallowed URL can still appear in search results without a snippet. Keeping a page out of the index is a job for noindex (meta tag or X-Robots-Tag). nofollow only affects link equity. Because robots.txt is public, sensitive content needs noindex or a login rather than a Disallow line.
What to block and what to leave open
Path-level blocks are for folders that do not need crawling, such as /admin/, /api/, /staging/ and temp files. Page-level exclusions such as /login/, /signup/ and /thank-you/ get noindex and stay crawlable. CSS, JS, images and Next.js /_next/ are never blocked, because Google needs them to render pages.
Format rules that cause silent errors
The file lives at the site root, as UTF-8 plain text, following RFC 9309. Disallow and Allow take root-relative paths, so a full URL there is wrong, and Sitemap needs an absolute URL. The more specific path wins, so Allow: /shop/shoes/ overrides Disallow: /shop/. Wildcards are * for any sequence and $ for an exact ending.
AI crawler table
The skill lists each AI user agent with a typical setting: OAI-SearchBot, Claude-SearchBot, Claude-User, PerplexityBot and AppleBot are allowed, while GPTBot, ClaudeBot, Google-Extended, CCBot, Bytespider and Meta-ExternalAgent are blocked. The old anthropic-ai token is retired and has no effect. ChatGPT-User stopped following robots.txt in December 2025, so blocking it needs server-side controls such as WAF rules.
Optional Yandex parameter cleanup
For sites that care about Yandex, the skill can add a Clean-param line that strips tracking parameters such as utm_source, utm_medium, utm_campaign, fbclid and gclid from crawled URLs
Rules it keeps
Thresholds and limits written into the skill, each with the reason behind it
Disallow and Allow take root-relative paths that start with /, and the Sitemap line takes an absolute URL
A full URL in a Disallow line or a relative Sitemap line is a common error that makes the rule fail
Pages that use noindex are never blocked in robots.txt
Crawlers must access the page to read the noindex directive
CSS, JavaScript and images stay unblocked, because Google needs them to render and index pages
Pages that cannot be rendered can be misread or left out of the index
Only paths that need no crawling get blocked, such as /admin/, /api/, /staging/ and temporary files
Every other path should stay open so search and AI search bots can reach it
Path matching is case-sensitive: Disallow: /PDF/ does not match /pdf/
A rule with the wrong case looks correct but blocks nothing
What it needs and what comes back
You give it
- Site URL
- Current robots.txt, if any
- Paths to keep out of crawling
- Stance on AI training bots
- Search Console list of pages blocked by robots.txt (for audits)
It hands back
A current-state summary when auditing, a complete recommended robots.txt, a compliance checklist and a reference link to Google's robots.txt documentation
When it helps
- Search Console shows pages as blocked by robots.txt
- You want ChatGPT and Perplexity to cite you without feeding model training
- You are launching a site or moving off a staging domain
Prompts to start with
Check our robots.txt for mistakes and give me a fixed version
Write a robots.txt for example.com on Next.js that blocks /admin/ and /api/, allows AI search bots and blocks training bots
Search Console says 340 pages are blocked by robots.txt, so which rule is doing it and is that a problem?
Adding it to Claude
claude.ai
Download robots-txt-setup.zip, upload it still zipped in Settings, Capabilities, Skills and ask for the job in a new chat, as Anthropic's help article on using skills in Claude shows
Claude Code
unzip robots-txt-setup.zip -d ~/.claude/skills/To use it in one project only, move the folder inside the zip (it is called robots-txt) into that project's .claude/skills/, as the Claude Code skills docs describe
Inside the zip
- robots-txt/
- CHANGES.md2 KB
- SKILL.md13 KB
Questions
Will a Disallow line remove a page from Google?
No, it stops crawling and a blocked URL can still show up without a snippet, so to keep a page out of the index use noindex and leave the page crawlable
Can robots.txt block ChatGPT browsing?
Since December 2025 ChatGPT-User no longer follows robots.txt, which still works for GPTBot and OAI-SearchBot, so blocking user-initiated browsing needs server-side controls such as firewall rules