Logo di Feature Db Client

Feature Db Client

Organizzazione
eumetsat
feature-db-client

Use when interacting with the Earth System Feature Database through the feature_client Python library (FeatureAPIClient, features.apiclient) - fetching or saving features as GeoDataFrames, spatial, temporal and tag queries, nearest-feature search, managing reference data such as satellites, feature types, model versions, labellers, tags, product and visualisation files, batches and usage rights, or running the library's tests.

Panoramica

Autoreeumetsat
Repositoryskills
Nome della skillfeature-db-client
Stelle
32
Fork
5
File inclusi
4
LicenzaCC-BY-4.0
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • 4 file inclusi

    Script, modelli di documento e riferimenti che il modello può leggere mentre lavora. I file sono di sola lettura e non vengono mai eseguiti.

  • Open source

    Pubblicata da eumetsat su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Feature Db Client in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/eumetsat/skills/tree/main/skills/feature-db-client
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Nuova skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella nella cartella delle skill di quell'agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/eumetsat/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/skills/feature-db-client .claude/skills/feature-db-client
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Feature Db Client in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Feature Db Client non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Feature Db Client non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

Feature DB Python client (feature_client)

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.

Package checking

Test package installation and version:

bash
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:

bash
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.

Running the client's tests

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:

bash
pip install -e ".[dev]"
pytest tests/                                 # full suite; needs the test instance reachable
pytest tests/test_feature_api_client.py -v    # single file

Hard safety rules

1. Secret hygiene

  • Never print or log API keys, or embed them in generated code. Load credentials from the environment or an existing local .env:
    • FEATURE_API_KEY (alias FEATURE_APIKEY)
    • FEATURE_API_URL (alias FEATURE_APIURL)
  • Show placeholders like $FEATURE_API_KEY in responses.
  • Do not read, display, or edit .env; the user edits it. Check presence only, with checks that print nothing secret, e.g. test -n "$FEATURE_API_KEY".
  • If the user is only missing the endpoint and already has a key set, tell them to add 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>

2. Environment-based write policy

Classify by the base_url the client actually resolves, BEFORE any write call (save_features, create_*, update_*):

Resolved base_urlEnvironmentWrites
URL the user identifies as development or testdev/testAllowed after stating target and row count
URL the user identifies as productionprodAsk first for every occurrence
anything elseunknownAsk first
  • Never infer the environment from the URL text (hostnames, path segments, "dev"/"test"/"prod"-looking strings). Ask the user once which environment the resolved base_url points to, and record the answer in the conversation. Anything left unanswered is unknown, and unknown is handled exactly like production.
  • Prod-is-default trap: never construct 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.
  • Reads are always free: health_check, get_features*, find_nearest_features, all other get_*.
  • When asking, present the exact operation, target environment, and row counts (e.g. "save_features: 432 GeoDataFrame rows -> prod"). New/edited operations need new approval.
  • There is no delete in the client (delete_feature is commented out). Do not improvise deletes via raw HTTP; if needed, direct the user to their authorised database administration workflow.

Connection

python
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:.

Route

IntentRead
Reference data lookups, feature queries, nearest-feature searchquerying.md
Saving features, required metadata, multi-index reference columns, full examplesaving-features.md
Per-type get_*/create_* table, exception classesreference-data-and-errors.md

Workflow

  1. Resolve environment: read 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.
  2. Connect via env-based snippet; verify with health_check().
  3. Reads run freely; for writes apply the environment policy (dev/test allowed after stating target and row count, prod/unknown ask).
  4. Prefer save_features with multi-index reference columns over manual create_* calls.
  5. Report which environment was used and the result counts.

File inclusi

Il modello legge questi file quando servono, mentre la skill è caricata. Sono accessibili in sola lettura e non vengono mai eseguiti.

Domande frequenti

Cosa fa la skill IA Feature Db Client?

Use when interacting with the Earth System Feature Database through the feature_client Python library (FeatureAPIClient, features.apiclient) - fetching or saving features as GeoDataFrames, spatial, temporal and tag queries, nearest-feature search, managing reference data such as satellites, feature types, model versions, labellers, tags, product and visualisation files, batches and usage rights, or running the library's tests.

Perché usare Feature Db Client su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Feature Db Client è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Feature Db Client in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/eumetsat/skills/tree/main/skills/feature-db-client. TypingMind legge il file SKILL.md, include i file associati e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Feature Db Client?

Qualsiasi modello che colleghi in TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Feature Db Client?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Feature Db Client: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Feature Db Client è gratuita?

Sì. È pubblicata su GitHub da eumetsat con licenza CC-BY-4.0. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, modelli o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Vedi tutti

Crea subito la tua area di lavoro IA

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇