SEO
by addyosmani / web-quality-skills
Optimize for search engine visibility and ranking.
Use when optimizing SEO for an Astro site: meta tags, Open Graph, JSON-LD structured data, sitemap/RSS, canonical URLs, hreflang, Core Web Vitals.
Listed ·Updated
Install data from skills.sh
Astro SEO is a Technical SEO skill for AI agents, published in the seoskills.sh catalog. Reach for it when your work involves crawlability, indexing, site architecture, Core Web Vitals, and log-file analysis. Install it with one command and it runs inside your own agent, so the work happens in your workflow, not a separate SEO tool.
Does not cover locale routing mechanics beyond hreflang tag generation (astro-i18n), Content Layer schema design (astro-content), or image-specific optimization like <Image />/<Picture /> (astro-assets) — those are separate skills.
Complete SEO strategy for Astro 7 sites — zero JS by default makes Astro naturally SEO-friendly.
Before ANY implementation, spawn 3 agents in parallel, one Agent call each with a name:
After implementation, run fuse-ai-pilot:sniper for validation.
| Feature | Benefit |
|---|---|
| Zero JS by default | Pure HTML for crawlers, instant indexing |
| Static output | Sub-second TTFB, top Core Web Vitals |
Astro.site | Canonical URL construction built-in |
| Islands Architecture | Only hydrate interactive parts |
Create a reusable <SEO /> or <Head /> component accepting title, description, og, canonical props. Place in all layouts. Use Astro.site for absolute URL construction.
Always construct canonicals with Astro.site:
const canonical = new URL(Astro.url.pathname, Astro.site);
Inject JSON-LD via <script type="application/ld+json" set:html={JSON.stringify(schema)} />. Use set:html to avoid XSS — never template string interpolation.
| Topic | Reference | When to Consult |
|---|---|---|
| Meta Tags & OG | meta-tags.md | Setting up head metadata |
| JSON-LD | structured-data.md | Rich snippets, schema.org |
| Sitemap & RSS | sitemap-rss.md | Search indexing, feeds |
| Canonical & hreflang | canonical-hreflang.md | Duplicate content, i18n |
| Core Web Vitals | core-web-vitals.md | LCP, CLS, FID optimization |
| Template | When to Use |
|---|---|
| seo-head.md | Reusable SEO head component |
| json-ld.md | JSON-LD BlogPosting, WebSite schemas |
Astro.site for og:image and canonicalsset:html for JSON-LD - Prevents XSS vulnerabilitiesNot using the CLI? Copy the SKILL.md and paste it straight into ChatGPT, Claude, or any agent.