timesfm-forecasting
What it does
This skill teaches an agent how to forecast a single series of numbers over time with Google's TimesFM model. It needs no custom training and returns predictions with ranges of likely values.
When to use it
- βWhen a user wants a forecast for sales, demand, sensor, or energy data without training a model.
- βWhen a user needs prediction intervals that show a range of likely values.
- βWhen a user wants to forecast many time series in one batch.
Skill link
https://github.com/zLanqing/codex-claude-academic-skills/blob/main/scientific-toolkit-skill/references/scientific-skills/timesfm-forecasting/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βForecast the next 30 days of my daily sales from this CSV file, with a likely range for each day.β
5 new skills a week. 1 minute to read.
How it works
The agent first runs a system check to confirm there is enough memory and disk space, then loads the model and forecasts from the data. It returns point predictions and quantile ranges.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
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 wraps TimesFM for safe, agent-friendly local inference. It 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 a 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
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
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 the
examples/anomaly-detection/directory for a full example.
β οΈ Mandatory Preflight: System Requirements Check
CRITICAL β ALWAYS run the system checker before loading the model for the first time.
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
timesfmandtorchare 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/`. The preflight checker ensures sufficient resources before any download begins.
flowchart TD
accTitle: Preflight System Check
accDescr: Decision flowchart showing the system requirement checks that must pass before loading TimesFM.
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"]
classDef ok fill:#dcfce7,stroke:#16a34a,stroke-width:2px,color:#14532d
classDef warn fill:#fef9c3,stroke:#ca8a04,stroke-width:2px,color:#713f12
classDef block fill:#fee2e2,stroke:#dc2626,stroke-width:2px,color:#7f1d1d
classDef neutral fill:#f3f4f6,stroke:#6b7280,stroke-width:2px,color:#1f2937
class ready,gpu_ok,cpu_ok ok
class warn_ram warn
class block,block_disk block
class start,ram,gpu,vram,disk neutral
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 u
FAQ
How much memory does it need?
The skill says TimesFM 2.5 needs about 1.5 GB of RAM on CPU, and the system check runs before the model loads.
Does it need training data?
No. The skill describes it as zero-shot forecasting, so no custom training is needed.
Which inputs does it accept?
The skill says CSV files, data frames, and arrays all work.
Details
Original description by the author
Zero-shot time series forecasting with Google's TimesFM foundation model. Use for any univariate time series (sales, sensors, energy, vitals, weather) without training a custom model. Supports CSV/DataFrame/array inputs with point forecasts and prediction intervals. Includes a preflight system checker script to verify RAM/GPU before first use.
Popularity
- GitHub stars
- 5.6k
- Ranking position
- #14773
- License
- MIT
- Updated
- 5/14/2026
Comments
- β¦
More skills from this repository
office-academic-skill
5.6kHelps your agent turn research papers into Word reports and build editable Chinese-first academic PowerPoint slides, with speaker notes and layout checks.
research-writing-skill
5.6kHelps your agent write, revise, and polish research paper sections, abstracts, and reviewer responses, keeping formulas, titles, and citations exactly as given.
scientific-toolkit-skill
5.6kHelps your agent write and debug MATLAB or Python scientific code for signal and image processing, statistics, simulations, and publication-ready figures.
matlab
5.6kHelps your agent write and debug MATLAB and GNU Octave scripts for matrix math, signal and image processing, differential equations, optimization, and plots.
Similar skills
pytorch-patterns
280kHelps your agent use PyTorch for machine learning models. It applies best practices for efficient model training and ensures reproducible results.
evm-token-decimals
280kHelps your agent avoid errors with decimal numbers across different blockchain networks. It ensures token values are accurate in transactions and calculations.
ito-inference
280kLets your agent check the availability of AI models for use. It connects the compute request with the ready model service.