Audit the dataset before a single page is generated.
Reads the keyword file, finds duplicates and near-synonyms that would become competing pages, checks that the path pattern resolves for every row, and writes the work list. The cheapest place to fix a pipeline is before it runs.
usage: indexgap plan [-h] [--keyword KEYWORD] [--positions [topvisor=]FILE]
[--out-dir OUT_DIR] [--pattern PATTERN]
[--min-words MIN_WORDS] [--min-filled MIN_FILLED]
[--brief BRIEF] [--json-out JSON] [--write]
[dataset]
positional arguments:
dataset a keyword CSV; without it the keywords come from
--positions
options:
-h, --help show this help message and exit
--keyword KEYWORD the keyword column
--positions [topvisor=]FILE
a rank-tracker export (Topvisor, Semrush, Ahrefs Rank
Tracker, SE Ranking, Serpstat, SISTRIX, Keys.so):
positions, URL and volume → the gap by position band;
the tracker is recognised by the header, a label wins;
may be repeated
--out-dir OUT_DIR where to put the stubs
--pattern PATTERN path template
--min-words MIN_WORDS
how many words the brief of each stub asks for
--min-filled MIN_FILLED
the share of filled columns below which a row is
rejected (default 0 — reject nothing)
--brief BRIEF a file with your own brief template instead of the
default
--json-out JSON where to write the full breakdown
--write actually create the files