AGENT SKILL

earth2studio

Guides Earth2Studio weather and climate inference workflows, data access, model and component selection, output/checkpoint handling, extension, and optional REST serving with backend-aware validation.

License 许可
Apache-2.0
最近更新
2026-09-03
Stars
★ 351
Forks
27

01 前言 Front Matter

name
earth2studio
license
Apache 2.0
metadata
{ "disco-role": "operating" }
description
Guides Earth2Studio weather and climate inference workflows, data access, model and component selection, output/checkpoint handling, extension, and optional REST serving with backend-aware validation.
disable-model-invocation
true

02 资源文件 5

03 SKILL.md 正文

Earth2Studio operating guide

Use this repo skill when a task names Earth2Studio or asks to build a composable AI weather/climate workflow using its earth2studio Python APIs: models, data sources, lexicons, workflows, IO, checkpoints, ensembles, assimilation, statistics, custom components, or the optional serving client and REST server.

This is a routing skill, not a model-weight or dataset bundle. It teaches the public contracts and safe decision sequence; a selected model extra, checkpoint, remote data source, credential, service, and accelerator may still be required. Read scope and limitations before attempting a large, networked, or production workflow.

First checks

Install the public package into the intended environment, then add only the route-specific extra. For example, use python -m pip install earth2studio (or uv pip install earth2studio) for the base package and python -m pip install "earth2studio[serve]" only when the REST/client route is selected. For a repository checkout, an editable install is a development operation and should be performed in that checkout's own environment. Verify with python -c "import earth2studio; print(earth2studio.__version__)" and, for a GPU task, python scripts/check_environment.py --require-cuda.

  1. Establish the supported Python range (>=3.11,<3.15) and the package revision in use. Read repository provenance when deciding whether this graph matches a checkout or whether it needs a refresh.
  2. Decide whether the request is installation/discovery, data preparation, inference composition, ensembles, output/restart, model/assimilation, statistics/extension, or serving. Use one focused route below; combine routes explicitly for cross-cutting requests.
  3. Separate package import, component contract, backend runtime, remote asset/data access, and service readiness. Passing one does not prove the others.
  4. Install only the narrow base/optional extras needed for the selected route; do not start with the all extra. Use the route's troubleshooting reference when compiled model dependencies, GRIB/eccodes, credentials, or CUDA fail.
  5. Before a real forecast, inspect model input_coords() and output_coords(...), source lexicon support, requested variables/times, device, lead-time spacing, and IO coordinates. Use the offline helpers in the relevant route before downloads or long runs.

Route map

  • Install, compare models/data, choose extras or backends: read installation-discovery.
  • Fetch gridded, forecast, observation, tabular, satellite, or local data; map variables through lexicons: read data-sources.
  • Build deterministic or prognostic-plus-diagnostic inference: read workflows, then data-sources and io-checkpointing for the concrete inputs and output.
  • Run multiple members, perturb initial conditions, batch or interpolate: read ensembles, then IO/checkpointing for member-aware storage.
  • Persist outputs, use Zarr/NetCDF/Xarray/KV, shard, or resume: read io-checkpointing.
  • Choose/load a prognostic, diagnostic, downscaling, nowcasting, seasonal, or data-assimilation model: read models-and-assimilation.
  • Compute metrics/statistics or implement custom components: read statistics-and-extension.
  • Submit remote work, inspect schemas/status/results, or configure a REST service: read serving.

Core composition order

For most forecast tasks, use this order:

  1. Installation-discovery: select a model family, exact extra/backend, data source, variables, and license/access requirements.
  2. Models-and-assimilation: load or inspect the component and record its input coordinate system. Do not infer a grid or history window from the class name.
  3. Data-sources: verify that the source/lexicon can provide the exact variables, times, lead times, and units; fetch or interpolate only after validation.
  4. Workflows or ensembles: call the appropriate earth2studio.run function with explicit device, step/member, output-coordinate, and checkpoint choices.
  5. IO-checkpointing: initialize all output coordinates and variable names, choose storage/chunks/shards, and validate restart semantics.
  6. Statistics-and-extension or serving: score/aggregate results, extend a protocol, or expose a validated workflow remotely.

The main public orchestration functions are run.deterministic, run.diagnostic, and run.ensemble; the data helpers are fetch_data and fetch_dataframe. Exact signatures and coordinate rules belong in the focused references rather than this router.

Validation and failure policy

Prefer a tiny, offline, deterministic fixture before a real model/data run. Keep network, credentials, model downloads, service processes, destructive writes, large ensembles, and long examples explicitly opt-in. When a failure occurs, identify the first boundary—Python/package, optional dependency, API/schema, coordinate/data, backend/device, storage/checkpoint, remote access, or service— and follow the nearest route's troubleshooting guide. Do not turn a CPU import into a CUDA/model success claim, or a client import into a healthy Redis/API service claim.

Cross-cutting symptoms and recovery are in troubleshooting. The source snapshot and refresh trigger are in repo provenance. The structured routing metadata is in repo-routing-metadata.json.

04 同仓库更多 Skills

VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-triton-opt

Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-solve

END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-skill

PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-pattern-fusion

Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-orchestrate

Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-feedback

Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).

★ 351