robots-txt

Configure and audit robots.txt directives for crawler access.

872|122|Updated Feb 26, 2026
One-click install
npx skills add https://github.com/kostja94/marketing-skills --skill robots-txt
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: robots-txt
Source: https://github.com/kostja94/marketing-skills/tree/main/skills/seo/technical/robots
Command: npx skills add https://github.com/kostja94/marketing-skills --skill robots-txt

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps you manage how search engines and AI crawlers access your website by configuring and auditing your robots.txt file.

Core Features & Use Cases

  • Configure robots.txt: Set rules for Disallow, Allow, Sitemap, and Clean-param directives.
  • Audit for accidental blocks: Identify and fix issues where important content might be unintentionally blocked from crawlers.
  • AI Crawler Strategy: Define specific rules for AI bots like GPTBot and ClaudeBot.
  • Use Case: Ensure that your staging environment is not indexed by search engines by adding a Disallow: /staging/ rule to your robots.txt.

Quick Start

Configure the robots.txt file to disallow all crawlers from the /admin/ path and specify the sitemap location.

Frequently Asked Questions about robots-txt

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I block AI crawlers like GPTBot and ClaudeBot from scraping my site?

To block AI crawlers like GPTBot and ClaudeBot, you configure specific Disallow directives in your robots.txt file. This Skill helps you define targeted rules for AI bots to prevent them from accessing your website paths.

Why are my important website pages not showing up in search results?

Your pages might be missing from search results due to accidental blocks in your robots.txt file. Auditing your directives identifies and fixes issues where important content is unintentionally blocked from search engine crawlers.

How do I prevent search engines from indexing my staging environment?

To prevent search engines from indexing your staging environment, add a `Disallow: /staging/` rule to your robots.txt file. This ensures crawlers are explicitly blocked from accessing and indexing your staging paths.

What is the best way to configure robots.txt directives for crawlability?

The best way to configure robots.txt for crawlability is by using Allow, Disallow, Sitemap, and Clean-param directives. This ensures compliance with RFC 9309 and follows best practices for optimal search engine indexation.

Does this robots.txt configuration approach support the Sitemap directive?

Yes, this robots.txt configuration approach supports the Sitemap directive along with Disallow, Allow, and Clean-param directives. You can specify your sitemap location to ensure search engines discover your important URLs efficiently.

What happens if my robots.txt file does not comply with RFC 9309?

If your robots.txt file does not comply with RFC 9309, crawlers may ignore your directives entirely or interpret them inconsistently. Ensuring compliance guarantees crawlability and indexation rules are respected by search engines and AI bots.