/earth2studio-create-datasource
Create and validate Earth2Studio data source wrappers (DataSource, ForecastSource, DataFrameSource, ForecastFrameSource) from remote stores. Do NOT use for fetching data with existing sources, model inference, or installation tasks.
$ npx -y skills add NVIDIA/skills --skill earth2studio-create-datasource --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
- Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
- You can call itInvoke it directly when you want it.
- Slash command
/earth2studio-create-datasource
Context preview
The summary Claude sees to decide when to auto-load this skill.
Create and validate Earth2Studio data source wrappers (DataSource, ForecastSource, DataFrameSource, ForecastFrameSource) from remote stores. Do NOT use for fetching data with existing sources, model inference, or installation tasks.
SKILL.md
earth2studio-create-datasource.SKILL.mdname: earth2studio-create-datasource
version: 0.16.0
license: Apache-2.0
metadata:
author: NVIDIA Earth-2 Team <agent-skills@nvidia.com>
tags:
- earth2studio
- earth2
- python
- data-source
- forecast-source
- integration
description: >
Create and validate Earth2Studio data source wrappers (DataSource,
ForecastSource, DataFrameSource, ForecastFrameSource) from remote stores.
Do NOT use for fetching data with existing sources, model inference, or
installation tasks.
argument-hint: URL or description of remote data store (optional)Create and Validate Data Source
Purpose
End-to-end workflow for implementing a new Earth2Studio data source wrapper that connects a remote data store (S3, GCS, Azure, HTTP, HuggingFace) to Earth2Studio's async data fetching infrastructure — from analysis through implementation, testing, validation, and PR submission.
Prerequisites
- Earth2Studio dev environment with `uv` (`uv run python` must work)
- Git configured with fork (`origin`) and upstream (`upstream`) remotes
- Access to the target remote data store (credentials if private)
- Python 3.10+
Workspace
Use the directory containing `pyproject.toml`. For Harbor evals, write to `/workspace/output/` preserving paths. Never read `evals/targets/`.
Instructions
> **Python Environment:** Always use `uv run python` or the local `.venv`. > Never use the system Python directly.
Follow every step in order.
> **[CONFIRM] gates:** Only Step 1 (Source Type) and Step 12 (Sanity-Check > Plots) require explicit user approval. All other `[CONFIRM]` markers are > advisory — present decisions inline and proceed without blocking. > > **Deliverables first:** Write the source file and test file (Steps 6–7) > before extended exploration, documentation, registration, CHANGELOG, or PR > work. Skip Steps 8–14 when the user asks for implementation only. > > **Before you finish:** Run verification commands in the repo root so results > appear in the session log: > > ```bash > uv run pytest test/data/test_<source>.py -x > make format && make lint > ``` > > **Be concise:** Avoid long architecture reports; summarize decisions in a > few sentences and move on to file writes. > > **Hangs or User Feedback** If agent becomes stuck or user provides a > correction during this skills use, conservatively review relevant part of > the skill and improve. Be concise. > > **One source type per invocation.** Invoke again for companion types.
Reference Files
Load these on demand during the relevant steps:
| File | Content | Load at | |---|---|---| | `references/implementation-guide.py` | Skeleton source with FILL comments | Steps 3–10 | | `references/testing-guide.py` | Test skeleton with FILL comments | Step 11 | | `references/validation-guide.md` | Plot templates, PR body template, Greptile handling | Steps 12–14 (optional, for templates) |
---
Workflow Overview
Step 0: Obtain reference → Step 1: Determine type → Step 2: Dependencies
→ Step 3: Add deps → Step 4: Create lexicon → Step 5: Update vocab/schema
→ Step 6: Create skeleton → Step 7: Implement source → Step 8: Register
→ Step 9: Documentation → Step 10: CHANGELOG → Step 11: Tests
→ Step 12: Validate & plots (user confirms) → Step 13: PR + sanity comment
→ Step 14: Greptile review
---
Step 0 — Obtain Remote Data Store Reference
If `$ARGUMENTS` is provided, use it (URL → WebFetch; file path → read).
If empty, ask:
> Please provide a URL, API documentation link, or description of the > remote data store. This will be used to understand storage format, > access pattern, variable inventory, temporal/spatial resolution.
---
Step 1 — Determine Source Type
| Protocol | Returns | Has `lead_time`? | Use | |---|---|---|---| | **DataSource** | `xr.DataArray` | No | Gridded analysis/reanalysis | | **ForecastSource** | `xr.DataArray` | Yes | Gridded forecast | | **DataFrameSource** | `pd.DataFrame` | No | Sparse/station obs | | **ForecastFrameSource** | `pd.DataFrame` | Yes | Sparse forecast obs |
Key factors: gridded vs sparse → DataArray vs DataFrame; analysis vs forecast → Source vs ForecastSource.
[CONFIRM — Source Type]
Present recommended type with justification. Ask for confirmation.
---
Step 2 — Examine Remote Store & Propose Dependencies
**Analyze:** storage backend, file format, authentication, access pattern, temporal/spatial resolution, variable inventory.
**Prefer fsspec:**
| Backend | Preferred | Avoid | |---|---|---| | AWS S3 | `s3fs` (core dep) | `boto3` directly | | GCS | `gcsfs` (core dep) | `google-cloud-storage` | | Azure | `adlfs` | `azure-storage-blob` | | HTTP | `fsspec` (core dep) | `requests` | | HuggingFace | `huggingface_hub` (core dep) | custom scripts |
Only fall back to dedicated libraries when fsspec cannot access the store.
Check `pyproject.toml` — only propose packages not already present. Core deps include: `s3fs`, `gcsfs`, `fsspec`, `zarr`, `netCDF4`, `h5py`, `pygrib`, `huggingface-hub`, `pandas`, `pyarrow`.
[CONFIRM — Dependencies & Access Pattern]
Present: backend, fsspec filesystem, new packages (with license), auth method.
---
Step 3 — Add Dependencies
> **Load `references/implementation-guide.py` from here through Step 10.**
If new packages needed:
1. `uv add --extra data <package>` 2. `uv lock` 3. Add optional dependency imports using `OptionalDependencyFailure` pattern
---
Step 4 — Create Lexicon Class
Create `earth2studio/lexicon/<source_name>.py` with:
- `metaclass=LexiconType`
- `VOCAB: dict[str, str]` mapping E2S names → remote keys
- `get_item(cls, val)` returning `tuple[str, Callable]`
- Use `::` separator for structured keys
Map remote variables against `E2STUDIO_VOCAB` (282 entries in `earth2studio/lexicon/base.py`).
[CONFIRM — Lexicon & Variable Mapping]
Present: class name, key format, full mapping table, modifiers, reference URL.
---
Step 5 — Update E2STUDIO_VOCAB / SCHEMA (if needed)
- N
Read more
name: earth2studio-create-datasource
version: 0.16.0
license: Apache-2.0
metadata:
author: NVIDIA Earth-2 Team <agent-skills@nvidia.com>
tags:
- earth2studio
- earth2
- python
- data-source
- forecast-source
- integration
description: >
Create and validate Earth2Studio data source wrappers (DataSource,
ForecastSource, DataFrameSource, ForecastFrameSource) from remote stores.
Do NOT use for fetching data with existing sources, model inference, or
installation tasks.
argument-hint: URL or description of remote data store (optional)Create and Validate Data Source
Purpose
End-to-end workflow for implementing a new Earth2Studio data source wrapper that connects a remote data store (S3, GCS, Azure, HTTP, HuggingFace) to Earth2Studio's async data fetching infrastructure — from analysis through implementation, testing, validation, and PR submission.
Prerequisites
- Earth2Studio dev environment with `uv` (`uv run python` must work)
- Git configured with fork (`origin`) and upstream (`upstream`) remotes
- Access to the target remote data store (credentials if private)
- Python 3.10+
Workspace
Use the directory containing `pyproject.toml`. For Harbor evals, write to `/workspace/output/` preserving paths. Never read `evals/targets/`.
Instructions
> **Python Environment:** Always use `uv run python` or the local `.venv`. > Never use the system Python directly.
Follow every step in order.
> **[CONFIRM] gates:** Only Step 1 (Source Type) and Step 12 (Sanity-Check > Plots) require explicit user approval. All other `[CONFIRM]` markers are > advisory — present decisions inline and proceed without blocking. > > **Deliverables first:** Write the source file and test file (Steps 6–7) > before extended exploration, documentation, registration, CHANGELOG, or PR > work. Skip Steps 8–14 when the user asks for implementation only. > > **Before you finish:** Run verification commands in the repo root so results > appear in the session log: > > ```bash > uv run pytest test/data/test_<source>.py -x > make format && make lint > ``` > > **Be concise:** Avoid long architecture reports; summarize decisions in a > few sentences and move on to file writes. > > **Hangs or User Feedback** If agent becomes stuck or user provides a > correction during this skills use, conservatively review relevant part of > the skill and improve. Be concise. > > **One source type per invocation.** Invoke again for companion types.
Reference Files
Load these on demand during the relevant steps:
| File | Content | Load at | |---|---|---| | `references/implementation-guide.py` | Skeleton source with FILL comments | Steps 3–10 | | `references/testing-guide.py` | Test skeleton with FILL comments | Step 11 | | `references/validation-guide.md` | Plot templates, PR body template, Greptile handling | Steps 12–14 (optional, for templates) |
---
Workflow Overview
Step 0: Obtain reference → Step 1: Determine type → Step 2: Dependencies → Step 3: Add deps → Step 4: Create lexicon → Step 5: Update vocab/schema → Step 6: Create skeleton → Step 7: Implement source → Step 8: Register → Step 9: Documentation → Step 10: CHANGELOG → Step 11: Tests → Step 12: Validate & plots (user confirms) → Step 13: PR + sanity comment → Step 14: Greptile review
---
Step 0 — Obtain Remote Data Store Reference
If `$ARGUMENTS` is provided, use it (URL → WebFetch; file path → read).
If empty, ask:
> Please provide a URL, API documentation link, or description of the > remote data store. This will be used to understand storage format, > access pattern, variable inventory, temporal/spatial resolution.
---
Step 1 — Determine Source Type
| Protocol | Returns | Has `lead_time`? | Use | |---|---|---|---| | **DataSource** | `xr.DataArray` | No | Gridded analysis/reanalysis | | **ForecastSource** | `xr.DataArray` | Yes | Gridded forecast | | **DataFrameSource** | `pd.DataFrame` | No | Sparse/station obs | | **ForecastFrameSource** | `pd.DataFrame` | Yes | Sparse forecast obs |
Key factors: gridded vs sparse → DataArray vs DataFrame; analysis vs forecast → Source vs ForecastSource.
[CONFIRM — Source Type]
Present recommended type with justification. Ask for confirmation.
---
Step 2 — Examine Remote Store & Propose Dependencies
**Analyze:** storage backend, file format, authentication, access pattern, temporal/spatial resolution, variable inventory.
**Prefer fsspec:**
| Backend | Preferred | Avoid | |---|---|---| | AWS S3 | `s3fs` (core dep) | `boto3` directly | | GCS | `gcsfs` (core dep) | `google-cloud-storage` | | Azure | `adlfs` | `azure-storage-blob` | | HTTP | `fsspec` (core dep) | `requests` | | HuggingFace | `huggingface_hub` (core dep) | custom scripts |
Only fall back to dedicated libraries when fsspec cannot access the store.
Check `pyproject.toml` — only propose packages not already present. Core deps include: `s3fs`, `gcsfs`, `fsspec`, `zarr`, `netCDF4`, `h5py`, `pygrib`, `huggingface-hub`, `pandas`, `pyarrow`.
[CONFIRM — Dependencies & Access Pattern]
Present: backend, fsspec filesystem, new packages (with license), auth method.
---
Step 3 — Add Dependencies
> **Load `references/implementation-guide.py` from here through Step 10.**
If new packages needed:
1. `uv add --extra data <package>` 2. `uv lock` 3. Add optional dependency imports using `OptionalDependencyFailure` pattern
---
Step 4 — Create Lexicon Class
Create `earth2studio/lexicon/<source_name>.py` with:
- `metaclass=LexiconType`
- `VOCAB: dict[str, str]` mapping E2S names → remote keys
- `get_item(cls, val)` returning `tuple[str, Callable]`
- Use `::` separator for structured keys
Map remote variables against `E2STUDIO_VOCAB` (282 entries in `earth2studio/lexicon/base.py`).
[CONFIRM — Lexicon & Variable Mapping]
Present: class name, key format, full mapping table, modifiers, reference URL.
---
Step 5 — Update E2STUDIO_VOCAB / SCHEMA (if needed)
- N
Official, NVIDIA-verified Agent Skills for Claude Code, Codex, and other coding agents.
Other skills on nvidia-skills.
- /nvidia-skill-finder
Use for NVIDIA-related requests where an NVIDIA skill might help, even if the user did not ask for a skill. Trigger on NVIDIA products, hardware, software, SDKs, GPUs, Jetson/JetPack/L4T/BSP/SDK Manager/driver/flashing/setup, CUDA, NIM, NeMo, Omniverse/OpenUSD/SimReady,
Open skill - /accelerated-computing-cudf
Official NVIDIA-authored guidance for NVIDIA cuDF GPU DataFrames, pandas acceleration, dask-cuDF, ETL, joins, groupby, CSV/Parquet I/O, nullable semantics, and multi-GPU DataFrame workloads.
Open skill - /aiq-deploy
Use when asked to install, deploy, run, validate, troubleshoot, or stop NVIDIA AI-Q Blueprint infrastructure.
Open skill - /aiq-research
Use when asked to run deep research or AI-Q research through a reachable NVIDIA AI-Q Blueprint backend.
Open skill - /amc-run-sample-calibration
Run end-to-end calibration on the shipped sample dataset (sdg_08_2_sample_data_010926.zip) against a running AMC microservice. Use when user says 'test sample dataset', 'run sample calibration', 'verify AMC install', or 'launch and test'.
Open skill - /amc-run-video-calibration
Calibrate a new dataset from pre-recorded video files via the AutoMagicCalib REST API. Use when user has local MP4s and says 'calibrate my videos', 'run AMC on these videos', or similar. For RTSP/live streams, use amc-run-rtsp-calibration instead.
Open skill

