본문으로 건너뛰기
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가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/weather-pipeline-performance-diagnosis/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 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.

…

자주 묻는 질문

전체 시간만 재면 안 되나요?

전체 시간만으로는 어느 부분이 느린지 알 수 없습니다. 여행이 너무 오래 걸렸다는 것은 알지만, 교통 체증 때문인지, 중간 정차 때문인지, 목적지에서 머문 시간 때문인지 모르는 것과 같습니다.

‘단계(stages)’란 무엇인가요?

데이터 다운로드, 데이터 읽기, 계산, 화면 표시 준비처럼 과정을 이루는 각 부분입니다.

이 도구를 쓰려면 코드를 바꿔야 하나요?

조금은 필요합니다. 도구가 각 단계에서 걸린 시간을 기록할 수 있도록 각 단계에 작은 시간 측정 코드를 추가해야 합니다.

상세 정보

작성자의 원본 설명

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

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬