earth2studio-create-diagnostic
БесплатноЗапускает вложенные скриптыНе проверенCreate Earth2Studio diagnostic model wrappers for single-step data transformations, including simple derived diagnostics, packaged AutoModel diagnostics, and…
от NVIDIA★ 4 269 звёзд на GitHubОб этом скилле
Quick Start Checklist
Do these steps in order. Do not skip ahead. Before editing, read this SKILL.md and load the relevant reference files for the model type. After implementation, run the focused pytest command before saying tests pass. If tests cannot run, report the exact command and failure instead of claiming success.
- Read this SKILL.md completely first
- Get the reference script, repo, paper, or model documentation (Step 0)
- Classify the diagnostic as simple, AutoModel, or generative (Step 1)
- Propose dependency extras before editing dependency files (Step 1)
- Create
earth2studio/models/dx/<name>.pywith diagnostic-only APIs - Create
test/models/dx/test_<name>.pywith mock tests - Run:
uv run pytest test/models/dx/test_<name>.py -m "not package" -v - Add/update model extra, install docs, API docs, and changelog when required
- Run:
make format && make lint && make license
Critical command rule: always use uv run for Python commands:
- Use
uv run pytest ...anduv run python ... - Do not use bare
pytestorpythonin repo workflows
If the generated model is wrong, do not keep retrying the same fix. Follow Self-Improvement, patch this skill or its references, then continue with the corrected workflow.
Purpose
Implement a diagnostic model wrapper connecting third-party or derived ML transforms to Earth2Studio. Diagnostic models transform data at a single time point: input fields in, output fields out, no forecast integration.
Prerequisites
- Earth2Studio installed via
uvwith dev dependencies (uv sync --all-extras) - Python 3.10+ environment
- Reference inference script, repo, paper, or model documentation
- Checkpoint source and license information for packaged models
Limitations
- Handles single-step transformations only
- Does not support time-stepping forecast models; use
earth2studio-create-prognostic - Real package tests can require network access to NGC, HuggingFace, S3, or other registries
- Generative validation can require GPU and fixed seeds for meaningful comparison
Diagnostic Model Types
| Type | Inheritance | Dependency extra | Example |
|---|---|---|---|
| Simple derived diagnostic | torch.nn.Module only |
Usually none | Identity, wind speed |
| Packaged AutoModel diagnostic | torch.nn.Module, AutoModelMixin |
Required, even if empty | PrecipitationAFNO |
| Generative diagnostic | torch.nn.Module, AutoModelMixin |
Required, even if empty | CorrDiff |
Workspace
| Context | Location |
|---|---|
| Harbor eval | Write to /workspace/output/earth2studio/models/dx/... |
Harbor + --copy-repo |
Full checkout at /workspace/repo |
| Local clone | Directory with pyproject.toml |
Never read evals/targets/; those files are grader references only.
Reference Files
Load these files on demand during the matching workflow:
| File | Content | Load at |
|---|---|---|
references/skeleton-template.py |
Full diagnostic skeletons for simple, AutoModel, and generative wrappers | Steps 3-6 |
references/method-templates.py |
Focused coordinate, loading, forward, and device method snippets | Steps 4-6 |
references/testing-guide.py |
Mock, package, exception, sample, and seed test patterns | Step 7 |
references/validation-guide.md |
Reference comparison, plots, PR hygiene, and review follow-up | Steps 10-11 |
references/pr-body-template.md |
PR body template | Step 11 |
references/pr-comment-template.md |
Validation comment template | Step 11 |
Instructions
Step 0 - Get Reference Material
If $ARGUMENTS provides a URL or local path, use it. Otherwise ask:
Please provide a reference inference script, repository, paper, or model documentation.
Capture the reference model's input variables, output variables, tensor shapes, normalization, grid, checkpoint source, dependency requirements, and license.
Step 1 - Analyze Type and Propose Dependencies
Classify the requested diagnostic before editing files:
| If the model... | Then use... |
|---|---|
| Computes a derived quantity with no checkpoint | Simple diagnostic |
Loads weights from Package or an external checkpoint |
AutoModel diagnostic |
| Produces multiple samples, diffusion outputs, VAE samples, or stochastic super-resolution | Generative diagnostic |
Dependency policy:
- Simple derived diagnostics usually do not need a
pyproject.tomlextra. - AutoModel and generative diagnostics must have a named optional dependency extra, even if the list is empty.
- Add the extra alphabetically under
[project.optional-dependencies]and include it in theallaggregate. - Use the model-extra name in
OptionalDependencyFailure("model-extra")and@check_optional_dependencies().
Present the proposed dependency extra and ask the user to approve before editing
pyproject.toml:
model-nam
Установить earth2studio-create-diagnostic в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл earth2studio-create-diagnostic?
Create Earth2Studio diagnostic model wrappers for single-step data transformations, including simple derived diagnostics, packaged AutoModel diagnostics, and generative or diffusion diagnostics. Do NOT use for prognostic time-stepping models, data sources, or installation.
Как установить скилл earth2studio-create-diagnostic?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл earth2studio-create-diagnostic запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic