astro-seo

Automate end-to-end SEO implementation for Astro 5 sites.

Updated Apr 17, 2026
One-click install
npx skills add https://github.com/ajelinek/skills-stash --skill astro-seo-ajelinek
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: astro-seo
Source: https://github.com/ajelinek/skills-stash/tree/main/astro-seo
Command: npx skills add https://github.com/ajelinek/skills-stash --skill astro-seo-ajelinek

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

End-to-end SEO implementation for Astro 5 sites. This skill owns code generation and deployment automation — metadata components, JSON-LD, IndexNow scripts, and CI/CD wiring. For auditing an existing site use the seo-audit skill. For AI/LLM citation optimization use the ai-seo skill.

Core Features & Use Cases

  • Global SEO layout and metadata management for Astro projects, enabling consistent SEO across pages.
  • JSON-LD structured data components (WebSite, WebPage, Article, BreadcrumbList, FAQPage) and site-wide metadata for robust search visibility.
  • IndexNow integration and CI/CD wiring to notify engines immediately on deploy, plus sitemap and robots.txt coordination.
  • Performance-oriented patterns: image optimization with astro:assets, font performance, staging noindex, and islands usage to minimize runtime JS.
  • Companion skill integration guidance and rollout steps for auditing and AI-citation optimization.

Quick Start

Install the skill and apply the base configuration and layout patterns to bootstrap SEO for an Astro 5 project.

Frequently Asked Questions about astro-seo

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add JSON-LD structured data to my Astro 5 site?

Add JSON-LD structured data to an Astro 5 site by generating metadata components for WebSite, WebPage, Article, BreadcrumbList, and FAQPage schemas. This ensures robust search visibility directly within your Astro layouts.

What's the best way to automate sitemap submission and IndexNow pinging during Astro deployments?

Automate sitemap submission and IndexNow pinging during Astro deployments by wiring IndexNow scripts directly into your CI/CD pipelines. This configuration immediately notifies search engines of content changes upon successful deployment.

How do I configure a global SEO layout for consistent metadata across all Astro pages?

Configure a global SEO layout for consistent metadata across Astro pages by applying a base layout pattern within your Astro 5 project. This centralizes metadata management and ensures uniform SEO tags sitewide.

Can I use astro:assets for image optimization and performance in my SEO workflow?

Yes, you can use astro:assets for image optimization within your SEO workflow. This performance-oriented pattern minimizes runtime JavaScript through islands usage and ensures your Astro site meets performance standards.

How do I prevent search engines from indexing my staging environment in Astro?

Prevent search engines from indexing your Astro staging environment by applying a staging noindex configuration. This is managed alongside your robots.txt and sitemap coordination to control crawl access.

Does this SEO approach handle robots.txt and sitemap coordination together?

Yes, this approach handles robots.txt and sitemap coordination together using @astrojs/sitemap and public/robots.txt. It configures both files simultaneously to ensure search engines correctly crawl and index your Astro site.