Yes, Claude Code can audit technical and on-page SEO, as long as you give it real URLs and require evidence for every finding.
Picture a site that just shipped a redesign. Traffic dips, a few product pages vanish from search, and you suspect a stray noindex tag, broken canonicals or a title template gone wrong. Asking an AI "what's wrong with my SEO?" tends to return a generic checklist, not the actual problem on your pages.
This article gives you a repeatable process instead:
- Prompts you can reuse for crawl access, rendered content, titles, headings and structured data
- Checks that tie each issue to a URL, command output or file line
- A way to verify results and separate real problems from guesses
What users report
Users in community threads describe Claude Code as a useful layer for SEO checks, with the caveat that its findings need verification. The patterns below come from Reddit discussions and are summarised, not tested firsthand.
What works
- Users describe typing a plain-language request, such as asking for a full SEO audit of a domain, and having Claude Code work through the site. One thread, My New Claude Skill - SEO consultant, shows this approach.
- Some users pair Claude with a dedicated SEO crawler and ask it to interpret the findings, as in Fixing these issues with Claude..
- Others focus on discoverability files and AI-search visibility, as in I built a Claude Code plugin for.
What goes wrong
- AI audits can state findings that are wrong. Users suggest asking Claude to quote the text that supports each finding, and note that claims of something being "missing" need proof too.
- Long instruction chains can be altered or trimmed by the model, so users recommend checking that your audit steps were followed as written.
Practical tips
- Treat Claude's output as a list of leads, then confirm each one in the page source or a crawler.
- Use a crawler or SEO platform for data, and use Claude to explain and prioritise what it finds.
- Ask for evidence with every issue, including absent elements.
Can Claude Code check your website for SEO issues?
Yes, for anything that lives in your code or in your site's responses. Claude Code runs in your terminal and project directory, so it can read templates, run curl against your pages and inspect what comes back. On its own, it cannot see live rankings, search demand or traffic.
What it can verify
- Title tags, meta descriptions, heading structure and canonical tags in templates and rendered HTML
- Robots.txt rules, sitemap contents and noindex directives
- HTTP status codes, redirect chains and response headers
- Structured data markup and image alt attributes
- Crawl output, if you run a crawler and give it the results
These are technical and on-page checks, where the answer is in a file or a response and can be confirmed directly.
What it cannot know
- Where your pages rank for a given query
- How much traffic or how many impressions a page gets
- Which sites link to you
- How much search demand a keyword has
That information comes from outside your codebase. Without exports from Google Search Console or another SEO tool, any statement about it is a guess.
Why a checked finding beats an assumed one
A model can easily say a page "probably" has a missing canonical tag. After the fix, you can rerun a command that fetches the page and shows the tag is absent; that output is evidence. Ask for the command and its output, not just a conclusion.
Step 1: Give Claude Code a scope and a list of URLs
Start by telling Claude Code exactly what to audit. A vague request like "check my SEO" tends to return generic advice, while a defined scope and URL list produces findings tied to specific pages.
Provide a route or URL list
Give Claude Code a concrete list of pages. Good sources include:
- A sitemap export (the URLs from sitemap.xml saved as a text file) (Build and Submit a Sitemap)
- A route manifest from your framework, such as a generated list of static routes
For large sites, sample one or two URLs per template rather than every page.
Separate public from private pages
Label which URLs are public and indexable and which are private, staging or gated. Staging pages often carry noindex tags or blocked crawling on purpose, so flagging them as errors wastes time.
State the goal
Say whether this is a pre-deploy check of a local or preview build, or an audit of the live site. A pre-deploy check focuses on what you can still change in code, such as titles, meta tags and canonicals. A live audit also covers what search engines actually see.
Example starter prompt
Audit the URLs listed in urls.txt for technical SEO issues. These are public, indexable pages on the live site. Ignore anything under /staging and /admin. For each URL, check the title, meta description, H1, canonical tag, robots directives and status code. Return a table of issues grouped by severity, with the file or template likely responsible.
Step 2: Check crawl access and rendered responses
Before evaluating titles or content, verify that search engines can access and read your pages. Use Claude Code to fetch each URL from your list and return what a crawler actually receives, not what the source code shows.
Status codes and 404 behavior
Check the status code for every public route. Flag long redirect chains, 302s used for permanent moves, and 5xx errors.
Also request a few URLs that should not exist. A page that says "not found" but returns 200 is a soft 404 and can waste crawl budget.
robots.txt rules
Confirm that key sections such as product, blog, and category pages are not blocked by a broad pattern. Verify the sitemap location is listed.
Noindex tags and X-Robots-Tag headers
Request the indexing directives for every URL. Staging settings that were never removed often cause unexpected noindex. Note that a page blocked in robots.txt cannot be crawled, so a noindex tag on it will not be seen.
JavaScript rendering
Compare the raw HTML response with the rendered DOM, for instance by using a headless browser. Ensure that the main content, internal links, canonical tag, and headings appear in both, or at least in the rendered version. If key content appears only after scripts execute, mark it as a risk.
CSS and JS resources
Search engines render pages with the files you provide. Ask Claude Code to list the CSS and JavaScript files each page loads and confirm they return 200 and are not disallowed in robots.txt.
A simple output format helps: URL, status, indexability, rendered content present (yes or no), and blocked resources.
Step 3: Review titles, descriptions, headings and structured data
Once crawl access and rendered responses look right, check the on-page elements that Claude Code can verify directly from HTML and templates. Ask it to extract each element for every URL in your list, then flag anything missing, duplicated or inconsistent with the page.
Titles and descriptions
A title and meta description should describe the specific page, not just the site. Ask Claude Code to list them for each URL so you can review them side by side.
Also have it read the template code that generates them. A title that looks fine today can break when a field is empty or a layout changes, so check the fallback logic as well as the output.
Headings
Ask for pages with zero or multiple H1s, and for H1s that contradict the title or only repeat the site name. Heading levels should also follow a logical order.
Duplicate and thin pages
Compare content across distinct routes. Useful flags include:
- Identical or near-identical titles and H1s
- Pages with very little body text
- Parameter, pagination or tag URLs that repeat the same content
Treat these as leads to review, since a short page can still be useful.
Structured data
Have Claude Code extract JSON-LD, check that it parses, and compare the values with the visible page: names, prices, dates and authors should match what a visitor sees. Markup describing content that isn't on the page is a problem even when it is valid.
Canonicals and internal links
Look for internal links that point to redirects, 404s or non-canonical versions. For a broader checklist, see this WordPress SEO audit walkthrough.
How do you make Claude Code prove every finding?
Set an evidence rule before the audit starts: no finding counts unless it comes with the URL, the command that was run and the output it returned. A model can write a plausible-sounding issue without checking anything, so proof is what separates an audit from a guess.
A prompt line such as "Report only issues you can demonstrate with evidence" gives you a baseline to hold every result against.
What to require for each finding
- Exact URL. The specific page affected, not "some product pages."
- Command and output. For example, the curl request and the relevant response header or HTML snippet. You should be able to paste the command and get the same result.
- File and line number. When the cause sits in your codebase, such as a template that outputs a noindex tag or a hardcoded canonical, ask for the path and line.
- Severity and a fix. Ask for a rating (for example high, medium, low), a reason for that rating, and a concrete change, not just a list of problems.
Separate confirmed from suspected
Ask for two labeled groups. Confirmed issues have reproducible evidence. Suspected issues are hunches that still need a check, and each should state what is missing to verify it.
This stops a guess from being presented as fact and gives you a short list of follow-up checks.
Re-run the check after every fix
After a change is deployed, have Claude Code repeat the same command against the same URL and show the new output. A fix is only resolved when the original evidence no longer appears.
Ask it to mark each item as resolved, still failing or changed, so the audit stays an accurate record rather than a one-time report.
Should you use an SEO agent, skill or subagent for audits?
Use a plain prompt for a one-off check, and a reusable subagent or skill once you run the same audit more than once. Reuse keeps the steps, tools and output format the same every time.
A plain prompt is fast, but results drift. Wording changes, steps get skipped, and the report format shifts between runs.
| Approach | Best for | Tradeoff |
|---|---|---|
| Plain prompt | One-off checks | Inconsistent between runs |
| Skill | Repeatable instructions and checklists | Needs a clear description to trigger |
| Subagent | Separate audit role with its own tools | Needs setup and review |
Claude Code subagents keep audit instructions and tool access consistent, because each one carries a fixed prompt and a defined set of permissions. If you want to build your own, see how to create a Claude Code subagent, or browse the best subagents for Claude Code for ideas.
Walkthrough: running an open-source Claude SEO tool
- Search GitHub for an open-source Claude SEO skill or agent and check that it is maintained.
- Read the README and the install script before running anything. Confirm it only copies files and does not fetch unknown code.
- Install it into your Claude Code skills or agents folder.
- Run it against your scoped URL list and ask for evidence with each finding.
What to check in the file
- The description states clearly when to use it.
- Tool permissions are limited to what an audit needs, such as reading and fetching, not unrestricted shell or file writes.
- The format is valid; a SKILL.md validator can catch structural errors.
Where Agentsforce fits in an SEO audit workflow
Agentsforce adds ready-made specialists you call from inside Claude Code, instead of writing your own audit agent from scratch. It is one option, not a requirement, and the manual steps above work without it.
Agentsforce provides a team of ready-made specialists for Claude Code, including experts in WordPress and Shopify. Among them are specialists that find what's hurting your Google rankings and fix those SEO problems at the source. That second part matters if your audit keeps turning up the same template-level issues.
Setup is light. You get instant access and a one-line install command, with no new app and no new habits. Pricing is a one-time payment of $49 for lifetime access to all specialists and updates.
A specialist does not change the rule from the previous section. Check what it reports before you act on it:
- Ask for the URL, the evidence and the exact line or response behind each finding.
- Re-fetch a sample of flagged pages yourself to confirm the issue exists.
- Review any proposed fix before it goes live, and re-check the page afterward.
A finding without evidence is still just a guess, whether it comes from a specialist or a plain prompt.
Turn the audit into a fix list
An audit is only useful once every finding becomes a ticket with a severity, an owner and a way to verify it. Sort findings into three groups, then work through them in order.
| Severity | What it covers | Examples |
|---|---|---|
| Blocks indexing | Pages search engines cannot crawl or are told to skip | Disallow rules on key paths, stray noindex tags, 404 or 5xx responses, wrong canonicals |
| Hurts relevance | Pages that can be indexed but send weak signals | Missing or duplicate titles, thin descriptions, missing H1, broken structured data |
| Polish | Small improvements with limited impact | Title length tweaks, heading order, extra schema fields |
Add a simple health summary
Count the open issues in each group and record the count after every round of fixes. You do not need an invented score out of 100. The goal is to clear the first group, then the second.
Fix, re-test, confirm
- Fix everything that blocks indexing first, one template at a time.
- Re-run the exact command behind each finding and keep the new output with the ticket.
- After deploy, use the URL Inspection tool in Google Search Console to confirm the live page is indexable, and request indexing for important fixes.
Related articles
Frequently asked questions
Can I run an SEO audit with Claude Code for free?
The audit itself costs only your Claude Code usage, which needs a paid Claude plan or API credits; there is no separate SEO tool to buy. Free sources such as Google Search Console and PageSpeed Insights can supply the data you feed into it.
Is it safe to run an install script from a Claude Code SEO GitHub repo?
Treat it like any third-party code. Clone with --depth 1, open the install script, and read what it writes to disk and which commands it runs before you execute anything. Test it in a throwaway folder first, so a bad script cannot touch your real project or your configuration files.
How often should I re-run an SEO check with Claude Code?
Re-run the scoped checks before any deploy that changes templates, routing or redirects. Add a full pass on live URLs once a month to catch drift, such as expired redirects, changed titles or pages that have dropped out of your sitemap.
Can Claude Code replace Google Search Console for SEO?
No. Search Console is the only source of Google's own indexing and performance data, which Claude Code cannot see. Use them together: export the Pages report as a CSV and give it to Claude Code, then ask it to cross-check those indexing statuses against its own findings. Pages that Google excludes but Claude Code finds healthy are worth investigating first.