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
+13
View File
@@ -82,6 +82,19 @@ func (c *Client) NewPages(ctx context.Context, siteURL string, since time.Time)
return out, nil
}
// AllPages returns every page a sitemap lists, from the given sitemap
// address (or the site's /sitemap.xml when it's empty).
func (c *Client) AllPages(ctx context.Context, siteURL, mapURL string) ([]Page, error) {
u, err := url.Parse(strings.TrimSpace(siteURL))
if err != nil || u.Host == "" {
return nil, fmt.Errorf("%q isn't a website address", siteURL)
}
if mapURL == "" {
mapURL = u.Scheme + "://" + u.Host + "/sitemap.xml"
}
return c.read(ctx, mapURL, u.Host, 0)
}
func (c *Client) read(ctx context.Context, mapURL, host string, depth int) ([]Page, error) {
data, err := c.get(ctx, mapURL, maxSitemapBytes)
if err != nil {