plugins/astro-expert/skills/astro-seo/SKILL.md
SEO for Astro sites — meta tags, Open Graph, Twitter Cards, JSON-LD structured data, sitemap, RSS, robots.txt, canonical URLs, hreflang, Core Web Vitals. Use when optimizing search engine visibility or social sharing.
npx skillsauth add fusengine/agents astro-seoInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Complete SEO strategy for Astro 6 sites — zero JS by default makes Astro naturally SEO-friendly.
Before ANY implementation, use TeamCreate to spawn 3 agents:
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 vulnerabilitiesdevelopment
Use when optimizing entity-based / semantic SEO 2026. Covers entity maps, Google Knowledge Graph resolution, salience scoring, passage-level ranking, about/sameAs/knowsAbout schema, Cloud Natural Language API validation.
development
Use when running SEO, GEO, schema, Core Web Vitals, sitemap, hreflang, E-E-A-T, AI Overviews, technical SEO, or structured data tasks. Covers full-site audits, single-page analysis, schema markup, content quality, AI search optimization, local SEO, sitemap/robots, internal linking, semantic clustering, and search experience.
development
Use when optimizing search experience (SXO). Covers intent matching, user personas, user stories, page-type analysis, dwell time, scroll depth, pogo-sticking prevention.
development
Use when optimizing local SEO. Covers Google Business Profile, NAP consistency, citations, reviews acquisition, Local Pack ranking, location pages, LocalBusiness schema.