Forecasts any univariate time series zero-shot with Google's TimesFM model, returning point forecasts and calibrated prediction intervals without training.
Install the "timesfm-forecasting" agent skill from https://github.com/google-research/timesfm/tree/master/timesfm-forecasting into .claude/skills/timesfm-forecasting/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "timesfm-forecasting", then confirm the skill loads.
Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
Type this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
skills CLI
$ npx skills add google-research/timesfm --skill timesfm-forecasting -a codex
Project install goes to .agents/skills/; add -g for ~/.codex/skills/.
Install the "timesfm-forecasting" agent skill from https://github.com/google-research/timesfm/tree/master/timesfm-forecasting into .agents/skills/timesfm-forecasting/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "timesfm-forecasting", then confirm the skill loads.
Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
skills CLI
$ npx skills add google-research/timesfm --skill timesfm-forecasting -a cursor
Project install goes to .agents/skills/; add -g for ~/.cursor/skills/.
Install the "timesfm-forecasting" agent skill from https://github.com/google-research/timesfm/tree/master/timesfm-forecasting into .cursor/skills/timesfm-forecasting/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "timesfm-forecasting", then confirm the skill loads.
Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
skills CLI
$ npx skills add google-research/timesfm --skill timesfm-forecasting -a gemini-cli
Project install goes to .agents/skills/; add -g for ~/.gemini/skills/.
Install the "timesfm-forecasting" agent skill from https://github.com/google-research/timesfm/tree/master/timesfm-forecasting into .gemini/skills/timesfm-forecasting/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "timesfm-forecasting", then confirm the skill loads.
Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
Installs for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
skills CLI
$ npx skills add google-research/timesfm --skill timesfm-forecasting -a github-copilot
Project install goes to .agents/skills/; add -g for ~/.copilot/skills/.
Install the "timesfm-forecasting" agent skill from https://github.com/google-research/timesfm/tree/master/timesfm-forecasting into .github/skills/timesfm-forecasting/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "timesfm-forecasting", then confirm the skill loads.
GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
skills CLI
$ npx skills add google-research/timesfm --skill timesfm-forecasting -a opencode
OpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
Install the "timesfm-forecasting" agent skill from https://github.com/google-research/timesfm/tree/master/timesfm-forecasting into .opencode/skills/timesfm-forecasting/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "timesfm-forecasting", then confirm the skill loads.
OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
Facts
Skill name
timesfm-forecasting
GitHub stars
34k
Token cost
~4.7k tokens
SKILL.md length
1,170 words
Files
32 (incl. scripts, references)
Skills in repo
1
Repo updated
First seen
Licence
Apache-2.0
At a glance
Forecasts any univariate time series zero-shot with Google's TimesFM model, returning point forecasts and calibrated prediction intervals without training.
Works in 3 steps: Verify System (always first) → Install TimesFM → Install PyTorch for Your Hardware
Forecasting demand, sales or sensor readings without training a model
SKILL.md covers Overview, When to Use This Skill, ⚠️ Mandatory Preflight: System… and 🔧 Installation, plus 11 more sections
Runs Python scripts from its folder; calls python, pip and uv; reaches download.pytorch.org
What it does
TimesFM is a pretrained time-series foundation model from Google Research, and this skill wraps it for agents. Given sales, sensor, price, weather or similar data as CSV, a DataFrame or an array, it produces point forecasts with quantile prediction intervals and needs no model training. Covariate forecasting with dynamic and static exogenous variables (XReg) is available through an optional extra.
A preflight checker must run before the model is first loaded: it checks available RAM, GPU memory and disk space and blocks when the machine cannot cope, so the agent does not crash your computer. The skill notes that TimesFM 2.5 has 200M parameters and needs roughly 1.5 GB of RAM on CPU. It also says when to choose other tools, such as statsmodels for interpretable classical models or scikit-learn for tabular data, and shows how to use the intervals to flag anomalies.
When your agent uses it
Forecasting demand, sales or sensor readings without training a model
Getting prediction intervals rather than a single forecast
Adding holidays or promotions as covariates to a forecast
Flagging unusual values in a time series
Example prompts
“Forecast the next eight weeks of daily orders from orders.csv.”
“Check whether my laptop can run TimesFM before we start.”
“Predict energy demand with temperature and holidays as covariates.”
Requirements
Python with the timesfm package
Enough RAM for the model (the checker blocks below 2 GB)
Workflow steps
3 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit e51928e. It shows what the files ask for, not the result of running them.
Tool permissions
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Runs code
Ships 1 file in scripts/ (Python, from the files we listed), which the agent can run.
Shell commands in SKILL.md call:
python
pip
uv
From the folder's file list and the shell code blocks in SKILL.md.
Network
Hosts in commands or code, which the agent is likely to contact:
download.pytorch.org
Also links to:
arxiv.org
huggingface.co
research.google
cloud.google.com
From URLs in SKILL.md, links to its own repository left out.
Credentials
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Context cost
TimesFM Forecasting loads about 4.7k tokens when it runs, and up to ~11k if it reads all its reference files. Until then it costs about 193 tokens; SKILL.md has 1,170 words of instructions outside code blocks.
Always· name and description, kept in context so the agent knows when to use it
~193
When it runs· the whole SKILL.md, loaded when a task matches
~4.7k
With references· SKILL.md plus every file in references/, read only if the agent opens them
~11k
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
Safety
Auto-check passed
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.
Download SKILL.mdSave it as .claude/skills/timesfm-forecasting/SKILL.md (or your agent's skills folder). This skill also uses 31 other files; get the full folder from GitHub.
name
timesfm-forecasting
description
Zero-shot time series forecasting with Google's TimesFM foundation model. Use this skill when forecasting ANY univariate time series — sales, sensor readings, stock prices, energy demand, patient vitals, weather, or scientific measurements — without training a custom model. Supports both basic forecasting and advanced covariate forecasting (XReg) with dynamic and static exogenous variables. Automatically checks system RAM/GPU before loading the model, validates dataset fit before processing, supports CSV/DataFrame/array inputs, and returns point forecasts with calibrated prediction intervals. Includes a preflight system checker script that MUST be run before first use to verify the machine can load the model and handle your specific dataset.
license
Apache-2.0
metadata.author
Clayton Young (@borealBytes)
metadata.version
1.0.0
TimesFM Forecasting
Overview
TimesFM (Time Series Foundation Model) is a pretrained decoder-only foundation model
developed by Google Research for time-series forecasting. It works zero-shot — feed it
any univariate time series and it returns point forecasts with calibrated quantile
prediction intervals, no training required.
This skill includes a mandatory preflight system checker that verifies RAM, GPU memory,
and disk space before the model is ever loaded so the agent never crashes the user's machine.
Key numbers: TimesFM 2.5 uses 200M parameters (~800 MB on disk, ~1.5 GB in RAM on
CPU, ~1 GB VRAM on GPU). The archived v1/v2 500M-parameter model needs ~32 GB RAM.
Always run the system checker first.
When to Use This Skill
Use this skill when:
Forecasting any univariate time series (sales, demand, sensor, vitals, price, weather)
You need zero-shot forecasting without training a custom model
You want probabilistic forecasts with calibrated prediction intervals (quantiles)
You have time series of any length (the model handles 1–16,384 context points)
You need to batch-forecast hundreds or thousands of series efficiently
You want a foundation model approach instead of hand-tuning ARIMA/ETS parameters
You need covariate forecasting with exogenous variables (price, promotions, holidays, day-of-week effects) → use forecast_with_covariates() (TimesFM 2.5 + pip install timesfm[xreg])
Do not use this skill when:
You need classical statistical models with coefficient interpretation → use statsmodels
You need time series classification or clustering → use aeon
You need multivariate vector autoregression or Granger causality → use statsmodels
Your data is tabular (not temporal) → use scikit-learn
You cannot install optional dependencies → XReg requires scikit-learn and JAX
Note on Anomaly Detection: TimesFM does not have built-in anomaly detection, but you
can use the quantile forecasts as prediction intervals — values outside the 90% CI
(q10–q90) are statistically unusual. See examples/anomaly-detection/ for a full example.
⚠️ Mandatory Preflight: System Requirements Check
CRITICAL — ALWAYS run the system checker before loading the model for the first time.
bash
python scripts/check_system.py
This script checks:
Available RAM — warns if below 4 GB, blocks if below 2 GB
GPU availability — detects CUDA/MPS devices and VRAM
Disk space — verifies room for the ~800 MB model download
Python version — requires 3.10+
Existing installation — checks if timesfm and torch are installed
Note: Model weights are NOT stored in this repository. TimesFM weights (~800 MB)
download on-demand from HuggingFace on first use and cache in ~/.cache/huggingface/.
mermaid
flowchart TD
start["🚀 Run check_system.py"] --> ram{"RAM ≥ 4 GB?"}
ram -->|"Yes"| gpu{"GPU available?"}
ram -->|"No (2-4 GB)"| warn_ram["⚠️ Warning: tight RAM<br/>CPU-only, small batches"]
ram -->|"No (< 2 GB)"| block["🛑 BLOCKED<br/>Insufficient memory"]
warn_ram --> disk
gpu -->|"CUDA / MPS"| vram{"VRAM ≥ 2 GB?"}
gpu -->|"CPU only"| cpu_ok["✅ CPU mode<br/>Slower but works"]
vram -->|"Yes"| gpu_ok["✅ GPU mode<br/>Fast inference"]
vram -->|"No"| cpu_ok
gpu_ok --> disk{"Disk ≥ 2 GB free?"}
cpu_ok --> disk
disk -->|"Yes"| ready["✅ READY<br/>Safe to load model"]
disk -->|"No"| block_disk["🛑 BLOCKED<br/>Need space for weights"]
Dataset Preflight (NEW)
Before loading your actual data, verify it will fit in memory:
Total CPU memory: 2.34 GB
Total GPU memory: 2.15 GB
⚠️ Dataset Too Large:
Dataset requires ~12.5 GB RAM but system has 8.0 GB.
Try: context_length=512 or process in chunks of 50 series.
Hardware Requirements by Model Version
Model
Parameters
RAM (CPU)
VRAM (GPU)
Disk
Context
TimesFM 2.5 (recommended)
200M
≥ 4 GB
≥ 2 GB
~800 MB
up to 16,384
TimesFM 2.0 (archived)
500M
≥ 16 GB
≥ 8 GB
~2 GB
up to 2,048
TimesFM 1.0 (archived)
200M
≥ 8 GB
≥ 4 GB
~800 MB
up to 2,048
Recommendation: Always use TimesFM 2.5 unless you have a specific reason to use an
older checkpoint. It is smaller, faster, and supports 8× longer context.
🔧 Installation
Step 1: Verify System (always first)
bash
python scripts/check_system.py
Step 2: Install TimesFM
bash
# Using uv (fast)
uv pip install timesfm[torch]
# Or using pip
pip install timesfm[torch]
# For JAX/Flax backend (faster on TPU/GPU)
uv pip install timesfm[flax]
Step 3: Install PyTorch for Your Hardware
bash
# CUDA 12.1 (NVIDIA GPU)
pip install torch>=2.0.0 --index-url https://download.pytorch.org/whl/cu121
# CPU only
pip install torch>=2.0.0 --index-url https://download.pytorch.org/whl/cpu
# Apple Silicon (MPS)
pip install torch>=2.0.0 # MPS support is built-in
df = pd.read_csv("all_stores.csv", parse_dates=["date"], index_col="date")
inputs = [df[col].dropna().values.astype(np.float32) for col in df.columns]
point, quantiles = model.forecast(horizon=30, inputs=inputs)
import json
results = {col: {"forecast": point[i].tolist(),
"lower_80": quantiles[i, :, 1].tolist(),
"upper_80": quantiles[i, :, 9].tolist()}
for i, col in enumerate(df.columns)}
with open("batch_forecasts.json", "w") as f:
json.dump(results, f, indent=2)
# Always set on Ampere+ GPUs (A100, RTX 3090+)
torch.set_float32_matmul_precision("high")
# Batch size guidelines:
# GPU 8 GB VRAM: per_core_batch_size=64
# GPU 16 GB VRAM: per_core_batch_size=128
# CPU 8 GB RAM: per_core_batch_size=8
# CPU 16 GB RAM: per_core_batch_size=32
# Memory-constrained: process in chunks
CHUNK = 50
results = []
for i in range(0, len(inputs), CHUNK):
p, q = model.forecast(horizon=H, inputs=inputs[i:i+CHUNK])
results.append((p, q))
📚 Available Scripts
scripts/check_system.py
Mandatory preflight checker — run before first model load.
Now includes dataset-aware memory estimation to prevent OOM errors before loading your data.
bash
# Basic system check
python scripts/check_system.py
# Check if your specific dataset will fit
python scripts/check_system.py \
--num-series 1000 \
--context-length 1024 \
--horizon 24 \
--batch-size 32
# Quick memory estimate without system checks
python scripts/check_system.py \
--num-series 5000 \
--context-length 2048 \
--estimate-only
What it checks:
Available RAM — warns if below 4 GB, blocks if below 2 GB
GPU availability — detects CUDA/MPS devices and VRAM
Disk space — verifies room for the ~800 MB model download
Python version — requires 3.10+
Existing installation — checks if timesfm and torch are installed
Dataset fit (NEW) — estimates memory for your specific dataset and warns if it won't fit
Full ForecastConfig docs, output shapes, model options
references/data_preparation.md
Input formats, NaN handling, CSV loading, covariate setup
🧪 Examples
Example
Directory
What It Demonstrates
Global Temperature Forecast
examples/global-temperature/
Basic model.forecast(), CSV → PNG → GIF pipeline
Anomaly Detection
examples/anomaly-detection/
Two-phase detrend + Z-score + quantile PI, 2-panel viz
Covariates (XReg)
examples/covariates-forecasting/
forecast_with_covariates(), 2×2 shared-axis viz
bash
# Run all three examples:
cd examples/global-temperature && python run_forecast.py && python visualize_forecast.py
cd examples/anomaly-detection && python detect_anomalies.py
cd examples/covariates-forecasting && python demo_covariates.py
TimesFM Forecasting next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
TimesFM Forecasting compared with similar skills
Skill
Stars
Used in
Tokens
Auto-check
Licence
Repo updated
TimesFM Forecasting this skillgoogle-research/timesfm
Build a new time-series analytics use case on top of the deployed Time Series Analytics microservice — bring it up with Docker Compose (from a repo clone, or by fetching the compose files from…
Guides time series machine learning with the aeon toolkit: classification, regression, clustering, forecasting, anomaly detection, segmentation and similarity search.
Design and analyze studies in sociolinguistics, language variation, acoustic phonetics, discourse analysis, language contact, and computational linguistics.
Forecasts any univariate time series zero-shot with Google's TimesFM model, returning point forecasts and calibrated prediction intervals without training. TimesFM is a pretrained time-series foundation model from Google Research, and this skill wraps it for agents. Given sales, sensor, price, weather or similar data as CSV, a DataFrame or an array, it produces point forecasts with quantile prediction intervals and needs no model training.
When should I use TimesFM Forecasting?
TimesFM Forecasting fits situations like: forecasting demand, sales or sensor readings without training a model; getting prediction intervals rather than a single forecast; adding holidays or promotions as covariates to a forecast; flagging unusual values in a time series.
How do I install TimesFM Forecasting in Claude Code?
Run `npx skills add google-research/timesfm --skill timesfm-forecasting -a claude-code`. Or copy the skill folder (timesfm-forecasting in google-research/timesfm) into .claude/skills/timesfm-forecasting in your project. Claude Code loads it when a task matches its description.
How do I install TimesFM Forecasting in Codex?
Run `npx skills add google-research/timesfm --skill timesfm-forecasting -a codex`. Or copy the skill folder (timesfm-forecasting in google-research/timesfm) into .agents/skills/timesfm-forecasting in your project. Codex loads it when a task matches its description.
Can I use TimesFM Forecasting in Cursor, Gemini CLI or GitHub Copilot?
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add google-research/timesfm --skill timesfm-forecasting -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/timesfm-forecasting, .gemini/skills/timesfm-forecasting, .github/skills/timesfm-forecasting and .opencode/skills/timesfm-forecasting in your project.
What does TimesFM Forecasting need to run?
Going by SKILL.md and its folder, TimesFM Forecasting needs Python for the scripts in its folder and the command-line tools its instructions call (python, pip and uv). Our summary lists: Python with the timesfm package; Enough RAM for the model (the checker blocks below 2 GB).
Does TimesFM Forecasting access the network?
SKILL.md names 5 domains. In commands or code: download.pytorch.org; the agent is likely to contact it when it follows the instructions. As links in the text: arxiv.org, huggingface.co, research.google and cloud.google.com. This is read from the text; nothing was executed.
Is TimesFM Forecasting safe to install?
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.
What licence does TimesFM Forecasting use?
TimesFM Forecasting is published under the Apache-2.0 licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.
How many tokens does TimesFM Forecasting use?
About 4.7k tokens (SKILL.md is roughly 19k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 6k tokens, read only when the agent opens those files.
What are the alternatives to TimesFM Forecasting?
Skills that share tags, products or a category with TimesFM Forecasting: Time Series Analytics User (open-edge-platform/edge-ai-libraries, 169 stars), Aeon Time Series Machine Learning (davila7/claude-code-templates, 32k stars), Senior Data Scientist (Raidriar7170/hermes-skilleval, 125 stars) and Statsmodels Statistical Modeling (jaechang-hits/SciAgent-Skills, 371 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
Who maintains TimesFM Forecasting?
google-research (a GitHub organization) maintains it in google-research/timesfm, which has 34,169 GitHub stars. The repository was last updated on September 29, 2026.
Source: google-research/timesfm on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.