forecast-accuracy-review
ما الذي تفعله
تراجع هذه المهارة جودة توقعات الطلب، وهل تضيف عملية التنبؤ قيمة فعلا. وهي مناسبة لمخططي العرض والطلب الذين يريدون أرقام دقة صادقة، لا مجرد درجة للنموذج.
متى تستخدمها
- ✓عندما تريد معرفة مدى دقة توقعات الطلب لديك فعلا.
- ✓عندما تتساءل إن كانت أداة أو عملية للتنبؤ تستحق الجهد.
- ✓عندما تحتاج إلى نتائج الدقة والانحياز لكل مجموعة منتجات.
رابط المهارة
https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/operations/forecast-accuracy-review/SKILL.mdانسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.
طريقة الاستخدام
أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.
رسالة جاهزة للصق
لـ Claude Code أو Codex أو Cursor: شغّله داخل مجلد مشروعك وستُثبَّت المهارة.
نزّل ملف SKILL.md وضعه في مجلد مهارات وكيلك.
مثال على ما تطلبه من الذكاء الاصطناعي
“افحص دقة توقعات الطلب لدي، وأخبرني إن كانت تتفوق على الاعتماد على مبيعات الشهر الماضي.”
5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.
كيف تعمل
يصنف وكيلك أنماط الطلب، ويقارنها بمقياس ساذج، ويجري اختبارا تراجعيا متدحرجا على فترات ماضية، ويقيّم النتائج بمقاييس مثل WMAPE والانحياز.
المحتوى التقني (ملف SKILL.md الأصلي)
النص الأصلي من المؤلف، مباشرة من GitHub.
Forecast Accuracy Review
A forecast is only worth what it adds over the free alternative: shipping last period's number. Every review must answer "how many points does this process add over naive?" before any model discussion.
Required data
Per-SKU demand history at the planning bucket (usually monthly): sku, period, qty. If evaluating an existing forecast, also the forecast values with their creation dates (to avoid hindsight leakage). 18+ periods per SKU for a meaningful backtest; flag SKUs with less.
Workflow
- Profile the demand first. Per SKU compute mean, CV and zero-period share; classify smooth / erratic / intermittent / lumpy (defaults: CV 0.5 and 1.0 boundaries, intermittency at >25% zero periods - state them, adjust to natural breaks). Accuracy expectations differ by class; never report one blended number alone.
- Set the benchmarks. Naive (last period) always; seasonal naive when 2+ full seasons exist. These are non-negotiable controls.
- Backtest rolling-origin. One-step-ahead forecasts for each of the last 6+ periods, expanding window, using only data before each origin. A single train/test split is one lucky draw - do not accept it.
- Score with honest metrics:
- WMAPE = sum(|error|) / sum(actual) - the volume-weighted headline
- Bias = sum(error) / sum(actual) - direction; a fine WMAPE with persistent bias is quietly building excess stock or stockouts
- MAPE only as a footnote, and always disclose how many zero-actual periods it dropped
- Deliver the FVA verdict. FVA = WMAPE(naive) - WMAPE(candidate), per segment and overall. Negative FVA means the process destroys value - say it plainly.
- Validate. Recompute WMAPE for one model directly from the raw backtest rows and confirm it matches the table before presenting.
Pitfalls to check explicitly
- MAPE with zeros: undefined on zero-actual periods; silently dropping them fakes precision on intermittent SKUs.
- MAPE asymmetry rewards under-forecasting (errors capped at 100% below, unbounded above).
- Aggregation mix: a good total can hide terrible A-item accuracy; always show the value-weighted cut.
- Lumpy segments: if WMAPE > ~100%, the honest recommendation is an inventory-policy answer (buffers, MTO), not a better model.
- Hindsight leakage: forecasts must predate actuals; check timestamps when auditing an existing process.
Output format
- Scoreboard table: model x (WMAPE, bias, MAPE-footnote), sorted by WMAPE
- FVA statement: "the process adds/destroys X points vs naive" - overall and per segment
- Segment table (pattern x best approach)
- Two or three recommendation sentences tied to segments, not globals
Worked example with five baseline models and charts: https://github.com/gulmezeren2-byte/forecast-accuracy-lab
Source: industrial-engineering-ai-skills by Eren Gulmez (MIT). The full method pack - entry skill, role agents, data-hygiene rules and artifact templates - lives there.
الأسئلة الشائعة
ما المقياس الساذج؟
هو ببساطة استخدام رقم الفترة الأخيرة كتوقع. وتشترط المهارة هذه المقارنة قبل الحكم على أي نموذج.
لماذا لا تعطي رقم دقة واحدا؟
تختلف الدقة حسب نوع الطلب، لذا تعرض المهارة النتائج لكل فئة من المنتجات.
كم من التاريخ أحتاج؟
نحو 18 فترة لكل منتج لاختبار تراجعي ذي معنى. وتعلّم المهارة الأصناف التي بها بيانات أقل.
التفاصيل
الوصف الأصلي من المؤلف
Evaluate demand-forecast quality honestly - WMAPE, bias and Forecast Value Added against a naive benchmark over a rolling-origin backtest. Use when the user mentions forecast accuracy, MAPE, demand planning performance, tahmin doğruluğu, talep tahmini, or asks whether a forecasting process or tool is worth it. Differentiator - judges the process (value added vs doing nothing), not just the model.
الشعبية
- نجوم GitHub
- 33k
- الترتيب
- #8865
- الترخيص
- MIT
- آخر تحديث
- 2/11/2026
التعليقات
- …
المزيد من المهارات من هذا المستودع
owasp-security
33kتعلّم وكيلك إرشادات OWASP الأمنية لتطبيقات الويب وواجهات API والموبايل والحاويات ووكلاء الذكاء الاصطناعي، ليكشف نقاط الضعف الشائعة ويقترح الإصلاحات.
agent-management
33kتتيح لوكيلك إنشاء وكلاء ذكاء اصطناعي وسردهم وإسباتهم وإيقاظهم وإعادة تسميتهم وحذفهم عبر أداة سطر الأوامر AI Maestro، مع إدارة دورة حياة كل وكيل.
agent-messaging
33kتتيح لوكيلك إرسال الرسائل الموقعة بين وكلاء الذكاء الاصطناعي واستقبالها والرد عليها، باستخدام بروتوكول المراسلة بين الوكلاء، في الغالب على جهازك.
docs-search
33kتتيح لوكيلك البحث في توثيق الشيفرة المُنشأ تلقائياً عن توقيعات الدوال وتعريفات الكلاسات والتعليقات، فيتحقق من الواجهة البرمجية الفعلية قبل تعديل الشيفرة.
مهارات مشابهة
gitcrawl
394kيتيح لوكيلك البحث في أرشيف محفوظ لمشكلات GitHub وطلبات السحب، وتجميع المكرر منها، والتحقق من حالتها الحالية على GitHub.
slacrawl
394kيتيح لوكيلك البحث في رسائل Slack داخل أرشيف محلي وعدّها، والتحقق من مدى حداثة الأرشيف، وتحديثه عند الحاجة.
goplaces
394kيساعد وكيلك على البحث عن الأماكن وعرض تفاصيلها وتقييماتها وتحديد أسمائها عبر Google Places، مع مخرجات JSON للسكربتات.