---
name: site-foundation-audit
description: Audit a live website's technical SEO and AI-search foundation using a deterministic Python script: raw HTML text without JS, live robots.txt (including Cloudflare-managed blocks), live AI search crawlers (OAI-SearchBot, Claude-SearchBot, PerplexityBot, Bingbot) vs training bots (GPTBot, ClaudeBot, Google-Extended), www redirect, canonicals, sitemap, and JSON-LD checks. Use before launching a site, after a CDN/Cloudflare change, or when diagnosing missing AI or Google visibility.
---
# Site Foundation & AI Crawler Audit
Run concrete, tool-verified checks on the live site before writing content or running Search Console playbooks.
## Why live checks matter
- Crawlers that do not execute JavaScript see only raw HTML. If your `
` and body copy are missing from raw HTML, AI search engines see a blank page.
- **Training bots are not search bots.** `GPTBot`, `ClaudeBot`, and `Google-Extended` are for model training. `OAI-SearchBot`, `Claude-SearchBot`, `PerplexityBot`, and `Bingbot` power live search answers. Blocking the second group removes you from AI answers.
- **Always read the live `robots.txt`**, not the copy in your Git repo. Cloudflare can inject managed blocks at the top of `robots.txt` or return HTTP 403 via Bot Fight Mode.
## Run the deterministic checker
Resolve `scripts/site_foundation_check.py` relative to this skill directory:
```bash
python3 scripts/site_foundation_check.py https://example.com
```
Add `--json` for machine-readable output. The script returns exit code `1` if any `FAIL` check is present and outputs PASS / WARN / FAIL proof items with zero arbitrary `/100` score.
## What the script verifies
1. **Homepage status & indexability:** HTTP 200 and no `noindex` in `` or `X-Robots-Tag`.
2. **Raw HTML content (no JS):** Confirms `
` and at least 50 words of body text exist in raw HTML.
3. **Canonical tag:** Confirms exactly one `` tag is present.
4. **Structured data (JSON-LD):** Parses every `