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انسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.
طريقة الاستخدام
أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.
رسالة جاهزة للصق
لـ Claude Code أو Codex أو Cursor: شغّله داخل مجلد مشروعك وستُثبَّت المهارة.
نزّل ملف SKILL.md وضعه في مجلد مهارات وكيلك.
مثال على ما تطلبه من الذكاء الاصطناعي
“اكتشف أي مرحلة بطيئة في مسار بيانات الطقس لدي.”
5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.
كيف تعمل
تقسم المهارة المسار إلى أجزاء (مثل جلب البيانات والمعالجة والعرض)، وتقيس الوقت الذي يستغرقه كل منها. وهكذا تكشف الجزء الأبطأ دون الحاجة إلى تغيير الكود نفسه.
المحتوى التقني (ملف 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:
- 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.
…
الأسئلة الشائعة
لماذا لا أقيس الوقت الإجمالي فقط؟
قياس الوقت الإجمالي لا يخبرك أي جزء بطيء. يشبه أن تعرف أن الرحلة استغرقت وقتاً طويلاً، لكنك لا تعرف هل السبب الازدحام أم التوقف أم الوقت عند الوجهة.
ما هي «المراحل»؟
هي الأجزاء المختلفة من العملية، مثل تنزيل البيانات وقراءتها وإجراء الحسابات والتحضير للعرض.
هل أحتاج إلى تغيير الكود لاستخدامها؟
نعم، بقدر بسيط. تحتاج إلى إضافة قياسات زمنية صغيرة لكل خطوة في عمليتك، حتى تسجل المهارة الوقت الذي تستغرقه كل خطوة.
التفاصيل
الوصف الأصلي من المؤلف
Diagnose slow weather-data workflows by measuring discovery, transfer, parsing, scientific processing, and rendering separately before changing code.
الشعبية
- نجوم GitHub
- 48k
- الترتيب
- #6149
- الترخيص
- MIT
- آخر تحديث
- 15/10/2026
التعليقات
- …
المزيد من المهارات من هذا المستودع
00-andruia-consultant
48kيساعد وكيلك على بدء مشاريع الذكاء الاصطناعي أو تحسينها. يحلل الكود ويقترح الأدوات ويُعد خطط عمل بالإسبانية.
007
48kيتيح لوكيلك إجراء تدقيقات أمنية ونمذجة التهديدات. مفيد لحماية المشاريع من الهجمات والثغرات الأمنية.
10-andruia-skill-smith
48kيساعد وكيلك على إنشاء أدوات الذكاء الاصطناعي أو تحسينها. يحدد طريقة عملها، ويكتب توثيقها، ويتحقق من بنيتها.
20-andruia-niche-intelligence
48kيتيح لوكيلك إعداد ملخص عن صناعة محددة. مفيد لفهم السياق والقواعد وأنماط الاستخدام والمخاطر لمشروع ما، باستخدام مصادر موثوقة.
مهارات مشابهة
gitcrawl
394kيتيح لوكيلك البحث في أرشيف محفوظ لمشكلات GitHub وطلبات السحب، وتجميع المكرر منها، والتحقق من حالتها الحالية على GitHub.
slacrawl
394kيتيح لوكيلك البحث في رسائل Slack داخل أرشيف محلي وعدّها، والتحقق من مدى حداثة الأرشيف، وتحديثه عند الحاجة.
goplaces
394kيساعد وكيلك على البحث عن الأماكن وعرض تفاصيلها وتقييماتها وتحديد أسمائها عبر Google Places، مع مخرجات JSON للسكربتات.