daikazu/robotstxt/robotstxt-configuration
Claude Code and agent skill by daikazu/robotstxt
- community
Checking that the SKILL.md file is still in the repository.
Configure the daikazu/robotstxt package - per-environment robots.txt rules, user-agent allow/disallow paths, sitemaps, Cloudflare Content Signals (search, ai-input, ai-train), blocking AI crawlers, and troubleshooting when /robots.txt shows the wrong content or 404s.
Install
npx vskill@latest install daikazu/robotstxt/robotstxt-configurationSKILL.md
robots.txt Configuration (daikazu/robotstxt)
When to use this skill
Use this skill when changing what /robots.txt returns, blocking or allowing crawlers (including AI crawlers), adding sitemaps, setting content signals, or debugging why /robots.txt doesn't reflect the config.
How it works
GET /robots.txt(route namerobots.txt) is handled by the package and returnstext/plain.- Output is built from
config('robotstxt.environments.' . config('app.env')). - Publish the config with
php artisan vendor:publish --tag="robotstxt-config". A published config replaces the package defaults entirely. - If the current environment isn't configured, or has no
paths, the output isUser-agent: */Disallow: /.
Configuration reference
Every key is optional.
Output order: Sitemaps, Host, policy comments, User-agent groups, custom text. Sections are separated by one blank line.
Content signals
- Config keys use underscores (
ai_input); output uses hyphens (ai-input). Content-Signallines are always written inside a User-agent group, right after theUser-agent:line.- A per-agent
content_signalsblock replaces the global signals for that agent. It doesn't merge with them. - To opt an agent out of the global signals, give it a
content_signalsblock with every value set tonull.
Produces:
Common tasks
- Block AI training but allow search: set the global
content_signalstosearch => true, ai_train => false. To block known AI crawlers outright as well, add apathsentry per agent (e.g.GPTBot,ClaudeBot,CCBot,Google-Extended) with'disallow' => ['/']. - Hide a non-production environment: leave it out of the config, or set
'paths' => ['*' => ['disallow' => ['/']]]. - Directives the config doesn't support (e.g.
Crawl-delay): put them incustom_text.
Troubleshooting
- Old or static content is served: delete
public/robots.txt. The web server serves it before the request reaches Laravel. - 404 status on Nginx (Forge, Herd): the server block usually has a
location = /robots.txtthat only serves static files. Change it to:
- Changes not showing: run
php artisan config:clear, since a cached config won't pick up edits toconfig/robotstxt.php. - Wrong environment's rules: check
APP_ENV. The environment key must match it exactly.
Testing
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingresources/boost/skills/robotstxt-configuration/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/daikazu/robotstxt/robotstxt-configuration)