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
- Configure
siteinastro.config.mjs: Required for canonical URLs and@astrojs/sitemap. - Install
@astrojs/sitemap: Runnpx astro add sitemapso every static route and Content Collection entry is indexed. - Centralize
<head>inBaseLayout.astro: Emit unique<title>,<meta name="description">,<link rel="canonical" href={new URL(Astro.url.pathname, Astro.site)} />, and Open Graph tags. - Avoid unnecessary
client:loaddirectives: Prefer static Astro components orclient:visiblefor below-the-fold islands to protect Core Web Vitals. - Add
public/robots.txtandpublic/llms.txt: Explicitly allowOAI-SearchBot,Claude-SearchBot, andPerplexityBotand referencehttps://yourdomain.com/sitemap-index.xml.