# Catch Astro SEO bugs in the pull request.

> SEO review for Astro pull requests. SEOCode knows your layouts supply the head, and catches noindex, invalid JSON-LD and missing tags.

Source: https://seocode.io/astro-seo

For Astro teams

SEOCode reviews every PR against an Astro-aware ruleset. It recognises layouts and dynamic `{title}` values, and flags real regressions: an accidental `noindex`, invalid JSON-LD, a layout missing head essentials.

- [Add to your repo →](https://github.com/apps/seocode-pr-check/installations/new)

- [View sample report](https://seocode.io/sample-report)

Free on the Developer plan, full ruleset on every pull request. Works with Astro pages and layouts, dynamic routes like `[slug].astro`, and `.md` and `.mdx` pages and content.

SEO reviews by framework: [Next.js](https://seocode.io/nextjs-seo) · **Astro** · [SvelteKit](https://seocode.io/sveltekit-seo) · [Remix](https://seocode.io/remix-seo) · [Nuxt](https://seocode.io/nuxt-seo)

```
# or run it locally / in CI, no GitHub App required
npx @qobi/seocode check --staged
```

## Astro's static HTML can still ship with SEO gaps.

A page can forget to pass its title, or a new layout can drop a canonical, and the build still passes.

### A new page forgets to pass its title

Pages delegate `<head>` to a shared Layout through props. Add a page that doesn't pass `title` or `description` and it inherits the layout default or renders empty, with no build error.

### An accidental `noindex`

A `<meta name="robots" content="noindex">` left in a layout from staging de-indexes every page that uses it.

### A new layout with no `<head>` essentials

Spin up a second Layout for a section and it's easy to omit the canonical, Open Graph, or the `charset` and `viewport` that every page needs.

### Broken JSON-LD from the frontmatter

Structured data assembled in the component script and interpolated into the template can emit invalid JSON that search engines silently discard.

### AI crawlers blocked in `robots.txt`

A copied `robots.txt` that disallows GPTBot, ClaudeBot or PerplexityBot stops those crawlers reading your site.

## It reads your source the way Astro does.

SEOCode parses your `.astro` source, so it catches real gaps and stays quiet on valid layout patterns.

### Layouts

Recognises a layout that renders `<head>`, and doesn't flag its title or description when they come from a dynamic `{title}` value.

### Props from page to layout

Follows the layout a page imports, through `tsconfig` aliases and layouts inside layouts, and flags a page that leaves out a title or description.

### Markdown and MDX

Reads `.md` and `.mdx` under `src/pages` and `src/content`: frontmatter title and description length, headings, images and links.

### Islands

Flags a title, description or JSON-LD written by a `client:only` component, which has no server render, so crawlers never see it.

### Head essentials

Checks that each layout carries the charset, viewport, canonical and Open Graph tags every page needs.

### Structured data validity

Validates JSON-LD written in the file, and checks entity schema for `@id` and `sameAs`, the signals that power rich results and AI citations.

### The rest of the SEO and GEO ruleset

Titles, meta descriptions, canonical URLs, Open Graph and Twitter cards, heading structure, image alt and lazy-loading, blocked AI crawlers in `robots.txt`, and more. The same checks run on every PR.

**Quiet unless something is wrong**

SEOCode only comments when it finds something worth fixing. Dynamic layout titles and valid JSON-LD don't trigger findings, so every comment is worth reading.

## Install once, then it's automatic.

There's no config to write and no CI step to maintain.

### Install in one click

Add SEOCode to your Astro repo or whole org. It detects the framework, so there's nothing to configure. For your own pipeline, use the `@qobi/seocode` CLI.

### Open a pull request

SEOCode reviews the changed files, resolves your metadata, and runs the full ruleset, usually within seconds of the PR opening.

### Get fixes in the comment

Issues are grouped by severity, each with the exact fix, critical ones first. You can make the check required before a merge.

## Questions, answered.

**Does it understand Astro layouts?**

**Does it work with content collections and MDX?**

**Will it false-positive on props-driven meta?**

**Can I run it in CI without the GitHub App?**

**Is it free?**

## Stop shipping Astro SEO regressions.

Add SEOCode to your repo and it reviews your next pull request. To check a live website, get a website audit.

- [Add to your repo →](https://github.com/apps/seocode-pr-check/installations/new)

- [Get a website audit](https://seocode.io/audit)
