Claude for agencies

Claude SEO: 7 Checks You Can Verify Before Reporting a Fix

Claude SEO: 7 Checks You Can Verify Before Reporting a Fix

Claude can help with SEO by reading supplied page evidence, explaining findings and drafting fixes. We would verify its answer against seven concrete checks before treating it as an audit: indexing directives, canonicals, metadata, headings, links, sitemap entries and structured data. Here, Claude SEO means using Claude to assist an audit, not making the brand appear in Claude answers.

We sent two fictional HTML fixtures to Claude Haiku 5.5 through the model API. Its fourteen pass/fail flags matched our expected results, and the initial Cheerio parser agreed on those two fixtures. A later author-only-in-schema edge case exposed a parser weakness. We corrected the parser and ran all three fixtures locally; the model did not review that third fixture. None of these are errors found on the live Client Ascension site.

Controlled fixture results, not a crawl of this website
CheckHealthy fixtureBroken fixtureWhat the script actually checks
IndexabilityPassFail: noindexHTML meta directive only
CanonicalPassFail: /oldExact expected absolute address
MetadataPassFail: Home; description absentExpected title and description presence
H1Pass: oneFail: twoH1 element count
LinksPass: /contactFail: /missingMembership in supplied known paths
SitemapPass: presentFail: absentExact URL in supplied array
Structured dataPassFail: headline and visible authorFirst H1 match and author in visible body

1. Read the indexing directives

The healthy fixture has no noindex meta tag; the broken fixture has one. Both the Claude response and the parser identified that difference. Our executed check reads the supplied HTML only. It does not fetch robots.txt, response headers or Google’s stored crawl result.

A useful proposed prompt is: Read these supplied HTML and header values, report the exact directive, and separate what is present from what has not been checked. We did not test that broader header prompt. On a real page, inspect the response and crawl controls before telling a client the page is eligible.

Google’s AI-search guidance says a page must be indexed and eligible for a snippet to appear as a supporting link in those features. Passing our small HTML check does not establish either condition.

2. Check where the canonical points

Our fixture’s expected address is https://example.com/reports. The healthy canonical equals that address. The broken canonical points to https://example.com/old and fails. The code performs an exact comparison against the fixture host plus its path; it is not a general canonical-selection engine.

A relative href also fails that exact comparison. We would inspect the intended target before changing it, because a deliberate canonical to another page is different from a typo. The script cannot decide which duplicate URL a business should prefer.

Google’s canonical URL documentation describes canonical annotations as signals and recommends absolute URLs. Its guidance informs the review, while the hard-coded fixture comparison is our own narrow implementation. Google supports relative paths, but advises against them; our fixture uses an absolute-address equality check rather than attempting Google’s canonical selection.

3. Match titles and descriptions to the page

The expected fixture title is Studio reporting dashboard setup, and a description must be present. The healthy fixture passes both conditions. The broken fixture has the title Home and no description, so it fails the expected-title and description-presence checks.

This is a string-and-presence check. It does not score relevance, click-through potential or competing search results. When adapting the code, replace the expected title with the value for the page you are checking rather than applying our studio title across a whole website.

4. Count the actual main headings

The healthy HTML contains one H1. The broken HTML contains two, and the parser records the count rather than guessing which heading is more important. Claude reported the same difference from the supplied HTML.

Counting headings is a useful mechanical check, but it does not establish that a page answers its query. Inspect the main heading and section order with the reader’s task in mind. A count of one can coexist with vague or unhelpful writing.

5. Resolve contextual links

The healthy fixture links to /contact, which appears in its supplied list of known paths. The broken fixture links to /missing, which does not. This checks membership in an input list; it does not send an HTTP request or verify a destination’s response status.

For live work, we would combine the inventory check with a separate response check and an editorial decision about whether the destination helps the reader. If the inventory must come from another tool, the claude mcp guide explains the connection boundary; that connection was not part of this fixture audit.

6. Check the sitemap entry

The healthy fixture’s sitemap array contains https://example.com/reports. The broken array is empty. Our script checks that exact membership. It does not parse an actual XML sitemap or establish whether Google has discovered the page.

Google’s Search Essentials explains the fundamentals a page must meet for search. Use the provider’s reporting tools to investigate a live exclusion; do not turn a missing array entry or an accepted submission into an indexing confirmation.

7. Compare structured data with visible claims

The corrected check compares the JSON-LD headline with the first H1 and checks whether the author name appears in body text after script and style content is removed. The healthy fixture has a matching headline and visible author. The broken fixture’s headline is A different article, and Unknown Author is absent from its visible body.

We found a trap in our first parser: body text included the JSON-LD script itself. An author name could therefore appear only inside its own schema and still look present. We removed the visible author from an otherwise healthy fixture. The old author check returned true; the corrected check returned false. That extra fixture passed the other six checks and isolated the mistake.

This edge case was an implementation finding, not a Claude-discovered live-site issue. The first fourteen model/parser agreements had not tested it. Agreement on a small set of examples is useful evidence, but it can leave a shared blind spot. The parser checks body text after removing scripts and styles; it is not a browser visibility test.

Reject a bad finding before it reaches a client

Keep the input, the model response and the verification result together. Our prompt specified seven checks and required a pass flag with a reason for each page. That made it possible to compare fourteen answers with expected results, then add a fixture when the verification method itself proved incomplete.

The corrected fixture audit function. Cheerio is required. Adapt the fixture host, expected title and input lists before using it on other pages.
import {load} from 'cheerio';
function audit(f){const $=load(f.html),canonical=$('link[rel="canonical"]').attr('href'),title=$('title').text(),desc=$('meta[name="description"]').attr('content'),ld=JSON.parse($('script[type="application/ld+json"]').text()),visible=$('body').clone();visible.find('script,style').remove();return [
 {check:'Indexability',pass:!($('meta[name="robots"]').attr('content')||'').includes('noindex'),value:$('meta[name="robots"]').attr('content')||'No noindex in supplied HTML; headers/robots require separate checks'},
 {check:'Canonical',pass:canonical==='https://example.com'+f.path,value:canonical},
 {check:'Metadata',pass:title==='Studio reporting dashboard setup'&&!!desc,value:{title,description:desc||null}},
 {check:'H1',pass:$('h1').length===1,value:$('h1').length},
 {check:'Links',pass:$('a').toArray().every(e=>f.known.includes($(e).attr('href'))),value:$('a').toArray().map(e=>$(e).attr('href'))},
 {check:'Sitemap',pass:f.sitemap.includes('https://example.com'+f.path),value:f.sitemap},
 {check:'Structured data',pass:ld.headline===$('h1').first().text()&&visible.text().includes(ld.author.name),value:ld}
 ];}

The code below is the corrected function rerun locally on all three fixtures; it is not the initial parser used alongside the original fourteen model flags. It requires Cheerio and an object with html, path, known paths and sitemap URLs. It has a fixture-specific expected title, so it needs adaptation before use on other pages.

The programmatic Claude Code guide describes non-interactive CLI runs.

Our Claude fixture review used the model API, not a claude -p run.

A future wrapper could capture an answer and stop on a failed verification; the claude code automation guide covers that operational design separately.

If you turn the instructions into a reusable file, the claude code skills guide explains setup and testing. Test the exact instruction and its discovery separately; naming an audit method does not make every result correct.