astro-seo

SEO markup patterns for Astro lead generation sites. Meta tags, Open Graph, Schema.org, sitemap, robots. Use for all SEO implementation.

⭐5stars🔀1forks📁View on GitHub🕐Updated Jan 11, 2026

When & Why to Use This Skill

This Claude skill streamlines technical SEO for Astro-based lead generation websites by providing standardized markup patterns. It automates the implementation of essential meta tags, Open Graph social sharing data, and complex Schema.org structured data (including LocalBusiness, Service, and FAQ types) to enhance search engine visibility, improve click-through rates, and ensure professional social media presentation.

Use Cases

  • Case 1: Automating the generation of unique meta titles, descriptions, and canonical URLs for every page to prevent duplicate content issues and improve SERP rankings.
  • Case 2: Implementing structured data like LocalBusiness and Service schema to help search engines understand business details and display rich snippets.
  • Case 3: Configuring Open Graph and Twitter Card metadata to ensure links shared on social platforms appear with high-quality images and optimized descriptions.
  • Case 4: Managing technical site health by auto-generating sitemaps and correctly applying 'noindex' tags to administrative or thank-you pages.
nameastro-seo
descriptionSEO markup patterns for Astro lead generation sites. Meta tags, Open Graph, Schema.org, sitemap, robots. Use for all SEO implementation.

Astro SEO Skill

Purpose

Handles all SEO markup for Astro projects. Technical SEO patterns.

Core Rules

  1. Every page needs unique title + description
  2. Open Graph for social sharing
  3. Schema.org for rich results
  4. Canonical URLs always set
  5. Sitemap auto-generated

Required Meta Tags

---
const { title, description, image, noindex = false } = Astro.props;
const canonicalURL = new URL(Astro.url.pathname, Astro.site);
---

<head>
  <title>{title}</title>
  <meta name="description" content={description} />
  <link rel="canonical" href={canonicalURL} />
  {noindex && <meta name="robots" content="noindex,nofollow" />}

  <!-- Open Graph -->
  <meta property="og:title" content={title} />
  <meta property="og:description" content={description} />
  <meta property="og:url" content={canonicalURL} />
  <meta property="og:image" content={image} />
  <meta property="og:type" content="website" />

  <!-- Twitter -->
  <meta name="twitter:card" content="summary_large_image" />
</head>

Schema.org Patterns

LocalBusiness (Homepage)

{
  "@context": "https://schema.org",
  "@type": "LocalBusiness",
  "name": "Business Name",
  "address": { "@type": "PostalAddress", ... },
  "telephone": "+44...",
  "openingHours": "Mo-Fr 08:00-18:00"
}

Service Pages

{
  "@context": "https://schema.org",
  "@type": "Service",
  "name": "Service Name",
  "provider": { "@type": "LocalBusiness", ... }
}

FAQ

{
  "@context": "https://schema.org",
  "@type": "FAQPage",
  "mainEntity": [...]
}

Sitemap

// astro.config.mjs
import sitemap from '@astrojs/sitemap';

export default {
  site: 'https://yourdomain.com',
  integrations: [sitemap()]
}

Noindex Pages

  • Thank you pages
  • 404/410 pages
  • Admin/preview pages
  • Duplicate content
  • local-seo — GBP, citations, area pages
  • heading-tree — H1-H4 structure
  • keyword-research — Keyword targeting

Definition of Done

  • Unique title + description per page
  • Open Graph tags set
  • LocalBusiness schema on homepage
  • Service schema on service pages
  • FAQ schema where applicable
  • Sitemap configured
  • Canonical URLs set
  • Thank you pages noindexed