astro-seo-geo

Installation
SKILL.md

Astro SEO & AI-Search (GEO) Guide (rankcli)

Astro ships zero-JS static HTML by default — keep its SEO and AI-citation advantage intact with these checks.

1. Audit your local dist/ build or live URL

npx -y @rankcli/cli audit --dir dist --url https://yourdomain.com -o llm

2. Idiomatic Astro SEO & GEO checklist

  1. Configure site in astro.config.mjs: Required for canonical URLs and @astrojs/sitemap.
  2. Install @astrojs/sitemap: Run npx astro add sitemap so every static route and Content Collection entry is indexed.
  3. Centralize <head> in BaseLayout.astro: Emit unique <title>, <meta name="description">, <link rel="canonical" href={new URL(Astro.url.pathname, Astro.site)} />, and Open Graph tags.
  4. Avoid unnecessary client:load directives: Prefer static Astro components or client:visible for below-the-fold islands to protect Core Web Vitals.
  5. Add public/robots.txt and public/llms.txt: Explicitly allow OAI-SearchBot, Claude-SearchBot, and PerplexityBot and reference https://yourdomain.com/sitemap-index.xml.

3. Reference

Installs
1
GitHub Stars
1
First Seen
2 days ago