Phase 3 part 3: the audit, ranked by traffic, with AI visibility

A polite crawl of each website (Search Console's busiest pages, the
sitemap, then links; up to 300 pages; robots.txt honoured) checks titles
and descriptions (characters and pixels), headings, canonical, noindex,
status and redirects, broken links (outside ones twice), alt text, Open
Graph, JSON-LD, text without JavaScript, and whether the title says what
the page's main search asks. Issues are ranked by severity, then the
page's clicks and impressions. AI visibility: AI crawlers in robots.txt,
llms.txt, structured data, Organization data. Optional PageSpeed checks.
Weekly in the background, or Audit now. Schema 14.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-22 07:53:10 -07:00
co-authored by Claude Opus 5.5
parent a7de13087e
commit 43a7b42126
21 changed files with 1643 additions and 17 deletions
+27
View File
@@ -783,6 +783,33 @@ into `main`.
- One more check, from job 3: a page's biggest query compared with its
title. When they don't say the same thing, that's the cheapest fix
there is.
- **Built 2026-11-22** (schema 14: `seo_audits`):
- `seo.RunAudit` reads robots.txt, llms.txt and the sitemaps. It then
reads up to 300 pages, in this order: the busiest pages from Search
Console, the sitemap's pages, then pages found through internal
links. A page robots.txt disallows is skipped.
- Redirects are counted. It checks up to 150 outside links (HEAD,
with GET as a fallback).
- Pages are parsed with `golang.org/x/net/html`.
- Issues have a severity:
- Error: 4xx/5xx, noindex on a page Google shows or the sitemap
lists, no title.
- Warning: title over about 600 px (Arial widths), no description,
no H1, a canonical pointing elsewhere, broken links, invalid
JSON-LD, and a title that covers under 3/4 of the main search's
words when that search brings 30%+ of the impressions.
- Notice: the rest.
- Issues are sorted by severity, then the page's 90-day clicks and
impressions.
- The AI checks: AI crawlers in robots.txt (GPTBot, OAI-SearchBot,
ChatGPT-User, ClaudeBot, Claude-User, Claude-SearchBot,
PerplexityBot, Google-Extended, Applebot-Extended, CCBot),
llms.txt, JSON-LD coverage, Organization or WebSite data, and text
in the HTML without JavaScript.
- Optionally, PageSpeed Insights (mobile, field data when there is
some) for the 5 busiest pages, with an optional API key.
- It runs in the background, once a week on its own or with *Audit
now*. The page is SEO → Audit.
4. **Changes, approval and pull requests (job 5), with before/after.**
- The AI proposes the exact change: a title, a meta description or an
H1. Each one comes with the number that pays for it and the title's