AI search and agent readiness JavaScript

astro-ai-readyGenerate llms.txt and llms-full.txt for any Astro site on every build

astro-ai-ready is an Astro integration that reads your built pages and writes llms.txt, llms-full.txt and per-page Markdown copies, so AI assistants can read your site. Zero config and zero dependencies.

Astro npx astro add astro-ai-ready

Free · MIT license · runs on your machine · no signup npm ↗GitHub ↗

How astro-ai-ready works

Writing llms.txt by hand works until the site changes. astro-ai-ready builds it from your real pages every time you run astro build. It lists every page with its title and description, grouped into sections like Blog, Services or Products, and it writes llms-full.txt with the clean text of every page, without navigation, footers or scripts.

It skips 404 pages, noindex pages, redirects, duplicate pages whose canonical points elsewhere, carts and account pages. If you already have your own llms.txt endpoint, it leaves it alone unless you say otherwise.

To be clear about what you get: llms.txt is not a ranking factor, and Google Search does not read it. It is worth two minutes because it costs nothing and gives AI agents a clean summary of your site. For actual AI visibility, check crawler access and schema with ai-ready-audit.

The same generator works on any static build folder, so Hugo, Eleventy and Next.js export users can run it with npx too.

Try it

npx astro add astro-ai-ready

Free and open source under the MIT license. Want this done for your store, or need help with the findings? Book a call.

Agent skill included

Let your AI coding agent run astro-ai-ready for you

The astro-ai-ready-setup skill works with Claude Code, Codex, Cursor, Gemini CLI and other agents that read SKILL.md files. It runs the tool, explains each finding in plain words and helps you fix it.

npx skills add MuhammadAhmadZia/astro-ai-ready --skill astro-ai-ready-setup

Using the Claude or ChatGPT apps instead? Download the skill ZIP from the GitHub releases page and upload it under Skills.

See all 30 agent skills →

Questions about astro-ai-ready

Does it slow down my build?

No. It reads the HTML files Astro already wrote, which takes a fraction of a second for most sites.

Which Astro versions work?

It was tested with Astro 7 and uses only stable hooks that also exist in Astro 4, 5 and 6.

Will llms.txt improve my Google rankings?

No. Google says Search does not use llms.txt, and most llms.txt files are never requested by AI crawlers. It is a free, harmless map that AI coding tools and agents pointed at your site can read. Crawler access, server-rendered text and schema markup matter more.

Can it write Markdown copies of each page?

Yes, with markdownPages: true. Copies go at the page URL plus .md, as the llms.txt proposal suggests. Send a noindex header for .md files so search engines do not index the duplicates.

UN Sustainable Development Goals

How each tool maps to SDG targets →

Want this set up and tuned for your store?

The tools are free. If you would rather have the checks run, the findings fixed and the results measured for you, that is what I do for clients.