Logotipo de Feature Db Client

Feature Db Client

Organización
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.

Descripción general

Editoreumetsat
Repositorioskills
Nombre de la habilidadfeature-db-client
Estrellas
32
Forks
5
Archivos incluidos
4
LicenciaCC-BY-4.0
Enlaces
  • Instrucciones en Markdown

    Un archivo SKILL.md que el modelo carga cuando lo necesita, de modo que solo consume tokens cuando una petición es realmente relevante.

  • Funciona con cualquier LLM

    Las habilidades de IA están en Markdown, no en código específico de un proveedor, por lo que funcionan con GPT, Claude, Gemini, Grok o un modelo local.

  • 4 archivos incluidos

    Scripts, plantillas y referencias que el modelo puede leer mientras trabaja. Los archivos son de solo lectura y nunca se ejecutan.

  • Código abierto

    Publicada por eumetsat en GitHub. Revisa el contenido original antes de instalarla.

Instalación

Instala la habilidad de IA Feature Db Client en TypingMind para usarla con cualquier LLM, o añádela a otro agente que lea SKILL.md.

1

Instalar en TypingMind

TypingMind instala una habilidad directamente desde su carpeta de GitHub: lee SKILL.md, empaqueta los archivos de recursos y guarda el resultado localmente.

  1. Abre la aplicación y ve a Plugins → Habilidades.
  2. Elige «Instalar desde GitHub».
  3. Pega la URL de la carpeta de la habilidad que se muestra a continuación y confirma.
    https://github.com/eumetsat/skills/tree/main/skills/feature-db-client
  4. Activa la habilidad en cada chat en el que quieras tenerla disponible.
Plugins → Habilidades → Añadir habilidad → Desde URL de GitHub; después, pega la URL de la carpeta y pulsa Continuar.
2

Instalar en otro agente

Cualquier agente que lea el formato Agent Skills puede usar esta habilidad: copia la carpeta en el directorio de habilidades de ese 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
Reinicia Claude Code después de copiarla para que detecte la nueva habilidad.

Úsala en TypingMind

Activa Feature Db Client en cualquier chat de TypingMind y el modelo se encargará del resto. Su nombre y descripción se incluyen en el prompt del sistema y, en cuanto una petición es relevante, el modelo carga las instrucciones completas por sí solo. No tienes que invocarla manualmente y no consume tokens hasta que se utiliza.

El modelo carga Feature Db Client automáticamente en cuanto una petición es relevante para esa habilidad.

Funciona con cualquier modelo de IA

Las habilidades de IA son instrucciones en Markdown, no código específico de un proveedor, por lo que Feature Db Client no está vinculada al modelo para el que se creó. Instálala una sola vez en TypingMind y úsala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modelo local que ejecutes tú, todo con tus propias claves API.

  • Se carga solo cuando se necesita

    El prompt del sistema solo incluye el nombre y la descripción. Las instrucciones se cargan con la primera petición relevante, por lo que una habilidad que no se usa no supone ningún coste.

  • Cambia de modelo durante el chat

    Como la habilidad contiene instrucciones y no código, cambiar de modelo no impide que funcione: el nuevo modelo lee el mismo archivo SKILL.md.

Instrucciones de la habilidad

Este es el contenido de SKILL.md que carga el modelo. Léelo antes de instalar la habilidad: contiene instrucciones que tu modelo 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.

Archivos incluidos

El modelo los lee según los necesita mientras la habilidad está cargada. Se ofrecen como archivos de lectura y nunca se ejecutan.

Preguntas frecuentes

¿Qué hace la habilidad de 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.

¿Por qué usar Feature Db Client en TypingMind?

Porque la instalas una vez y la usas con cualquier modelo. Feature Db Client está escrita en Markdown, no en código específico de un proveedor, por lo que la misma habilidad funciona con GPT-5, Claude, Gemini, Grok o un modelo local, y puedes cambiar de modelo en mitad del chat sin que deje de funcionar. TypingMind utiliza tus propias claves API, de modo que pagas directamente a los proveedores en lugar de pagar una suscripción por puesto, y tus habilidades y chats permanecen en tu propio almacenamiento.

¿Cómo instalo Feature Db Client en TypingMind?

Abre Plugins → Habilidades → Instalar desde GitHub en TypingMind y pega https://github.com/eumetsat/skills/tree/main/skills/feature-db-client. TypingMind lee su archivo SKILL.md, empaqueta sus archivos y la instala como una habilidad que puedes activar en cada chat.

¿Qué modelos de IA pueden usar Feature Db Client?

Cualquier modelo que conectes en TypingMind. Las habilidades de IA son instrucciones en Markdown, no código específico de un proveedor, por lo que GPT, Claude, Gemini, Grok y los modelos locales pueden cargar esta habilidad cuando una solicitud se corresponda con ella.

¿Con cuántos modelos de IA puedo usar Feature Db Client?

Con tantos como quieras. Siempre que un modelo admita habilidades, puedes usar Feature Db Client con él: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama y muchos más, todos en TypingMind con tus propias claves API.

¿Es gratuita la habilidad de IA Feature Db Client?

Sí. eumetsat la ha publicado en GitHub bajo la licencia CC-BY-4.0. Solo pagas a tu proveedor de IA por los tokens que utilizas.

¿Qué son las habilidades de IA?

Una habilidad de IA es un conjunto de instrucciones reutilizables que enseña a un modelo de IA a realizar una tarea concreta. Sigue el formato abierto Agent Skills: un archivo SKILL.md con un nombre y una descripción, además de los scripts, plantillas o archivos de referencia que pueda necesitar el modelo. El modelo solo lee las instrucciones cuando tu solicitud se corresponde con la habilidad, por lo que una habilidad instalada no supone ningún coste hasta que se utiliza.

¿En qué se diferencian las habilidades de IA de los plugins o los servidores MCP?

Un plugin o un servidor MCP proporciona al modelo nuevas herramientas que puede invocar: código que se ejecuta en algún lugar y devuelve un resultado. En cambio, una habilidad de IA aporta conocimientos y procedimientos al modelo: cómo abordar una tarea, qué pasos seguir y qué se considera un buen resultado. Las habilidades son instrucciones en Markdown, por lo que no necesitan servidor, clave API ni entorno de ejecución, y funcionan con cualquier modelo.

Ver todos

Crea ya tu propio espacio de trabajo IA

Suscríbete a nuestro boletín para recibir avisos sobre nuevas funciones y próximos sorteos 👇