forecast
Generate time-series forecasts for key metrics using statistical methods.
Skill by Amar1404
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/amar1404-forecast
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/forecast
What's inside
- Skill name
forecast- Description
- Generate time-series forecasts for key metrics using statistical methods. Supports naive baselines, seasonality detection, and exponential smoothing. Triggered when users ask "what will revenue look like next month?", "forecast DAU", or invoke `/forecast`.
- License
- MIT
- Instructions
- 80 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# Skill: Forecast
## Model conventions
This skill is version-aware. Before starting, apply `skills/MODEL_CONVENTIONS.md` for the model you are: query data rather than inferring numbers (§B, §E), follow instruction scope literally (§A), let response length follow task complexity (§C), and run intelligence-sensitive analysis at high/xhigh effort (§D).
## 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 1: Prepare the Data
1. Identify the metric and its source table from the metric dictionary
(`<workspace>/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. Require at least 14 data points. If fewer: "Not enough history for forecasting."
### Step 2: Detect Seasonality
Run `detect_seasonality()` from `helpers/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
Report:
- Best method and why (lowest MSE)
- Forecast values for key periods (next 7/14/30 days)
- Seasonality summary
- Confidence level (based on residual magnitude)
- Caveats: "Forecasts assume past patterns continue. External factors not modeled."
## Rules
1. Always run at least 2 methods for comparison
2. Never present a forecast without stating assumptions
3. Always include a naive baseline so the user can see if the model adds value
4. Flag if residuals show systematic patterns (model may be misspecified)
5. If the data has a structural break, warn that forecasts may be unreliable
## 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 sizeFrom Amar1404/AI_ANALYST, MIT.
More from Amar1404/AI_ANALYST
- 0.502score
architect
Amar1404
Run the multi-persona planning methodology to produce a master plan for a new project or feature.
SkillCFreshness: C★ 1Claude Code +9 - 0.502score
ask-question
Amar1404
Use this skill for any data question, analytical request, or metric inquiry — it is the entry point for data work.
SkillCFreshness: C★ 1Claude Code +9 - 0.501score
connect-data
Amar1404
Triggers on "connect", "add data source", "link database", "/connect-data", "/datasets".
SkillCFreshness: C★ 1Claude Code +9 - 0.497score
install-marp
Amar1404
Check if npm is available and install Marp CLI globally for presentation generation.
SkillCFreshness: C★ 1Claude Code +9 - 0.497score
deep-profile
Amar1404
Deep-profile the active dataset to understand schema structure, value distributions, temporal patterns, correlations, completeness gaps, and anomalies.
SkillCFreshness: C★ 1Claude Code +9 - 0.497score
compare-datasets
Amar1404
Compare metrics, findings, and patterns across two or more connected datasets.
SkillCFreshness: C★ 1Claude Code +9 - 0.497score
business-context
Amar1404
Interactive browser for your organization's knowledge system.
SkillCFreshness: C★ 1Claude Code +9 - 0.497score
define-metric
Amar1404
Define any metric clearly and completely using a standardized template so there is no ambiguity about what is being measured, how it's calculated, or how to…
SkillCFreshness: C★ 1Claude Code +9 - 0.497score
design-experiment
Amar1404
Design a controlled experiment (A/B test, multivariate test, or quasi-experiment) with clear hypothesis, success metrics, sample size, and statistical power.
SkillCFreshness: C★ 1Claude Code +9 - 0.496score
export-results
Amar1404
Triggers on "export", "share", "send to Slack", "make a deck", "/export".
SkillCFreshness: C★ 1Claude Code +9 - 0.489score
data-quality-check
Amar1404
EMBEDDED — Validates data completeness and consistency before analysis.
SkillCFreshness: C★ 1Claude Code +9 - 0.489score
archaeology
Amar1404
EMBEDDED — Retrieves proven SQL patterns and reusable CTEs.
SkillCFreshness: C★ 1Claude Code +9
Signals
- Stars
- 1
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Jul 7, 2026 (3 months ago)
- Last release
- Jul 8, 2026 (3 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/Amar1404/AI_ANALYST
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from Amar1404
- 0.502score
architect
Amar1404
Run the multi-persona planning methodology to produce a master plan for a new project or feature.
SkillCFreshness: C★ 1Claude Code +9 - 0.502score
ask-question
Amar1404
Use this skill for any data question, analytical request, or metric inquiry — it is the entry point for data work.
SkillCFreshness: C★ 1Claude Code +9 - 0.501score
connect-data
Amar1404
Triggers on "connect", "add data source", "link database", "/connect-data", "/datasets".
SkillCFreshness: C★ 1Claude Code +9 - 0.497score
business-context
Amar1404
Interactive browser for your organization's knowledge system.
SkillCFreshness: C★ 1Claude Code +9 - 0.497score
compare-datasets
Amar1404
Compare metrics, findings, and patterns across two or more connected datasets.
SkillCFreshness: C★ 1Claude Code +9 - 0.497score
deep-profile
Amar1404
Deep-profile the active dataset to understand schema structure, value distributions, temporal patterns, correlations, completeness gaps, and anomalies.
SkillCFreshness: C★ 1Claude Code +9
Cite this page
forecast skill. Agent Mart. https://agentmart.dev/skills/amar1404-forecast (last updated 2026-10-24)