本文へスキップ
Skillpedia
分析とスプレッドシート48k · #6149

weather-pipeline-performance-diagnosis

できること

このツールは、気象データの取得と処理の作業手順のうち、どの部分に時間がかかりすぎているのかを突き止めるのに役立ちます。各ステップの時間を個別に計測するため、修正する前に問題箇所がはっきりわかります。

使う場面

  • ✓気象データの作業手順が普段より遅いと感じたとき。
  • ✓特定のプログラムが遅いと疑われるものの、証拠がないとき。
  • ✓変更の前後でパフォーマンスを比較したいとき。

スキルのリンク

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/weather-pipeline-performance-diagnosis/SKILL.md

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

使い方

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

貼り付け用メッセージ

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

AIへの頼み方の例

“気象データのパイプラインのうち、どの工程が遅いのかを調べてください。”

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

仕組み

ツールは作業手順を「データ取得」「処理」「描画」などの部分に分け、それぞれにかかる時間を計測します。これにより、コード自体を変更しなくても、最も遅い部分が明らかになります。

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

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

Weather Pipeline Performance Diagnosis

Overview

Find the stage that actually makes a weather workflow slow before optimizing it. Measure the real runtime path from source discovery through the final artifact, including optional companion data and fallback work.

This skill diagnoses latency and throughput. It does not prescribe a particular data provider, file format, decoder, or optimization.

When to Use This Skill

  • A fetch, sounding, map, animation, or batch job feels slower than before.
  • A parser or native backend is blamed without stage-level timing evidence.
  • Local runs and packaged or hosted runs have different performance.
  • A cache, provider fallback, optional enrichment, or rendering step may hide the real cost.
  • A proposed performance fix needs a repeatable before-and-after comparison.

Do not activate this skill for a correctness bug unless performance is also part of the observed failure.

Reproduce the Real Path

Record one fixed workload before editing code:

  • requested source, time, location, variables, and output;
  • application commit and runtime version;
  • active implementation or backend, including fallback reason;
  • cold-cache or warm-cache state;
  • machine, operating system, worker count, and relevant resource limits;
  • bytes transferred and final artifact size;
  • whether optional guidance, overlays, or secondary sources were enabled.

Use the same workload for the baseline and candidate measurement. A faster run with fewer inputs or a warm cache is not evidence that the original path improved.

Divide the Pipeline into Stages

At minimum, time these boundaries independently:

  1. request validation and source discovery;
  2. availability checks and fallback selection;
  3. network transfer or cache read;
  4. parsing or decoding;
  5. supplemental-data retrieval;
  6. profile, grid, or derived-value construction;
  7. visualization or export;
  8. cleanup and final publication.

Add sub-stages only where the first pass shows meaningful time. Preserve the existing behavior while instrumenting; diagnostics must not silently disable expensive work.

Lightweight Timing Example

Use a monotonic clock and emit structured records that can be compared across runs:

import json
import time
from contextlib import contextmanager


@contextmanager
def timed_stage(name, report):
    started = time.perf_counter()
    outcome = "ok"
    try:
        yield
    except BaseException:
        outcome = "error"
        raise
    finally:
        report.append({
            "stage": name,
            "outcome": outcome,
            "seconds": round(time.perf_counter() - started, 6),
        })


timings = []
with timed_stage("source_discovery", timings):
    source = discover_source()
with timed_stage("transfer", timings):
    local_path = fetch_source(source)
with timed_stage("processing", timings):
    result = build_result(local_path)

print(json.dumps(timings, sort_keys=True))

Instrument production boundaries or the same public APIs used by production. Avoid a benchmark helper that bypasses the path users report as slow.

Interpret the Evidence

  • Long discovery with little transfer suggests broad listings, excessive retries, provider timeouts, or repeated availability probes.
  • Long transfer with expected parsing time suggests bandwidth, object size, throttling, or failure to reuse a valid cache.
  • Long parsing requires proof that the intended backend is active and that the input volume is comparable.
  • Long processing after parsing points to interpolation, secondary retrieval, profile construction, or repeated computation.
  • Long rendering can come from layout, rasterization, font loading, excessive redraws, or large output dimensions.
  • High variance across identical runs suggests external services, contention, cold starts, garbage collection, or uncontrolled parallelism.

Measure wall time, CPU time, bytes, item counts, cache state, and worker count where they explain the result. A single total duration cannot locate a bottleneck.

Validate a Fix

  1. Preserve the baseline report and environment description.
  2. Change the smallest shared cause supported by the measurements.
  3. Rerun the identical workload several times in the same cache state.
  4. Compare the affected stage, total duration, output identity, and resource use.
  5. Run correctness tests for the changed path.
  6. Report both improvement and measurement variability.

…

よくある質問

全体の時間を測るだけではだめなのですか?

全体の時間だけでは、どの部分が遅いのかはわかりません。たとえば、旅行に時間がかかりすぎたとわかっても、渋滞、休憩、目的地での滞在のどれが原因かはわからないのと同じです。

「工程」とは何ですか?

データのダウンロード、データの読み込み、計算、表示の準備など、処理の各段階のことです。

このツールを使うのにコードを変更する必要がありますか?

はい、少しだけ必要です。ツールが各工程にかかる時間を記録できるように、処理の各ステップに小さな時間計測の処理を追加する必要があります。

詳細

作者による元の説明

Diagnose slow weather-data workflows by measuring discovery, transfer, parsing, scientific processing, and rendering separately before changing code.

repo: sickn33/agentic-awesome-skills

人気

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

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

0

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

コメント

  • …

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

似ているスキル