forecast-accuracy-review
できること
このスキルは、需要予測の品質と、予測のプロセスが価値を生んでいるかを確認します。モデルのスコアだけでなく、正直な正確さの数値がほしい需要と供給の計画担当者向けです。
使う場面
- ✓需要予測が実際にどれだけ正確かを知りたいとき。
- ✓予測のツールやプロセスが、手間に見合う価値があるか疑問なとき。
- ✓製品グループごとの正確さとバイアスの結果が必要なとき。
スキルのリンク
https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/operations/forecast-accuracy-review/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“私の需要予測がどれだけ正確かを確認し、先月の売上をそのまま使うよりも優れているかを教えてください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
エージェントは需要のパターンを分析し、単純な前期の値と比べます。過去の期間に対してローリングのバックテストを行い、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.
よくある質問
単純な基準とは何ですか?
前期の数値をそのまま予測として使うことです。スキルは、どのモデルを判断する前にも、この比較を求めます。
なぜ正確さの数値を1つだけ報告しないのですか?
需要のタイプによって正確さが異なるため、製品のクラスごとに結果を報告します。
どのくらいの履歴が必要ですか?
製品ごとに約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
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
owasp-security
33kエージェントがWebアプリ、API、モバイル、コンテナ、AIエージェント向けの OWASP のセキュリティ指針を理解し、よくある弱点を見つけて修正案を出せるよう支援します。
agent-management
33kエージェントが、AI Maestro のコマンドラインを使って AI エージェントを作成、一覧表示、休止、再開、名前変更、削除できるよう支援します。各エージェントのライフサイクルを管理します。
agent-messaging
33kエージェントが、主に自分のマシン上で Agent Messaging Protocol を使い、AIエージェント同士の署名付きメッセージを送信、受信、返信できるよう支援します。
docs-search
33kエージェントが、自動生成されたコードのドキュメントから関数の署名、クラスの定義、コメントを検索できるよう支援します。コードを変更する前に、実際のAPIを確認できます。
似ているスキル
gitcrawl
394k保存されたGitHubのイシューとプルリクエストのアーカイブを検索し、重複をまとめ、GitHub上の現在の状態を確認するようエージェントを支援します。
slacrawl
394kローカルのSlackアーカイブ内のメッセージを検索して件数を数え、アーカイブの新しさを確認し、必要に応じて更新するようエージェントを支援します。
goplaces
394kGoogle Placesを使って、場所を検索し、詳細や口コミを取得し、場所の名前を解決するようエージェントを支援します。スクリプト用にJSON出力もできます。