SEO Skill

Find technical issues across a site

Crawl your site and list technical issues. It runs on your own machine.

In a terminal: seo crawl

Ask your agent

A crawl fetches a lot of pages from your site, so it runs on your own machine. First time? Give your agent this prompt to set up SEO Skill:

Give this prompt to Claude Code

Set up SEO Skill in Claude Code so you can work on my site's SEO with my own Search Console data. Do every step yourself and only stop when you need me.

Claude Code installs the CLI, adds the hosted MCP server, waits while you sign in with Google and checks it connects. New accounts get $1 of free research once a Search Console site is connected, with no card.

Claude Code setup guide

Use it to get a technical baseline before or after a release, or when you suspect something broke across many pages. A crawl fetches a lot of pages, so it runs on your machine with the CLI. The hosted server doesn’t crawl.

Run a crawl

Ask your agent to crawl the site. A crawl needs no sign-in, so the agent only needs the CLI, and it installs it if it isn’t there yet:

Crawl https://example.com with the seo CLI (install it with npm i -g seo if seo --version fails) and tell me what to fix first

The crawl stops at 500 pages unless you ask for more (up to 10,000). When your sitemaps list more pages than that, the crawl does not just take the first ones. It takes pages in turn from each section of the site (/blog, /docs, /forum and so on), so a big forum cannot crowd out your product pages, and the result says how it picked them. For a large site, start with a quick sitemap pass that checks status codes and redirects without reading every page:

Do a quick health check of the pages in https://example.com/sitemap.xml

What comes back

The crawl fetches your pages and lists what it finds, such as pages that return errors, redirects, missing or duplicate titles and descriptions, canonical and robots tags, and broken internal links. To trace one redirect hop by hop, use the redirect checker. Nothing is saved. The result comes back in full, and your agent keeps what it needs (or writes it to a file when you ask).

Googlebot reads only the first 2 MB of a page’s HTML and indexes it as if the file ended there. For a page over that size, the crawl shows where the main content starts (the first <h1> or <main>) and how much of the page sits past the cut. It flags the page as high priority when the main content starts after the cut or just before it, or when most of the visible text comes after it.

A noindex tag or a canonical pointing elsewhere is reported as what the page says. It is only a problem if you did not mean it.

Pages kept out of Google AI answers

The crawl reports a page whose robots tag or X-Robots-Tag header says nosnippet or max-snippet:0. Google’s guide to its AI features says a page has to be indexed and able to show in Search with a snippet before it can be a link in AI Overviews or AI Mode, so that page is left out of them. If you meant it, leave it. To keep one part of a page out of snippets and AI answers, put data-nosnippet on that part instead. The page check flags the same thing for one URL.

Missing pages and soft 404s

A 404 or 410 on a page you removed on purpose is how a removed page should answer, and the crawl doesn’t ask you to fix it. Google drops a URL that returns a 4xx code from its index and crawls it less often, which is what you want for a page that’s gone. The crawl flags a missing page when your own links or sitemap still point to it, and asks you to update those links, restore the page if it went by mistake, or redirect it to the one page that replaced it. It never suggests sending it to the home page or blocking it in robots.txt.

The crawl also asks for a few made-up URLs. When they return 200, or redirect to a page that does, your site answers missing pages as if they exist, which Google treats as a soft 404. A page that looks like a sign-in wall is reported apart, so it isn’t mistaken for real content.

Redirects whose target points back

The crawl flags a URL that redirects to a page whose canonical tag names that URL again, such as /page redirecting to /page/ while /page/ names /page as its canonical. The redirect says to keep one URL and the canonical says to keep the other. Google’s guide to duplicate URLs says not to name different URLs for the same page with different methods. Pick one URL, then make the redirect, the canonical, internal links and the sitemap all name it. The weekly site audit checks for the same thing.

Old Universal Analytics tags

The crawl reports a page whose HTML still loads a Universal Analytics ID, one that starts with UA-. Google shut Universal Analytics down: standard properties stopped processing data on 1 July 2023, and from July 2024 none can be opened. The finding says whether the page also loads a GA4 tag (an ID that starts with G-) or Google Tag Manager.

Don’t delete the old tag straight away. When Google created GA4 properties for sites, it often reused the existing tag through a connected site tag, so a page with only a UA- ID can still be what sends visits to GA4. Put your GA4 measurement ID on the page, check the Realtime report in Google Analytics shows visits, then remove the UA- ID. A tag that a script adds after the page loads doesn’t show in the crawl.

Hreflang and duplicate hosts

On a site with language or country versions, the crawl checks each page’s hreflang tags: values Google can’t read, a missing link to the page itself, a missing x-default, and an alternate that doesn’t link back. Google ignores a pair of localized versions unless each page names the other.

It also loads the home page on both www and the bare domain. When both answer with a page instead of one redirecting to the other, every page can be reached at two URLs. Pick one, redirect the other to it, and keep canonicals and the sitemap on the one you picked, as Google’s guide to duplicate URLs suggests.

What AI agents can read

The crawl also checks how AI agents get to your site:

  • Which AI search bots (such as OAI-SearchBot, Claude-SearchBot and PerplexityBot) and which AI training bots (such as GPTBot and ClaudeBot) your robots.txt allows. The two groups are listed apart, because blocking training is a choice and blocking search keeps you out of AI answers.
  • Whether your pages have a Markdown copy, through a rel="alternate" link or for a request with Accept: text/markdown. Every public page can have one, including noindex pages such as privacy and terms. The crawl reports a page that needs a sign-in and still links to a copy.
  • Whether /llms.txt exists and its links load.
  • Agent files under /.well-known/, such as an agent skills index or an MCP server card, plus the Content-Signal and Link headers.

None of these change your Google rankings: Google says its Search doesn’t use llms.txt or Markdown files, AI features included. They decide how easily ChatGPT, Claude and other agents can read and quote you. If a file could not be fetched, the crawl says so instead of calling it missing.

Check many sites at once

To compare robots.txt, home pages and llms.txt across many sites, such as a list of competitors, ask for the sites check. It reads up to 1,000 sites a run, eight at a time, with three requests per site. It reads robots.txt, then the home page (unless robots.txt disallows it), then llms.txt.

Check robots.txt, the home page and llms.txt for example.com and example.org

Each site comes back with its robots.txt rules for each AI bot, the home page’s status, title, canonical and robots tags, and whether llms.txt exists and starts with a heading. A last line sums the run, with counts such as how many sites block GPTBot. A site that timed out, failed DNS or served a challenge page says so, so an unreachable llms.txt is never counted as missing.

To see which pages lost search clicks, use the indexing check.

Run it in a terminal

The CLI runs the crawl. It needs no sign-in:

seo crawl https://example.com

The crawl stops at 500 pages unless you raise --max-pages (up to 10,000). Add --json --output crawl.json to write the result to a file. For a large site, --health does the quick sitemap pass that checks status codes and redirects:

seo crawl --sitemap-url https://example.com/sitemap.xml --health

Sites mode reads a list of sites from a file or from --urls. With --json, each site is one JSON line and a last line sums the run. Without --json you get the counts:

seo crawl --mode sites --urls-file sites.txt --json --output sites.jsonl
seo crawl --mode sites --urls example.com,example.org