Astro · AI Readiness

llms.txt in Astro

Publish AI crawler guidance describing your organization and canonical resources. Framework notes for Astro.

beginnerllmsai-crawlersguidanceai

Problem Overview

AI assistants and emerging crawlers often lack a dedicated guidance file for your brand. Without llms.txt, they guess from scattered pages.

Why It Matters

A well-structured llms.txt documents organization, summary, products, and preferred URLs — improving AI Readiness and reducing hallucinated links.

Framework-Specific Explanation

For Astro, add public/llms.txt for a static /llms.txt URL. MoneyGap CLI defaults to writing public/llms.txt for static serving.

Step-by-Step Solution

  1. Run moneygap generate llms (or create the file in the dashboard AI Readiness flow).
  2. Fill Organization, Summary, and Important URLs with absolute https links.
  3. Deploy so GET /llms.txt returns the file.
  4. Run moneygap validate llms and fix errors.

Code Examples

moneygap generate llms --out public/llms.txt
moneygap validate llms
moneygap scan

Common Mistakes

  • Empty or placeholder-only files
  • Relative URLs instead of absolute https:// links
  • Missing Organization / Summary / Important URLs sections
  • Never updating after product changes

Validation Checklist

  • [ ] File served at /llms.txt (or public/llms.txt in static apps)
  • [ ] Required sections present with real content
  • [ ] Absolute https URLs for key resources
  • [ ] Passes moneygap validate llms

AI Readiness Notes

llms.txt is a first-class AI Readiness signal in MoneyGap. Pair it with Organization and FAQ schema for stronger entity clarity.

Deployment Checklist

  • [ ] /llms.txt returns 200 with text/plain (or markdown)
  • [ ] Validation score ≥ 70
  • [ ] Update Information section refreshed on release

Browser Extension Tips

After go-live, share a report and point teammates to AI Readiness if the score is low.

Related Guides