Przejdź do treści
Biblioteka skilli
Dane i analityka · Analiza

forecast

/forecast

Przygotowuje prognozy szeregów czasowych dla metryk, np. DAU lub przychodów na kolejny kwartał, z projekcją trendu.

Repozytorium
ai-analyst ↗
Licencja
MIT
Ostatnia zmiana repozytorium
30.09.2026

Ocena i bezpieczeństwo

87/ 100Klasa: dobry
Format20 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność17 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
1
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 30.09.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co robi i kiedy

Przygotowuje prognozy szeregów czasowych dla metryk, np. DAU lub przychodów na kolejny kwartał, z projekcją trendu.

Wyzwalacze z opisu

what will X look like next month?forecast DAU for Q2project revenueestimate future growthwhat should we expect?predict next quarterwhere are we headed?extrapolate this trend
Oryginalny opis (EN)

Generate time-series forecasts and projections for metrics over future time periods. Use this skill whenever the user asks about future values, predictions, or projections — phrases like "what will X look like next month?", "forecast DAU for Q2", "project revenue", "estimate future growth", "what should we expect?", "predict next quarter", "where are we headed?", "extrapolate this trend", or explicitly invokes "/forecast". This skill is essential after trend analysis when you need to quantify what comes next, when sizing opportunities that depend on future state, when planning capacity or reso

Jak działa

  1. Purpose
  2. When to Use
  3. Invocation
  4. Instructions
  5. Rules
  6. Edge Cases
Sekcje z nagłówków SKILL.md, w oryginale · 97 linii, 869 słów
Podgląd SKILL.md
---
name: forecast
description: |
  Generate time-series forecasts and projections for metrics over future time periods. Use this skill whenever the user asks about future values, predictions, or projections — phrases like "what will X look like next month?", "forecast DAU for Q2", "project revenue", "estimate future growth", "what should we expect?", "predict next quarter", "where are we headed?", "extrapolate this trend", or explicitly invokes "/forecast". This skill is essential after trend analysis when you need to quantify what comes next, when sizing opportunities that depend on future state, when planning capacity or resources based on anticipated volumes, or whenever turning historical patterns into forward-looking estimates. Always trigger this when users mention forecasting, predicting, projecting, estimating future values, or ask "what will happen if this continues?" — even if they don't explicitly say "forecast". The skill handles seasonality detection, model selection, confidence intervals, and validation against naive baselines to ensure projections add value.
---

# Skill: Forecast

## Purpose
Generate time-series forecasts for key metrics using the forecast_helpers
library. Supports naive baselines, seasonality detection, and exponential
smoothing — enough to answer "what should we expect next?" without complex
modeling.

## When to Use
- User asks "what will revenue look like next month?" or "forecast DAU"
- After trend analysis reveals a pattern worth projecting
- When sizing an opportunity that depends on future values
- Invoked as `/forecast`

## Invocation
`/forecast {metric}` — forecast the named metric
`/forecast {metric} periods=30` — specify forecast horizon
`/forecast {metric} method=holt_winters` — specify method

## Instructions

### Step 0: Understand the Business Context
Before diving into the forecast, ask clarifying questions if the user hasn't specified:
- **What decision depends on this forecast?** (e.g., capacity planning, budgeting, staffing, resource allocation)
- **Who will use it?** (exec summary vs technical deep-dive)
- **What's the forecast horizon?** (7 days, 30 days, 90 days, a quarter?)
- **Are there known upcoming changes?** (product launches, campaigns, seasonal events that would invalidate "business as usual" assumptions)

This context shapes how you present results. Capacity planning needs volume impacts and staffing recommendations. Budget planning needs totals and scenario ranges. Executive audiences need decision-focused summaries.

### Step 1: Prepare the Data
1. Identify the metric and its source table from the metric dictionary
   (`.knowledge/datasets/{active}/metrics/`) or from user specification.
2. Query the data aggregated to the appropriate granularity (daily/weekly/monthly).
3. Create a pandas Series with DatetimeIndex.
4. Clean: forward-fill NaN, drop leading nulls.
5. **Validate data sufficiency:** Require at least 14 data points for short-term forecasts, 30+ for seasonal forecasts, 60+ for quarterly projections. If insufficient, report: "Not enough history for forecasting — need at least {required} points, have {actual}." Explain what additional data would enable (e.g., "With 30+ days we could detect weekly seasonality").

### Step 2: Detect Seasonality
Run `detect_seasonality()` from `helpers/stats/forecast_helpers.py`:
- If seasonality detected, report: "Found {strength} {period}-day seasonality."
- Store the dominant period for use in Step 3.

### Step 3: Generate Forecasts
Run multiple methods and compare:

1. **Naive (last value):** `naive_forecast(series, periods, method='last')`
2. **Naive (seasonal):** If seasonality detected: `naive_forecast(series, periods, method='seasonal_naive')`
3. **Exponential smoothing (auto):** `exponential_smoothing(series)`
4. **Holt-Winters:** If seasonality detected and enough data: `exponential_smoothing(series, seasonal_period=dominant_period)`

Compare MSE across methods. Select the best-fit method.

### Step 4: Generate Chart
Using `chart_helpers`:
1. Call `swd_style()`
2. Plot historical data as a solid line
3. Plot forecast as a dashed line with lighter alpha
4. Add confidence band (±1 std of residuals) as shaded area
5. Mark the historical/forecast boundary with a vertical dashed line
6. Use `action_title()` with a forward-looking title
7. Save to `working/forecast_{metric}_{DATE}.png` using `save_chart()`

### Step 5: Present Results
Structure the output based on business context from Step 0:

**Always include:**
- Data validation summary: "{N} days of historical data analyzed, sufficient for {horizon}-day forecast"
- Best method and why (lowest MSE on validation holdout)
- Seasonality findings (if detected)
- Forecast values for key milestones (next 7/14/30/60/90 days as relevant)
- Confidence intervals (±1σ and ±2σ)
- Standard caveats: "Forecasts assume past patterns continue. External factors not modeled."

**Business context translation:**
- **Capacity planning:** Translate forecast to volume impacts (e.g., "+4% conversion → +4% order volume → scale fulfillment by 4%"). Provide staffing/resource recommendations with risk buffers.
- **Budget planning:** Provide period totals (monthly, quarterly) with upside/downside scenarios. Include sensitivity to key assumptions.
- **Monitoring/alerting:** Suggest thresholds for when actuals diverge from forecast (e.g., "If Week 1 revenue < $X, revisit assumptions").
- **Exec summary:** Lead with the decision implication, then support with numbers. Example: "No team scaling needed — conversion increase (+4% over 2 weeks) is within current capacity."

The forecast numbers are necessary but not sufficient. Your job is to answer "so what?" for the user's planning context.

## Rules
1. **Always run at least 2 methods for comparison.** The user needs to know the forecast isn't arbitrary — showing that one method outperforms others builds confidence.
2. **Never present a forecast without stating assumptions.** Every forecast has an expiration date and boundary conditions. Make them explicit.
3. **Always include a naive baseline.** Users need to see if the model adds value beyond "just use the last value." If naive performs nearly as well, say so — simpler is better.
4. **Flag if residuals show systematic patterns.** Autocorrelated residuals mean the model is missing something (trend, seasonality, structural break). Don't paper over this — it affects forecast reliability.
5. **If the data has a structural break, warn that forecasts may be unreliable.** A sudden spike or drop in the last N days means the historical pattern may not continue. Surface this uncertainty.
6. **Translate to business impact automatically.** Don't just report "4.09% conversion on Day 14" — connect it to the planning question: "4.09% conversion (+4% vs today) means approximately +4% order volume, which is within your current fulfillment capacity." The forecast is a means to a decision, not the end goal.

## Edge Cases
- **Constant series:** Report "No variation — forecast is the constant value"
- **Strong trend + no seasonality:** Use Holt's (double) exponential smoothing
- **Very short history (<30 points):** Only use naive methods, warn about accuracy
- **Data gaps:** Interpolate or warn, depending on gap size

Wersje

RepozytoriumWynikLicencja
Ta strona · ai-analyst-lab/ai-analyst87MIT
mondaycom/mcp100MIT
Everyone-Needs-A-Copilot/claude-copilot100MIT
anthropics/knowledge-work-plugins100Apache-2.0
ai-analyst-lab/ai-analyst-plugin100MIT
charlieviettq/awesome-agent-skill100MIT
bricerising/enterprise-software-playbook100Apache-2.0
thecraighewitt/skills100MIT
Nubaeon/empirica90MIT

Migawka bazy z 13.11.2026 · wersja paczki 3a52538d8f2d (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 1 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 90cast-forecast
    Buduje model prognozowania szeregu czasowego, na przykład popytu, przychodów lub użycia, gdy trzeba przewidzieć kolejny kwartał.
  • 100algo-forecast-arima
    Buduje modele ARIMA do prognozowania szeregów czasowych z dekompozycją trendu i sezonowości, testem stacjonarności i doborem parametrów.
  • 100forecast-generator
    Prawdopodobnie generuje prognozy wartości w ramach analityki danych i szeregów czasowych.
  • 100forecasting-time-series-data
    Prognozuje przyszłe wartości na podstawie historycznych szeregów czasowych, wykrywając trendy, sezonowość i inne wzorce.
  • 100forecasting-time-series-data
    Prognozuje przyszłe wartości na podstawie historycznych szeregów czasowych, wykrywając trendy, sezonowość i inne wzorce.
  • 100time-series-forecasting
    Prognozuje przyszłe wartości szeregów, takich jak sprzedaż lub ruch, porównując CatBoost z ARIMA i sezonowym naiwnym modelem.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.