Command Palette

Search for a command to run...

Назад к скиллам
скилл № 27940

geolocalisation

Map, geolocate, or produce a study-location map for a literature-review corpus from a BibTeX file: turn a .bib into study_locations.csv, a…

БесплатноЗапускает вложенные скрипты
LARi-UQACот LARi-UQAC★ 16 звёзд на GitHub

Установить geolocalisation в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

Geolocalisation — map a review corpus in space

Turn a corpus .bib into a set of geographic artifacts that show where the studies of a literature review were conducted. The skill automates the extraction that used to be done by hand, but keeps a human in the loop because a study's location is inferred from text and is never certain. The extraction method, the confidence rubric, the override-file format, and the honest limits are in references/geocoding-protocol.md — read it before running, it is the contract for what the numbers mean.

What it produces

From one .bib (and its per-entry THEME: comments, if present), it produces up to six artifacts:

File Role
study_locations.csv source table: citekey, etude, ville, pays, lat, lon, theme, confidence, source, matched, evidence_field, evidence, provenance
provenance/<citekey>.md one audit note per located paper: resolved location, which field it was read from (title/abstract/keywords/full-text), the matched term, and the verbatim snippet copy-pasted from the article
study_locations.kml same points, importable in Google My Maps (My Maps -> Create -> Import); evidence in the description
study_locations.geojson open standard, loads in QGIS / Leaflet / any web map; evidence in the properties
study_locations_map.png world map (Natural Earth basemap + points, per-country heatmap) for the review figure
study_locations_map.html interactive zoomable map; each point's popup shows the evidence snippet + provenance file so the map itself is auditable. Needs folium; skipped with a logged note if absent
country_counts.csv studies per country, feeds the heatmap and gives a citable table

Every plotted point is traceable: the CSV carries evidence_field (where the location was read) and evidence (the exact source sentence), provenance/<citekey>.md holds the full audit note, and the HTML popup surfaces both so a reviewer can verify a point without leaving the map.

The critical caveat — read this first

A study's case-study location is not a bibliographic field. No API (Scopus included) returns it. It lives in the paper's text. This skill infers it from the Scopus abstract + title + author/index keywords by matching place names against an offline gazetteer. That inference is heuristic:

  • It misses studies whose abstract never names the site (global/methodological papers, benchmarks).
  • It mislabels when the abstract names a place that is not the study site (an author's country, a compared method's origin, a dataset's provenance). Author affiliation is not the study site.

Therefore the skill never emits a "final" map in one shot. It emits a draft with a confidence column, the user reviews it, and a manual override always wins before rendering. Present the draft honestly: say how many points are high vs low vs none, and that low/none rows need a human eye. Do not silently promote a low guess to a plotted point without flagging it.

Inputs

  • Required: a corpus .bib path. Every entry needs a doi for the auto path to work; entries without a DOI are carried through with an empty location for the user to fill.
  • Optional: an override CSV (--override) whose rows replace or add points by citekey. This is where curated / hand-checked locations live. Same columns as the output table; only citekey, ville, pays, lat, lon are needed (theme is read from the bib if omitted).
  • Environment: SCOPUS_API_KEY (or .claude/skills/scopus/.scopus_key) plus campus network or UQAC VPN for the auto extraction. Without it, run in --no-scopus mode: the skill parses the bib and produces an empty-location template for full manual entry.

Workflow

Follow these steps in order. Steps 1 and 3 are scripts; step 2 is the human checkpoint that makes the output trustworthy.

Step 1 — Extract a draft table

python .claude/skills/geolocalisation/scripts/extract_locations.py \
    --bib <corpus.bib> --out <dir> [--override <curated.csv>] [--full-text] \
    [--email [email protected]] [--no-scopus] [--insttoken TOKEN]

This parses the bib (citekey, first-author label, theme), queries Scopus once per DOI (cached under <dir>/.scopus_cache/), matches place names, writes <dir>/study_locations.csv with confidence, evidence_field, and evidence columns, and drops one provenance/<citekey>.md audit note per located paper. It prints a summary: N high / M medium / K low / U none.

--full-text raises recall for the studies whose abstract never names the site (the common case for a case-study city stated only in the body). For every none/low abstract result it downloads the paper through the scopus skill's download_pdf.py (Elsevier PDF, then the open-access tiers; needs --email for Unpaywall), extracts the text with PyMuPDF, scans the study-cue sentences first and the reference-l

Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

  1. 01Read
  2. 02Write
  3. 03Edit
  4. 04Bash

Вложенные файлы

  • data/ne_10m_populated_places.geojson
  • data/world_countries.geojson
  • references/geocoding-protocol.md
  • scripts/extract_locations.py
  • scripts/generate_geomap.py
  • scripts/requirements.txt

FAQ

Что делает скилл geolocalisation?

Map, geolocate, or produce a study-location map for a literature-review corpus from a BibTeX file: turn a .bib into study_locations.csv, a KML/GeoJSON/world-map figure, or answer a question about a corpus's geographic coverage, spatial distribution, or country breakdown. Trigger on: /geolocalisation, 'map the corpus', 'geolocate the studies', 'bib to map'. Also triggers on 'carte des études' and 'où ont eu lieu les études'. Extracts each paper's study / case-study location automatically (per-DOI Scopus abstract + title + keywords, matched against an offline Natural Earth gazetteer), writes a reviewable draft table with a confidence column, lets a human curate or override it, then renders the corpus as CSV, KML (Google My Maps), GeoJSON (QGIS/Leaflet), a static world map PNG for the review figure, an interactive HTML map, and a per-country count table.

Как установить скилл geolocalisation?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл geolocalisation запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить geolocalisation с