Demand Forecasting Framework

Build accurate demand forecasts using multiple methodologies. Combines statistical models with market intelligence for actionable predictions.

3,891 stars

Best use case

Demand Forecasting Framework is best used when you need a repeatable AI agent workflow instead of a one-off prompt. It is especially useful for teams working in multi. Build accurate demand forecasts using multiple methodologies. Combines statistical models with market intelligence for actionable predictions.

Build accurate demand forecasts using multiple methodologies. Combines statistical models with market intelligence for actionable predictions.

Users should expect a more consistent workflow output, faster repeated execution, and less time spent rewriting prompts from scratch.

Practical example

Example input

Use the "Demand Forecasting Framework" skill to help with this workflow task. Context: Build accurate demand forecasts using multiple methodologies. Combines statistical models with market intelligence for actionable predictions.

Example output

A structured workflow result with clearer steps, more consistent formatting, and an output that is easier to reuse in the next run.

When to use this skill

  • Use this skill when you want a reusable workflow rather than writing the same prompt again and again.

When not to use this skill

  • Do not use this when you only need a one-off answer and do not need a reusable workflow.
  • Do not use it if you cannot install or maintain the related files, repository context, or supporting tools.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/afrexai-demand-forecasting/SKILL.md --create-dirs "https://raw.githubusercontent.com/openclaw/skills/main/skills/1kalin/afrexai-demand-forecasting/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/afrexai-demand-forecasting/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How Demand Forecasting Framework Compares

Feature / AgentDemand Forecasting FrameworkStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Build accurate demand forecasts using multiple methodologies. Combines statistical models with market intelligence for actionable predictions.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

Related Guides

SKILL.md Source

# Demand Forecasting Framework

Build accurate demand forecasts using multiple methodologies. Combines statistical models with market intelligence for actionable predictions.

## When to Use
- Quarterly/annual demand planning
- New product launch forecasting
- Inventory optimization
- Capacity planning decisions
- Budget cycle preparation

## Forecasting Methodologies

### 1. Time Series Analysis
Best for: Established products with 24+ months of history.

```
Decompose into: Trend + Seasonality + Cyclical + Residual

Moving Average (3-month):
  Forecast = (Month_n + Month_n-1 + Month_n-2) / 3

Weighted Moving Average:
  Forecast = (0.5 × Month_n) + (0.3 × Month_n-1) + (0.2 × Month_n-2)

Exponential Smoothing (α = 0.3):
  Forecast_t+1 = α × Actual_t + (1-α) × Forecast_t
```

### 2. Causal / Regression Models
Best for: Products where external factors drive demand.

Key drivers to model:
- **Price elasticity**: % demand change per 1% price change
- **Marketing spend**: Lag effect (typically 2-6 weeks)
- **Seasonality index**: Monthly coefficient vs annual average
- **Economic indicators**: GDP growth, consumer confidence, industry PMI
- **Competitor actions**: New entrants, price changes, promotions

```
Demand = β₀ + β₁(Price) + β₂(Marketing) + β₃(Season) + β₄(Economic) + ε
```

### 3. Judgmental / Qualitative
Best for: New products, market disruptions, limited data.

Methods:
- **Delphi method**: 3+ expert rounds, anonymous, converging estimates
- **Sales force composite**: Bottom-up from territory reps (apply 15-20% optimism correction)
- **Market research**: Survey-based purchase intent (apply 30-40% intent-to-purchase conversion)
- **Analogous forecasting**: Map to similar product launch curves

### 4. Blended Forecast (Recommended)
Combine methods using confidence-weighted average:

| Method | Weight (Mature Product) | Weight (New Product) |
|--------|------------------------|---------------------|
| Time Series | 50% | 10% |
| Causal | 30% | 20% |
| Judgmental | 20% | 70% |

## Forecast Accuracy Metrics

| Metric | Formula | Target |
|--------|---------|--------|
| MAPE | Avg(|Actual - Forecast| / Actual) × 100 | <15% |
| Bias | Σ(Forecast - Actual) / n | Near 0 |
| Tracking Signal | Cumulative Error / MAD | -4 to +4 |
| Weighted MAPE | Revenue-weighted MAPE | <10% for top SKUs |

## Demand Planning Process

### Monthly Cycle
1. **Week 1**: Statistical forecast generation (auto-run models)
2. **Week 2**: Market intelligence overlay (sales input, competitor intel)
3. **Week 3**: Consensus meeting — align Sales, Marketing, Ops, Finance
4. **Week 4**: Finalize, communicate to supply chain, track vs prior forecast

### Demand Segmentation (ABC-XYZ)

| Segment | Volume | Variability | Approach |
|---------|--------|-------------|----------|
| AX | High | Low | Auto-replenish, tight safety stock |
| AY | High | Medium | Statistical + review quarterly |
| AZ | High | High | Collaborative planning, buffer stock |
| BX | Medium | Low | Statistical, periodic review |
| BY | Medium | Medium | Hybrid model |
| BZ | Medium | High | Judgmental + safety stock |
| CX | Low | Low | Min/max rules |
| CY | Low | Medium | Periodic review |
| CZ | Low | High | Make-to-order where possible |

## Safety Stock Calculation

```
Safety Stock = Z × σ_demand × √(Lead Time)

Where:
  Z = Service level factor (95% = 1.65, 98% = 2.05, 99% = 2.33)
  σ_demand = Standard deviation of demand
  Lead Time = In same units as demand period
```

## Scenario Planning

For each forecast, generate three scenarios:

| Scenario | Probability | Assumptions |
|----------|-------------|-------------|
| Bear | 20% | -15% to -25% vs base. Recession, market contraction, competitor disruption |
| Base | 60% | Historical trends + known pipeline. Most likely outcome |
| Bull | 20% | +15% to +25% vs base. Market expansion, product virality, competitor exit |

## Red Flags in Your Forecast

- [ ] MAPE consistently >20% — model needs retraining
- [ ] Persistent positive bias — sales team sandbagging
- [ ] Persistent negative bias — over-optimism, check incentive structure
- [ ] Tracking signal outside ±4 — systematic error, investigate root cause
- [ ] Forecast never changes — "spreadsheet copy-paste" problem
- [ ] No external inputs — pure statistical = blind to market shifts

## Industry Benchmarks

| Industry | Typical MAPE | Forecast Horizon | Key Driver |
|----------|-------------|-----------------|------------|
| CPG/FMCG | 20-30% | 3-6 months | Promotions, seasonality |
| Retail | 15-25% | 1-3 months | Trends, weather, events |
| Manufacturing | 10-20% | 6-12 months | Orders, lead times |
| SaaS | 10-15% | 12 months | Pipeline, churn, expansion |
| Healthcare | 15-25% | 3-6 months | Regulation, demographics |
| Construction | 20-35% | 12-24 months | Permits, economic cycle |

## ROI of Better Forecasting

For a company doing $10M revenue:
- **5% MAPE improvement** → $200K-$500K inventory savings
- **Reduced stockouts** → 2-5% revenue recovery ($200K-$500K)
- **Lower expediting costs** → $50K-$150K savings
- **Better capacity utilization** → 3-8% OpEx reduction

**Total impact: $450K-$1.15M annually from a 5-point MAPE improvement.**

---

## Full Industry Context Packs

These frameworks scratch the surface. For complete, deployment-ready agent configurations tailored to your industry:

**[AfrexAI Context Packs](https://afrexai-cto.github.io/context-packs/)** — $47 each

- 🏗️ Construction | 🏥 Healthcare | ⚖️ Legal | 💰 Fintech
- 🛒 Ecommerce | 💻 SaaS | 🏠 Real Estate | 👥 Recruitment
- 🏭 Manufacturing | 📋 Professional Services

**[AI Revenue Calculator](https://afrexai-cto.github.io/ai-revenue-calculator/)** — Find your automation ROI in 2 minutes

**[Agent Setup Wizard](https://afrexai-cto.github.io/agent-setup/)** — Configure your AI agent stack

### Bundles
- **Pick 3** — $97 (save 31%)
- **All 10** — $197 (save 58%)
- **Everything Bundle** — $247 (all packs + playbook + wizard)

Related Skills

Post-Mortem & Incident Review Framework

3891
from openclaw/skills

Run structured post-mortems that actually prevent repeat failures. Blameless analysis, root cause identification, and action tracking.

DevOps & Infrastructure

M&A Playbook — Merger & Acquisition Framework

3891
from openclaw/skills

You are a mergers and acquisitions advisor. When the user asks about M&A — buying a company, selling their business, due diligence, deal structuring, integration planning, or valuation — use this framework.

Business & Finance

Investor Relations Framework

3891
from openclaw/skills

Complete IR playbook for startups and growth companies managing investor communications, reporting, and capital market positioning.

ESG & Sustainability Reporting Framework

3891
from openclaw/skills

You are an ESG reporting specialist. Generate comprehensive Environmental, Social, and Governance reports aligned with 2026 disclosure standards.

Workflow & Productivity

Data Governance Framework

3891
from openclaw/skills

Assess, score, and remediate your organization's data governance posture across 6 domains.

Security

Channel Partner Program Framework

3891
from openclaw/skills

Build, manage, and scale a channel partner program that generates indirect revenue without adding headcount.

Business Strategy & Growth

Board Reporting Framework

3891
from openclaw/skills

Generate investor-ready board decks and reporting packages. Covers monthly board updates, quarterly deep dives, and annual reviews with the metrics that actually matter.

Workflow & Productivity

Accounts Payable Automation Framework

3891
from openclaw/skills

You are an AP process optimizer. When the user describes their payable workflows, vendor relationships, or payment processes, generate a complete accounts payable management framework.

Workflow & Productivity

diataxis-docs-framework

3891
from openclaw/skills

Enterprise technical documentation best practices, patterns, and frameworks for developer and partner adoption. Covers content architecture (Diataxis four quadrants), 14 content types (tutorials, how-to guides, API reference, SDK docs, migration guides, changelogs, runbooks, integration guides, troubleshooting, architecture docs), pluggable writing styles (Diataxis, Google, Microsoft, Stripe, Canonical, Minimal), information architecture, docs-as-code workflows, documentation audit, anti-patterns checklist, and developer experience (DX) strategy. 27 rules, 5 references, 6 style guides. Baseline: Diataxis + Google OpenDocs + Good Docs Project. Triggers on: "write docs", "document this", "API docs", "developer docs", "migration guide", "changelog", "tutorial", "how-to guide", "reference docs", "documentation strategy", "docs audit", "information architecture", "developer experience", "partner docs", "SDK documentation", "runbook", "troubleshooting guide", "integration guide", "quickstart", "getting started", "technical writing", "docs-as-code", "DX", mentions of "Diataxis", "Good Docs Project", or "Google OpenDocs".

thinking-framework

3891
from openclaw/skills

Loads any thinker's, leader's, philosopher's, or organization's complete mental operating system directly into the AI — so the AI reasons FROM inside that cognitive architecture, not about it. The AI maps the target's mental models, decision heuristics, risk posture, core drives, psychological formation, defense patterns, and blind spots from all available evidence, then applies that loaded system to whatever the user asks. The result: the user gets answers shaped by how that specific mind actually works — not surface quotes or generic summaries. Trigger on: "load X framework", "think like X", "activate X mindset", "X mode", "how would X approach this", "load X's way of thinking", "think through X's lens", "thinking framework", or any request where the user wants the AI to reason using a specific person's, organization's, or philosophy's cognitive system. Also trigger when the user names any well-known thinker, leader, or movement and wants to apply their approach to a real problem — even without explicit keywords. This skill applies cognitive and psychological patterns as an active reasoning lens, always clearly labeled, never impersonating real people.

stock-research-framework

3891
from openclaw/skills

股票投研9点分析框架,覆盖基本面/财务/竞品/估值/宏观/情绪等维度

marketing-demand-acquisition

3891
from openclaw/skills

Creates demand generation campaigns, optimizes paid ad spend across LinkedIn, Google, and Meta, develops SEO strategies, and structures partnership programs for Series A+ startups scaling internationally. Use when planning marketing strategy, growth marketing, advertising campaigns, PPC optimization, lead generation, pipeline generation, or startup marketing budgets. Covers multi-channel acquisition (Google Ads, LinkedIn Ads, Meta Ads), CAC analysis, MQL/SQL workflows, attribution modeling, technical SEO, and co-marketing partnerships for hybrid PLG/Sales-Led motions in EU/US/Canada markets.