Skip to content
Back to skills

Ai Visibility

ASecurity

Score a page's readiness to be cited by AI search (AI Overviews, ChatGPT, Perplexity) — answer-first structure, facts with numbers, quotable sentences, question headings, lists/tables, FAQ, author/date signals, JSON-LD. Use when the user asks whether a page will show up in AI answers, wants a GEO/AI-search audit, or needs concrete fixes to make a page citable. Bundled script is zero-dependency Python 3 — no API keys, no external services. It measures citability from the page's own HTML; it ne...

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 28, 2026
ai-agentspythongobashapi

Works with

  • api

Security analysis

A100/100

Pro scans all 5 files and shows the line behind each finding

Scanned November 28, 2026

npx -y skills add mohammad-abbasi-sh/agent-seo-skills --skill ai-visibility --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Ai Visibility?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Ai Visibility
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/mohammad-abbasi-sh-ai-visibility/badge)](https://www.skillsdirectory.com/skills/mohammad-abbasi-sh-ai-visibility)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: ai-visibility
description: Score a page's readiness to be cited by AI search (AI Overviews, ChatGPT, Perplexity) — answer-first structure, facts with numbers, quotable sentences, question headings, lists/tables, FAQ, author/date signals, JSON-LD. Use when the user asks whether a page will show up in AI answers, wants a GEO/AI-search audit, or needs concrete fixes to make a page citable. Bundled script is zero-dependency Python 3 — no API keys, no external services. It measures citability from the page's own HTML; it never claims the page is actually cited anywhere.
---

# AI Visibility

Find out whether an AI answer would cite your page — with a deterministic local script, never vibes.

## Run the check

```bash
python3 scripts/ai_visibility.py <url-or-file>
python3 scripts/ai_visibility.py https://example.com/guide --json -o report.json
```

Run it from this skill's directory. Try it on the bundled examples first:

```bash
python3 scripts/ai_visibility.py scripts/examples/good-page.html
python3 scripts/ai_visibility.py scripts/examples/thin-page.html
```

Real output — the good example (a fictional knife-sharpening guide, 609 words):

```
AI-visibility check — scripts/examples/good-page.html
Score: 100/100 — Citation-ready (609 words)

[✓] answer-first         15/15 first paragraph answers the topic in 27 words
[✓] direct-definition    10/10 an early sentence defines the topic in one line
[✓] facts-and-figures    10/10 10 quantified facts (numbers with units)
[✓] quotable-sentences   10/10 34 self-contained sentences (12-30 words)
[✓] heading-structure    10/10 1 H1, 7 H2s, 6 phrased as questions
[✓] lists-and-tables     10/10 1 list(s) with 6 items and 1 table(s)
[✓] faq-qa               10/10 FAQPage JSON-LD present
[✓] eeat-signals         10/10 author and publication date both visible
[✓] structured-data       5/5  JSON-LD: Article, FAQPage
[✓] readability           5/5  avg sentence 15.6 words, avg paragraph 47 words
[✓] depth                 5/5  609 words
```

Real output — the thin example (195 words, no structure at all):

```
AI-visibility check — scripts/examples/thin-page.html
Score: 7/100 — Invisible to AI (195 words)

[~] answer-first          7/15 first paragraph is 70 words — trim it under 60
[✗] direct-definition     0/10 no one-line definition of the topic in the first paragraphs
[✗] facts-and-figures     0/10 no quantified facts — AI answers cite numbers, not adjectives
[✗] quotable-sentences    0/10 no quotable sentence — write 12-30 word standalone claims
[✗] heading-structure     0/10 1 H1s, 0 H2s — need 1 H1 and 3+ H2s
[✗] lists-and-tables      0/10 no list or table — AI answers love structured data
[✗] faq-qa                0/10 no FAQ or Q&A section
[✗] eeat-signals          0/10 no author and no date — add a byline and a published date
[✗] structured-data       0/5  no JSON-LD on the page
[✗] readability           0/5  avg sentence 97.5 words, avg paragraph 98 words — too dense to quote
[✗] depth                 0/5  195 words — too thin to be cited
```

## What it checks

| Check | Weight | What earns full marks |
|---|---|---|
| answer-first | 15 | First paragraph answers the topic in ≤ 60 words |
| direct-definition | 10 | An early sentence defines the topic in one line |
| facts-and-figures | 10 | 5+ numbers with units (%, minutes, degrees, months, …) |
| quotable-sentences | 10 | 5+ self-contained sentences of 12–30 words |
| heading-structure | 10 | 1 H1, 3+ H2s, 2+ phrased as questions |
| lists-and-tables | 10 | A list with 3+ items *and* a table |
| faq-qa | 10 | FAQPage JSON-LD, or 3+ question headings with answers |
| eeat-signals | 10 | Visible author *and* publication date |
| structured-data | 5 | Article / FAQPage / HowTo JSON-LD |
| readability | 5 | Avg sentence ≤ 25 words, avg paragraph ≤ 80 words |
| depth | 5 | 600–3000 words |

Grades: **90+ Citation-ready, 70–89 Strong, 50–69 Needs work, 0–49 Invisible to AI.**

## URL mode: AI-crawler access (informational, unscored)

When the target is a URL, the script also fetches `/robots.txt` and `/llms.txt` and reports whether GPTBot, CCBot, ClaudeBot, PerplexityBot and Google-Extended are blocked:

```
robots.txt: present | llms.txt: missing
AI crawlers blocked by robots.txt: GPTBot
```

This is **not scored** — a local file and its live URL get the same 0–100 — because blocking a crawler is a deliberate choice, not a content flaw. But a page that scores 100 and blocks GPTBot will still never be cited by ChatGPT, so flag it loudly when it happens.

## Interpret the report

- **Answer-first is the highest-leverage fix.** AI answers lift the first short paragraph. If it is missing, the rest of the page barely matters — say that plainly and fix it first.
- **Facts beat adjectives.** "Very fast" is not citable; "10 minutes" is. The facts check counts numbers with units, so a page full of bare years or list numbers does not pass.
- **Quotable means liftable verbatim.** A sentence counts only if it is 12–30 words, stands alone (no leading "it/this/they"), and ends with a period. Long, winding sentences are not quotable no matter how true they are.
- **A high score is not a guarantee.** The score measures how citable a page *is* — whether any AI system actually cites it depends on competition, authority and the query. Never promise a citation.
- **The fixes list is already prioritized.** Present it in order; don't reorder by what is easiest.

## Present results to the user

1. Lead with the score and grade ("100/100 — Citation-ready" or "7/100 — Invisible to AI").
2. Name the single biggest failing check and its concrete fix.
3. List the remaining fixes in the order the report gives them.
4. If URL mode found a blocked AI crawler, say so in its own line — it overrides a good score.

## Rules

- Only report values the tool returned. Never claim a page "will be cited" or "is cited" — the script measures citability, not actual citations.
- Never invent facts, statistics, author names or dates to improve a score. If the page has no number, the fix is "add a real one", not a made-up one.
- Scores come from the page's own HTML. A local file and its live URL score the same; only the robots.txt / llms.txt section differs.
- Pair this skill with `schema-forge` when the fix is structured data: generate the JSON-LD there, validate it there, then re-run this check.

Files in this skill

  • SKILL.md6.3 KB
  • scripts/ai_visibility.py21.3 KB
  • scripts/examples/good-page.html5.8 KB
  • scripts/examples/thin-page.html1.1 KB
  • tests/test_ai_visibility.py5.6 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.