本文へスキップ
Skillpedia
Webスクレイピング48k · #6147

weather-model-run-discovery

できること

このツールは、利用可能な最新で完全な天気予報を見つけます。ダウンロードする前にどの予報データが存在するかを確認するため、最新で信頼性の高い情報を確実に入手できます。

使う場面

  • ✓GFSやHRRRなどのモデルから最新の予報が必要なとき。
  • ✓最新の予報がまだ完成していない、または更新中のとき。
  • ✓異なる提供元(AWS、Google、Azure)のデータを比較し、同じ予報の実行結果であることを確認したいとき。

スキルのリンク

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/weather-model-run-discovery/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/weather-model-run-discovery/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“HRRR モデルの最新の予報を探してください。次の24時間分の地上データを含めてください。”

毎週5つの新しいスキル。1分で読めます。

仕組み

ツールはさまざまな気象予報データの提供元を確認します。時間やデータの種類など、必要な情報がすべて揃っている最新の予報を探し、使用するものを確定します。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)をGitHubからそのまま表示しています。

Weather Model Run Discovery

Overview

Resolve a numerical weather prediction run before downloading model fields. Probe exact objects or narrow prefixes, verify a request-specific completion contract, and return the newest qualifying initialization with its source metadata.

This skill decides which run and objects exist. Use weather-model-data-fetching afterward to transfer or subset the data.

When to Use This Skill

  • An application needs the newest usable GFS, GEFS, HRRR, RAP, NAM, or similar model cycle.
  • The nominal latest cycle returns 404, has only early forecast hours, or is still changing.
  • Equivalent AWS, NOMADS, Google, Azure, or other mirrors must be compared without silently mixing runs.
  • A scheduled job needs a bounded fallback to an older complete cycle.
  • The resolved run and provider must be recorded for later reproduction.

Do not activate this skill when the initialization is already fixed or when the task is to download, decode, or interpret model variables.

Define Complete Before Probing

Collect the following request contract:

  • model, domain, product, and ensemble member;
  • legal UTC cycle hours and cycle interval;
  • required forecast hours;
  • required companion objects, such as pressure and surface products;
  • required inventory or index sidecars;
  • provider priority and whether cross-provider fallback is allowed;
  • maximum lookback, maximum probes, and freshness requirement.

A run is complete only when every sentinel required by the consumer exists. Examples include:

  • one product at one forecast hour for a single-image job;
  • both pressure-level and surface files for a sounding;
  • the terminal forecast hour needed by a time series;
  • every required member for an ensemble statistic.

The presence of forecast hour zero does not prove that a run is complete.

Discovery Workflow

  1. Normalize the current time and all candidate initialization times to UTC.
  2. Enumerate only legal cycles, newest first, within the lookback bound.
  3. Build documented object keys for the exact model, product, member, and forecast hour. Never recursively scan an entire bucket.
  4. Probe exact objects with HeadObject, HTTP HEAD, or a narrow paginated prefix listing. A probe should retrieve metadata, not the model payload.
  5. Require every sentinel and sidecar in the completion contract. Reject zero- length or obviously placeholder objects.
  6. For a live mirror that may expose objects before publication finishes, repeat the metadata probe after a short bounded interval and require stable size and object identity.
  7. Select the first complete candidate. A fallback provider must refer to the same initialization, product, member, and forecast hour.
  8. Emit a resolution record before starting the download.

Use a provider's documented cycle status page as supporting evidence, not as a substitute for probing the exact objects the consumer requires.

Minimal Resolver Example

Keep provider-specific key construction separate from the selection rule. This example accepts a metadata-only probe callback so it can be used with S3, HTTP, or a test fixture.

from datetime import datetime, timedelta, timezone


def candidate_cycles(now, cycle_hours, lookback):
    now = now.astimezone(timezone.utc).replace(minute=0, second=0, microsecond=0)
    allowed = sorted(set(cycle_hours), reverse=True)
    candidates = []
    for days_back in range((lookback // 24) + 2):
        day = (now - timedelta(days=days_back)).date()
        for hour in allowed:
            cycle = datetime(day.year, day.month, day.day, hour, tzinfo=timezone.utc)
            if cycle <= now and now - cycle <= timedelta(hours=lookback):
                candidates.append(cycle)
    return sorted(set(candidates), reverse=True)


def resolve_latest(now, cycle_hours, lookback, required_objects, probe):
    """Return one complete run; probe(uri) returns metadata or None."""
    attempts = []
    for cycle in candidate_cycles(now, cycle_hours, lookback):
        requested = required_objects(cycle)
        found = {name: probe(uri) for name, uri in requested.items()}
        missing = [name for name, metadata in found.items() if not metadata]
        attempts.append({"cycle": cycle.isoformat(), "missing": missing})
        if not missing:
            return {
                "initialization": cycle.isoformat(),
                "objects": [

…
よくある質問

「数値天気予報のサイクル」とは何ですか?

コンピュータモデルが特定の時刻に生成した、天気予報データの一連のまとまりのことです。

データを直接ダウンロードしてはいけないのですか?

すべてをダウンロードすると時間がかかり、不要なものも含まれてしまいます。このツールはまず利用可能な中で最適な完全な予報を見つけるため、時間とリソースを節約できます。

「ペイロードを全部ダウンロードせずに」とはどういう意味ですか?

データ量が非常に大きいことがあるため、予報ファイルの全内容を転送せず、ファイルの存在やメタデータ(サイズや日付など)だけを確認することを意味します。

詳細

作者による元の説明

Resolve the newest complete numerical weather prediction cycle and forecast objects across provider mirrors without downloading full payloads.

repo: sickn33/agentic-awesome-skills

人気

GitHubのスター
48k
ランキング
#6147
ライセンス
MIT
更新日
2026/10/15

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル