Logo von Feature Db Client

Feature Db Client

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

Übersicht

Herausgebereumetsat
Repositoryskills
Skill-Namefeature-db-client
Sterne
32
Forks
5
Mitgelieferte Dateien
4
LizenzCC-BY-4.0
Links
  • Anweisungen in Markdown

    Eine SKILL.md-Datei, die das Modell bei Bedarf lädt. So werden nur dann Token verbraucht, wenn eine Anfrage tatsächlich dazu passt.

  • Funktioniert mit jedem LLM

    KI-Skills bestehen aus reinem Markdown, nicht aus anbieterspezifischem Code. Daher funktionieren sie mit GPT, Claude, Gemini, Grok oder einem lokalen Modell.

  • 4 mitgelieferte Dateien

    Skripte, Vorlagen und Referenzmaterial, die das Modell bei der Arbeit lesen kann. Die Dateien sind schreibgeschützt und werden niemals ausgeführt.

  • Open Source

    Von eumetsat auf GitHub veröffentlicht. Prüfen Sie den Quellinhalt vor der Installation.

Installation

Installieren Sie den KI-Skill Feature Db Client in TypingMind, um ihn mit jedem LLM zu nutzen, oder fügen Sie ihn einem anderen Agenten hinzu, der SKILL.md lesen kann.

1

In TypingMind installieren

TypingMind installiert einen Skill direkt aus seinem GitHub-Ordner — liest SKILL.md, bündelt die Ressourcendateien und speichert das Ergebnis lokal.

  1. Öffnen Sie die App und gehen Sie zu Plugins → Skills.
  2. Wählen Sie „Von GitHub installieren“.
  3. Fügen Sie die unten angegebene URL des Skill-Ordners ein und bestätigen Sie.
    https://github.com/eumetsat/skills/tree/main/skills/feature-db-client
  4. Aktivieren Sie den Skill in jedem Chat, in dem er verfügbar sein soll.
Plugins → Skills → Skill anlegen → Über GitHub-URL. Fügen Sie dann die Ordner-URL ein und klicken Sie auf „Weiter“.
2

In einem anderen Agenten installieren

Jeder Agent, der das Agent-Skills-Format lesen kann, kann diesen Skill nutzen — kopieren Sie den Ordner in das Skill-Verzeichnis des jeweiligen Agenten.

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
Starten Sie Claude Code nach dem Kopieren neu, damit der neue Skill erkannt wird.

In TypingMind verwenden

Aktivieren Sie Feature Db Client in einem beliebigen Chat in TypingMind. Den Rest übernimmt das Modell. Name und Beschreibung des Skills stehen im System-Prompt. Sobald eine Anfrage passt, lädt das Modell selbstständig die vollständigen Anweisungen — Sie müssen den Skill nie manuell aufrufen, und er verbraucht erst Token, wenn er tatsächlich genutzt wird.

Das Modell lädt Feature Db Client automatisch, sobald eine passende Anfrage gestellt wird.

Funktioniert mit jedem KI-Modell

KI-Skills bestehen aus reinen Markdown-Anweisungen statt aus anbieterspezifischem Code. Daher ist Feature Db Client nicht an das Modell gebunden, für das der Skill geschrieben wurde. Installieren Sie ihn einmal in TypingMind und nutzen Sie ihn mit GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder einem selbst betriebenen lokalen Modell — alles mit Ihren eigenen API-Keys.

  • Wird nur bei Bedarf geladen

    Der System-Prompt enthält nur den Namen und die Beschreibung. Die Anweisungen werden bei der ersten passenden Anfrage geladen. Ein ungenutzter Skill verursacht daher keine Kosten.

  • Modell im laufenden Chat wechseln

    Da der Skill aus Anweisungen statt aus Code besteht, funktioniert er auch nach einem Modellwechsel — das nächste Modell liest dieselbe SKILL.md-Datei.

Skill-Anweisungen

Dies ist der Inhalt von SKILL.md, den das Modell lädt. Lesen Sie ihn vor der Installation — ein Skill besteht aus Anweisungen, denen Ihr Modell folgt.

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.

Mitgelieferte Dateien

Das Modell liest diese Dateien bei Bedarf, während der Skill geladen ist. Sie werden als lesbare Dateien bereitgestellt und niemals ausgeführt.

Häufig gestellte Fragen

Was macht der KI-Skill 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.

Warum Feature Db Client in TypingMind nutzen?

Weil Sie den Skill einmal installieren und mit jedem Modell verwenden können. Feature Db Client besteht aus reinem Markdown statt aus anbieterspezifischem Code. So funktioniert derselbe Skill mit GPT-5, Claude, Gemini, Grok oder einem lokalen Modell – und Sie können das Modell mitten im Chat wechseln, ohne dass der Skill seine Funktion verliert. TypingMind verwendet Ihre eigenen API-Schlüssel. Sie bezahlen die Anbieter daher direkt statt über ein Abonnement pro Nutzerplatz, und Ihre Skills und Chats bleiben in Ihrem eigenen Speicher.

Wie installiere ich Feature Db Client in TypingMind?

Öffnen Sie in TypingMind Plugins → Skills → Von GitHub installieren und fügen Sie https://github.com/eumetsat/skills/tree/main/skills/feature-db-client ein. TypingMind liest die Datei SKILL.md, bündelt die zugehörigen Dateien und installiert alles als Skill, den Sie für jeden Chat einzeln aktivieren können.

Welche KI-Modelle können Feature Db Client nutzen?

Jedes Modell, das Sie in TypingMind verbinden. KI-Skills bestehen aus reinen Markdown-Anweisungen statt aus anbieterspezifischem Code. Daher können GPT, Claude, Gemini, Grok und lokale Modelle diesen Skill laden, wenn eine Anfrage dazu passt.

Wie viele KI-Modelle kann ich mit Feature Db Client verwenden?

So viele Sie möchten. Solange ein Modell Skills unterstützt, können Sie Feature Db Client damit verwenden – GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama und weitere – alles in TypingMind mit Ihren eigenen API-Schlüsseln.

Ist der KI-Skill Feature Db Client kostenlos?

Ja. Der Skill wird von eumetsat auf GitHub unter der Lizenz CC-BY-4.0 veröffentlicht. Sie bezahlen nur Ihren eigenen KI-Anbieter für die verwendeten Token.

Was sind KI-Skills?

Ein KI-Skill ist ein wiederverwendbares Anweisungspaket, das einem KI-Modell vermittelt, wie es eine bestimmte Aufgabe erledigt. Es folgt dem offenen Format Agent Skills: eine Datei namens SKILL.md mit einem Namen und einer Beschreibung sowie allen Skripten, Vorlagen oder Referenzdateien, die das Modell möglicherweise benötigt. Das Modell liest die Anweisungen nur, wenn Ihre Anfrage zum Skill passt. Ein installierter Skill verursacht daher erst Kosten, wenn er verwendet wird.

Wie unterscheiden sich KI-Skills von Plugins oder MCP-Servern?

Ein Plugin oder MCP-Server stellt einem Modell neue aufrufbare Tools bereit – Code, der auf einem System ausgeführt wird und ein Ergebnis zurückgibt. Ein KI-Skill vermittelt dem Modell stattdessen Wissen und Vorgehensweisen: wie es eine Aufgabe angeht, welche Schritte es befolgt und wie eine gute Ausgabe aussieht. Skills bestehen aus reinem Markdown und benötigen daher weder Server noch API-Schlüssel oder Laufzeitumgebung. Sie funktionieren mit jedem Modell.

Alle

Jetzt eigenen KI-Arbeitsbereich einrichten

Abonnieren Sie unseren Newsletter und erfahren Sie mehr über neue Funktionen und kommende Gewinnspiele 👇