AI search and agent readiness JavaScript

astro-seo-checkCatch SEO mistakes in Astro and static sites at build time

astro-seo-check runs 46 SEO rules on your built site (titles, descriptions, canonicals, hreflang, broken internal links, H1s, alt text, JSON-LD, robots.txt and sitemap) and can fail the build when something breaks.

Astro npx astro add astro-seo-check

Free · MIT license · runs on your machine · no signup npm ↗GitHub ↗

How astro-seo-check works

SEO mistakes on static sites are usually small and silent: a canonical pointing at the non-www domain, two pages sharing one title, a link to a page you renamed, an image without alt text, a JSON-LD block that does not parse. They pile up quietly until Search Console complains.

astro-seo-check runs at the end of astro build and checks the final HTML of every page against 46 rules, including canonical, hreflang, robots.txt, sitemap and Product structured data checks that follow Google’s documentation. It can fail the build when something is badly broken, write a JSON report, and you can switch any rule off or change its level.

It also works as a CLI on any static build folder, so Hugo, Eleventy and Next.js export users can use it in CI.

Try it

npx astro add astro-seo-check

Free and open source under the MIT license. Want this done for your store, or need help with the findings? Book a call.

Agent skill included

Let your AI coding agent run astro-seo-check for you

The static-seo-check skill works with Claude Code, Codex, Cursor, Gemini CLI and other agents that read SKILL.md files. It runs the tool, explains each finding in plain words and helps you fix it.

npx skills add MuhammadAhmadZia/astro-seo-check --skill static-seo-check

Using the Claude or ChatGPT apps instead? Download the skill ZIP from the GitHub releases page and upload it under Skills.

See all 30 agent skills →

Questions about astro-seo-check

Does it check hreflang for multilingual sites?

Yes. It checks that every language version links back to the others, that codes are valid (en, ur, en-PK) and that each page lists itself. One-way hreflang is ignored by Google.

Is FAQ schema still worth adding?

Google stopped showing FAQ rich results on 7 May 2026. The markup does no harm, and the check marks it as info so you know not to expect a rich result.

Will it fail my build?

Only for errors by default, such as broken internal links or invalid JSON-LD. Set failOn to 'warning' to be stricter, or false to never fail.

What about server-rendered routes?

Add them to ignoreLinks so links to them are not reported as broken.

UN Sustainable Development Goals

How each tool maps to SDG targets →

Want this set up and tuned for your store?

The tools are free. If you would rather have the checks run, the findings fixed and the results measured for you, that is what I do for clients.