# seo-deep-audit A reusable skill for AI coding agents (built for Claude Code inside Codus) that runs a full technical and semantic SEO audit of one or more websites, and gives the same results every time it is run on the same data. It was built from a real four-site audit and then generalised. Thank you for taking a look: the questions I would most like answered are at the end. ## What it does 1. **Researches before it crawls.** It ships with a check catalogue built from the published documentation of the main crawlers and audit tools (Screaming Frog, Sitebulb, Ahrefs, Semrush, Lumar, Oncrawl, JetOctopus) and Google Search Central: 533 technical checks, 67 semantic and entity checks, and 88 checks across structured data, site architecture, duplicates, dead pages and keyword analysis. Sources are listed inside each catalogue. 2. **Crawls every site in full.** Every internal URL, resource, sitemap entry and redirect hop, plus outbound links, URL-variant probes (http, www, trailing slash, case, parameters, made-up URLs for soft 404s), a JavaScript render sample in headless Chrome, and Lighthouse lab runs. robots.txt is obeyed as Googlebot by default. The crawler also does list mode (migrations, pasted URL lists), resumes after an interruption, rechecks failed URLs, and takes include/exclude rules, depth and URL limits, URL rewriting, staging logins and crawl-as presets (Googlebot smartphone, GPTBot, ClaudeBot, PerplexityBot and others). 3. **Analyses with nine deterministic modules.** Technical and indexability (covering every check in the public Screaming Frog issue library that matters in 2026: hreflang, directives, canonicals, security, social tags, validation, images, links, sitemaps, mobile, raw vs rendered JavaScript, Lighthouse opportunities, and Google's official AMP validator whenever a site serves AMP), structured data (validity, Google eligibility, entity graph, contact details), architecture and silos (click depth, internal PageRank, link communities, hub-and-spoke integrity, orphans, wasted equity), duplicates (exact, MinHash, SimHash, templated page families, cross-domain), dead pages and pruning (soft 404s, broken backlinks to reclaim, a keep/improve/merge/redirect/noindex/delete table), keywords from Ahrefs (keyword map, cannibalisation candidates, striking distance, intent from stored SERPs, gaps), semantic (embeddings, topic clusters, site-radius outliers, topical-map coverage, query-to-page fit, AI-crawler access), joined search data (Search Console, URL Inspection, GA4, PageSpeed field data and backlink files matched to every URL: orphans Google still shows, non-indexable pages with traffic, low CTR, striking distance, query cannibalisation measured from Search Console), and custom search and extraction. Every finding that concerns an element carries proof: the element as served, its line in the page source and, for link problems, the linking pages. 4. **Writes it up, then checks the write-up.** One agent per site writes the narrative and re-checks the top issues live; a separate agent then fact-checks every priority and headline number and can strike or regrade module findings that turn out to be false positives. Struck findings are listed in an "Excluded after verification" appendix rather than silently dropped. 5. **Delivers** a PDF report, an interactive HTML report and an Excel workbook per site, a Screaming Frog style export workbook, an issues workbook with every affected URL and its proof, crawl maps, generated XML sitemaps, a cross-site portfolio, and on a re-audit a URL-level comparison with the previous run (including migration outcomes) that flags whether a change came from the site or from a change in the tooling. 33 named reports and read-only SQL answer follow-up questions. ## Design choices worth challenging - **Scripts measure, agents judge.** Every number comes from code; agents only pull vendor data, write and fact-check. The same data gives identical findings (the Python hash seed is pinned) and each module was regression-tested against the original audit. - **One config file per audit** (`audit.json`): sites, how they relate (groups drive the cross-domain checks), business context, which data sources are connected. Nothing about a specific client is in the code. - **Evidence standard.** Every claim names its source, date and method; vendor metrics are labelled as estimates; anything that would need Search Console (cause of a decline, cannibalisation, redirects, merges, deletions) is marked PROVISIONAL; no composite "SEO score"; no deprecated levers (FAQ or HowTo rich results, meta keywords, rel=next/prev, llms.txt for Google, word-count targets). - **Lessons become code.** False positives found by the fact-checkers are fixed in the modules and recorded in `scripts/CHANGELOG.md`; `references/lessons.md` lists 30 pitfalls from the first run. ## Requirements - An agent that reads `SKILL.md` skills (Claude Code). The orchestration steps assume Codus tools for chat updates and artifacts; outside Codus, skip those steps. - Python 3.9 or later, Google Chrome (rendering and PDF export), Node.js (Lighthouse through `npx`). - Optional but needed for the keyword module: Ahrefs API access (Lite works within the 100-row cap; about 11,000 units per site on the first run). Search Console access makes the PROVISIONAL items checkable. ## Try it without any paid data (crawl side only) ``` cp -R seo-deep-audit ~/.claude/skills/ bash ~/.claude/skills/seo-deep-audit/scripts/setup_venv.sh PY=~/.codus/seo-deep-audit/venv/bin/python S=~/.claude/skills/seo-deep-audit/scripts $PY $S/new_audit.py --root ~/seo-audits/test --site example.co.uk=https://www.example.co.uk/ $PY $S/run_audit.py --root ~/seo-audits/test all-crawl-side finish open ~/seo-audits/test/sites/example.co.uk/report/report.html ``` Crawl only sites you own or have permission to audit; the crawler is polite (four concurrent requests) and identifies itself in its user agent. The report shows "narrative pending" until the writer and fact-check phases run, which need an agent (see `SKILL.md`). ## Folder - `SKILL.md` the playbook the agent follows (phases, cast, gates). - `scripts/` crawler (with presets, recheck and a robots.txt tester), feature extraction, data import, the nine modules, the evidence stage, report builders, exports, named reports, read-only SQL, sitemap generator, visualisations, a SERP pixel checker, `run_audit.py` (stage runner), `new_audit.py` (scaffold), `compare_audits.py` and `history.py` (re-audits), `auditcfg.py` (config), `README.md`, `CHANGELOG.md`, `GENERALISE.md` (module contract). - `references/` lessons, agent briefs, data-import and Claude-judgement guides, report narrative schema, conventions template and the three research catalogues. - `templates/` example `audit.json`, `audit.options.json` with every optional key, example narrative, overview page template. ## Feedback I am after 1. Which checks or analyses would you expect from a top-tier audit that are missing, and which add noise? 2. Are the evidence rules and PROVISIONAL labelling right, too strict, or not strict enough? 3. Would you trust the duplicate, silo and keyword-cannibalisation methods as described, or would you measure them differently? 4. Is the deliverable format (PDF, interactive HTML, workbook, cross-site overview) what clients or teams would actually use? 5. Anything in the playbook that would break on a large site (10,000+ pages), an international site (hreflang) or a JavaScript-heavy site? ## Known limits - Built and tested on four UK sites of 250 to 600 pages each; very large or heavily JavaScript-rendered sites are untested. The hreflang, AMP and pagination checks were tested on synthetic data because none of the test sites uses them. Crawl-as bot presets are not IP-verified. - Without Search Console, analytics or live SERPs the audit relies on Ahrefs estimates and stored results pages, labelled as such. - Some place-name heuristics ship for the UK only (`scripts/vocab/*_gb.txt`); other countries fall back to data-derived detection. Not affiliated with any of the tools named above; their documentation is summarised for reference with links to the originals.