Creates or migrates Earth2Studio prognostic time-stepping model wrappers (explicit-state, forced, coupled, stochastic, multi-output). Follows the PrognosticModel protocol and E2S-06 spec.
Ships in earth2studio. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Default to a protocol-compatible wrapper in the user's separate Python project.
Unless intent is already explicit, ask:
"Are you planning to contribute this to NVIDIA Earth2Studio?"
Only an affirmative answer or explicit contribution intent enables contributor steps.
For local wrappers, use the project's layout, dependencies, style and test conventions;
no Earth2Studio repository changes or full repository test suite are required.
Use earth2studio-install for dependency setup, including NATTEN and FlashAttention.
Repository paths below are source references or contributor destinations, not local output paths.
If unavailable locally, consult matching-version sources on GitHub or the documentation site.
Preserve existing licenses in copied code, including reference skeleton SPDX headers.
These samples do not impose NVIDIA copyright on newly authored local code.
Implement the PrognosticModel protocol. Read E2S-06: Model Contract before coding, including its prognostic rules and conformance sections. The selected version's spec is authoritative; use its requirements directly rather than maintaining a separate skill contract. Use PrognosticMixin optionally: it supplies no public execution methods; explicit wrapper methods can delegate to its private helpers.
initialize/step state remains required either way.earth2studio-install for setup. For contributions only, every packaged
prognostic gets a named optional extra, even if empty. Confirm changes to the
repository's pyproject.toml; add extras alphabetically and include them in all.earth2studio/models/px/<name>.py, using the
single-frame skeleton and
history methods. torch.nn.Module supplies
device movement; AutoModelMixin is for packaged weights. Protocol compliance,
not triple inheritance, is required.PrognosticMixin before using its private helpers.Package assets, load on CPU,
call eval(), register buffers and guard optional backend dependencies.
Override to for non-Torch state. Follow the spec's stochasticity requirements
and domain selection when applicable.check_prognostic_contract(model) using mock weights; check replay and relevant
forcing/RNG behavior and report skipped checks. Follow the project's test layout.
For contributions, use test/models/px/test_<name>.py and the full
testing patterns. Cover numerical values,
initialization/step/iterator equivalence, replay, hooks, ownership, metadata,
invalid coordinates and forcing, slots and seeding. Include the sample
test_model_conformance using check_prognostic_contract(model) for the new
forecasts-only, explicit-state contract. Retain direct numerical tests and
assert the exact expected skips. Mock tests require no downloads;
real-weight tests use @pytest.mark.package.earth2studio/models/px/__init__.py, API entries in
docs/modules/models_px.md, and CHANGELOG.md. For extras, update
docs/userguide/about/install_options.yml with install notes and api_refs.uv run pytest test/models/px/test_<name>.py -m "not package" -v
# When real-weight validation is requested and dependencies are available:
uv run pytest test/models/px/test_<name>.py -m package --package -v
make format && make lint && make license
Use uv run or the project virtualenv for Python. For contributions, include
SPDX headers in newly authored repository code, typed public methods and
NumPy-style docstrings; use loguru.logger in library code.
Use the complete docstrings in the templates. Adapt descriptions to the model's
state, forcing windows and forecast chunk; avoid stale initial-condition-first
or single-frame wording from older wrappers.
Only for confirmed contributions, follow CONTRIBUTING.md and the developer guide:
make format, make lint,
make license; report unavailable dependencies and skipped coverage.| Reference | Read when |
|---|---|
| Model contract | Always, before implementation |
| Skeleton | Starting a single-frame wrapper |
| Method examples | Retaining history in explicit state |
| Forcing and slots | Forced or coupled execution |
| Regional views | The model supports sub-domains |
| Testing guide | Building mock/contract tests |
| Validation guide | Comparing with upstream inference |
| PR body, validation comment | A PR is requested |
*x/*y from the protocol into wrappers: declare fixed named slots.initial_condition(x) separately when publishing the starting fields.y in serializable state so a checkpoint can resume with step.__call__, initialize or step: hooks are iterator-only.y directly and their returned values
feed recurrence; in-place front hooks can edit a previously yielded array.For local work, use the user's project root. For contributor Harbor tasks only,
output goes under /workspace/output/earth2studio/models/px/; a copied repo is at
/workspace/repo. Never read evals/targets/ (grader-only material). Keep
validation scripts, checkpoints, images and credentials out of contribution commits.
If a template or implementation conflicts with the selected version's spec, report
the discrepancy; do not redefine the contract in this skill.
BENCHMARK.md (opens in a new tab)evals/config.yml (opens in a new tab)evals/environment/Dockerfile (opens in a new tab)evals/environment/setup/bootstrap.sh (opens in a new tab)evals/evals.json (opens in a new tab)evals/targets/eval_1_target.py (opens in a new tab)evals/targets/eval_2_target.py (opens in a new tab)evals/targets/test/eval_1_test_target.py (opens in a new tab)evals/targets/test/eval_2_test_target.py (opens in a new tab)references/method-templates.py (opens in a new tab)references/pr-body-template.md (opens in a new tab)references/pr-comment-template.md (opens in a new tab)references/skeleton-template.py (opens in a new tab)references/testing-guide.py (opens in a new tab)references/validation-guide.md (opens in a new tab)skill-card.md (opens in a new tab)skill.oms.sig (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
/earth2studio:earth2studio-create-prognostic URL or local path to reference inference script (optional)from earth2studio
npx claudepluginhub nvidia/earth2studio --plugin earth2studio6 skills in this plugin
/earth2studio-create-datasourceCreate and validate Earth2Studio data source wrappers (DataSource, ForecastSource, DataFrameSource, ForecastFrameSource) from remote stores. Use for local Python projects or contributions to Earth2Studio. Do NOT use for fetching data with existing sources, model inference, or Earth2Studio installation/setup tasks. The user may optionally supply a URL, file path, or description of the remote data store to start from.
/earth2studio-data-fetchFetch weather/climate data via Earth2Studio data sources for specific variables and times. Do NOT use for inference pipelines, model discovery, or installation.
/earth2studio-Other plugins' skills for the same job