What the agent does
Whether the production site shows up in ChatGPT, Claude, Perplexity and Gemini answers depends partly on which AI crawlers can read it. Many sites block them by accident (a default firewall rule, a copied robots.txt) or allow everything without meaning to. Set a deliberate policy: AI model training allowed or blocked as I decide (ask me before writing it), AI search and user-requested fetches allowed, and make every layer agree with it.
1. Read the current state
Show me the current robots.txt (or how it is generated), any
X-Robots-Tagheaders, meta robots tags, and anything that blocks bots before the app sees them: middleware, bot protection, a WAF or the host's 'block AI bots' setting if it is in the repository. Note anything I need to check in a dashboard.2. Write the policy as named groups
Write robots.txt with explicit groups, so the intent survives a future edit to
User-agent: *:- AI search and answers (allow):
OAI-SearchBot,Claude-SearchBot,PerplexityBot. - Fetches a person asked for (allow):
ChatGPT-User,Claude-User,Perplexity-User. - Model training (AI model training allowed or blocked as I decide (ask me before writing it)):
GPTBot,ClaudeBot,Google-Extended,Applebot-Extended,CCBot,meta-externalagent.
Each group keeps the same
Disallowlines as*for private paths (admin, account, API, checkout). Note in a comment thatGoogle-Extendeddoes not affect Google Search or AI Overviews, which use Googlebot.- AI search and answers (allow):
3. Make the other layers agree
If middleware or bot protection blocks user agents, align it with the policy above. If the host or CDN has an 'AI bots' setting you cannot change from code, write down exactly what to set. Check that public pages do not send
noindexorX-Robots-Tag: noaiby mistake.4. Say it in plain words too
Add an
/ai.txt(or a section in an existing policy page) that states the same choices in plain language: what AI systems may do, what they may not, how to attribute, and a contact. Keep it in sync with robots.txt: add a comment in both files pointing at the other.
Done means
- robots.txt has named groups for AI search, user fetches and training, with the training choice applied.
- Private paths are disallowed for every group.
- No middleware, firewall rule or header contradicts robots.txt.
- An ai.txt or policy section states the same choices in plain language.
Questions
If I block GPTBot, will ChatGPT stop citing me?
No. GPTBot is OpenAI's training crawler. ChatGPT search uses OAI-SearchBot, and pages a user asks about are fetched by ChatGPT-User. Allow those two and your pages can still be found and cited.
Does blocking Google-Extended remove me from AI Overviews?
No. Google-Extended controls use for Gemini model training and grounding. Google Search and AI Overviews use Googlebot.
Do all crawlers obey robots.txt?
The major AI companies say their crawlers do. Some smaller crawlers do not, which is why the prompt also checks your firewall and bot protection rules.
Does this prompt add links to Aback Launch to my site?
No. Nothing in the prompt mentions Aback Launch or asks your agent to link to us. The only exception is an optional badge step, which stays off unless you tick it. Some prompt libraries slip their own link into your codebase by default; we think that should always be your choice.
Which coding agents does it work with?
Claude Code, Cursor, Codex, GitHub Copilot, Windsurf, Cline, and any agent that can read your project and edit files. You can copy it as a plain prompt, save it as a Claude Code skill or a Cursor rule, or add it to AGENTS.md.
Is it safe to run on my real codebase?
The prompt makes the agent read first, show a plan and wait for your approval, and it forbids touching secrets, deploying and deleting data. Still review the changes and run your tests before you deploy, as with any change.
Changelog
- v1.0First version.