astro-seo-metadata-sync

Synchronize Astro canonical and social meta tags to a shared base URL.

Updated Mar 6, 2026
One-click install
npx skills add https://github.com/victorp1leon/openclaw-bakery --skill astro-seo-metadata-sync
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: astro-seo-metadata-sync
Source: https://github.com/victorp1leon/openclaw-bakery/tree/main/.codex/skills/astro-seo-metadata-sync
Command: npx skills add https://github.com/victorp1leon/openclaw-bakery --skill astro-seo-metadata-sync

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Drift in SEO metadata across Astro pages, including canonical, og:url, og:image, and twitter:image, causing inconsistent sharing previews and indexing signals.

Core Features & Use Cases

  • Normalize page frontmatter and meta tags to reference a shared base URL via baseUrlFromConfig.
  • Automatically synchronize canonical and social URLs (og:url, og:image, twitter:image) to the configured base URL.
  • Use case: after deployments or page edits that drift metadata, quickly realign all pages to a single source of truth.

Quick Start

Connect pages to the central base URL by importing baseUrlFromConfig and using it to derive canonical and social tag values.

Frequently Asked Questions about astro-seo-metadata-sync

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

FAQPage Schema
How do I fix SEO metadata drift across multiple Astro pages?

Fix SEO metadata drift in Astro by centralizing base URL usage for canonical and social tags. This aligns page frontmatter imports and meta tags to a shared config URL, correcting inconsistent sharing previews and indexing signals after content changes.

Why do my og:url and canonical tags point to different domains after deployment?

Canonical and og:url tags drift when pages reference hardcoded paths instead of a config-driven base URL. Importing a centralized base URL ensures automated alignment of meta tags to the shared deployment domain across all pages.

What is the best way to synchronize og:image and twitter:image URLs in Astro?

Synchronize og:image and twitter:image URLs in Astro by deriving their values from a shared base URL. This config-driven approach ensures social sharing images resolve correctly across all pages without manual path updates.

Can I use a central config to manage all canonical URLs in my Astro project?

Yes, you can manage canonical URLs centrally by importing the base URL from your Astro config. This establishes a single source of truth, automatically synchronizing canonical and social URLs to prevent metadata drift across many pages.

Does syncing canonical tags in Astro require external dependencies?

No, syncing canonical tags in Astro requires no external dependencies. It relies on standard frontmatter imports and config-driven base URL usage to normalize SEO metadata directly within your existing Astro project structure.