/eumetsat-skills:feature-db-clientfrom eumetsat-skills
Interacts with the Earth System Feature Database via the feature_client Python library. Fetches/saves features as GeoDataFrames, runs spatial/temporal/tag queries, nearest-feature search, and manages reference data (satellites, feature types, model versions, labellers, tags, products, visualisations, batches, usage rights).
Ships in eumetsat-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Grounded in the public feature-client package (import features.apiclient), version 0.1.0, from
https://gitlab.eumetsat.int/usc-feature-detection/earth-system-feature-db-client. Verified against
commit b866f3905fdd95ac12fae9937db9eae305fbee71 (the repository carries no release tags). The
Feature Database service itself is internal: an authorised API endpoint and API key come from the
service administrator, and no public request channel exists yet. Without them, explain this and stop
before live API calls.
.env file in working directoryTest package installation and version:
python3 -c "import features.apiclient; print(features.apiclient.__version__)"
If you see ModuleNotFoundError, install the package using uv in your Python environment, pinned to
the commit this skill is verified against:
uv venv
uv pip install "git+https://gitlab.eumetsat.int/usc-feature-detection/earth-system-feature-db-client.git@b866f3905fdd95ac12fae9937db9eae305fbee71"
After installing, rerun the version check above and compare features.apiclient.__version__ against 0.1.0. This skill is verified against 0.1.0 only; warn the user on any mismatch before continuing. Do not guess PyPI package names; install from the repository at the pinned commit above.
The repository's test suite needs its own running test instance of the Feature Database, never a shared or production service, since the tests create and mutate reference data:
pip install -e ".[dev]"
pytest tests/ # full suite; needs the test instance reachable
pytest tests/test_feature_api_client.py -v # single file
.env:
FEATURE_API_KEY (alias FEATURE_APIKEY)FEATURE_API_URL (alias FEATURE_APIURL)$FEATURE_API_KEY in responses..env; the user edits it. Check presence only, with checks that print
nothing secret, e.g. test -n "$FEATURE_API_KEY".FEATURE_API_URL to their existing .env without touching the existing key line.If necessary secrets are not available, give user instructions to create the .env file with the correct keys and URLs, and ensure they are loaded into the environment before running any scripts:
FEATURE_API_URL=<authorised_feature_api_url>
FEATURE_API_KEY=<your_api_key_here>
Classify by the base_url the client actually resolves, BEFORE any write call
(save_features, create_*, update_*):
| Resolved base_url | Environment | Writes |
|---|---|---|
| URL the user identifies as development or test | dev/test | Allowed after stating target and row count |
| URL the user identifies as production | prod | Ask first for every occurrence |
| anything else | unknown | Ask first |
base_url points to, and record the
answer in the conversation. Anything left unanswered is unknown, and unknown is handled exactly like
production.FeatureAPIClient without an explicit base_url. The
constructor's base_url parameter does have a default when omitted, and that default must never be
relied on: an unset FEATURE_API_URL means stop and ask. The KeyError raised by
os.environ['FEATURE_API_URL'] in the Connection snippet when the variable is unset is the intended
safe outcome, not a bug to work around.health_check, get_features*, find_nearest_features, all other get_*.delete_feature is commented out). Do not improvise deletes
via raw HTTP; if needed, direct the user to their authorised database administration workflow.import os
from dotenv import load_dotenv
from features.apiclient import FeatureAPIClient, AuthenticationError
load_dotenv() # or rely on exported env vars
client = FeatureAPIClient(
api_key=os.environ['FEATURE_API_KEY'],
base_url=os.environ['FEATURE_API_URL']
)
try:
print(client.health_check()) # {'status': 'healthy', 'database': 'connected'}
except AuthenticationError:
print("Authentication failed: check FEATURE_API_KEY.")
Constructor also accepts timeout=30, verify_ssl=True, write_timeout=300 (writes get a longer
budget than reads), and max_batch_bytes/max_batch_features (defaults for save_features batching,
see saving-features.md). Supports with FeatureAPIClient(...) as client:.
| Intent | Read |
|---|---|
| Reference data lookups, feature queries, nearest-feature search | querying.md |
| Saving features, required metadata, multi-index reference columns, full example | saving-features.md |
Per-type get_*/create_* table, exception classes | reference-data-and-errors.md |
FEATURE_API_URL; ask the user which environment it is rather than
guessing from the URL, then state dev/test/prod/unknown before doing anything.health_check().save_features with multi-index reference columns over manual create_* calls.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
7 skills in this plugin
/esf-satellite-dataUse when building reproducible satellite imagery datasets around detected weather features from the EUMETSAT Earth System Feature database, including feature selection, class balancing, coverage checks, access-route planning, volume estimates, and manifests across EUMETSAT Data Store, EUMETSAT S3 buckets, and AWS Open Data./eumdacUse when the user mentions the `eumdac` CLI or Python package (EUMETSAT Data Access Client), the EUMETSAT Data Store or Data Tailor, collection IDs like `EO:EUM:DAT:...`, or asks to search, list, download or order satellite products (MSG/SEVIRI, MTG), check tokens or credentials, or manage subscriptions and livefeed./ewccliUse when working with ewccli, the European Weather Cloud command line interface, for EWC setup, login profiles, OpenStack application credentials, Community Hub item discovery/deployment, infrastructure commands, custom catalogues, or CLI troubleshooting.npx claudepluginhub eumetsat/skills --plugin eumetsat-skillsOther plugins' skills for the same job