Can ChatGPT, Claude, Perplexity and Google's AI actually **read** your site and **cite** it? This is the audit BotView (`tools/botview.py`) automates. This skill explains the method so an agent can run it — with the tool, or by hand — end to end, without improvising the process. Run it for one site at a time. A first pass is one BotView run plus hand verification of the two files the tool cannot judge on its own (robots.txt and llms.txt); the re-audit after fixes is a single command.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Ai Visibility?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/loophalt-ai-visibility)
# AI Visibility Audit (GEO/AEO)
Can ChatGPT, Claude, Perplexity and Google's AI actually **read** your site and **cite** it? This is the audit BotView (`tools/botview.py`) automates. This skill explains the method so an agent can run it — with the tool, or by hand — end to end, without improvising the process.
Run it for one site at a time. A first pass is one BotView run plus hand verification of the two files the tool cannot judge on its own (robots.txt and llms.txt); the re-audit after fixes is a single command.
## Preconditions
Do not start without all of these. If one is missing, say which and stop — do not guess it.
- **The target URL** — the production host, apex (no `www` unless the site itself uses it). If the apex blocks datacenter IPs, fetch through the mirror the site actually serves crawlers from instead: usaattorneys.company's apex blocks datacenter IPs, so fetches there go through its workers.dev mirror while canonical URLs still point at the apex.
- **Python 3 and `curl` available**, and the repo checked out so `tools/botview.py` runs. BotView is zero-dependency (Python standard library only) and fetches with `curl` over HTTP/2 first, falling back to `urllib`.
- **The site is publicly fetchable.** BotView fetches the live site; a localhost or auth-gated staging URL cannot be audited this way — if the homepage fetch fails, the audit stops with an error instead of a score, and that error is the finding.
- **The run date.** Every score in the output carries a date — an audit without a date goes stale silently.
## Evidence rule (read this first)
Every claim in the output must be backed by something actually fetched or observed in this run — a status code, a header, a line from the live robots.txt or llms.txt, a BotView check line. Never report a problem that was not observed, and never report a score from memory or a cached copy. A low score is a finding, not a failure — record it as measured, with the command run and the numbers seen.
## Step 1 — Run the audit
Run BotView from the repo root. It fetches the homepage plus four files (`/llms.txt`, `/llms-full.txt`, `/robots.txt`, `/sitemap.xml`) and scores the site out of 100.
```bash
python3 tools/botview.py audit https://example.com
python3 tools/botview.py audit https://example.com --json # machine-readable, same result
```
Checklist:
- [ ] The command ran from the repo root and the full output (all 12 check lines) is captured.
- [ ] The score, the date, and the exact command are recorded.
- [ ] If the run errors with `could not fetch homepage`, stop here and record the fetch error as the finding — do not guess a score.
Evidence to record: the command as run, the date, the score, and the full check output (or the `--json` output saved for the report).
## Step 2 — Read the score breakdown
BotView's 12 checks and their points (`tools/botview.py`, `audit()`). Record each check's result and the tool's detail string verbatim — the detail is the evidence.
| Check | Points | What passes |
|---|---|---:|
| Homepage reachable (200) | 8 | Homepage returns HTTP 200 |
| Title tag | 8 | A `<title>` is present |
| Meta description | 8 | A meta description is present |
| Canonical URL | 6 | A canonical link is present |
| Exactly one H1 | 6 | Exactly one H1 |
| Structured data (JSON-LD) | 10 | At least one `@type` found |
| Readable text content | 8 | Visible text is >5% of page weight |
| llms.txt present & valid | 16 | `/llms.txt` returns 200 and starts with `#` |
| llms.txt links to key pages | 6 | At least 3 real markdown links in llms.txt |
| llms-full.txt (bonus) | 4 | `/llms-full.txt` returns 200 (optional) |
| AI crawlers not blocked | 12 | None of the 8 AI crawlers is blocked |
| Sitemap present | 8 | `/sitemap.xml` returns 200 with at least one URL |
Checklist:
- [ ] All 12 checks recorded with result and detail (e.g. `2 H1 found: "…"`, `blocked: GPTBot, ClaudeBot`, `151 links listed`).
- [ ] Failed checks listed with their point loss — the total loss must add up to `100 − score`.
Evidence to record: the breakdown table as the tool printed it, with each failed check's detail string quoted.
## Step 3 — Verify the robots.txt result by hand
BotView reports which of the 8 AI crawlers are blocked (`GPTBot`, `ChatGPT-User`, `ClaudeBot`, `Claude-Web`, `PerplexityBot`, `Google-Extended`, `CCBot`, `Bytespider`), but it cannot tell you *why* — and the why is usually not in the repo. This is the step the tool was built to catch.
**Always read the LIVE robots.txt top to bottom — never trust the site's source code.**
1. Fetch the live file (`curl https://example.com/robots.txt`) and read every user-agent group.
2. In robots.txt semantics the specific user-agent group wins: a `Disallow: /` in the `GPTBot` group blocks GPTBot even if `*` allows everything.
3. Compare the live file against the site's own robots config. If they disagree, the live file wins — look for a managed-content header or a CDN rule sitting on top of it.
The Cloudflare trap (learned the hard way): on usaattorneys.company, the site's own robots config explicitly *allowed* every AI crawler. The live file told a different story: Cloudflare's "managed content" block sat on top of it, with `Disallow: /` for GPTBot, ClaudeBot, ChatGPT-User, Claude-Web, Google-Extended, CCBot and Bytespider. The site was invisible to most AI crawlers while its code said the opposite. The fix was not in the repo; it was a Cloudflare dashboard setting (AI Crawl Control / managed robots).
Checklist:
- [ ] Live robots.txt fetched and read top to bottom; each of the 8 crawlers marked allowed / blocked / not mentioned, with the group that decides it quoted.
- [ ] Live file compared against the repo's robots config; any disagreement recorded with the live file's wording.
- [ ] If blocked but the codebase allows it: suspected CDN/managed-robots layer noted, with the header or dashboard setting that proves it.
Evidence to record: the live robots.txt lines for each crawler group, and the config lines they contradict (if any). Symptoms to suspect this trap: the audit says crawlers are blocked, but the codebase allows them. Cure: fix it at the CDN layer.
## Step 4 — Verify llms.txt by hand
BotView checks that llms.txt exists, starts with `#`, and contains at least 3 real markdown links. Verify the links yourself — the tool counts them, it does not judge them.
1. Fetch the live `/llms.txt` (not the repo copy) and confirm it returns 200 and starts with `#`.
2. Count real markdown links: `grep -c '](http' llms.txt` — the count must be ≥ 3 and roughly match the section count. **Bare paths fail**: an llms.txt full of `/about` entries instead of `[About](https://…/about)` gives AI tools nothing clickable to follow. This exact bug shipped on a production directory site and scored a silent fail until audited.
3. If llms.txt is missing or invalid, draft one from the sitemap and fix it up by hand — see the [llms-txt skill](../llms-txt/SKILL.md) for the format (real links, key facts, sitemap linked last, keep it current):
```bash
python3 tools/botview.py generate https://example.com # draft from sitemap, max 60 URLs
```
`generate` prints a draft with the homepage title, meta description, and one `- [url](url)` line per sitemap URL. It is a draft, not a finished file — fill in the section structure and key facts from the llms-txt skill before shipping it. If there is no sitemap, `generate` prints `No sitemap found — cannot generate` — add a sitemap first (Step 2).
4. `llms-full.txt` is a 4-point bonus for small sites. It is optional and never a substitute for a correct llms.txt.
Checklist:
- [ ] Live llms.txt fetched; status, first line, and link count recorded.
- [ ] Every link spot-checked to return 200 (or recorded as broken with its URL).
- [ ] If llms.txt was missing/invalid: draft generated and rewritten per the llms-txt skill, not shipped as the raw draft.
Evidence to record: the live file's first lines, the link count, and any broken links by URL.
## Step 5 — See the page as an LLM does
Run the `view` command and read what an AI model actually gets from the homepage — no markup, no scripts, just the text.
```bash
python3 tools/botview.py view https://example.com
```
`view` prints the page title, the readable text (first 6000 characters), and the total character count of readable text.
Checklist:
- [ ] `view` output captured; the readable-text character count recorded next to the Step 2 ratio (pass is >5% of page weight — below that, the page is script/markup bloat an LLM mostly cannot ingest).
- [ ] H1 count explained: BotView counts `<h1>` elements, joining the text chunks inside one heading — a single H1 split across nested markup counts as one, not two. If the audit says 2 H1s, check the HTML for a second `<h1>` element before reporting a duplicate heading.
- [ ] Schema types from Step 2 noted: which `@type`s the page ships, and which obvious types are missing for the page type (missing types go to the [schema-gaps skill](../schema-gaps/SKILL.md)).
- [ ] Citability checked (AI Search Agent, `agents/SKILL.md` §6): does the page answer its query in the first screenful with a self-contained, quotable statement of fact? Record yes/no with the quoted line.
Evidence to record: the readable-text character count, the H1 explanation if it fired, the schema types found, and the citability quote (or its absence).
## Step 6 — Fix in score order, then re-audit
Fix the failed checks in this order: first anything that blocks reading entirely (homepage unreachable, crawlers blocked), then the largest point losses (llms.txt 16 + 6, crawlers 12, schema 10), then the rest. Nothing else matters if the page cannot be fetched or crawled.
Reading the score:
- **85+** — citable. Remaining work is content and brand mentions, not plumbing.
- **60–84** — fix the specific failed checks; they're usually one-file changes (llms.txt links, a robots rule, missing schema).
- **<60** — the site is effectively invisible to AI search. Fix plumbing before spending anything on content.
Checklist:
- [ ] Every failed check has a fix with an owner (file to change, or the CDN/dashboard setting to change — the robots fix is often not in the repo).
- [ ] After every fix, re-run `python3 tools/botview.py audit <site>` and record the new score + date. A fix is not done until the re-audit shows it.
- [ ] The final score and date are recorded next to the baseline from Step 1.
Evidence to record: the before/after scores with dates, and the re-audit output for each fix. Re-audit after every fix and record score + date. Verified reference points: frinjo.me 90 (2026-10-24), 94 (2026-11-30, see [`examples/sample-audit-report.md`](../../examples/sample-audit-report.md)); igaf.me 90 (2026-10-24); usaattorneys.company 78 (2026-10-24).
## Step 7 — Hand off and re-check
This skill covers the BotView audit only — 12 checks on the homepage and four files. It is not a full SEO audit: that is the orchestrator in `agents/SKILL.md` plus the 13 checker tools in `tools/src/`.
1. Hand the report to the AI Search Agent (`agents/SKILL.md` §6) for what BotView does not cover: the AI Overview citation test on 2–3 target queries, extractable content formats (comparison tables, stat blocks, FAQ sections), and entity clarity (consistent brand name, Organization schema, same-as links to real profiles).
2. Re-run this audit monthly and record the date each time — an audit without a date goes stale silently.
Checklist:
- [ ] Report handed to the AI Search Agent with the score, the failed checks, and the fixes made.
- [ ] Next re-check date recorded (one month from this run).
Evidence to record: the handoff (score + findings) and the next re-check date.
## Output format
Return exactly this, filled in. Every field is filled or marked `n/a` with the reason — never left blank, never guessed.
```markdown
## AI Visibility Audit — <site> (<date>)
- Tool: BotView 0.1.0 (`tools/botview.py`)
- Command run: `python3 tools/botview.py audit <site>`
- Score: NN/100
### Score breakdown
| Check | Result | Points |
|---|---|---:|
| Homepage reachable (200) | ✅ HTTP 200 / ❌ … | 8 / 8 |
| Title tag | ✅ "…" / ❌ missing | 8 / 8 |
| Meta description | ✅ "…" / ❌ missing | 8 / 8 |
| Canonical URL | ✅ … / ❌ missing | 6 / 6 |
| Exactly one H1 | ✅ 1 H1 / ❌ N H1 found | 6 / 6 |
| Structured data (JSON-LD) | ✅ <types> / ❌ none found | 10 / 10 |
| Readable text content | ✅ N chars (…) / ❌ … | 8 / 8 |
| llms.txt present & valid | ✅ found / ❌ … | 16 / 16 |
| llms.txt links to key pages | ✅ N links / ❌ … | 6 / 6 |
| llms-full.txt (bonus) | ✅ found / ❌ not present (optional) | 4 / 4 |
| AI crawlers not blocked | ✅ all allowed / ❌ blocked: … | 12 / 12 |
| Sitemap present | ✅ N URLs / ❌ missing/empty | 8 / 8 |
| **Total** | | **NN / 100** |
### Findings
| Severity | Finding | Evidence | Fix |
|---|---|---|---|
| <Critical / High / Medium / Low> | <what failed> | <fetched value that proves it> | <file/setting to change> |
### Phased action plan
- Week 1 — critical: <nothing / the critical fixes>
- Weeks 2–3 — high impact: <the high fixes, then re-run the audit>
- Month 2 — content & authority: <hand to the AI Search Agent — outside this audit>
- Ongoing — monitoring: re-run this audit monthly; record the date each time.
### Open gaps
1. <what is still missing, and which step it belongs to>
```
Severity scale (see [README.md](../../README.md#how-the-agent-suite-works)): **Critical** (blocks indexing — fix now) · **High** (suppresses rankings — fix within a week) · **Medium** (fix within a month) · **Low** (backlog polish). BotView itself assigns no severity — grade each failed check against these definitions and say why. Reference point from the sample report: a duplicated H1 (0/6) graded **Medium**.
## Traps
- **Trusting the repo's robots config over the live file.** The Cloudflare trap (Step 3): the code allowed every crawler while the live file blocked them. The live file always wins; the fix is often a CDN setting, not a code change.
- **Counting H1 text nodes instead of H1 tags (fixed).** BotView used to count text nodes inside `<h1>` (Step 5), so a nested element splitting one heading read as two H1s. It now counts `<h1>` elements, joining the text chunks inside one heading.
- **Bare-path llms.txt.** Links must be real markdown links with full URLs (Step 4). Paths without links score a silent fail.
- **Plain HTTP/1.1 fetches on Cloudflare/Vercel hosts.** They get early-closed connections and report healthy pages as broken (0 bytes, no title/H1). BotView fetches with `curl` over HTTP/2 for exactly this reason — if you hand-check with a plain fetcher and get nothing, re-fetch with `curl` before believing it.
- **llms-full.txt as a substitute.** It is a 4-point bonus, not a replacement for a correct llms.txt.
- **A score from memory.** The evidence rule (top of this file) exists because cached copies and old reports are leads, not evidence. If you did not fetch it in this run, you did not measure it.
## What this is not
Not a full SEO audit — that is the orchestrator and the 14 specialist agents in `agents/SKILL.md`, plus the 13 checker tools in `tools/src/`. This skill covers the BotView audit only: 12 checks on the homepage and four files. And no invented figures anywhere: no traffic numbers, ratings, review counts, or client results the run did not fetch.