Optimizing My Site for ChatGPT, Claude, and Perplexity in One Claude Code Session

Generative engine optimization (GEO) with Claude Code: dynamic llms.txt endpoints, AI-crawler robots.txt, and JSON-LD schema across every page. One session, deployed.

Building llms.txt as an Astro endpoint so it never goes stale

A static llms.txt is a list you forget to update. An endpoint that queries your content collections rebuilds the index on every deploy. One gotcha: a file in public/ silently shadows it.