seo-crawlability
Skill0 starsChanged 48 days agoMITView on GitHub
Serve dynamic robots.txt, sitemap.xml and llms.txt from Laravel with absolute URLs from APP_URL, keep staging sites out of Google, and mark pages noindex with a meta tag plus X-Robots-Tag header. Use when adding SEO basics, a sitemap, robots.txt, llms.txt for AI assistants, fixing pages indexed from staging, or preparing a Laravel site for Google Search Console.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- Hainrixz/claude-seo-aitheir own version, first seen Nov 1, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- Hainrixz/claude-seo-ai★ 81same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository11 other files it gives its agents.
- bot-proof-formsSkill
- image-uploadsSkill
- inertia-admin-tablesSkill
- json-ld-structured-dataSkill
- mpesa-stk-pushSkill
- paypal-checkoutSkill
- pre-push-checksSkill
- secrets-scannerSkill
- shared-network-rate-limitsSkill
- social-share-previewsSkill
- wordpress-migrationSkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 21
Add require __DIR__.'/seo.php'.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
SEO crawlability: robots.txt, sitemap.xml, llms.txt
Three routes that tell crawlers what to index, plus a middleware for what not to index.
/robots.txt: in production, disallows private paths and links the sitemap. Everywhere else it disallows everything, so a staging or preview copy can never compete with the real site in search results./sitemap.xml: the home page, named routes from config, and any content you register. Absolute URLs fromAPP_URL, withlastmoddates./llms.txt: a plain-text summary for AI assistants, following the llmstxt.org format.NoIndexmiddleware:noindex, followas both a meta-tag variable ($robots) and anX-Robots-Tagheader.
Install
- Copy the files in
stubs/to the same paths, dropping.stub:config/seo.php,app/Support/Seo/Sitemap.php,app/Http/Controllers/SeoController.php,app/Http/Middleware/NoIndex.php,routes/seo.php,resources/views/seo/*.blade.php,tests/Feature/SeoCrawlabilityTest.php. - Add
require __DIR__.'/seo.php';toroutes/web.php. - Delete
public/robots.txt. The web server serves static files before Laravel, so the dynamic route never runs while that file exists. This is the most common reason "my robots.txt changes do nothing". - Set
APP_URLcorrectly in production, includinghttps://. Every URL in the sitemap comes from it. - List public pages in
config/seo.php→sitemap_routes, and register database content inAppServiceProvider::boot():
Sources are closures, so nothing is queried untiluse App\Support\Seo\Sitemap; app(Sitemap::class)->add(fn () => Post::query()->whereNotNull('published_at')->get() ->map(fn (Post $post) => ['loc' => route('posts.show', $post), 'lastmod' => $post->updated_at]));/sitemap.xmlis requested. - Fill in
seo.llms(summary, key facts, pages) so AI assistants describe the site correctly. - In your layout's
<head>:
Then put<meta name="robots" content="{{ $robots ?? 'index, follow, max-image-preview:large' }}">->middleware(NoIndex::class)on pages that shouldn't be in search results: thank-you pages, internal search results, demo or template pages. - Submit
https://your-site/sitemap.xmlin Google Search Console and Bing Webmaster Tools.
Rules
- robots.txt is advice, not security. It asks polite crawlers not to crawl, and it publishes the paths it lists. Private areas still need auth.
Disallowdoesn't remove a page from Google. A disallowed page can still be indexed from links, and Google can't see anoindexon a page it isn't allowed to crawl. To remove a page, allow crawling and sendnoindex.- Only list canonical, indexable, 200-status URLs in the sitemap: no redirects, drafts or noindex pages. Keep it under 50,000 URLs per file.
- Blade and XML: a literal
<?xmlin a Blade file is parsed as PHP, so the view builds it from pieces. - llms.txt is text/plain. Print values with
{!! !!}. With{{ }}, apostrophes come out as'. - Sitemap is a singleton (
#[Singleton], Laravel 12+). On Laravel 11, register it with$this->app->singleton(Sitemap::class), or your sources vanish. - Pair with
json-ld-structured-data(rich results) andsocial-share-previews(link previews). Together they cover what search engines and social apps read.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

