weather-pipeline-performance-diagnosis
Skill này làm gì
Công cụ này giúp tìm ra phần nào trong quy trình lấy và xử lý dữ liệu thời tiết đang mất quá nhiều thời gian. Nó đo thời gian của từng bước riêng biệt để bạn biết chính xác vấn đề nằm ở đâu trước khi cố gắng sửa.
Khi nào nên dùng
- ✓Khi một quy trình dữ liệu thời tiết có vẻ chậm hơn bình thường.
- ✓Khi nghi ngờ một chương trình cụ thể chậm nhưng chưa có bằng chứng.
- ✓Khi bạn muốn so sánh hiệu năng trước và sau khi thay đổi.
Liên kết skill
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/weather-pipeline-performance-diagnosis/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Tìm giai đoạn nào đang chậm trong quy trình dữ liệu thời tiết của tôi.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Công cụ chia quy trình thành các phần (như tải dữ liệu, xử lý, kết xuất) và đo thời gian mỗi phần. Nhờ vậy, nó chỉ ra phần chậm nhất mà không cần thay đổi chính mã.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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:
- request validation and source discovery;
- availability checks and fallback selection;
- network transfer or cache read;
- parsing or decoding;
- supplemental-data retrieval;
- profile, grid, or derived-value construction;
- visualization or export;
- 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
- Preserve the baseline report and environment description.
- Change the smallest shared cause supported by the measurements.
- Rerun the identical workload several times in the same cache state.
- Compare the affected stage, total duration, output identity, and resource use.
- Run correctness tests for the changed path.
- Report both improvement and measurement variability.
…
Câu hỏi thường gặp
Vì sao tôi không chỉ đo tổng thời gian?
Đo tổng thời gian không cho biết phần nào chậm. Giống như biết một chuyến đi quá lâu, nhưng không biết là do kẹt xe, dừng lại nghỉ hay thời gian ở điểm đến.
‘Stages’ (giai đoạn) là gì?
Đó là các phần khác nhau của quá trình, như tải dữ liệu, đọc dữ liệu, tính toán và chuẩn bị hiển thị.
Tôi có cần thay đổi mã để dùng công cụ này không?
Có, một chút. Bạn cần thêm các phép đo thời gian nhỏ vào từng bước trong quy trình để công cụ ghi lại thời gian mỗi bước.
Chi tiết
Mô tả gốc của tác giả
Diagnose slow weather-data workflows by measuring discovery, transfer, parsing, scientific processing, and rendering separately before changing code.
Độ phổ biến
- Sao GitHub
- 48k
- Vị trí xếp hạng
- #6149
- Giấy phép
- MIT
- Cập nhật
- 15/10/2026
Bình luận
- …
Thêm skill từ kho mã này
00-andruia-consultant
48kGiúp agent của bạn bắt đầu hoặc cải thiện các dự án AI. Phân tích mã, gợi ý công cụ và lập kế hoạch hành động bằng tiếng Tây Ban Nha.
007
48kCho phép agent của bạn thực hiện kiểm toán bảo mật và mô hình hóa mối đe dọa. Hữu ích để bảo vệ dự án khỏi các cuộc tấn công và lỗ hổng.
10-andruia-skill-smith
48kGiúp agent của bạn tạo hoặc cải thiện các công cụ AI. Xác định cách công cụ hoạt động, viết tài liệu và kiểm tra cấu trúc.
20-andruia-niche-intelligence
48kGiúp agent của bạn tạo bản tóm tắt về một ngành cụ thể. Hữu ích để hiểu bối cảnh, quy tắc, cách người dùng tương tác và rủi ro của dự án.
Skill tương tự
gitcrawl
394kCho phép agent của bạn tìm trong kho lưu trữ issue và pull request GitHub, gom các mục trùng lặp và kiểm tra trạng thái hiện tại trên GitHub.
slacrawl
394kCho phép agent của bạn tìm và đếm tin nhắn trong kho lưu trữ Slack cục bộ, kiểm tra kho đó mới đến mức nào và làm mới khi cần.
goplaces
394kGiúp agent của bạn tìm địa điểm, lấy chi tiết và đánh giá, và xác định tên địa điểm bằng Google Places, với đầu ra JSON cho script.