The indexgap guide

The long form of the README: every command in detail, CI, the funnel, the checks, AI search, what the package does not claim, and how it was calibrated. The README keeps the short version; the reference for each command is under Commands and for each finding under Checks.

Русская версия

Why this exists

Plenty of tools audit a page. A generated pipeline breaks differently — systematically and quietly:

None of this is visible page by page. Each one looks fine on its own.


Install

pipx install indexgap

pipx keeps the tool in its own environment and still puts indexgap on your PATH — pip install into a system Python is refused outright on most current distributions. If you do not have it: python3 -m pip install --user pipx. uvx indexgap … runs it without installing anything. On Windows, if python3 opens the Microsoft Store, use py -3. To work from the main branch instead: git clone the repository and pipx install -e . in it (or run it without installing: PYTHONPATH=/path/to/IndexGap python3 -m indexgap).

See it work before pointing it at your own site. The repository carries a ten-page demo with one of each common failure planted in it:

git clone https://github.com/borisowlexa2010-star/IndexGap && cd IndexGap/examples/demo-site
indexgap check . --site https://demo.example \
  --dataset cities.csv --sitemap sitemap.xml --robots robots.txt

It reports a price that is not in the data ($1,900 where the row says $1,600), two pages that are 89% the same text, a page no link leads to, a page closed with noindex, a thin page, an AI search crawler blocked in robots.txt — and a funnel of 10 generated, 9 indexable, 7 in the sitemap.

Then, once per project:

cd ~/projects/my-site
indexgap init

init reads the project and records what makes it different: where the pages are, the site URL, the content type, the dataset. It installs skills into .claude/skills/ so your coding agent picks them up on its own, and adds the working files to .gitignore.

Nothing project-specific is ever copied between projects — it is detected fresh each time. The IndexNow key in particular is never carried over: it is bound to one domain by a file at that site's root, and a borrowed key returns 403. indexgap init --new-key mints a new one for this project.

After that, the daily command is just:

indexgap check

indexgap with no command (the same as indexgap status) prints what it found: a one-line check summary, which steps already have data — the build's sitemap.xml, console exports next to the config, markets, connected keys — and up to three next commands to run. Follow its suggestions; each command's --help (and its docs page) says the rest.

Defaults come from the project, so flags are rarely needed: --sitemap is the build's sitemap.xml, and --brand is "brand" in indexgap.json or a brand.json next to it.


Commands

indexgap init                       # install into this project
indexgap plan keywords.csv          # audit the keyword set before generating
indexgap check                      # everything local: text, structure, machine-readability
indexgap diff ./prod ./out          # two builds before a deploy: what this deploy breaks
indexgap brief --write              # turn the findings into work orders in indexgap-briefs/
indexgap sitemap --out-dir ./public # sitemap with sharding and an honest lastmod
indexgap indexnow push ./public --source manifest --key <your-key>
                                    # changed pages by the content manifest
indexgap indexnow setup --portfolio projects.json
                                    # an IndexNow key and key file for every project
indexgap indexnow push --changed    # changed URLs by sitemap lastmod or git diff
indexgap bing pull                  # Bing queries, pages and crawl errors to CSV
indexgap markets --market RU,KZ     # which search engines and consoles your markets need
indexgap engines                    # which indexes are green, amber or red, and what to do today
indexgap ctr-gap gsc-export.zip --dir ./public
                                    # snippets below your own CTR curve → ctr_targets.csv
indexgap crawlers --import-format cloudflare logpush.json --sitemap ./public/sitemap.xml  # bot visits by index
indexgap doctor --sitemap ./public/sitemap.xml --indexed gsc.csv
indexgap portfolio projects.json    # every site you own, in one run
indexgap profiles                   # what the content-type presets change
indexgap prompts lint prompts.csv  # a buyer prompt set for measuring AI answers
indexgap cite --import-answers answers/ --prompts prompts.csv --brand brand.json
                                    # does AI name, recommend and cite you?
indexgap analytics                  # GA4 channel, Metrica segment and form field for AI visits
indexgap listings --brand brand.json
                                    # a short checklist of directories worth a listing
indexgap domain-check oldocs.example --project brand.json --fetch
                                    # a domain's Wayback history before you buy it
indexgap entity --brand brand.json --fetch
                                    # do Crunchbase, Wikidata, reviews and maps say the same facts?
indexgap maps --market RU,KZ --brand brand.json --fetch --gbp-performance gbp.json
                                    # which map listings the markets need, NAP, GBP performance
indexgap cite --common-crawl example.com   # is the domain in the latest Common Crawl index?
indexgap fetch https://example.com --out-dir ./live
                                    # no build? download the live site for check
indexgap integrations               # which API keys are set and where to get the rest
indexgap integrations setup         # enter keys once, hidden, into ~/.config/indexgap/keys.env
indexgap timeline ./content --search-performance gsc-pages-daily.csv
                                    # which content worked, against when it was published and edited
indexgap skills install --global    # the skills for any agent, no clone needed
indexgap mcp                        # the same commands as MCP tools over stdio

Network and markets: --online and --market

Flags have the same names in every command (since 2.4). Only --send writes to an outside service; without it the command is a dry run. Every network read is opt-in: a fine-grained flag (--fetch, --live, --probe-bots, …) or the umbrella --online, which turns on all reads of that command and sends nothing. In doctor that is --live, --probe-bots, --probe-robots and --verify-bots; in indexnow, bing, cite, listings, entity, maps and domain-check it is --fetch; in integrations the key check. The full table is in STABILITY.md.

indexgap doctor --site https://shop.example --sitemap ./public/sitemap.xml --online
indexgap markets --market GCC,KZ        # the ARAB and GCC groups, comma lists

The market is --market everywhere: country codes, comma lists, KSA, UAE and the ARAB and GCC groups; without it the "markets" list in indexgap.json is used. The old names still work: notify, --countries, maps --perf, cite --import and the other 2.x names are silent aliases of the current ones and behave exactly as before. IndexGap removes nothing; STABILITY.md lists the aliases.

No build? Fetch the live site

check reads files. When all you have is a URL — a client's site, a competitor, a CMS you cannot build locally — fetch downloads the pages listed in the sitemap into a directory that check reads as if it were the build:

indexgap fetch https://example.com --out-dir ./live        # 500 pages by default
indexgap check ./live --site https://example.com/ --sitemap live/sitemap.xml

The sitemap comes from --sitemap, else the Sitemap: lines of robots.txt, else /sitemap.xml. robots.txt is obeyed for the indexgap user agent (a 5xx on robots.txt stops the crawl, as it stops Googlebot); no request ever goes to another host, redirects included; --limit caps the pages (--limit 0 means every page and only works with --all); --delay and --jobs keep it polite. /a/b/ is saved as a/b/index.html, /a/b as a/b.html, and fetch.json records each page's URL, status, redirects, size and type, so check reports every page under the exact URL it came from. X-Robots-Tag headers land in _headers, which check already reads; robots.txt and the sitemap files are saved next to the pages. Pages over 2 MB (where Googlebot stops reading) are flagged; 4xx/5xx and non-HTML responses are recorded but not saved. The summary prints the exact check command to run next.

indexgap fetch https://example.com --out-dir ./live --crawl    # follow links too
indexgap fetch https://example.com --out-dir ./live --render   # save what Chrome renders

--crawl also follows links, breadth first: the home page and the sitemap URLs come first, then the links they contain, then the links of those, under the same --limit, --delay, --jobs and robots.txt rules. Only links to the same host are followed (www. counts as the same host), never links with a query string (unless the URL is in the sitemap) and never links to images, PDFs, scripts and other files. fetch.json records found_by (sitemap or link, plus linked_from for a link) for every URL, and the summary lists the pages found only by links (they are missing from the sitemap), the sitemap URLs no fetched page links to (orphan candidates; an estimate when --limit cut the crawl short) and the links that answer 4xx/5xx. With --crawl a missing sitemap is not an error: the crawl starts from the home page alone.

Without --render, pages whose HTML is an empty JavaScript shell are counted and the summary says so. --render runs an installed Chromium-family browser (google-chrome, chromium, chromium-browser, chrome or msedge on PATH, or Chrome/Chromium in /Applications on macOS; --browser PATH to pick one) as --headless=new --dump-dom --virtual-time-budget=5000 on each saved page and saves the rendered DOM instead of the raw HTML; status, size and headers in fetch.json stay those of the raw response, and the page gets rendered: true. Each page gets a fresh throwaway profile and 60 seconds; a browser that hangs is killed and the raw HTML is kept. Without a browser --render stops before the first request (exit 2) and says what to install. The browser is let out only to the site: all its traffic, loopback included, goes through a proxy the package runs, which connects only to the site's host and port at the address resolved once. Scripts, fonts or APIs from other hosts, other ports on your machine and the cloud metadata address do not load (a page that needs them renders without them). The sandbox stays on; as root on Linux --render refuses to start unless --browser-no-sandbox says you accept the risk. What fetch still cannot see: URLs with query strings that are not in the sitemap, and, without --crawl, pages that are not in the sitemap.

sitemap and indexnow push --source manifest keep their state in .indexgap-manifest.json, next to indexgap.json: when each page last changed and what has been submitted. Commit it. Without it a clean CI checkout sees every page as new — today's lastmod everywhere — and indexnow push --source manifest --send refuses to submit the whole site unless you say --first. On the 5,546-page Apache APISIX build a full check takes about 30 seconds and under 600 MB of memory (Apple M1 Max); on a generated 50,000-page site, about 2.5 minutes and 5 GB. Pages are parsed in parallel — up to eight processes, INDEXGAP_JOBS=1 for one.

Output is English by default, Russian with --lang ru (or INDEXGAP_LANG, or your system locale). That includes the HTML report, every finding description, --help, and the skills indexgap init installs into your project.

Understands both built HTML and Markdown sources with frontmatter. Input file encoding is detected, not assumed: UTF-16, BOM, and the cp1251 CSVs that Russian Excel produces all read correctly. Exports are read as they come — CSV with any delimiter, XLSX straight from Ahrefs or Semrush without re-saving, JSON, NDJSON, an XML sitemap, or a plain list of URLs — and the keyword column is found whether the export calls it Keyword, Фраза, Запрос or Search Term.


What it checks

Before generating — exact duplicate keys, slug collisions and same-intent keys. That last one matters most: two keywords meaning the same thing will produce two competing pages, and it is cheaper never to create the second. Each key is also labelled by intent — buying, choosing, learning — so the pages that bring customers can be generated first.

After generating — the text

CheckWhy it matters
Numbers absent from your dataprices, terms and counts are verified against the source row. A price, or a number with one of your project's units, that is not in the data is a critical finding; a number with any other word ("12 years", "3,500 orders") is listed for you to check by eye — and so is a number written out before one of your units ("twelve months" when the row says 6; English and Russian, 2 to 99). Neither is forgiven for being repeated on many pages
Identical heading skeletonsdifferent words, same structure — a stamping tell
Identical opening sentencesthe second tell
Unfilled template slots{{city}}, %CITY%, undefined, NaN, Plumbers in , TX, lorem ipsum, a model's "Certainly! Here is…" left in the text
JSON-LD that disagrees with the pagea price, rating or review count in the markup that the visible text does not show
A past year in the title"Best plumbers 2024" in 2026: the template nobody updated
Leftover brief, status: draftunfinished pages never reach the sitemap or the IndexNow queue
"Click here" anchorsa link with no meaning in it

After generating — the structure

Near-duplicates (exact pairwise below 400 pages, MinHash + LSH above), share of unique text measured by bigrams rather than words, thin pages, orphans, broken internal links, section pages that do not link to their own pages, click depth, noindex (also from _headers, netlify.toml, vercel.json), nosnippet, foreign canonicals, pages robots.txt does not let Googlebot crawl, missing or duplicate H1, a title and an H1 that share no word, duplicate titles and descriptions, missing viewport, missing og:title / og:image, HTML over the 2 MB Googlebot reads, images over 1 MB.

Machine readability for AI search

Snippet controls (nosnippet, max-snippet:0), robots.txt rules for OAI-SearchBot, PerplexityBot, ClaudeBot, GPTBot and Google-Extended (they are not interchangeable — blocking OAI-SearchBot removes you from ChatGPT search answers, while Google-Extended does not affect AI Overviews), empty JS shells, a direct answer in the first paragraph, question-shaped subheadings, valid JSON-LD that matches the visible text, machine-readable dates and author.

The stack and how crawlers see it. check and doctor name what the site is built with — Next.js (App Router or Pages Router), Nuxt, Astro, SvelteKit, Remix, Angular, a Vite or Create React App single-page app, Gatsby, Docusaurus, VitePress, Hugo, Jekyll, Eleventy, MkDocs, WordPress, Tilda, Webflow, Wix and a few more — from package.json and config files next to the pages, or from the generator marks in the HTML when there are no sources. One line says how the pages are rendered and how many carry their text in the source HTML: Stack: Next.js 15.2 (App Router), pages are built statically; text in the source HTML on 1180 of 1200 pages. An empty JS shell then gets the fix for that stack next to the generic advice, and when the text is drawn by JavaScript, doctor shows which crawlers render it (Googlebot; Bingbot and YandexBot less reliably) and which see only the source HTML (GPTBot, OAI-SearchBot, ClaudeBot, PerplexityBot and the rest). The JSON report carries it as stack.

At publish time — sitemap sharding past 45,000 URLs and a lastmod that changes only when the text, title or description changed. Editing one menu item does not mark the whole site as modified. IndexNow sends only what changed.


Multilingual and multi-region

A programmatic pipeline is usually multilingual, and that breaks in ways a single-language site never does.

Text volume and title/description length are measured by each page's script, in display width — not by one language detected for the whole project. That distinction is not academic: on a live 2,970-page catalogue in ten languages the project language came out as en, every Chinese page was counted as English, and all 174 thin findings were false. Width also handles mixed strings, which is what real pages are: those Chinese titles are 43% Han and the rest Latin.

Anchor length is judged only in scripts where length means something. All 914 vague-anchor findings on that same site were false — "यमन" (Yemen) and "হোম" (Home) are three characters and complete words.

hreflang is checked as a cluster: a missing self-reference, a one-way link (Google discards the whole cluster rather than counting it partly), an alternate that is noindex or canonicalised elsewhere, a canonical that leaves the language and cancels the cluster, a missing x-default, and language codes where a country code was meant — uk is Ukrainian, not the United Kingdom. Codes are checked the way Google reads them: ISO 639-1 language, optional ISO 15924 script (zh-Hans, sr-Latn), optional ISO 3166-1 country. es-419, en-UK, jp, dk, iw and fil are reported with the code to use; kr, si and se are valid languages (Kanuri, Sinhala, Northern Sami) and are reported only over Korean, Slovenian or Swedish text. On a monolingual site none of this runs.

Numbers in every notation. The invented-number check reads the numbers pages actually carry: Arabic-Indic, Persian, Devanagari, Thai and full-width digits; 1.234,50, 1 234,50 with a narrow no-break space, Swiss 1'234.50, Indian 12,34,567; the Arabic ٫ and ٬ separators and ٪; scale words and signs — 3万円 is 30,000, 2億 is 200,000,000, 12,5 млн, ₹12 lakh, $2.5 million — and a currency written after the number (9.900 €, 9,900 ₪, ٩٩٠٠ دولار, 5万元). The finding shows the number as the page writes it. Until 1.20 ₹12,34,567 was read as 12.34, and an invented ٩٥٪ or 9.900 € went to "check by eye" instead of a critical finding.

The right script, the wrong language. lang-text-mismatch flags English under lang="de", Indonesian under lang="ms", Arabic under lang="fa" — the untranslated body of a translated template, which the script alone cannot show. It knows 145 languages (indexgap/data/languages.json): about 120 by their function words, the rest by a script only one of them uses (Korean, Japanese, Thai, Georgian, Armenian, Greek, Khmer, Lao, Burmese, the Indian scripts). It tells Indonesian from Malay and Danish from Bokmål by the everyday words that differ (paspor/pasport, hvad/hva), never reports Croatian against Bosnian or Serbian, flags zh-TW over Simplified characters, and stays silent when no language clearly leads or the script is shared (Tibetan). On a live site of several thousand pages in ten languages it made no wrong call on 400 sampled pages.

Google's AI answers by language. doctor lists the languages of the site's pages and, for each, whether AI Overviews and AI Mode are confirmed in it (indexgap/data/google_ai.json). Since 2.1 that file holds the full language and country lists of Google's help pages, with the date they were read; Google changes them without announcements, so a language outside them gets an info finding, google-ai-language-unconfirmed, that says "cannot confirm", never "not served". With "markets" in indexgap.json the block also names the project's markets where neither AI Overviews nor AI Mode is listed.

The same fact in every language. fact-drift compares the prices and percentages of a page with its translations in the same hreflang cluster: a fee of $35 that became 53 دولار in the Arabic version, an 85% that became 58% in the Indonesian one. Only within one currency — a version that shows local prices on purpose is localised, not drifted — and a translation that merely drops a number is not flagged. Closed translations are left out. On a live ten-language catalogue it compared 72 translation pairs and found nothing, as it should have.

Prices are found in any script and with any local sign: ۳۵ دلار, 35ドル, 35美元, 35달러, S$35, HK$200, RM 35, Rp 350.000; 85 per cent and ۸۵ درصد are percentages, and in 29, 49 and 149 dollars every number is a price. Prices converted under the same $ sign (pesos against dollars) are read as localisation, not drift.

Questions in every language. A heading is a question by its question word too, not only by ?: "أين ستقيم", "Apa sebenarnya yang dilihat pembeli", and, where the word sits mid-sentence, "खरीदार वास्तव में क्या देख रहा है" or "您将住在哪里". On that site this removed 150 false no-question-headings.

Image alts in every language. img-alt-filler flags alts that say nothing: "image", "фото", "صورة", "画像1", "이미지", IMG_2034.jpg. img-alt-language flags a Russian, Arabic, Japanese or Greek page whose alts are in Latin script — a template nobody translated. An empty alt="" is treated as WCAG intends, decoration, and is flagged only when every image on the page is marked that way.

And en-us versus en-gb is not a duplicate. Those pages are legitimately near-identical; "keep one and set a canonical" would delete the regional version. Pairs inside one hreflang cluster are excluded from the duplicate check and reported separately.


From findings to work orders

A report answers "what is wrong with me". indexgap brief answers "what do I do" — it lays the same findings out as markdown files in indexgap-briefs/, mirroring the page tree, each with an imperative fix, the thresholds the fix has to meet, the dataset row as the only permitted source of numbers, and the exact command that checks the fix. For built pages the brief says so: the fix goes into the template, the data or the generator, then the site is rebuilt.

indexgap brief --dataset keywords.csv        # dry run: says what it would write
indexgap brief --dataset keywords.csv --write

On the live 2,970-page catalogue the check reports 6,074 findings and brief writes 966 work orders. The difference is three placement rules, and they are the whole point:

--limit (50 by default) writes the heaviest pages first; 892 briefs is not a task list, it is a second report. Nothing is created without --write.

The package writes no text, on purpose. Its central check compares the numbers on a page against the dataset row that produced it. If the package supplied those numbers itself, the check would be checking its own output and would always be green. So brief states the task and stops; a person or an agent writes the words.


In CI

A site that already has a hundred critical findings cannot turn on --strict: the build is red from day one, and someone switches the check off. A baseline fixes that. Run once, commit the data, and from then on the build fails only on findings that are new:

indexgap check --out indexgap-baseline.json      # once; commit the file
indexgap check --baseline indexgap-baseline.json --strict

A finding is matched by page, check and level, not by its wording, so a changed number in the message does not make it new. Findings with a subject — which bot is blocked, where a broken link points, which page is the twin — also compare the subject: unblocking one AI crawler and blocking another is a new finding, while fewer broken links is not. The run prints what appeared and what is gone, and both go into the JSON under baseline.

Some findings are accepted on purpose: a print version without a viewport, a glossary that is meant to be short. List them in indexgap.json and they stop counting toward the score, the briefs and --strict; the run prints how many were accepted, and the JSON keeps them under accepted:

{"ignore": {"no-viewport": ["/print/*"], "thin": ["/glossary/*"], "no-og": true}}

A code that does not exist is an error, not a silent no-op.

Before a deploy: diff

Each build can look fine on its own while the deploy between them breaks the site: a page that had impressions is simply not generated any more, one line in a template puts noindex on a whole section. diff compares the build that is in production with the new one:

indexgap diff ./prod-build ./out --site https://example.com --strict

It reports pages that disappear (critical if they were indexable and nothing redirects them — _redirects, netlify.toml and vercel.json next to the new build are read, splats and :params included), pages that close (noindex appears, the canonical starts pointing elsewhere, a draft, a redirect stub), title/H1/description changed on most pages of one URL template at once, pages whose text drops by more than half, new pages per template, and — unless --no-checks — critical check findings that are new in NEW against OLD. Numbers that are not in the data are findings only against a dataset: pass --dataset keywords.csv (and --keyword if the column is named otherwise), or name it in indexgap.json, and both builds are checked against it. The report goes to indexgap-diff.html with the data in indexgap-diff.json (items in the same level/url/code/message shape as findings); --strict exits 1 if anything is critical.

Risk by template

check also groups pages by URL template (/plumbing/*/, templates of at least ten pages; the rest is other) and scores each 0–100: the average over its pages of the page's worst finding, where a critical finding weighs 0.5–1 by its code and a warning 0.15–0.3. The five riskiest are printed after the summary, the report has a table, and the JSON has templates with pattern, pages, critical_share, warning_share, top_codes and risk. A site with no template of ten pages gets an empty list and nothing extra in the console.

Exit codes: 0 — the run finished (findings or not); 1 — --strict and there are critical findings (only new ones, with --baseline); 2 — the input is wrong: a directory or a file that is not there (a typo in --sitemap or --robots included), a site address without a scheme, a foreign file where a report would be written, or a portfolio where no project could be checked; 130 — interrupted. The JSON carries "schema": 2; it changes only when the meaning of a field does. Steps of the funnel and cross-engine rows have stable ids — the name beside them is translated. For machines, run with --lang en.

On GitHub it is one step. The summary — counts, new critical findings, the most frequent checks — appears on the run page, and the HTML report is kept as an artifact:

- run: npm run build
- uses: borisowlexa2010-star/IndexGap@v3.0.1
  with:
    root: out
    site: https://example.com
    baseline: indexgap-baseline.json   # optional
    args: --sitemap out/sitemap.xml    # optional, anything `check` accepts

With old-root the same step also runs diff against the previous build: its summary goes on the run page after the check's, its report and data into the same artifact (outputs diff-report, diff-data), and with strict the step fails if either run fails. The action does not fetch the previous build — that depends on how you deploy. The simplest source is the previous commit:

- uses: actions/checkout@v7
  with:
    fetch-depth: 2                     # the previous commit as well
- run: npm ci && npm run build         # the new build → out/
- name: Build the previous commit into old/
  run: |
    git worktree add ../prev HEAD~1
    (cd ../prev && npm ci && npm run build)
    mv ../prev/out old
- uses: borisowlexa2010-star/IndexGap@v3.0.1
  with:
    root: out
    site: https://example.com
    baseline: indexgap-baseline.json
    old-root: old
    diff-args: --dataset keywords.csv  # optional, anything `diff` accepts

HEAD~1 is what is in production only if every commit to the branch is deployed; on a pull request it is the tip of the base branch. If production is something else, download the last deploy's build instead (for example actions/download-artifact with run-id and github-token) and pass its directory as old-root. old-root needs root: the directory of the new build has to be named.


The funnel

The reason to install it at all:

Generated                 58
Indexable                 56   (−2: noindex or a canonical pointing elsewhere)
In sitemap                56
In at least one index     28   (−28: the engine knows the URL and didn't add it)

Why pages are not indexed:
    7  orphaned or unreachable  → link them from hub pages
   12  deeper than the click budget → move them up
    9  no local explanation → check status in Search Console

Index data comes from ordinary exports — no API keys. A webmaster panel is the direct source (Search Console, Bing Webmaster Tools, Yandex.Webmaster, Naver, Seznam), but not everyone has one, so exports from Ahrefs, Semrush, Serpstat, Moz, Screaming Frog, Sitebulb, JetOctopus, OnCrawl, Netpeak, GA4, Matomo, Plausible — or a plain list of URLs — are read too, in CSV, XLSX, JSON, NDJSON or XML.

They are not interchangeable, and the tool refuses to pretend otherwise. A panel answers "does the engine know this page". Analytics proves a page is indexed, but only for pages someone actually visited — its silence proves nothing. A crawler proves reachability, not indexation. Ahrefs and Semrush are their index, not Google's. So the funnel step is renamed to match the evidence — "at least in one index" versus "known to a third-party service" — and when a crawler export sits next to a panel, the report says out loud that the step count is higher than real indexation. Engine-vs-engine comparison runs over panels only.

Ask for all the panels you have, not just Google. A page missing everywhere is a technical problem. A page missing only in one engine was crawled and accepted by the others, which makes it a quality or speed question that technical fixes rarely solve. Without the split the two look identical and people fix the wrong thing.

Which panels your markets need. indexgap markets --market RU,KZ prints the search engines of those countries with their shares (StatCounter, with the month of each country; indexgap/data/markets.json), the consoles that are required — an index with 10% of searches or more in at least one market, with Yahoo and DuckDuckGo counted toward Bing's index — and which AI surfaces take pages from which index: Copilot, Yahoo, DuckDuckGo, Ecosia and partly ChatGPT from Bing; Claude from Brave; Perplexity from its own; Alice AI from Yandex (almost only the top ten); Gemini, AI Overviews and AI Mode from Google; ERNIE from Baidu. For Yandex markets it says where search volumes come from now: the Wordstat methods of the Direct API answer 509 since 2026-10-18, and the replacement is Wordstat in Yandex Cloud Search API (about 20 RUB per 1,000 requests, at most 100 an hour and 1,000 a day). With "markets": ["RU", "KZ"] in indexgap.json, doctor adds a non-Google layer: which consoles have an export in the run and which are missing, with a market-engine-missing warning for each market whose engine has 10% or more and no data. The shares say where people search; they are not a traffic forecast.

Indexes, not interfaces. indexgap engines colours every index of the project from the facts of the run — a console export, the main bot allowed by robots.txt, the bot in the logs (--logs, --doctor or --visits, a JSON of rows {date, bot, index, url, status}), measured answers (--cite) — and names one action for today for each index that is not green, with index-uncovered and no-measure. --portfolio portfolio.json does it for every project, and portfolio shows "indexes green/total". The registry is indexgap/data/engines_map.json.

IndexNow, and what it does not reach. indexnow push --source manifest sends one request to the global api.indexnow.org, in batches of up to 10,000 URLs (the protocol's limit); the fallback participant list and the endpoint live in indexgap/data/indexnow.json. Google does not take part in IndexNow. Google's Indexing API is allowed only for JobPosting and BroadcastEvent pages, and spreading submissions over several accounts to get around its quota is against its terms, so the package never sends ordinary pages there; paid "indexers" are not supported or recommended. --yandex-recrawl --send also puts the changed URLs into the Yandex Webmaster recrawl queue (OAuth token in YANDEX_WEBMASTER_TOKEN, daily quota read from the API every time; what does not fit is left to IndexNow). On Vercel, send after the new version is live, not during the build: run indexnow push --source manifest --send from a job that a successful deployment triggers — GitHub Actions on deployment_status, or a Vercel webhook for deployment.succeeded. A Deploy Hook only starts a build, so a site rebuilt by a Deploy Hook (on a schedule, from a CMS) still sends from that follow-up job. A postbuild script should only write the key file (--write-key --key-dir public) and print the dry run: at that moment the new pages are not online yet, and engines that come at once would read the old version. Commit .indexgap-manifest.json, or a clean build sees every page as new.

IndexNow across a portfolio. indexgap indexnow setup makes a key for a project, writes <key>.txt into public/ or static/ (or --key-dir) and records it under "indexnow" in indexgap.json; --portfolio projects.json does it for every project, each with its own key (a key belongs to one domain). indexgap indexnow push --changed sends the sitemap URLs whose lastmod is newer than the last accepted submission (or --since), or with --source git --since HEAD~1 the pages whose files changed; without --send it is a dry run, and with it every answer is appended to .indexgap-indexnow.jsonl. doctor and portfolio report indexnow-missing for a project with no key or no key file. push --source manifest also takes the key from indexgap.json. On Vercel, send from CI once the deployment has succeeded:

# .github/workflows/indexnow.yml
name: IndexNow
on: deployment_status
jobs:
  push:
    if: github.event.deployment_status.state == 'success' && github.event.deployment.environment == 'Production'
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
        with:
          fetch-depth: 2
      - run: pipx install indexgap
      - run: indexgap indexnow push --changed --source git --since HEAD~1 --send

The key is not a secret (its file is public), so it stays in indexgap.json.

Bing Webmaster API. indexgap bing pull writes bing-queries.csv, bing-pages.csv and bing-crawl-issues.csv for the site (key in BING_WEBMASTER_API_KEY, sent as the apikey parameter). indexgap bing submit --urls urls.txt --send (or --changed) is the fallback to IndexNow: the URL Submission API within the daily quota read from the API. Endpoints and sources are in indexgap/data/bing.json; the Copilot / AI Performance report has no API and is not supported until there is a real export sample.

AI citations are a step of their own. Bing Webmaster Tools → AI Performance exports the pages Microsoft Copilot cited and how often. Pass it like any other export (--indexed ai-performance-pages.csv; the Citations column is enough for the tool to recognise it) and the funnel gains a last step — cited — after the index. It is deliberately not merged into the index step: the export is a sample, 93 pages on a site with over a thousand indexed, and merged in it would declare everything else unindexed. What it adds that nothing else can: pages the AI still cites although you closed them from search, and cited pages you left out of the sitemap. The queries export from the same screen holds no page addresses; the tool says so and tells you which tab to export instead.

Every sitemap, and everything the engine knows that you did not generate. --sitemap can be repeated, and when robots.txt declares sitemap files you did not pass, the tool names them — on a live site one sitemap.xml held 13 URLs and the three declared files together held 94. Addresses the engine reports but the site does not contain are listed by meaning: other hosts (staging, admin, internal tools — the ones to close), pages that no longer exist (redirect them), and files.

One honest caveat the tool states out loud: the Search Console "Pages" export is an impressions report, not an index report. A page that is indexed but has no impressions won't appear in it. When that export is the only panel, the step is called "with impressions in search" rather than "in the index", and pages without impressions are not reported as unindexed.

The gap has an address: gaps by section. "40 pages are not indexed" does not say what to fix. doctor (and check given a sitemap or an export) splits every loss by URL section and highlights the section that loses noticeably more than the rest of the site — /rent/ lost 16 of 20 ← the gap is here — because then the cause is usually one for the whole section: its template, its internal links or its sitemap. It compares a section with the rest of the site, not with the average, which one bad section drags down; sections under five pages are not highlighted; a site that keeps everything under /blog/ is split one level down. The table is in the HTML report and in the JSON under segments.

doctor --live separates what is done from what is left. An export shows the past: on one live site four of five "missing" pages already answered 301, and on another six of seven stray hosts were already closed with noindex. With --live each such address is checked over the network — a page is fine if it redirects or answers 404/410, a host if it sends noindex, sits behind a login or has moved to another host — and only what still needs a hand is listed. Redirects within a host are followed to the final answer: a GitLab root that 302s to a public sign-in page is open, not closed. It is the one part of doctor that uses the network, so it runs only when asked.

Mainland China and Baidu: readiness, not rankings. doctor --market CN (or "markets": ["CN"] in indexgap.json) checks the Chinese (zh-*) pages for what keeps Baidu and readers in China out: resources from hosts that do not load there (Google Fonts, Tag Manager, Analytics, reCAPTCHA, YouTube — cn-blocked-asset, list in indexgap/data/cn_blocked_hosts.json), Baiduspider closed in robots.txt, no Baidu verification, Chinese pages without hreflang, and — from the --probe-bots headers — a Vercel host (cn-host-risk). Baidu is not in IndexNow; --send pushes the Chinese pages to Baidu's link push API with BAIDU_PUSH_TOKEN, and without it the run only counts them. Check the demand from China first: the docs page for doctor explains why.

Keep a history. doctor --history reports/ saves every run in that folder, compares it with the previous one by itself (no --baseline needed) and draws reports/trend.html: the pages at every funnel step and the pages AI search opened, run by run. It is how you see that a fix worked.

What changed since the last run. doctor --baseline old-doctor.json compares this run with a previous one: funnel steps up or down, pages that dropped out of the index or the sitemap and pages that came back, sections that newly became gaps, AI bots that disappeared from the logs. A gap is cheapest to fix the week it appears, because then it points at one deploy.


AI search, honestly

It does not promise citations in AI search, and it says so in the output. Ahrefs, across 75,000 brands, found AI visibility correlates most with mentions off your site (0.66–0.74) and with page count at 0.19 — which is exactly what a programmatic pipeline produces. 76% of AI Overview citations come from pages already ranking in the classic top 10.

So: machine readability is a necessary condition and this tool's job. Getting cited is decided by work outside your files, and that is not a code problem.

indexgap cite measures the thermometer, and says so: it asks Perplexity, the OpenAI Responses API, the Gemini API and Grok a set of real questions and counts how often your domain comes back in the sources. It reports a share of runs, not yes/no, because these answers are not deterministic. And it never says "ChatGPT cites you" — what it measured is the API, which OpenAI's own docs describe as behaving differently from the product. It needs API keys only to query the APIs, and it sends nothing without --send.

Recommended, not just cited. A citation is one of three different things. An answer can name a brand, recommend it, or cite its site, and an AI can cite your blog while recommending three competitors. 1.31 measures all three:

indexgap prompts lint prompts.csv --brand brand.json      # buyer prompts vs category prompts, no brand names
indexgap prompts pack prompts.csv --out paste-pack.md     # a pack for collecting answers in the apps by hand
indexgap cite --import-answers answers/ --prompts prompts.csv --brand brand.json --out cite-2026-12
indexgap cite --import-answers answers/ --prompts prompts.csv --brand brand.json \
  --facts --root ./public --targets targets.csv --fetch --out cite-2026-12

Engines recognised for app answers include ChatGPT, Gemini, Perplexity, Claude, Copilot, Google AI Mode, DeepSeek, Qwen, Quark, Kimi, Doubao, Yuanbao, ERNIE, GLM, Alice AI, GigaChat, Reddit Answers and Le Chat. API measurement covers Perplexity, OpenAI, Gemini, Grok, Claude (Messages API web search), DeepSeek, Qwen, GLM, Doubao, Mistral and Alice AI (Yandex AI Studio). The report shows where AI takes its sources in your niche (video, forums, social, review sites, media, reference, government, competitors, your site), counted from the collected answers only.

Brave Search positions. cite --provider brave --prompts prompts.csv --send (key BRAVE_API_KEY) records your position, the competitors' positions and the third-party pages in the Brave top 20 for every prompt; --targets writes those pages with source=brave. It is a search results page, not an AI answer, and is reported apart from citations. cite --brave-site example.com --send shows how many of your pages Brave returns for site:. The dry run prints the number of requests and the cost.

Measurements compared, noise named. cite --baseline old.json --against new.json compares two measurements without sending anything (--send --baseline old.json compares a fresh one). A change in share is called notable only when an exact Fisher test separates it from noise — with three runs per question, 1/3 → 2/3 is noise, and the report says "within noise" instead of "growth". It lists competitors that came into and dropped out of the sources. doctor --cite result.json puts the measured citations into the funnel and the gaps by section, next to Copilot's.

Where an engine publishes what it actually cited, the thermometer is not needed. Bing Webmaster Tools does, for Copilot, and indexgap doctor reads that export directly — observed citations per page, no keys, no sampling of your own. It still says what the number is not: a count of citations, not a ranking, and silence in it proves nothing about indexing.

The brand off the site

The brand off the site. indexgap entity --brand brand.json lists the profiles an AI answer learns who you are from — Crunchbase, LinkedIn, Wikidata, G2, Capterra, Trustpilot, Clutch, the app stores, Google Business Profile, Apple Business Connect, Bing Places, Yandex Business and 2GIS — and, with --fetch, compares the facts they show with "facts" in brand.json (entity-fact-mismatch). Only the addresses under "profiles" are downloaded; Wikidata is read by QID. cite --provider all asks every provider that has a key and prints one table across them; every answer carries collected_via (api, app_paste, browser). cite --common-crawl checks the domain in the latest Common Crawl index (not-in-common-crawl).

Directories, briefly. indexgap listings --brand brand.json prints a checklist from indexgap/data/listings.json, with the link attribute and the date it was checked: SaaSHub and PeerPush (dofollow), AlternativeTo and Product Hunt (nofollow/ugc, valuable as mentions), G2 and Capterra, the official MCP Registry, Glama, MCP Market and the Claude Connectors Directory (remote HTTPS servers with OAuth only), Dev.to and Substack (dofollow links in articles), Hashnode, Medium and GitHub (nofollow). More than 10–20 directories per domain is not needed — Google treats links from low-quality directories as link spam. With --fetch the pages you name under "listings" in brand.json are downloaded and searched for the brand and domain; a page that cannot be read is reported as unread, never as "not listed".

Maps. indexgap maps --market RU,KR (or "markets" from indexgap.json) prints the key maps of each market and the others worth a listing, with the owner product behind each: Google Business Profile, Apple Business Connect, Bing Places, Yandex Business, 2GIS, Naver Smart Place, Kakao, Baidu Maps, Amap, Petal Maps, Firmy.cz for Mapy.cz, Waze, OpenStreetMap, TomTom and HERE. The reference is indexgap/data/maps.json; every fact names its page and says whether it was read on the vendor's site. --brand brand.json checks the listings under "profiles" (maps-listing-missing) and UTM tags on the website links under "website_links" (maps-link-untagged); --fetch compares the name, postal code and phone on the listings; --gbp-performance reads a Business Profile Performance API response (views, calls, direction requests, website clicks). indexgap analytics adds a "Maps" channel for GA4 and a Metrica segment, and doctor --logs counts people referred by a map (a lower bound: map apps usually send no referrer).

--stats (2.1) reads the statistics exports of the other consoles and prints them in one table with Google Business Profile — map views, calls, directions, website clicks per map:

indexgap maps --gbp-performance gbp.json --stats yandex=yandex-stat.xlsx \
  --stats apple=insights.csv --stats 2gis=2gis.xlsx

None of the three documents the columns, so the file is read by RU/EN aliases of those metrics, with metrics in columns and days in rows or the other way round, and a "Total"/"Итого" row is not added twice. The aliases, the page and the date of the check sit in perf of each map in indexgap/data/maps.json ("confirmed": false), and the output says the totals came from aliases. The map is recognised by words in the file or its name; the label (yandex=, apple=, 2gis=) wins. "Views" mean different things per map — Google counts profile impressions, Yandex visits to the profile, Apple place card views — so compare one map over time, not the maps with each other.

Crawlers, AI browsers and visitors in your logs

AI crawlers from your server logs, no keys. doctor --logs access.log (combined format or CDN JSON lines, .gz read as is, repeatable) shows which bots actually fetched which pages, split by why they came: training (GPTBot, ClaudeBot, CCBot), AI search (OAI-SearchBot, Claude-SearchBot, PerplexityBot) and on a person's request (ChatGPT-User, Claude-User, Perplexity-User) — the closest the logs get to "an assistant used this page in an answer". Only the last two count toward "opened by AI search", because training crawls do not decide today's citations. A section AI search skips is highlighted like any other gap by section, and an AI bot getting 401/403 on most requests is named for what it usually is: a CDN or WAF rule (on Cloudflare, the AI Crawler and Agent access policies and AI Crawl Control), not robots.txt. Bots are identified by User-Agent, which can be faked, and the report says so. For Cloudflare, point --logs at Logpush JSON lines of the http_requests dataset (ClientIP, ClientRequestHost, ClientRequestMethod, ClientRequestURI, ClientRequestUserAgent, ClientRequestReferer, EdgeResponseStatus, EdgeStartTimestamp in any timestamp format). The Logpush job is created with an API token scoped to the zone with Logs: Write (cfut_… user or cfat_… account token), not the Global API Key; IndexGap reads the files and needs no token.

--probe-robots reads the live robots.txt and shows what differs from the build's: the block Cloudflare's managed robots.txt puts in front of the file, and Content-Signal lines. check reads those lines too: ai-input=no asks crawlers not to use the site in AI answers and search=no to leave it out of search, and both are findings; ai-train=no is a training decision and only a note. Behind Cloudflare with training opted out, it warns that Cloudflare's Training action also covers mixed-purpose crawlers.

The same logs show people who came from an assistant: page visits by a browser whose referrer (or utm_source) is ChatGPT, Perplexity, Gemini, Copilot, Claude, DeepSeek, Alice AI and the other domains in indexgap/data/ai_referrers.json. It is a lower bound — clicks from the ChatGPT app and from Alice usually carry no referrer at all.

AI browsers: what can and can't be measured. Comet, Opera Neon, Dia, Edge with Copilot, Chrome with Gemini, Brave with Leo, Genspark, Fellou and Sigma run on the person's own computer and send that browser's ordinary User-Agent; none of them signs its requests. In a log their visits cannot be told apart from a person's, and doctor --logs says so instead of guessing. What it does recognise, as a separate AI browser agents group (apart from crawlers and from people): cloud browsers that name themselves — the Google-Agent and Claude-Agent tokens — and requests signed with Web Bot Auth, by the Signature-Agent header ("https://chatgpt.com" for ChatGPT's cloud browser, g="https://agent.bot.goog" for some Google-Agent requests; an unknown signer is listed under its host). The header is read only when the log carries request headers — Caddy (request.headers), Cloudflare Logpush with custom fields (RequestHeaders), an nginx JSON format with $http_signature_agent; combined logs never do. The signature itself is not verified (the CDN does that). Pages the agents opened count toward "opened by AI". Referrers: edgeservices.bing.com (Copilot in the Edge sidebar, only sometimes) and genspark.ai are counted as AI visits. None of these browsers has a public answer API; the nearest are the APIs of the index behind them — Perplexity's Sonar for Comet, the Gemini API for Chrome, and cite --provider brave-answers (Brave Answers API, key BRAVE_ANSWERS_API_KEY, $4 per 1,000 searches plus $5 per million tokens) for Leo's Brave index. Their assistants' answers are collected by hand into the comet, neon, dia, leo, genspark and fellou folders of prompts pack. The browser list, the index behind each one and the sources are in indexgap/data/ai_browsers.json.

Mainstream browsers with AI. These answer about the page already open or search for the person; they add no visits of their own to a log, so doctor --logs does not list them among the indistinguishable agents.

Entries whose vendor pages could only be read through a search index say so (checked: official-page-search and notes).

Your visitors' browsers and their default search. Every browser sends its searches to a default engine, often a different one per country, and has search surfaces of its own (address-bar suggestions, Safari Suggestions, Siri Suggestions and Spotlight fed by Applebot, new-tab feeds). With --logs, doctor adds a short Visitors' browsers block: the top browsers of people's page requests (bots and AI agents are already counted apart), the share of in-app browsers (Instagram, Facebook, WeChat, TikTok, LINE, Telegram's WebView and others have no search, and their empty referrer turns into "direct" traffic in analytics), and, when it is not all Google, the indexes those browsers search by default — Yandex for Yandex Browser, Bing for Edge (and for IE11 user agents, which today are mostly Edge in IE mode), Naver for Whale, Cốc Cốc, Seznam. When indexgap.json names exactly one market, its country picks the regional default. Brave, Vivaldi, Arc, Ecosia, LibreWolf, Tor Browser and Mullvad Browser send another browser's User-Agent and are counted under it. JSON key: visitor_browsers. The registry — sixty-odd browsers, including legacy, Linux and regional ones, with default search by region, the User-Agent pattern, status and sources — is indexgap/data/browsers.json. Default search points at the engines-map indexes, including Petal, Sogou, 360, Shenma and Daum.

--verify-bots checks each bot address against the ranges OpenAI, Perplexity, Google and Bing publish (and DNS where the operator documents it) and drops spoofed requests; it uses the network, so it runs only when asked. Vercel log drains are read as they are, as well as Cloudflare Logpush, Fastly and nginx/Apache. Baiduspider is recognised in logs and verified by reverse DNS (*.baidu.com, *.baidu.jp).

On Vercel, put a firewall rule for AI bots in log mode, not deny: deny also turns away OAI-SearchBot, ChatGPT-User and Claude-SearchBot, the bots that fetch pages for answers. Vercel's bot protection does not work behind Cloudflare; there Cloudflare's own bot settings decide.

AI visits in analytics

Counting AI visits in analytics. indexgap analytics prints, without touching the network, a regular expression for your own "AI" channel group in GA4 (put it above Referral; the built-in AI Assistant channel leaves out Perplexity), a Yandex Metrica segment condition on the referrer, and an optional "How did you hear about us?" form field. check --forms reports lead forms without such a field (no-source-field, info); search, newsletter, login and comment forms are left alone.


Content-type profiles

Thresholds differ across content types by substance, not taste. 250 words is normal for a guide and absurd for an event card; fact-checking is meaningless where there is no dataset at all.

ProfileForWhat changes
catalogpages generated from data rowsfact-checking is primary; duplicate threshold 0.80; thin under 250 words
eventslistings, schedules, venuesthreshold 0.88 — two dates of one tour are legitimately similar; adds stale-event
ugcfeeds, threads, reviewsfact-checking is switched off and says so; threshold 0.92

stale-event catches an event whose date has passed while the page stays open to indexing. That isn't a traffic problem, it's a trust problem: someone drives to a concert that no longer exists.

For ugc, silence is not a clean bill of health — it means there was nothing to check against, and the tool prints that as a line rather than leaving you to assume.

Business profiles. A business site with a blog and landing pages is not a generated catalogue. saas, ecommerce, local, media, marketplace, app, devtools and ymyl set thresholds for that kind of site and also sort the pages into page types — pricing, docs, comparisons and alternatives, integrations, use cases, product pages, shipping and returns, about the newsroom — by URL words in eleven languages and by schema.org types. indexgap check --profile saas reports each expected type with no page (pagetype-missing) and a few documented checks on those pages (pricing-opaque, comparison-unnamed, product-markup-missing, discover-image-preview, localbusiness-missing, app-store-link-missing, app-banner-missing). indexgap ctr-gap gsc.csv --dir ./public adds "demand without a page": query intents (pricing, "X vs Y", alternatives, best-of, integrations, how-to…) with impressions and no page type that serves them. Other traffic surfaces — Discover, News, Shopping, Jobs, app stores, forums — and what the package covers for each are listed in docs/guide-traffic-gaps.html.


Demand without a page

Impressions with no page to serve them point at the pages worth adding. ctr-gap finds them in a Search Console export (see Business profiles above); rank-tracker exports add the keywords a console does not show.

Rank-tracker exports. A tracker knows the position, the ranking URL and the volume of each keyword, but not impressions or clicks, so its rows never enter the CTR curve. --positions (2.1) on plan and ctr-gap turns them into a gap view instead:

indexgap plan --positions topvisor.csv                 # the tracker's keywords are the plan
indexgap plan keywords.csv --positions semrush.csv     # warn where a page already ranks
indexgap ctr-gap gsc.zip --dir ./public --positions ahrefs-rank-tracker.json

The output gives keywords and volume per position band (1–3, 4–10, 11–20, 21–100, not ranking), the keywords close to the top and the demand with no position, sorted by volume. plan adds the planned keywords for which a page already ranks in the top 20 (a new stub would compete with it); ctr-gap adds tracker URLs that are missing from the build and top-20 keywords that have no impressions in the Search Console export (another engine or region, or demand below the console threshold). JSON goes to plan --json and ctr-gap --out under positions.

The tracker is recognised by the header or the file name; a label (--positions serpstat=file.csv) wins, and an unrecognised file is an error that lists the known labels and the headers it saw. Positions by date in columns (Topvisor, Semrush <domain>_YYYYMMDD with …_landing) are reduced to the latest date; several rows per keyword to the best position. indexgap/data/trackers.json records the page and date for each tracker. Only the Ahrefs Rank Tracker format is confirmed (API v3 rank-tracker/overview, JSON {"overviews": […]} or CSV with keyword, position, url, volume); Topvisor, Semrush, SE Ranking, Serpstat, SISTRIX and Keys.so are read by RU/EN aliases because their help pages could not be opened, and the output names the columns it took.


Portfolio

Separate reports answer "what's wrong with this site". A portfolio answers the question you can't see in them: what breaks the same way everywhere.

  · catalog    2933 pages  critical  412  [catalog]
  · events      840 pages  critical   61  [events]
  · feed       5100 pages  critical    0  [ugc]
  · product      34 pages  critical    2  [saas]

Shared problems, as a share of each project's pages:
  orphan        3 projects: catalog 41%, events 38%, product 35%
  same-opening  2 projects: catalog 62%, events 55%

Shares, not counts: a hundred findings across three thousand pages and ten across twenty are the same disease at different volumes. One project failing doesn't stop the run — it becomes a line in the report.


Timeline: what worked, against publishing and edits

Big content sites need to know which pages worked and which did not, against when they were published and how they were edited. indexgap timeline reads the content folder's git history (the first commit of a file is its publication, the later commits are edits with lines added and removed; front matter, JSON-LD and sitemap lastmod when there is no git) and Performance → Pages exports from Search Console, Bing or Yandex Webmaster (with a date column, or one file per period).

indexgap timeline ./content --site https://lumenly.example \
    --search-performance google=gsc-pages-daily.csv --out timeline.json --out timeline.csv

Per page: published, edits, last substantive edit, the clicks and impressions trend, and every substantive edit with equal windows before and after it (28 days), labelled rose, fell, no clear change or too little data. Per site: cohorts by publication month, pages that never got an impression, decaying pages, edits followed by a drop and a section breakdown. Every comparison is set against the whole site over the same days, and it is still correlation, not cause: seasonality and search updates move every page. Details: docs/commands/timeline.html.


A domain before you buy it

indexgap domain-check oldocs.example --project brand.json --fetch reads the homepage history from the Wayback Machine CDX API (one snapshot a month, gaps over a year), reads 5–10 snapshots in raw id_ mode, matches their topic with the project (high/medium/low) and looks for doorways, language changes, parking, off-niche casino/pharma/adult words and PBN traces. --links adds an export you made (Ahrefs API fields or domain,anchor,first_seen) for spam-anchors and link-spike. The verdict is buy-and-build, redirect-only or skip, with a note on Google's expired domain abuse policy. Without --fetch it only prints the requests; --save keeps the data, and --cdx-file with --snapshots reruns from it.


Keys and connectors

Almost everything runs without keys. The exceptions — cite --send to AI APIs, Brave Search, the Yandex and Bing Webmaster APIs, Baidu link push, Cloudflare, IndexNow — read their keys from the environment or a private local store.

indexgap integrations lists every outside service the package can use — the cite providers, Brave Search, Claude, Baidu link push, the Yandex Webmaster API, the Bing Webmaster API, Cloudflare and IndexNow — with the environment variable each reads, whether it is set (the value is never printed) and where to get a key. --send checks each configured key with one free request (a model list, a token check) and skips the ones that can only be checked with a paid call; --json is for scripts.

Keys without exporting each one. indexgap integrations setup walks the services grouped by goal — measure AI answers, index faster, logs and CDN, markets — shows what each key unlocks, whether it is free or paid and where to get it and reads the key with hidden input (Enter skips); with --send it also checks each key with the same free request, without it nothing leaves the machine. Keys go to one private store, ~/.config/indexgap/keys.env ($XDG_CONFIG_HOME; %APPDATA%\indexgap\keys.env on Windows), created with mode 0600; a store readable by others gets a warning, and a store path inside a git working tree is refused without --force. For scripts: printf %s "$KEY" | indexgap integrations set OPENAI_API_KEY (stdin, --send to check), indexgap integrations unset OPENAI_API_KEY, and indexgap integrations where, which says for each key whether it comes from the environment, the project file or the store — never the value. Lookup order: the real environment, then a project .env only if you opt in ("env_file": ".env" in indexgap.json or --env-file .env), then the store. If you use a project .env, add it to .gitignore first.

In CI nothing needs to be on disk: put keys in the repository's secrets and map them to the environment of the step.

# .github/workflows/indexgap.yml
- name: Check keys and push to IndexNow
  env:
    OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
    INDEXNOW_KEY: ${{ secrets.INDEXNOW_KEY }}
    YANDEX_WEBMASTER_TOKEN: ${{ secrets.YANDEX_WEBMASTER_TOKEN }}
  run: |
    indexgap integrations --json > integrations.json   # sources only, no values
    indexgap indexnow push --source manifest --send

Connectors. IndexGap never installs or calls an MCP server; it reads the files an agent exports through one. indexgap integrations --connectors shows, for Ahrefs, DataForSEO, Cloudflare, Crunchbase, Bright Data, Brave, Perplexity, Topvisor, Bing Webmaster, Semrush, Serpstat, SE Ranking, SISTRIX, SpyFu, Keys.so and Similarweb, whether an official MCP exists, how to connect it, which command reads its output and in which format, and what was verified. Examples: Ahrefs gsc-pages → ctr-gap; a DataForSEO Google Organic SERP response → ctr-gap --serp; Logpush files → crawlers --import-format cloudflare; Bing through indexgap bing pull rather than an unofficial MCP; keyword exports from any tracker → plan, position exports → plan --positions and ctr-gap --positions. Unofficial servers get your API key — review their code first.


What it does not claim

It does not promise citations in AI search or rankings, and it says so in the output: machine readability is a necessary condition and this tool's job; getting cited is decided by work outside your files (see AI search, honestly above).

No llms.txt generator either. Google has stated it does not support it and has no plans to; no engine has confirmed using it for ranking. Generating a file nobody reads is a ritual, not a feature.

It also doesn't write or rewrite content, check rankings, or call paid services. indexgap brief formulates the task and stops there — on purpose. The central check compares the numbers on a page against the dataset row that produced it; if the package supplied those numbers itself, the check would be checking its own output and would always be green. Rejecting keywords and acting on contested findings is always confirmed by a human.

And it does not replace Search Console — it leads you there. If the tool says one thing and Search Console says another, Search Console is right.


Tests

python3 -m unittest discover -s tests

More than 1,300 scenarios. Each one is a reproduced defect: from four waves of adversarial review (the latest by eight reviewers at once — new generators, a seeded catalogue measuring what is missed, messy input, scale, the truth of these docs, an agent following the skills, the competition), from runs against live sites, plus 160 tests written to kill the mutants the suite let live. The rule: a finding without a test comes back.


Calibrated on live sites, not fixtures

Thresholds are not guesses. They were checked against six production sites — 7,149 sitemap URLs, 5,041 pages fetched and parsed — and the run changed the tool in three ways:

And on other people's sites. The built sites of twelve open projects were then run through it — mdBook and just (mdBook), MkDocs and HTTPX (MkDocs), Zola, Jekyll, Immer (Docusaurus), Gin (Astro Starlight), NetworkX (Sphinx), isort, pre-commit, Google's style guides (GitHub Pages sources): 4,000 pages on eight generators. Not one crash, and five kinds of false alarm, each of which would repeat on every site built the same way: language versions joined only by hreflang called unreachable (1,122 pages on one site), a heading-only page called a JavaScript shell, template partials taken for pages, Markdown without front matter dropped from a GitHub Pages source, content findings on noindex service pages. Critical findings across the twelve went from 1,606 to 397, and the ones that remain were checked by hand.

And on twelve more. Hugo (relearn), Docusaurus with i18n (Apache APISIX), VitePress (Element Plus), Hexo, Pelican (pyvideo.org, 47,000 pages), Gatsby, Nuxt, Eleventy, pkgdown (dplyr), Docsify and Next.js. Six causes made about 15,000 findings — Hugo's print copies judged as pages, a closed section of old docs versions reported 8,000 times, index.source.md taken for pages, flat name.html pages given a /name/ address that 404s, one malformed link that killed a 47,000-page run. Across eleven of them critical findings went from 14,699 to 2,720.


Install as skills / MCP

No clone needed: the skills ship inside the package, and uvx runs it without installing anything (with pipx, drop the uvx).

uvx indexgap skills list                        # what there is, in which languages, what for
uvx indexgap skills install --global            # Claude Code: ~/.claude/skills/
uvx indexgap skills install --project . --agent codex,cursor,gemini
uvx indexgap skills install --global --agent generic --dry-run   # show, write nothing
uvx indexgap skills pack --out skill-zips       # one ZIP per skill for claude.ai
--agent--global--project
claude-code (default)~/.claude/skills/.claude/skills/
codex~/.agents/skills/.agents/skills/ and a block in AGENTS.md
cursor~/.agents/skills/.cursor/skills/ and .cursor/rules/indexgap.mdc
gemini~/.gemini/skills/.gemini/skills/ and a section in GEMINI.md
generic~/.agents/skills/.agents/skills/ and a block in AGENTS.md

Only the block between <!-- BEGIN indexgap skills --> and <!-- END indexgap skills --> is written into AGENTS.md, GEMINI.md and the Cursor rule: the rest of the file is left alone, and a second run replaces the block instead of adding a copy. --only review,cite installs some of the skills, --lang en the English ones.

claude.ai and Claude Desktop. skills pack writes one ZIP per skill with an <name>/SKILL.md folder inside, the layout custom skill uploads take. Upload it under Customize → Skills. Every GitHub release carries the same ZIPs (indexgap-review.zip in English, indexgap-review.ru.zip in Russian).

MCP. indexgap mcp is a stdio server with no dependencies. Its tools are check, doctor, diff, cite_import, markets, integrations, analytics, listings, sitemap, prompts_lint, profiles and skills; each returns the command's JSON report. Reports go to out_dir (or a temporary directory), and a tool touches the network only with send: true. Paths in tool arguments and out_dir must lie inside the folder the server starts in, or in the folders listed in INDEXGAP_MCP_ROOTS (separated like PATH); the key store and .env files are never read, and key values in results show as ***. A server started from the home directory or the filesystem root without INDEXGAP_MCP_ROOTS warns about it once on stderr.

claude mcp add --scope user indexgap -- uvx indexgap mcp      # Claude Code

Claude Desktop (claude_desktop_config.json) and Cursor (.cursor/mcp.json):

{"mcpServers": {"indexgap": {"command": "uvx", "args": ["indexgap", "mcp"]}}}

VS Code (.vscode/mcp.json):

{"servers": {"indexgap": {"type": "stdio", "command": "uvx", "args": ["indexgap", "mcp"]}}}

Give tools absolute paths: relative ones resolve against the directory the client started the server in.


For agents

SKILL.en.md at the root is the overview (SKILL.md is the same in Russian). indexgap/skills/ holds seven stage-specific skills — indexgap-plan, indexgap-review, indexgap-publish, indexgap-portfolio, indexgap-cite, indexgap-aeo-fix, indexgap-engines — which indexgap init copies into your project's .claude/skills/. A narrow skill fires more accurately than a broad one: the agent sees only the commands and finding codes for the stage it's in.

Codex users: indexgap init --agents writes a marked block into AGENTS.md.

As a Claude Code plugin, without init:

/plugin marketplace add borisowlexa2010-star/IndexGap
/plugin install indexgap@indexgap

As a pre-commit hook, run before each push:

- repo: https://github.com/borisowlexa2010-star/IndexGap
  rev: v3.0.1
  hooks:
    - id: indexgap-check
      args: [public, --site, https://example.com]

Python API

The same commands as functions, without the command line. They return the data the command writes as JSON (check and doctor by api.schema(...)) plus exit_code and output, the progress lines; they print nothing and touch the network only when asked (live=True, online=True, send=True, …).

from indexgap import api

result = api.check("public", site="https://example.com", dataset="rows.csv", strict=True)
for issue in result["issues"]:
    print(issue["level"], issue["code"], issue["url"])

funnel = api.doctor("public", site="https://example.com", sitemap=["public/sitemap.xml"],
                    indexed=["google=gsc.csv"], out="indexgap-doctor.html")["funnel"]
api.markets("RU,KZ")["markets"]

Flags become keyword arguments (--no-aeo → no_aeo=True); the 2.x form args=["--dataset", "rows.csv"] still works. Also: brief, plan, sitemap, indexnow, engines, and findings(), finding(code), commands(), schema(name). What is stable is in STABILITY.md, "Python API".