Astro Static SEO Site — Pacote de Contexto
Um pacote de contexto copiável que descreve um site SEO estático Astro para que um agente de IA possa trabalhar nele corretamente desde o primeiro prompt.
CursorClaude CodeCodex AstroTailwindTypeScript
Cole isso no início de uma tarefa para que o agente entenda o projeto antes de escrever qualquer coisa. Foi escrito para ser lido por humanos e pelo seu agente.
Contexto do Projeto
A content-driven static site built with Astro. No database, no server runtime.Content lives in Markdown/MDX under src/content and is rendered to static HTMLat build time. Deployed to Cloudflare Pages.Stack
Astro 6 (static output)MDX content collections (Content Layer API)Tailwind CSS v4 (via @tailwindcss/vite)Pagefind for static searchTypeScript (strict)Estrutura de Diretórios
src/content/ # MDX content, one folder per collectionsrc/content.config.tssrc/layouts/ # BaseLayout, ResourceLayoutsrc/pages/ # routes + .md/.json endpoints + llms.txtsrc/components/Convenções de Código
- Content is data: edits to copy should be MDX edits, not template changes.- Keep components in plain Astro; add a framework island only when needed.- Every resource page also emits a .md and .json version.- No client-side rendering of primary content — output HTML at build time.Limites de Tarefas de IA
- Do not add a server adapter or database.- Do not break the .md/.json/llms.txt endpoints.- Validate frontmatter against the zod schema in content.config.ts.llms.txt
This site publishes /llms.txt and a .md version of every page so agents canread content as clean Markdown instead of scraping HTML.