شعار Feature Db Client

Feature Db Client

مؤسسة
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.

نظرة عامة

الناشرeumetsat
المستودعskills
اسم المهارةfeature-db-client
النجوم
32
التفريعات
5
الملفات المرفقة
4
الترخيصCC-BY-4.0
الروابط
  • تعليمات بصيغة Markdown

    ملف SKILL.md يُحمّله النموذج عند الحاجة، فلا يستهلك توكنات إلا عندما يَرِد طلب ذو صلة فعلًا.

  • تعمل مع أي نموذج لغوي كبير

    مهارات الذكاء الاصطناعي مكتوبة بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا تعمل مع GPT أو Claude أو Gemini أو Grok أو نموذج محلي.

  • الملفات المرفقة: 4

    نصوص برمجية وقوالب ومراجع يمكن للنموذج قراءتها أثناء عمله. الملفات للقراءة فقط ولا تُنفّذ أبدًا.

  • مفتوحة المصدر

    نشرها eumetsat على GitHub. اطّلع على المصدر قبل تثبيتها.

التثبيت

ثبّت مهارة الذكاء الاصطناعي Feature Db Client في TypingMind لاستخدامها مع أي نموذج لغوي كبير، أو أضفها إلى وكيل ذكاء اصطناعي آخر يقرأ SKILL.md.

1

التثبيت في TypingMind

يُثبّت TypingMind المهارة مباشرةً من مجلدها على GitHub — فيقرأ SKILL.md، ويجمع ملفات الموارد في حزمة، ويحفظ النتيجة محليًا.

  1. افتح التطبيق وانتقل إلى الإضافات → المهارات.
  2. اختر «تثبيت من GitHub».
  3. الصق رابط مجلد المهارة الموضّح أدناه وأكّد التثبيت.
    https://github.com/eumetsat/skills/tree/main/skills/feature-db-client
  4. فعّل المهارة في كل محادثة تريد إتاحتها فيها.
الإضافات → المهارات → إضافة مهارة → من رابط GitHub، ثم الصق رابط المجلد واضغط على «متابعة».
2

التثبيت في وكيل ذكاء اصطناعي آخر

يمكن لأي وكيل ذكاء اصطناعي يقرأ تنسيق Agent Skills استخدام هذه المهارة — انسخ المجلد إلى مجلد المهارات الخاص بذلك الوكيل.

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
أعد تشغيل Claude Code بعد النسخ ليتعرّف على المهارة الجديدة.

استخدمها في TypingMind

فعّل Feature Db Client في أي محادثة على TypingMind وسيتولى النموذج الباقي. تتضمن مطالبة النظام اسمها ووصفها، وبمجرد ورود طلب ذي صلة، يُحمّل النموذج التعليمات الكاملة تلقائيًا — فلا تحتاج إلى استدعائها يدويًا، ولا تستهلك أي توكنات حتى تُستخدم فعليًا.

يُحمّل النموذج Feature Db Client تلقائيًا بمجرد ورود طلب ذي صلة بها.

تعمل مع أي نموذج ذكاء اصطناعي

مهارات الذكاء الاصطناعي هي تعليمات بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا لا ترتبط Feature Db Client بالنموذج الذي كُتبت له. ثبّتها مرة واحدة في TypingMind واستخدمها مع GPT-5 أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو نموذج محلي تشغّله بنفسك — كل ذلك باستخدام مفاتيح API الخاصة بك.

  • تُحمَّل عند الحاجة فقط

    تتضمن مطالبة النظام الاسم والوصف فقط. وتُجلب التعليمات عند أول طلب ذي صلة، لذا لا تترتب أي تكلفة على المهارة غير المستخدمة.

  • بدّل النماذج أثناء المحادثة

    لأن المهارة تعليمات وليست شيفرة، فإن تغيير النموذج لا يعطّلها — فالنموذج التالي يقرأ ملف SKILL.md نفسه.

تعليمات المهارة

هذا هو محتوى SKILL.md الذي يُحمّله النموذج. اقرأه قبل التثبيت — فالمهارة عبارة عن تعليمات سيتبعها نموذجك.

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.

الملفات المرفقة

يقرأ النموذج هذه الملفات عند الحاجة أثناء تحميل المهارة. وهي متاحة للقراءة ولا تُنفّذ أبدًا.

الأسئلة الشائعة

ماذا تفعل مهارة الذكاء الاصطناعي 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.

لماذا تستخدم Feature Db Client على TypingMind؟

لأنك تثبّتها مرة واحدة وتستخدمها مع أي نموذج. مهارة Feature Db Client عبارة عن نص Markdown وليست شيفرة خاصة بمزود بعينه، لذا تعمل المهارة نفسها مع GPT-5 أو Claude أو Gemini أو Grok أو نموذج محلي، ويمكنك تبديل النموذج أثناء المحادثة دون تعطّل المهارة. يعمل TypingMind بمفاتيح API الخاصة بك، فتدفع للمزودين مباشرةً بدلًا من اشتراك لكل مقعد، وتبقى مهاراتك ومحادثاتك في مساحة التخزين الخاصة بك.

كيف أثبّت Feature Db Client في TypingMind؟

افتح الإضافات → المهارات → التثبيت من GitHub في TypingMind والصق https://github.com/eumetsat/skills/tree/main/skills/feature-db-client. يقرأ TypingMind ملف SKILL.md الخاص بها، ويجمع ملفاتها ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

ما نماذج الذكاء الاصطناعي التي يمكنها استخدام Feature Db Client؟

أي نموذج تربطه في TypingMind. مهارات الذكاء الاصطناعي عبارة عن تعليمات Markdown وليست شيفرة خاصة بمزود بعينه، لذا يمكن لكل من GPT وClaude وGemini وGrok والنماذج المحلية تحميل هذه المهارة عندما يتوافق الطلب معها.

كم نموذج ذكاء اصطناعي يمكنني استخدامه مع Feature Db Client؟

أي عدد تريده. ما دام النموذج يدعم المهارات، يمكنك استخدام Feature Db Client معه، سواء كان GPT أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو غيرها، وكل ذلك على TypingMind باستخدام مفاتيح API الخاصة بك.

هل مهارة الذكاء الاصطناعي Feature Db Client مجانية؟

نعم. نشرها eumetsat على GitHub بموجب ترخيص CC-BY-4.0. لا تدفع إلا لمزود الذكاء الاصطناعي الخاص بك مقابل التوكنات التي تستخدمها.

ما هي مهارات الذكاء الاصطناعي؟

مهارة الذكاء الاصطناعي حزمة تعليمات قابلة لإعادة الاستخدام تعلّم نموذج الذكاء الاصطناعي كيفية تنفيذ مهمة محددة. وتتبع تنسيق Agent Skills المفتوح: ملف SKILL.md يتضمن اسمًا ووصفًا، إلى جانب أي نصوص برمجية أو قوالب أو ملفات مرجعية قد يحتاج إليها النموذج. لا يقرأ النموذج التعليمات إلا عندما يتوافق طلبك مع المهارة، لذا لا تترتب على المهارة المثبتة أي تكلفة حتى تُستخدم.

كيف تختلف مهارات الذكاء الاصطناعي عن الإضافات أو موصلات MCP؟

تمنح الإضافة أو موصل MCP النموذج أدوات جديدة يمكنه استدعاؤها، وهي شيفرة تُنفَّذ في مكان ما وتُرجع نتيجة. أما مهارة الذكاء الاصطناعي فتزوّد النموذج بالمعرفة ومنهجية العمل: كيفية التعامل مع مهمة، والخطوات التي ينبغي اتباعها، وما ينبغي أن تكون عليه المخرجات الجيدة. المهارات عبارة عن نصوص Markdown، لذا لا تحتاج إلى خادم أو مفتاح API أو بيئة تشغيل، وتعمل مع أي نموذج.

عرض الكل

أنشئ مساحة عملك للذكاء الاصطناعي الآن

اشترك في نشرتنا البريدية لتصلك أخبار الميزات الجديدة والهدايا القادمة 👇