Install any skill in seconds. Free to start, no credit card required.
Get Started Free →When the user wants to configure, audit, or optimize robots.txt. Also use when the user mentions "robots.txt," "crawler rules," "block crawlers," "AI crawlers," "GPTBot," "allow/disallow," "disallow path," "crawl directives," "user-agent," "block Googlebot," "fix robots.txt," "robots.txt blocking," or "search engine crawling." For indexing, use indexing.
.claude/skills/sediman-agent-robots-txt/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-02 | ✗→✓ | ▲ Improved | -1% | 0% |
| case-04 | ✗→✓ | ▲ Improved | 109% | 0% |
| case-05 | ✗→✓ | ▲ Improved | 124% | 0% |
| case-08 | ✗→✓ | ▲ Improved | 91% | 0% |
| case-09 | ✗→✓ | ▲ Improved | 180% | 0% |
Guides configuration and auditing of robots.txt for search engine and AI crawler control.
When invoking: On first use, if helpful, open with 1–2 sentences on what this skill covers and why it matters, then provide the main output. On subsequent use or when the user asks to skip, go directly to the main output.
Check for project context first: If .claude/project-context.md or .cursor/project-context.md exists, read it for site URL and indexing goals.
Identify:
https://example.com)| Point | Note | |-------|------| | Purpose | Controls crawler access; does NOT prevent indexing (disallowed URLs may still appear in search without snippet) | | Advisory | Rules are advisory; malicious crawlers may ignore | | Public | robots.txt is publicly readable; use noindex or auth for sensitive content. See indexing |
| Tool | Controls | Prevents indexing? | |------|----------|-------------------| | robots.txt | Crawl (path-level) | No—blocked URLs may still appear in SERP | | noindex (meta / X-Robots-Tag) | Index (page-level) | Yes. See indexing | | nofollow | Link equity only | No—does not control indexing |
| Use | Tool | Example | |-----|------|---------| | Path-level (whole directory) | robots.txt | Disallow: /admin/, Disallow: /api/, Disallow: /staging/ | | Page-level (specific pages) | noindex meta / X-Robots-Tag | Login, signup, thank-you, 404, legal. See indexing for full list | | Critical | Do NOT block in robots.txt | Pages that use noindex—crawlers must access the page to read the directive |
Paths to block in robots.txt: /admin/, /api/, /staging/, temp files. Paths to use noindex (allow crawl): /login/, /signup/, /thank-you/, etc.—see indexing.
| Item | Requirement | |------|-------------| | Path | Site root: https://example.com/robots.txt | | Encoding | UTF-8 plain text | | Standard | RFC 9309 (Robots Exclusion Protocol) |
| Directive | Purpose | Example | |-----------|---------|---------| | User-agent: | Target crawler | User-agent: Googlebot, User-agent: * | | Disallow: | Block path prefix | Disallow: /admin/ | | Allow: | Allow path (can override Disallow) | Allow: /public/ | | Sitemap: | Declare sitemap absolute URL | Sitemap: https://example.com/sitemap.xml | | Clean-param: | Strip query params (Yandex) | See below |
| Do not block | Reason | |--------------|--------| | CSS, JS, images | Google needs them to render pages; blocking breaks indexing | | /_next/ (Next.js) | Breaks CSS/JS loading; static assets in GSC "Crawled - not indexed" is expected. See indexing | | Pages that use noindex | Crawlers must access the page to read the noindex directive; blocking in robots.txt prevents that |
Only block: paths that don't need crawling: /admin/, /api/, /staging/, temp files.
robots.txt is effective for all measured AI crawlers. Set rules per user-agent; check each vendor's docs for current tokens.
| User-agent | Purpose | Typical | Notes | |------------|---------|---------|-------| | OAI-SearchBot | ChatGPT search | Allow | Respects robots.txt | | GPTBot | OpenAI training | Disallow | Respects robots.txt; shares crawl data with OAI-SearchBot if both allowed | | ChatGPT-User | User-initiated browsing | N/A | No longer respects robots.txt (Dec 2025); use server-side controls instead | | Claude-SearchBot | Claude search | Allow | Respects robots.txt | | ClaudeBot | Anthropic training | Disallow | Respects robots.txt | | PerplexityBot | Perplexity search | Allow | Respects robots.txt | | Google-Extended | Gemini training | Disallow | Respects robots.txt | | CCBot | Common Crawl (LLM training) | Disallow | Respects robots.txt | | Bytespider | ByteDance | Disallow | Respects robots.txt | | Meta-ExternalAgent | Meta | Disallow | Respects robots.txt | | AppleBot | Apple (Siri, Spotlight); renders JS | Allow for indexing | Respects robots.txt |
Allow vs Disallow: Allow search/indexing bots (OAI-SearchBot, Claude-SearchBot, PerplexityBot); Disallow training-only bots (GPTBot, ClaudeBot, CCBot) if you don't want content used for model training.
Important — ChatGPT-User exemption: As of December 2025, ChatGPT-User no longer respects robots.txt directives. OpenAI considers it a proxy for human-initiated browsing. If you need to block it, use server-side controls (WAF rules, IP rate-limiting), not robots.txt. See site-crawlability for AI crawler optimization (SSR, URL management).
Clean-param: utm_source&utm_medium&utm_campaign&utm_term&utm_content&ref&fbclid&gclid| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-01 | fail→fail | 23,488 | 14,515 | -38% | 1 | 1 | 0% | 3,883 | 4,182 | +8% | 0 | 0 | — |
case-02 | fail→pass | 22,774 | 12,035 | -47% | 1 | 1 | 0% | 3,945 | 3,909 | -1% | 0 | 0 | — |
case-03 | fail→fail | 20,162 | 12,159 | -40% | 1 | 1 | 0% | 3,479 | 3,750 | +8% | 0 | 0 | — |
case-04 | fail→pass | 10,077 | 11,274 | +12% | 1 | 1 | 0% | 1,673 | 3,500 | +109% | 0 | 0 | — |
case-05 | fail→pass | 9,856 | 10,685 | +8% | 1 | 1 | 0% | 1,543 | 3,459 | +124% | 0 | 0 | — |
case-06 | pass→pass | 11,584 | 9,940 | -14% | 1 | 1 | 0% | 2,013 | 3,384 | +68% | 0 | 0 | — |
case-07 | fail→fail | 5,782 | 6,361 | +10% | 1 | 1 | 0% | 930 | 2,658 | +186% | 0 | 0 | — |
case-08 | fail→pass | 9,448 | 6,615 | -30% | 1 | 1 | 0% | 1,470 | 2,814 | +91% | 0 | 0 | — |
case-09 | fail→pass | 6,964 | 8,015 | +15% | 1 | 1 | 0% | 1,102 | 3,085 | +180% | 0 | 0 | — |
case-10 | pass→pass | 13,261 | 9,506 | -28% | 1 | 1 | 0% | 2,044 | 3,238 | +58% | 0 | 0 | — |
case-11 | pass→pass | 9,697 | 7,064 | -27% | 1 | 1 | 0% | 1,575 | 2,848 | +81% | 0 | 0 | — |
case-12 | pass→pass | 10,925 | 7,586 | -31% | 1 | 1 | 0% | 1,732 | 2,886 | +67% | 0 | 0 | — |
case-13 | pass→pass | 8,369 | 8,487 | +1% | 1 | 1 | 0% | 1,320 | 3,110 | +136% | 0 | 0 | — |
case-14 | pass→pass | 2,801 | 8,255 | +195% | 1 | 1 | 0% | 408 | 3,162 | +675% | 0 | 0 | — |
case-15 | pass→pass | 13,298 | 8,264 | -38% | 1 | 1 | 0% | 2,170 | 3,042 | +40% | 0 | 0 | — |
case-16 | pass→pass | 6,565 | 7,971 | +21% | 1 | 1 | 0% | 1,040 | 2,951 | +184% | 0 | 0 | — |
case-17 | pass→pass | 13,270 | 7,611 | -43% | 1 | 1 | 0% | 2,082 | 3,036 | +46% | 0 | 0 | — |
case-18 | pass→pass | 5,841 | 5,594 | -4% | 1 | 1 | 0% | 893 | 2,636 | +195% | 0 | 0 | — |
case-19 | pass→pass | 12,798 | 12,563 | -2% | 1 | 1 | 0% | 1,992 | 3,675 | +84% | 0 | 0 | — |
case-20 | pass→pass | 4,583 | 6,293 | +37% | 1 | 1 | 0% | 711 | 2,734 | +285% | 0 | 0 | — |
case-21 | pass→pass | 3,620 | 5,567 | +54% | 1 | 1 | 0% | 709 | 2,671 | +277% | 0 | 0 | — |
case-22 | pass→pass | 3,777 | 5,662 | +50% | 1 | 1 | 0% | 607 | 2,548 | +320% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 22 cases were attempted. The headline lift of +23 percentage points is the difference between those two pass rates over the 22 comparable cases.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.