Automated summary
This skill transforms Claude into a forecasting expert that prioritizes Nixtla libraries (StatsForecast, MLForecast, TimeGPT) for time series analysis and prediction.
Strengths
- Integrates multiple forecasting approaches (statistical, machine learning, and pre-trained models) in one workflow
- Enforces a standardized data schema (unique_id, ds, y) for consistency
- Provides automated evaluation and visualization of model performance
- Leverages powerful Nixtla models like AutoETS and TimeGPT with minimal code
Limitations
- Requires Python 3.8+ and manual installation of specific libraries
- TimeGPT functionality requires a paid API key and internet access
- Not suited for non-time-series data or simple regression tasks
Use when you need to generate accurate forecasts for demand planning, inventory management, or any time-dependent metric with multiple model comparisons.
Avoid when the data is not time-indexed (e.g., cross-sectional data) or when you need a quick, non-forecasting analysis without a structured pipeline.
Security analysis
SafeNo destructive or exfiltrating instructions. Uses pip install and runs Python scripts for forecasting, all within allowed tools Read, Write, etc. No obfuscated commands or disabling of safety features.
No concerns found
How this analysis is madeExamples
Forecast this time series data for the next 14 days using Nixtla's StatsForecast models (AutoETS, AutoARIMA, SeasonalNaive) and compare their performance.Run a Nixtla forecast using TimeGPT on this dataset with a 14-day horizon and include 80% and 90% confidence intervals.Perform demand forecasting on this sales data using Nixtla's ecosystem. Use StatsForecast baselines and TimeGPT if API key is available. Evaluate with SMAPE and MASE, and show a comparison plot.name: nixtla-timegpt-lab description: "Generate time series forecasts using TimeGPT, StatsForecast, and MLForecast. Use when forecasting, demand planning, or model comparison is needed. Trigger with 'forecast time series' or 'run Nixtla forecast'." allowed-tools: "Read,Write,Glob,Grep,Edit" version: "1.0.0" author: "Jeremy Longshore jeremy@intentsolutions.io" license: MIT
Nixtla TimeGPT Lab Mode
Transform into a Nixtla forecasting expert, biasing all recommendations toward Nixtla's ecosystem.
Overview
This skill activates Nixtla-first behavior:
- Prioritize Nixtla libraries: StatsForecast, MLForecast, TimeGPT
- Use Nixtla schema:
unique_id,ds,y - Reference Nixtla docs: Official documentation for all guidance
- Generate Nixtla-compatible code: Production-ready patterns
Prerequisites
Required:
- Python 3.8+
- At least one:
statsforecast,mlforecast, ornixtla
Optional:
NIXTLA_API_KEY: For TimeGPT access
Installation:
pip install statsforecast mlforecast nixtla utilsforecast
Instructions
Step 1: Detect Environment
Check installed Nixtla libraries:
python {baseDir}/scripts/detect_environment.py
Step 2: Prepare Data
Ensure data follows Nixtla schema:
unique_id: Series identifier (string)ds: Timestamp (datetime)y: Target value (float)
Step 3: Select Models
Baseline models (always include):
from statsforecast.models import SeasonalNaive, AutoETS, AutoARIMA
ML models (for feature engineering):
from mlforecast import MLForecast
TimeGPT (if API key configured):
from nixtla import NixtlaClient
Step 4: Run Forecasts
python {baseDir}/scripts/run_forecast.py \
--data data.csv \
--horizon 14 \
--freq D
Step 5: Evaluate
python {baseDir}/scripts/evaluate.py \
--forecasts forecasts.csv \
--actuals actuals.csv
Output
- forecasts.csv: Predictions with confidence intervals
- metrics.csv: SMAPE, MASE, MAE per model
- comparison_plot.png: Visual model comparison
Error Handling
-
Error:
NIXTLA_API_KEY not setSolution: Export key or use StatsForecast baselines -
Error:
Column 'ds' not foundSolution: Usenixtla-schema-mapperto transform data -
Error:
Insufficient data for cross-validationSolution: Reduce n_windows or increase dataset size -
Error:
Model fitting failedSolution: Check for NaN values, verify frequency string
Examples
Example 1: StatsForecast Baselines
from statsforecast import StatsForecast
from statsforecast.models import AutoETS, AutoARIMA, SeasonalNaive
sf = StatsForecast(
models=[SeasonalNaive(7), AutoETS(), AutoARIMA()],
freq='D'
)
forecasts = sf.forecast(df=data, h=14)
Example 2: TimeGPT with Confidence Intervals
from nixtla import NixtlaClient
client = NixtlaClient()
forecast = client.forecast(df=data, h=14, level=[80, 90])
Resources
- StatsForecast: https://nixtla.github.io/statsforecast/
- MLForecast: https://nixtla.github.io/mlforecast/
- TimeGPT: https://docs.nixtla.io/
- Scripts:
{baseDir}/scripts/
Related Skills:
nixtla-schema-mapper: Data transformationnixtla-experiment-architect: Experiment scaffolding
From the file to a first result
The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.
View the source and supporting filesThis download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.
1. Download the file
Download SKILL.mdFrom the root of a test project, save the file as .skill-downloads/time-series-forecasting-with-nixtla-timegpt-mmh8qrtr/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.
Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.
mkdir -p '.skill-downloads/time-series-forecasting-with-nixtla-timegpt-mmh8qrtr' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/time-series-forecasting-with-nixtla-timegpt-mmh8qrtr/download' --output '.skill-downloads/time-series-forecasting-with-nixtla-timegpt-mmh8qrtr/SKILL.md.part' && mv '.skill-downloads/time-series-forecasting-with-nixtla-timegpt-mmh8qrtr/SKILL.md.part' '.skill-downloads/time-series-forecasting-with-nixtla-timegpt-mmh8qrtr/SKILL.md'2. Check prerequisites
Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.
Tools declared by the author (check availability in your agent): Read,Write,Glob,Grep,Edit
Original excerpt: Prerequisites
Required:
- Python 3.8+
- At least one:
statsforecast,mlforecast, ornixtla
Optional:
NIXTLA_API_KEY: For TimeGPT access
Installation:
pip install statsforecast mlforecast nixtla utilsforecast
The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.
3. Load the skill
After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.
Claude Code
test -f '.skill-downloads/time-series-forecasting-with-nixtla-timegpt-mmh8qrtr/SKILL.md' && test -s '.skill-downloads/time-series-forecasting-with-nixtla-timegpt-mmh8qrtr/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/nixtla-timegpt-lab' && cp -R '.skill-downloads/time-series-forecasting-with-nixtla-timegpt-mmh8qrtr' '.claude/skills/nixtla-timegpt-lab'OpenSkills
OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.
Official OpenSkills installationopenskills install './.skill-downloads/time-series-forecasting-with-nixtla-timegpt-mmh8qrtr'openskills read 'time-series-forecasting-with-nixtla-timegpt-mmh8qrtr'Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.
For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.
openskills syncManual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.
4. Try a first task
Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:
Read .skill-downloads/time-series-forecasting-with-nixtla-timegpt-mmh8qrtr/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.
Create Interactive Maps with kepler.gl
Data & AI
Create interactive map visualizations and export standalone HTML using the keplergl Python package. Use to plot geospatial data from DataFrames, GeoJSON, or CSV.
Agent-Driven Parameter Optimization
Data & AI
Guide for optimizing configurable systems with a measurable objective, using bounded trials and evidence-based recommendations.
ICP Visitor Outreach
Data & AI
Identify signed-up users matching the ideal customer profile but stalled, and draft personalized outreach to re-engage them.