Feature Db Client logo

Feature Db Client

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

Overview

Publishereumetsat
Repositoryskills
Skill namefeature-db-client
Stars
32
Forks
5
Bundled files
4
LicenseCC-BY-4.0
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 4 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by eumetsat on GitHub. Read the source before you install it.

Installation

Install the Feature Db Client AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/eumetsat/skills/tree/main/skills/feature-db-client
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

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
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Feature Db Client in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Feature Db Client on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Feature Db Client is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

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.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Feature Db Client AI skill do?

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.

Why use Feature Db Client on TypingMind?

Because you install it once and use it with any model. Feature Db Client is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Feature Db Client in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/eumetsat/skills/tree/main/skills/feature-db-client. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Feature Db Client?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Feature Db Client?

As many as you like. As long as a model supports skills, you can use Feature Db Client with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Feature Db Client AI skill free?

Yes. It is published on GitHub by eumetsat under the CC-BY-4.0 license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇